/* ==========================================================================
   CUBA REPORT DESIGN SYSTEM & RESPONSIVE STYLESHEET
   Department of State Theme - Deep Navy & Gold Official Aesthetic
   ========================================================================== */

:root {
    /* Color Palette (HSL & Hex) */
    --bg-darkest: #050B12;
    --bg-dark: #0A1420;
    --bg-card: #101E2E;
    --bg-card-hover: #16273B;
    --bg-sidebar: #08111B;
    --border-color: rgba(212, 175, 55, 0.25);
    --border-color-subtle: rgba(255, 255, 255, 0.08);

    --text-primary: #F0F4F8;
    --text-secondary: #BAC7D5;
    --text-muted: #8292A4;

    --gold-primary: #D4AF37;
    --gold-bright: #F5D77F;
    --gold-dark: #A4811B;

    --blue-accent: #2C5E8A;
    --blue-glow: rgba(44, 94, 138, 0.3);

    /* Fonts */
    --font-heading: 'Cinzel', 'Merriweather', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-prose: 'Merriweather', Georgia, serif;

    /* Animations & Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-normal: 0.35s var(--ease-out-expo);

    /* Layout Dimensions */
    --header-height: 72px;
    --sidebar-width: 320px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.dark-theme {
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(20, 38, 60, 0.5) 0%, transparent 75%),
        radial-gradient(circle at 100% 50%, rgba(15, 30, 48, 0.3) 0%, transparent 50%);
    background-attachment: fixed;
}

body.sidebar-active {
    overflow: hidden;
}

/* Reading Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
    width: 0%;
    z-index: 1100;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 11, 18, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s var(--ease-out-expo);
}

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

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background-color: rgba(5, 11, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 900;
    display: flex;
    align-items: center;
    transition: height var(--transition-fast);
}

.header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.seal-icon {
    width: 44px;
    height: 44px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.seal-svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.agency-title {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--gold-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-subtitle {
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-subtle);
    border-radius: 20px;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 220px;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
    width: 270px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.6;
    pointer-events: none;
}

.search-count {
    position: absolute;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--gold-bright);
    font-weight: 600;
}

/* Search Toggle Button (Mobile) */
.search-toggle-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color-subtle);
    color: var(--gold-bright);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-toggle-btn:active {
    transform: scale(0.95);
    border-color: var(--gold-bright);
}

/* TOC Toggle Button */
.toc-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gold-bright);
    padding: 0.5rem 1rem;
    min-height: 42px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.toc-toggle-btn:hover {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-bright);
}

.toc-toggle-btn:active {
    transform: scale(0.96);
}

/* Main Layout */
.app-layout {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

/* Sidebar TOC */
.sidebar-toc {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color-subtle);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    z-index: 960;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-bright);
    letter-spacing: 0.5px;
}

.toc-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.toc-close-btn:active {
    color: var(--gold-bright);
}

.toc-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    min-height: 44px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
}

.toc-link .chapter-num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-primary);
    min-width: 28px;
    font-size: 0.8rem;
}

.toc-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.toc-link.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border-left-color: var(--gold-bright);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 2.5rem 3.5rem;
    max-width: 980px;
    min-width: 0; /* Prevents flex items from overflowing container */
}

/* Cover Section */
.cover-section {
    position: relative;
    background: linear-gradient(180deg, #0A1626 0%, #050B12 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(44, 94, 138, 0.25), transparent 70%);
    pointer-events: none;
}

.seal-hero {
    width: clamp(64px, 14vw, 90px);
    height: clamp(64px, 14vw, 90px);
    margin: 0 auto 1.75rem;
    color: var(--gold-bright);
}

.seal-svg-large {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 7.5vw, 4rem);
    font-weight: 800;
    letter-spacing: clamp(3px, 1.8vw, 12px);
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    overflow-wrap: break-word;
}

.main-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 3.2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: clamp(1px, 0.8vw, 4px);
    color: var(--gold-bright);
    margin-bottom: 2.25rem;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.cover-divider {
    width: 120px;
    max-width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 0 auto 1.75rem;
}

.prepared-by {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.agency-name {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

/* Report Sections */
.report-section {
    margin-bottom: 4.5rem;
    padding-top: 1.25rem;
}

.chapter-banner, .section-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(10, 20, 32, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    margin-bottom: 2.25rem;
    position: relative;
    overflow: hidden;
}

.chapter-badge, .section-pre-title {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.chapter-banner h2, .section-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4.5vw, 2.2rem);
    color: #FFFFFF;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.chapter-tagline {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    color: var(--text-muted);
}

/* Prose Typography */
.prose p {
    font-family: var(--font-prose);
    font-size: clamp(0.96rem, 2.2vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.prose .lead-para {
    font-size: clamp(1.05rem, 2.6vw, 1.18rem);
    color: var(--text-primary);
    font-weight: 400;
}

.prose h3.subsection-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    color: var(--gold-bright);
    margin: 2.25rem 0 1.15rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color-subtle);
    line-height: 1.35;
    overflow-wrap: break-word;
}

/* Quotes */
blockquote.featured-quote {
    position: relative;
    background: rgba(16, 30, 46, 0.6);
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 6px 6px 0;
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.1rem, 3vw, 2rem);
    margin: 2rem 0;
    font-style: italic;
}

blockquote.featured-quote p {
    font-family: var(--font-prose);
    font-size: clamp(0.98rem, 2.3vw, 1.12rem);
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

blockquote.featured-quote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-style: normal;
    color: var(--gold-bright);
    font-weight: 500;
}

blockquote.highlight-box {
    background: rgba(44, 94, 138, 0.15);
    border: 1px solid rgba(44, 94, 138, 0.4);
    border-radius: 6px;
    padding: clamp(1.2rem, 3vw, 2rem);
    margin: 2rem 0;
}

blockquote.highlight-box p {
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

/* Footnote References */
.footnote-ref {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85em;
    padding: 0 0.2em;
}

.footnote-ref:hover {
    text-decoration: underline;
}

/* Interactive Table for Tricontinental */
.interactive-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 2.5rem 0;
    overflow: hidden;
}

.table-header-bar {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-bright);
}

.table-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-primary);
    background: rgba(0,0,0,0.4);
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    white-space: nowrap;
}

.table-responsive {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    min-width: 480px; /* Ensures text readable on mobile without squishing */
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color-subtle);
}

.data-table th {
    background: var(--bg-dark);
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.data-table td:first-child {
    font-weight: 600;
    color: var(--gold-bright);
    width: 32%;
}

/* TOC Grid Page */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-subtle);
    border-radius: 6px;
    padding: 1.35rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.toc-card:hover, .toc-card:active {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.toc-card-num {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.4rem;
}

.toc-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.toc-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.toc-card-page {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 1px;
}

/* Media Cards / Photos */
.media-card {
    margin: 2.25rem 0;
}

.media-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.report-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--border-color-subtle);
    transition: transform var(--transition-normal);
}

.report-img:hover {
    transform: scale(1.015);
}

.caption-overlay, figcaption.caption-overlay {
    margin-top: 0.65rem;
    background: rgba(5, 11, 18, 0.9);
    padding: 0.65rem 0.85rem;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--gold-primary);
    line-height: 1.45;
}

.margin-top-sm {
    margin-top: 0.65rem;
}

/* Footnotes Section */
.footnotes-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.footnotes-list {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.footnotes-list li {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

.footnote-backref {
    color: var(--gold-bright);
    text-decoration: none;
    margin-left: 0.4rem;
    display: inline-block;
    padding: 0 0.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--bg-darkest);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-seal {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--gold-primary);
}

.seal-svg-small {
    width: 100%;
    height: 100%;
}

.site-footer p {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.5rem;
}

/* Floating Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 1.75rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(16, 30, 46, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gold-primary);
    color: var(--gold-bright);
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 850;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover, .back-to-top-btn:active {
    background-color: var(--gold-primary);
    color: var(--bg-darkest);
    transform: scale(1.08);
}

/* Search Highlight */
mark.search-highlight {
    background-color: rgba(212, 175, 55, 0.45);
    color: #FFFFFF;
    border-radius: 2px;
    padding: 0 3px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Tablet & Smaller Devices (<= 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 300px;
    }

    .app-layout {
        flex-direction: column;
    }

    .sidebar-toc {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(320px, 85vw);
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
        border-right: 1px solid var(--border-color);
    }

    .sidebar-toc.open {
        transform: translateX(0);
    }

    .toc-close-btn {
        display: block;
    }

    .main-content {
        padding: 2rem 2rem;
        max-width: 100%;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .brand {
        gap: 0.6rem;
    }

    .seal-icon {
        width: 36px;
        height: 36px;
    }

    .agency-title {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .report-subtitle {
        display: none; /* Hide subtitle on mobile for cleaner header */
    }

    /* Mobile Search Toggle Logic */
    .search-toggle-btn {
        display: flex;
    }

    .search-box {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(5, 11, 18, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.25s var(--ease-out-expo);
        z-index: 890;
    }

    .search-box.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .search-box input {
        width: 100% !important;
        font-size: 0.9rem;
        padding: 0.6rem 1rem 0.6rem 2.25rem;
    }

    .search-icon {
        left: 1.6rem;
    }

    .search-count {
        right: 1.6rem;
    }

    .toc-btn-text {
        display: none; /* Icon-only or compact button on mobile */
    }

    .toc-toggle-btn {
        padding: 0.5rem 0.75rem;
        min-height: 38px;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .cover-section {
        margin-bottom: 2.5rem;
        border-radius: 6px;
    }

    .report-section {
        margin-bottom: 3rem;
    }

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

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    .agency-title {
        font-size: 0.68rem;
        letter-spacing: 0.2px;
    }

    .seal-icon {
        width: 32px;
        height: 32px;
    }

    .main-content {
        padding: 1.25rem 0.75rem;
    }

    .chapter-banner, .section-banner {
        padding: 1.15rem 0.85rem;
        margin-bottom: 1.75rem;
    }

    .prose p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    blockquote.featured-quote, blockquote.highlight-box {
        padding: 1rem 0.85rem;
        margin: 1.5rem 0;
    }

    .data-table th, .data-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }

    .back-to-top-btn {
        bottom: 1.25rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}
