/* =================================================================
   Azoospermia Guide - Clean, readable stylesheet
   ================================================================= */

/* Top Navigation Bar */
.top-navbar {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.navbar-brand h1:hover {
    color: #374151;
}

.navbar-center {
    flex: 1;
    text-align: center;
    max-width: 400px;
    margin: 0 20px;
}

.breadcrumb {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.progress-indicator {
    font-size: 13px;
    color: #6b7280;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.navbar-btn:hover {
    background: #e5e7eb;
}

.mobile-only {
    display: none;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay .mobile-nav-sections {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #ffffff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-sections {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-item {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    transition: color 0.2s ease;
}

.mobile-nav-item:hover {
    color: #111827;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Section Navigation */
.section-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.section-nav-right {
    display: flex;
    gap: 12px;
}

sup a {
    text-decoration: none;
    color: #2563eb;
    font-size: 0.75em;
    padding: 0 1px;
}

sup a:hover {
    text-decoration: underline;
}

.references-heading {
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 0.95em;
    color: #4b5563;
}

.references-heading-main {
    margin-top: 40px;
    margin-bottom: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

.references-list {
    font-size: 0.9em;
    color: #4b5563;
    padding-left: 20px;
    margin-top: 4px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.references-list li {
    margin-bottom: 6px;
}

.references-list a {
    color: #2563eb;
    word-break: break-word;
}

.section-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    gap: 16px;
}

.nav-btn {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.nav-btn.next-btn {
    background: #374151;
    color: white;
    border-color: #374151;
}

.nav-btn.next-btn:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: white;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

/* Base body styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: #ffffff;
    padding: 48px 0 40px;
    border-bottom: 1px solid #e5e7eb;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 20px;
}

.hero-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Introduction Section */
.intro-section {
    padding: 48px 0;
    text-align: center;
}

.intro-content {
    max-width: 680px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.intro-content p {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.key-message {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    color: #92400e;
    line-height: 1.6;
}

.key-message strong {
    color: #92400e;
    font-weight: 600;
}

/* Treatment Timeline */
.treatment-timeline {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 20px;
    position: relative;
}

.timeline-intro {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.timeline-intro h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.timeline-intro p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* Timeline Checklist */
.timeline-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
    position: relative;
}

.timeline-checklist::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.timeline-item:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

.timeline-item:hover .checkbox {
    border-color: #9ca3af;
    background: #f9fafb;
}

.checkbox {
    width: 30px;
    height: 30px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.15s ease;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.check-number {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
}

.timeline-item:hover .check-number {
    color: #374151;
}

.item-content {
    flex: 1;
}

.item-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.3;
}

.item-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

.timeline-footer {
    text-align: center;
    margin-top: 40px;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.timeline-footer h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-footer p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-footer p:last-child {
    margin-bottom: 0;
}

.timeline-footer strong {
    color: #111827;
    font-size: 16px;
}

/* Completed state */
.timeline-item.completed {
    background: #f9fafb;
    border-color: #d1d5db;
}

.timeline-item.completed .checkbox {
    background: #6b7280;
    border-color: #6b7280;
}

.timeline-item.completed .checkbox::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.timeline-item.completed .check-number {
    display: none;
}

/* Content sections */
.content-section {
    display: none;
    background: #ffffff;
    border-radius: 10px;
    padding: 48px;
    margin: 40px auto;
    max-width: 860px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.content-section:focus {
    outline: none;
}

.content-section.active {
    display: block;
}

.back-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #1f2937;
}

.content-section h2 {
    color: #111827;
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 700;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
    line-height: 1.2;
}

.content-section h3 {
    color: #111827;
    margin: 36px 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.content-section h4 {
    color: #1f2937;
    margin: 28px 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.content-section h5 {
    color: #1f2937;
    margin: 20px 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.content-section p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.content-section ul, .content-section ol {
    margin: 16px 0 16px 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.content-section li {
    margin-bottom: 8px;
    position: relative;
}

/* Info boxes */
.highlight-box, .success-box, .warning-box, .info-box {
    padding: 24px;
    border-radius: 6px;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.highlight-box {
    border-left-color: #d1d5db;
}

.success-box {
    border-left-color: #d1d5db;
}

.warning-box {
    border-left-color: #d1d5db;
}

.info-box {
    border-left-color: #d1d5db;
}

/* Statistics */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 28px;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
    line-height: 1;
}

.stat-label {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.4;
}

/* Resource links */
.resource-links {
    margin: 24px 0;
    padding: 0;
}

.resource-links h4 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.resource-links h5 {
    color: #1f2937;
    margin: 16px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.resource-links a {
    color: #374151;
    text-decoration: underline;
    display: block;
    padding: 6px 0;
    transition: color 0.15s ease;
    font-size: 15px;
}

.resource-links a:hover {
    color: #111827;
}

/* Checklist */
.checklist {
    margin: 24px 0;
    padding: 0;
}

.checklist h4 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.checklist ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.checklist li {
    padding: 10px 0;
    position: relative;
    padding-left: 32px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.checklist li:before {
    content: "\2713";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #6b7280;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* Tables */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f3f4f6;
    color: #111827;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #d1d5db;
}

.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f9fafb;
}

.comparison-table tr:hover {
    background: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .content-section {
        padding: 32px 24px;
        margin: 24px 12px;
    }

    .content-section h2 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .content-section h3 {
        font-size: 20px;
        margin: 28px 0 12px 0;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .navbar-container {
        padding: 0 16px;
        height: 56px;
    }

    .navbar-brand h1 {
        font-size: 18px;
    }

    .navbar-center {
        margin: 0 12px;
        max-width: 200px;
    }

    .breadcrumb {
        font-size: 14px;
    }

    .progress-indicator {
        font-size: 12px;
    }

    .navbar-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .mobile-only {
        display: block;
    }

    .mobile-nav-overlay .mobile-nav-sections {
        width: 280px;
        padding: 16px;
    }

    .section-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .section-nav-right {
        justify-content: space-between;
    }

    .section-footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 14px;
        text-align: center;
        justify-content: center;
    }

    .hero-section {
        padding: 40px 0 32px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .treatment-timeline {
        margin: 32px auto;
        padding: 0 12px;
    }

    .timeline-intro h2 {
        font-size: 22px;
    }

    .timeline-intro p {
        font-size: 14px;
    }

    .timeline-checklist {
        margin: 16px 0;
    }

    .timeline-checklist::before {
        left: 14px;
        top: 24px;
        bottom: 24px;
    }

    .timeline-item {
        padding: 10px 14px;
        margin-bottom: 4px;
    }

    .checkbox {
        width: 26px;
        height: 26px;
        margin-right: 12px;
    }

    .check-number {
        font-size: 12px;
    }

    .item-content h3 {
        font-size: 14px;
    }

    .item-content p {
        font-size: 12px;
    }

    .timeline-footer {
        margin-top: 28px;
        padding: 24px 18px;
    }

    .timeline-footer h3 {
        font-size: 18px;
    }

    .timeline-footer p {
        font-size: 14px;
    }

    .timeline-footer strong {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 24px 16px;
        margin: 16px 8px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    .navbar-container {
        height: 50px;
    }

    .navbar-brand h1 {
        font-size: 16px;
    }

    .navbar-center {
        display: none;
    }

    .navbar-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .mobile-nav-overlay .mobile-nav-sections {
        width: 100%;
        padding: 12px;
    }

    .nav-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-section {
        padding: 32px 0 24px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-badge {
        padding: 4px 10px;
        margin-bottom: 16px;
    }

    .hero-badge span {
        font-size: 11px;
    }

    .timeline-checklist::before {
        left: 12px;
    }

    .timeline-item {
        padding: 8px 12px;
    }

    .checkbox {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .item-content h3 {
        font-size: 13px;
    }

    .item-content p {
        font-size: 11px;
    }

    .timeline-footer {
        padding: 20px 14px;
    }

    .timeline-footer h3 {
        font-size: 16px;
    }

    .timeline-footer p {
        font-size: 13px;
    }
}

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

html {
    scroll-padding-top: 80px;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
}

/* =================================================================
   READABILITY IMPROVEMENTS — added for site-wide v2 update
   ================================================================= */

/* Tighter content width for long-form prose */
.content-section {
    max-width: 760px;
}

.content-section p,
.content-section li {
    line-height: 1.75;
}

/* Better link defaults for inline content */
.content-section a:not(.nav-btn):not(.back-btn) {
    color: #1d4ed8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.content-section a:not(.nav-btn):not(.back-btn):hover {
    color: #1e40af;
    text-decoration-thickness: 2px;
}

/* =================================================================
   PAGE META BAR — last updated, reading time, reviewed-by
   ================================================================= */
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 0 0 28px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
}

.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #9ca3af;
}

.page-meta-item strong {
    color: #374151;
    font-weight: 600;
}

/* =================================================================
   KEY TAKEAWAYS / TL;DR BOX
   ================================================================= */
.key-takeaways {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 32px 0;
}

.key-takeaways h2,
.key-takeaways h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0 !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways h2 svg,
.key-takeaways h3 svg {
    width: 16px;
    height: 16px;
}

.key-takeaways ul {
    margin: 0 0 0 20px !important;
    padding: 0;
    color: #1e3a8a !important;
}

.key-takeaways li {
    margin-bottom: 8px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #1e3a8a !important;
}

.key-takeaways li:last-child {
    margin-bottom: 0 !important;
}

.key-takeaways strong {
    color: #1e3a8a;
    font-weight: 700;
}

/* =================================================================
   TABLE OF CONTENTS
   ================================================================= */
.toc {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 32px 0;
}

.toc-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.toc ol,
.toc ul {
    margin: 0 0 0 18px !important;
    padding: 0;
    list-style-type: decimal;
}

.toc li {
    margin-bottom: 4px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.toc a {
    color: #374151 !important;
    text-decoration: none !important;
}

.toc a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* =================================================================
   PULL-QUOTE / CALLOUT
   ================================================================= */
.callout {
    margin: 28px 0;
    padding: 18px 22px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #6b7280;
    background: #f9fafb;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
}

.callout-stat {
    border-left-color: #2563eb;
    background: #eff6ff;
}

.callout-warning {
    border-left-color: #d97706;
    background: #fffbeb;
}

.callout-success {
    border-left-color: #059669;
    background: #ecfdf5;
}

.callout-tip {
    border-left-color: #7c3aed;
    background: #f5f3ff;
}

.callout strong {
    font-weight: 700;
}

.callout-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.callout-stat .callout-title { color: #1d4ed8; }
.callout-warning .callout-title { color: #b45309; }
.callout-success .callout-title { color: #047857; }
.callout-tip .callout-title { color: #6d28d9; }

/* =================================================================
   FAQ SECTION
   ================================================================= */
.faq-section {
    margin: 40px 0 0 0;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.faq-section > h2,
.faq-section > h3 {
    font-size: 24px !important;
    margin-bottom: 20px !important;
    color: #111827 !important;
}

.faq-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3,
.faq-item h4 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.faq-item p {
    margin: 0 !important;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* =================================================================
   GLOSSARY (definition list)
   ================================================================= */
.glossary-list {
    margin: 24px 0;
}

.glossary-list dt {
    font-weight: 700;
    color: #111827;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 4px;
}

.glossary-list dt:first-child {
    margin-top: 0;
}

.glossary-list dd {
    margin: 0 0 0 0;
    padding: 0 0 8px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid #f3f4f6;
}

/* =================================================================
   INFO CARDS (lab options, doctor cards, etc.)
   ================================================================= */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.option-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
    transition: all 0.15s ease;
}

.option-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.option-card h5 {
    margin: 0 0 4px 0 !important;
    font-size: 16px !important;
    color: #111827 !important;
}

.option-card .option-loc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.option-card ul {
    margin: 8px 0 0 18px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.option-card li {
    margin-bottom: 4px !important;
}

/* =================================================================
   SECTION ACCENT COLORS — diagnosis (blue), treatment (green), after (tan)
   Applied via body[data-section="..."]
   ================================================================= */
body[data-section="diagnosis"] .key-takeaways {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-color: #bfdbfe;
    border-left-color: #2563eb;
}
body[data-section="diagnosis"] .key-takeaways h2,
body[data-section="diagnosis"] .key-takeaways h3,
body[data-section="diagnosis"] .key-takeaways li,
body[data-section="diagnosis"] .key-takeaways ul,
body[data-section="diagnosis"] .key-takeaways strong {
    color: #1e3a8a !important;
}
body[data-section="diagnosis"] .hero-section {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

body[data-section="treatment"] .key-takeaways {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #a7f3d0;
    border-left-color: #059669;
}
body[data-section="treatment"] .key-takeaways h2,
body[data-section="treatment"] .key-takeaways h3,
body[data-section="treatment"] .key-takeaways li,
body[data-section="treatment"] .key-takeaways ul,
body[data-section="treatment"] .key-takeaways strong {
    color: #064e3b !important;
}
body[data-section="treatment"] .hero-section {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

body[data-section="after"] .key-takeaways {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde68a;
    border-left-color: #b45309;
}
body[data-section="after"] .key-takeaways h2,
body[data-section="after"] .key-takeaways h3,
body[data-section="after"] .key-takeaways li,
body[data-section="after"] .key-takeaways ul,
body[data-section="after"] .key-takeaways strong {
    color: #78350f !important;
}
body[data-section="after"] .hero-section {
    background: linear-gradient(180deg, #fefce8 0%, #ffffff 100%);
}

/* =================================================================
   SECTION HEADING ICONS
   ================================================================= */
.h-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: -4px;
    color: #6b7280;
}

body[data-section="diagnosis"] .h-icon { color: #2563eb; }
body[data-section="treatment"] .h-icon { color: #059669; }
body[data-section="after"] .h-icon { color: #b45309; }

/* =================================================================
   PROGRESS BAR IN NAVBAR
   ================================================================= */
.progress-bar {
    height: 3px;
    background: #e5e7eb;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

body[data-section="treatment"] .progress-bar-fill {
    background: linear-gradient(90deg, #059669, #10b981);
}
body[data-section="after"] .progress-bar-fill {
    background: linear-gradient(90deg, #b45309, #d97706);
}

/* =================================================================
   SITE FOOTER
   ================================================================= */
.site-footer {
    margin-top: 64px;
    padding: 32px 20px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    margin: 0 0 10px 0;
}

.site-footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-section li {
    margin-bottom: 6px;
}

.site-footer-section a {
    color: #4b5563;
    text-decoration: none;
}

.site-footer-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.site-footer-disclaimer {
    max-width: 1100px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .site-footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}
