/* ==========================================================================
   HeliCalc Official User Manual — Aviation Technical Documentation System
   Two-column sticky TOC, 1080p video theater, 26-shot lightbox, print-ready
   ========================================================================== */

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --navy: #081b33;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-soft: #eff6ff;
    --accent-border: #bfdbfe;

    --emerald: #047857;
    --emerald-soft: #ecfdf5;
    --emerald-border: #a7f3d0;

    --amber: #b45309;
    --amber-soft: #fffbeb;
    --amber-border: #fde68a;

    --crimson: #b91c1c;
    --crimson-soft: #fef2f2;
    --crimson-border: #fecaca;

    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px rgba(8, 27, 51, 0.05);
    --shadow-md: 0 8px 24px rgba(8, 27, 51, 0.07);
    --shadow-lg: 0 22px 48px rgba(8, 27, 51, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
    --bg: #070e18;
    --surface: #0e1a2b;
    --surface-subtle: #132238;
    --border: #1e3250;
    --border-strong: #2d476e;

    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --navy: #f8fafc;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-border: rgba(96, 165, 250, 0.34);

    --emerald: #34d399;
    --emerald-soft: rgba(16, 185, 129, 0.14);
    --emerald-border: rgba(52, 211, 153, 0.35);

    --amber: #fbbf24;
    --amber-soft: rgba(245, 158, 11, 0.12);
    --amber-border: rgba(251, 191, 36, 0.32);

    --crimson: #f87171;
    --crimson-soft: rgba(239, 68, 68, 0.12);
    --crimson-border: rgba(248, 113, 113, 0.32);

    --nav-bg: rgba(7, 14, 24, 0.88);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 52px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    text-decoration: underline;
}

code, .mono {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

code {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    padding: 0.1rem 0.38rem;
    border-radius: 5px;
    color: var(--text);
}

.ui-ctl {
    display: inline-block;
    font-size: 0.86em;
    font-weight: 600;
    font-style: normal;
    padding: 0.08rem 0.45rem;
    border-radius: 5px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    white-space: nowrap;
}

/* ==========================================================================
   Sticky Top Bar
   ========================================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

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

.brand-parent {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background: #081b33;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-decoration: none;
}

[data-theme="dark"] .brand-parent {
    background: #1e3a5f;
}

.brand-parent:hover {
    opacity: 0.88;
    text-decoration: none;
}

.brand-sep {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.brand-title {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--navy);
    white-space: nowrap;
}

.brand-title:hover {
    text-decoration: none;
}

.brand-doc-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.top-btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.top-btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.top-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   Manual Hero Banner
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #061529 0%, #0d2546 58%, #153661 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.24) 0%, transparent 48%),
        radial-gradient(circle at 12% 88%, rgba(16, 185, 129, 0.16) 0%, transparent 45%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.75rem 1.25rem 2.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.hero-badge.verified {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.42);
    color: #a7f3d0;
}

.hero h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #ffffff;
}

.hero-lead {
    margin: 0 0 1.25rem;
    max-width: 740px;
    font-size: 1.06rem;
    color: rgba(241, 245, 249, 0.9);
}

.aircraft-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.aircraft-chip {
    padding: 0.24rem 0.65rem;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: #f1f5f9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.66rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ==========================================================================
   Two-Column Documentation Shell
   ========================================================================== */
.docs-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

/* Sticky Sidebar TOC */
.toc-sidebar {
    position: sticky;
    top: 76px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

.toc-heading {
    margin: 0 0 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 0.55rem;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toc-list a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.42rem 0.6rem;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.toc-list a:hover {
    background: var(--surface-subtle);
    color: var(--text);
    text-decoration: none;
}

.toc-list a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 650;
}

.toc-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.toc-list a.active .toc-num {
    color: var(--accent);
}

.toc-divider {
    height: 1px;
    background: var(--border);
    margin: 0.55rem 0;
}

/* Mobile TOC Drawer */
.mobile-toc {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.mobile-toc summary {
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-toc summary::-webkit-details-marker {
    display: none;
}

.mobile-toc-body {
    padding: 0 0.85rem 0.85rem;
    border-top: 1px solid var(--border);
}

/* Main Manual Column */
.manual-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.doc-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.doc-card h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.3vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.doc-card p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.doc-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Video Walkthrough Theater
   ========================================================================== */
.video-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.video-theater {
    position: relative;
    background: #040912;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
}

.video-theater video {
    width: 100%;
    height: 100%;
    display: block;
    background: #040912;
}

.video-footer {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Overview Feature Grid & Data Sources
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0 1.4rem;
}

.feature-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

.feature-item h3 {
    margin: 0 0 0.3rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
}

.feature-item p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    margin: 1.15rem 0;
    font-size: 0.93rem;
    color: var(--text);
}

.callout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.callout-emerald {
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
}

.callout-emerald svg {
    color: var(--emerald);
}

.callout-amber {
    background: var(--amber-soft);
    border: 1px solid var(--amber-border);
}

.callout-amber svg {
    color: var(--amber);
}

.callout-sky {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
}

.callout-sky svg {
    color: var(--accent);
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.source-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.source-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    text-decoration: none;
}

.source-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
}

.source-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.source-card svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   Step-by-Step Manual Chapters & Screenshot Galleries
   ========================================================================== */
.step-list {
    margin: 0.85rem 0 1.35rem;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: var(--text-secondary);
}

.step-list li {
    line-height: 1.6;
}

.step-list strong {
    color: var(--text);
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.shot-grid.wide {
    grid-template-columns: repeat(2, 1fr);
}

.shot-grid.tri {
    grid-template-columns: repeat(3, 1fr);
}

.shot-card {
    margin: 0;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}

.shot-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.shot-link {
    position: relative;
    display: block;
    background: #0b1628;
    overflow: hidden;
    cursor: zoom-in;
}

.shot-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.25s ease;
}

.shot-card:hover .shot-link img {
    transform: scale(1.02);
}

.shot-zoom-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(8, 27, 51, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.shot-card:hover .shot-zoom-badge,
.shot-link:focus-visible .shot-zoom-badge {
    opacity: 1;
}

.shot-zoom-badge svg {
    width: 14px;
    height: 14px;
}

.shot-card figcaption {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.35;
    border-top: 1px solid var(--border);
}

/* Authorship Meta Table */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.meta-cell {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

.meta-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.meta-val {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
}

/* ==========================================================================
   Interactive Full-Screen Screenshot Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 10, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #e2e8f0;
    padding-bottom: 0.75rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
}

.lightbox-caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.78rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.lightbox-stage {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.lightbox-stage img {
    max-height: calc(100vh - 125px);
    max-width: calc(100% - 104px);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lb-nav:hover {
    background: rgba(37, 99, 235, 0.85);
}

.lb-prev {
    left: 0;
}

.lb-next {
    right: 0;
}

.lb-nav svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #061529;
    color: #cbd5e1;
    padding: 2.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.site-footer a {
    color: #93c5fd;
    font-weight: 500;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .docs-shell {
        grid-template-columns: 1fr;
        padding-top: 1.25rem;
    }

    .toc-sidebar {
        display: none;
    }

    .mobile-toc {
        display: block;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shot-grid.tri {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .doc-card {
        padding: 1.35rem;
        border-radius: var(--radius-md);
    }

    .feature-grid,
    .source-grid,
    .shot-grid.wide,
    .shot-grid.tri,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .brand-doc-pill,
    .top-btn-label {
        display: none;
    }

    .lightbox-stage img {
        max-width: 100%;
    }

    .lb-nav {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
    .topbar,
    .toc-sidebar,
    .mobile-toc,
    .hero-actions,
    .lightbox,
    #intro-video {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #0f172a;
        font-size: 10.5pt;
    }

    .hero {
        background: #ffffff;
        color: #0f172a;
        border-bottom: 2px solid #0f172a;
    }

    .hero h1,
    .hero-lead,
    .hero-badge,
    .aircraft-chip {
        color: #0f172a;
        background: none;
        border-color: #94a3b8;
    }

    .docs-shell {
        display: block;
        padding: 1rem 0;
    }

    .doc-card {
        box-shadow: none;
        border-color: #cbd5e1;
        margin-bottom: 1.25rem;
        break-inside: avoid-page;
    }

    .shot-card {
        break-inside: avoid;
    }
}
