/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont,
        'helvetica neue', helvetica,
        ubuntu, roboto, noto,
        'segoe ui', arial,
        sans-serif;
    color: #1a202c;
    line-height: 1.6;
}

/* Main container - centered header section */
.container {
    margin-top: 100px;
    text-align: center;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 0 20px;
}

/* Brand title - large, prominent */
.brand {
    font-size: 72px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Subtitle - paper title */
.subtitle {
    font-size: 22px;
    font-weight: 400;
    margin: 10px auto;
    line-height: 1.4;
}

/* Authors section */
.authors {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 15px;
}

/* Author links - black text, dim on hover */
.author-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.author-link:hover,
.author-link:focus {
    opacity: 0.4;
}

/* Institution logos container */
.institution-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 0;
    margin-top: 15px;
}

.institution-logos img {
    height: 55px;
    width: auto;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

/* Navigation buttons */
.navigation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    margin: 0;
    background-color: #ffffff;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 20px;
    border-radius: 6px;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 40px;
}

.navigation-button img {
    margin-right: 8px;
}

.navigation-button:hover {
    background-color: #f0f0f0;
}

/* Divider */
.divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 30px 0;
}

/* Content sections (for future use) */
.col {
    width: 65%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* Section headers (for future use) */
.section-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Section content (for future use) */
.section-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
}

/* Content sections */
.content-section {
    width: 65%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Main figure styling */
.main-figure {
    margin: 0;
    text-align: center;
}

.main-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-figure figcaption {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    text-align: left;
}

.main-figure figcaption strong {
    color: #1a202c;
}

.main-figure figcaption .highlight {
    color: #c53030;
    font-weight: 500;
}

.main-figure figcaption .note {
    color: #718096;
    font-style: italic;
}

.main-figure figcaption .light-green {
    background-color: #D2F3CD;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Text highlighting for content */
.text-highlight {
    color: #2e7d32;
    font-weight: 500;
}

.text-highlight-red {
    color: #c53030;
    font-weight: 500;
}

/* Section content paragraphs */
.section-content p {
    margin-bottom: 16px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Right Side Navigation - Minimalist Style */
#side-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
}

/* The thin track bar (visible by default) */
.side-nav-track {
    width: 3px;
    height: 120px;
    background-color: #e2e8f0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.side-nav-indicator {
    position: absolute;
    width: 3px;
    height: 20px;
    background-color: #1a202c;
    border-radius: 3px;
    top: 0;
    transition: top 0.3s ease;
}

/* The menu (hidden by default, shows on hover) */
.side-nav-menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding-right: 16px;
}

/* Show menu on hover */
#side-nav:hover .side-nav-menu {
    opacity: 1;
    pointer-events: auto;
}

#side-nav:hover .side-nav-track {
    opacity: 0;
}

/* Individual nav links */
.side-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex-direction: row-reverse;
}

.side-nav-link:hover {
    background-color: #f7fafc;
}

/* The dot indicator */
.side-nav-dot {
    width: 6px;
    height: 6px;
    background-color: #cbd5e0;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.side-nav-link:hover .side-nav-dot {
    background-color: #718096;
}

.side-nav-link.active .side-nav-dot {
    background-color: #1a202c;
    width: 8px;
    height: 8px;
}

/* The label */
.side-nav-label {
    font-size: 13px;
    font-weight: 400;
    color: #718096;
    white-space: nowrap;
    text-align: right;
    transition: color 0.2s ease;
}

.side-nav-link:hover .side-nav-label {
    color: #4a5568;
}

.side-nav-link.active .side-nav-label {
    color: #1a202c;
    font-weight: 500;
}

/* Section styling */
section.content-section {
    min-height: 300px;
    padding-top: 20px;
    padding-bottom: 40px;
}

section.content-section:first-of-type {
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand {
        font-size: 48px;
    }

    .subtitle {
        font-size: 18px;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .col {
        width: 90%;
    }

    .institution-logos {
        flex-direction: column;
        gap: 20px;
    }

    .content-section {
        width: 90%;
    }
}

/* Hide side nav on smaller screens */
@media (max-width: 1100px) {
    #side-nav {
        display: none;
    }
}
