html {
    scroll-behavior: smooth;
}

.content-page {
    --sticky-top: 96px;
    --legend-top: 96px;
    --scroll-offset: 140px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    color: #0f172a;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: left;
    justify-content: center;
    text-align: left;
    padding: 80px 40px;
    box-sizing: border-box;
    background:#0652c4 100%;
    overflow: hidden;
}

.hero-gradient {
    background: #0652c4;
}

.content-manual {
    padding: 2rem 0 4.5rem;
}

.content-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.content-layout > * {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: var(--sticky-top);
    align-self: start;
    min-width: 100px;
}

.content-nav {
    background: #000000;
    border-radius: 4px;
    padding: 1rem;
    max-width: 100%;
}

.nav-group + .nav-group {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
}

.nav-section-link,
.nav-item-link {
    text-decoration: none;
    display: flex;
    color: #ffffff;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.content-nav a,
.submit-button {
    background-image: none;
}

.nav-section-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.4rem 0.55rem;
}

.nav-section-link:hover {
    background: #f1f5f9;
}

.nav-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
}

.nav-items {
    margin-top: 0.4rem;
    display: grid;
    gap: 0.35rem;
}

.nav-item-link {
    font-size: 0.78rem;
    color: #475569;
    padding: 0.35rem 0.55rem;
    justify-content: flex-start;
}

.nav-item-link:hover {
    background: #f8fafc;
    color: #030f2c;
}

.content-nav a.is-active,
.content-nav a[aria-current="true"] {
    color: #0f3470;
    background: #e0ecff;
    font-weight: 600;
}

.content-nav a.is-parent-active {
    color: #0f3470;
    background: #f1f5f9;
}

.content-main {
    max-width: auto;
    min-width: 0;
}

.content-intro {
    margin-bottom: 1.25rem;
}

.page-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
}

.content-section,
.content-card {
    scroll-margin-top: var(--scroll-offset);
}

.section--research {
    --section-accent: #3b82f6;
    --section-tint: #eff6ff;
}

.section--clinical {
    --section-accent: #f43f5e;
    --section-tint: #fff1f2;
}

.section--reviews {
    --section-accent: #10b981;
    --section-tint: #ecfdf5;
}

.section--commentary {
    --section-accent: #f59e0b;
    --section-tint: #fffbeb;
}

.section--news {
    --section-accent: #8b5cf6;
    --section-tint: #f5f3ff;
}

.section--special {
    --section-accent: #64748b;
    --section-tint: #f1f5f9;
}

.section-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--section-tint);
    border: 1px solid #0f172a14;
    border-radius: 4px;
    margin-top: 2.5rem;
    padding: 3rem 3.25rem;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Clash Grotesk', 'Inter', sans-serif;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #475569;
    margin-top: 0.35rem;
}

.section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

.section-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.content-card {
    background: #ffffff;
    border-radius: 0px;
    border: 2px solid var(--section-accent);
    padding: 1.1rem 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Clash Grotesk', 'Inter', sans-serif;
}

.card-body {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.card-description {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #475569;
}

.card-format {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.format-item {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.55rem 0.6rem;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.format-item i {
    font-size: 1.15rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.format-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.format-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.format-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 400;
}

.format-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.format-note {
    font-size: 0.78rem;
    color: #6b7280;
    border: 1px dashed #e2e8f0;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    background: #ffffff;
    max-width: 100%;
    white-space: normal;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.category-research {
    background: #ffffff;
    color: #012d6e;
}

.category-clinical {
    background: #ffffff;
    color: #be123c;
}

.category-review {
    background: #d1fae5;
    color: #003828;
}

.category-opinion {
    background: #fef3c7;
    color: #f76b00;
}

.category-discussion {
    background: #fde68a;
    color: #92400e;
}

.category-journalism {
    background: #ede9fe;
    color: #28065e;
}

.category-editorial,
.category-summary,
.category-series {
    background: #e2e8f0;
    color: #202731;
}

.status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-badge i {
    font-size: 0.6rem;
}

.status-open {
    background: #dcfce7;
    color: #15803d;
}

.status-invitation {
    background: #fef3c7;
    color: #b45309;
}

.status-internal {
    background: #f1f5f9;
    color: #475569;
}

.status-internal-invitation {
    background: linear-gradient(90deg, #e2e8f0 0%, #fde68a 100%);
    color: #4b5563;
}

.card-details {
    margin-top: 0.85rem;
}

.card-details summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
    user-select: none;
    list-style: none;
    transition: color 0.2s ease;
}

.card-details summary::-webkit-details-marker {
    display: none;
}

.card-details summary i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.card-details[open] summary i {
    transform: rotate(180deg);
}

.card-details summary:hover {
    color: #1d4ed8;
}

.card-details .detail-content {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
}

.detail-section {
    margin-bottom: 0.85rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h5 {
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-section p,
.detail-section ul {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.55;
}

.detail-section ul {
    padding-left: 0;
    list-style: none;
}

.detail-section ul li::before {
    content: "-";
    color: #9ca3af;
    margin-right: 0.4rem;
}

.detail-note {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 0.6rem 0.8rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.78rem;
    color: #92400e;
    margin-top: 0.5rem;
}

.submit-banner {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.submit-title {
    font-size: 1.7rem;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Clash Grotesk', 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.submit-text {
    font-size: 1.02rem;
    color: #ffffff;
    line-height: 1.6;
}


@keyframes contentFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: contentFade 0.7s ease-out forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.15s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.25s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.3s;
}

@media (max-width: 1100px) {
    .content-main {
        max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .content-page {
        --sticky-top: 0px;
        --legend-top: 72px;
        --scroll-offset: 120px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: sticky;
        top: 0;
        z-index: 6;
    }

    .content-nav {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        overflow-x: auto;
        padding: 0.75rem;
        scroll-snap-type: x mandatory;
        width: 100%;
        min-width: 0;
        border: 2px solid #000000;
        border-radius: 0px;
    }

    .nav-group {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        scroll-snap-align: start;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    .nav-group + .nav-group {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .nav-items {
        display: flex;
        gap: 0.4rem;
        margin-top: 0;
    }

    .nav-section-link,
    .nav-item-link {
        white-space: nowrap;
        justify-content: center;
    }

    .legend-items {
        grid-template-columns: 1fr;
    }

    .card-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .legend-bar {
        position: static;
    }

    .format-specs {
        grid-template-columns: 1fr;
    }

    .submit-banner {
        padding: 1.5rem;
    }
}
