/**
 * BLADE BOSS - SINGLE GUIDE (FLIGHT MANUAL)
 * modules/guides/assets/css/single-guide.css
 *
 * One stylesheet, three modes:
 *   - Web   : paper document floating over the site, full chrome around it
 *   - Print : body.fm-mode-print - letter-sized Flight Manual pages
 *   - Embed : body.fm-mode-embed - tight chrome-less render for tool modals
 *
 * Aesthetic: technical flight manual. Barlow Condensed display over Barlow
 * body, ink-green on paper white, hairline rules, stamped chips. Deliberately
 * distinct from the blog - this is a DOCUMENT, not an article.
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FLIGHT MANUAL TOKENS
   (fm- scope only; --bb-* tokens come from design-tokens.css on web)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
    --fm-ink:        #14281d;   /* deep ink green - primary text */
    --fm-green:      #2e7d32;   /* manual green - accents, rules */
    --fm-green-soft: #4caf50;   /* light green - fills, stars */
    --fm-green-pale: #eef5ef;   /* tint backgrounds */
    --fm-amber:      #f59e0b;   /* Pro Tip */
    --fm-red:        #c62828;   /* Hold Short / mistakes */
    --fm-blue:       #1565c0;   /* Mission Briefing */
    --fm-gray:       #5b6660;   /* secondary text */
    --fm-hairline:   #d8e0d9;   /* rules + borders */
    --fm-paper:      #ffffff;
    --fm-paper-warm: #fbfcfa;

    --fm-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --fm-body:    'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Brand aliases with hard fallbacks: print + embed are standalone docs
       and must never depend on design-tokens.css to render buttons */
    --fm-orange:       var(--bb-orange, #F57842);
    --fm-orange-hover: var(--bb-orange-hover, #E86A2E);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WEB MODE: PAGE FRAME
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-page {
    max-width: 880px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-5)) var(--page-gutter) var(--space-10);
}

/* Topbar: breadcrumbs + toolbar */
.fm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.fm-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--bb-mid-gray);
    min-width: 0;
}

.fm-breadcrumbs a {
    color: var(--bb-green);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-fast) var(--ease-out);
}

.fm-breadcrumbs a:hover { color: var(--bb-orange); }

.fm-crumb-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.fm-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-cat-chip {
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-green);
    background: var(--bb-green-mint);
    border: 1px solid rgba(30, 94, 52, 0.18);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    white-space: nowrap;
}

.fm-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-white);
    background: var(--bb-green);
    border-radius: var(--radius-full);
    padding: 7px 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.fm-print-btn:hover {
    background: var(--bb-green-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   THE DOCUMENT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-doc {
    background: var(--fm-paper);
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 5vw, 56px);
    font-family: var(--fm-body);
    color: var(--fm-ink);
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.fm-doc ::selection { background: rgba(76, 175, 80, 0.25); }


/* ━━━ Manual band ━━━ */

.fm-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background: var(--fm-ink);
    color: #e9f2eb;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 28px;
}

.fm-band-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fm-band-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
}

.fm-band-brand {
    font-family: var(--fm-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.fm-band-brand span { color: var(--fm-green-soft); }

.fm-band-id {
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.5;
    color: #b9ccbd;
}


/* ━━━ Title block ━━━ */

.fm-title-block { margin-bottom: 24px; }

.fm-kicker {
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 8px;
}

.fm-h1 {
    font-family: var(--fm-display);
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--fm-ink);
    margin: 0 0 12px;
}

.fm-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--fm-gray);
    max-width: 640px;
    margin: 0;
}

.fm-updated {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fm-gray);
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-full);
    padding: 4px 11px;
}


/* ━━━ Spec strip ━━━ */

.fm-spec-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 36px;
}

.fm-spec {
    padding: 12px 14px;
    border-left: 1px solid var(--fm-hairline);
    background: var(--fm-paper-warm);
}

.fm-spec:first-child { border-left: 0; }

.fm-spec-label {
    font-family: var(--fm-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fm-gray);
    margin-bottom: 3px;
}

.fm-spec-value {
    font-family: var(--fm-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--fm-ink);
    line-height: 1.2;
}

.fm-stars { color: var(--fm-green-soft); letter-spacing: 2px; }
.fm-stars .off, .fm-related-stars .off, .gl-card-stars .off { color: var(--fm-hairline); }


/* ━━━ Section heads ━━━ */

.fm-section { margin: 40px 0 0; }

.fm-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0 20px;
}

.fm-section-head h2 {
    font-family: var(--fm-display);
    font-size: clamp(22px, 3.4vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--fm-ink);
    margin: 0;
    white-space: nowrap;
}

.fm-section .fm-section-head { margin-top: 0; }

.fm-rule {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--fm-green) 0 36px, var(--fm-hairline) 36px);
    border-radius: 2px;
}


/* ━━━ Body text ━━━ */

.fm-p { margin: 0 0 14px; }
.fm-p:last-child { margin-bottom: 0; }

.fm-doc a { color: var(--fm-green); font-weight: 600; }
.fm-doc a:hover { color: var(--bb-orange); }

.fm-list { margin: 0 0 14px; padding-left: 22px; }
.fm-list li { margin-bottom: 7px; }
.fm-list li::marker { color: var(--fm-green); font-weight: 700; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRODUCTS (PRE-FLIGHT CHECKLIST)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.fm-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    padding: 34px 16px 16px;
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.fm-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--fm-green-soft);
}

.fm-product-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--fm-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
    color: #fff;
    background: var(--fm-green);
    border-radius: var(--radius-full);
    padding: 3px 11px;
}

.fm-product-badge.optional { background: var(--fm-gray); }

.fm-product-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.fm-product-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 10px;
    border: 1.5px dashed var(--fm-hairline);
    border-radius: var(--radius-sm);
    color: var(--fm-gray);
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px;
}

.fm-product-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.fm-product-price {
    font-family: var(--fm-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--fm-green);
    margin-bottom: 12px;
}

.fm-product-btn {
    margin-top: auto;
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff !important;
    background: var(--bb-orange);
    border-radius: var(--radius-full);
    padding: 9px 14px;
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.fm-product-btn:hover {
    background: var(--bb-orange-hover);
    box-shadow: var(--shadow-orange-glow);
    color: #fff !important;
}

.fm-product-note {
    margin-top: auto;
    font-size: 12.5px;
    color: var(--fm-gray);
    line-height: 1.45;
}

.fm-affiliate-note {
    margin: 14px 0 0;
    font-size: 11.5px;
    color: var(--fm-gray);
    opacity: 0.85;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STEPS (FLIGHT PLAN)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-step {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 26px 0;
    border-top: 1px solid var(--fm-hairline);
}

.fm-step:first-of-type { border-top: 0; }

.fm-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fm-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: var(--fm-ink);
    border-radius: var(--radius-md);
    box-shadow: 3px 3px 0 var(--fm-green-soft);
}

.fm-step-body { flex: 1; min-width: 0; }

.fm-step-title {
    font-family: var(--fm-display);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: var(--fm-ink);
    margin: 8px 0 12px;
    line-height: 1.15;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALLOUTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-callout {
    position: relative;
    border-radius: var(--radius-sm);
    padding: 14px 16px 14px 18px;
    margin: 16px 0;
    font-size: 14.5px;
    line-height: 1.6;
    border-left: 4px solid;
}

.fm-callout-label {
    display: block;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fm-callout-tip     { background: #fff8ec; border-color: var(--fm-amber); }
.fm-callout-tip .fm-callout-label { color: #a16207; }

.fm-callout-warn    { background: #fdf1f0; border-color: var(--fm-red); }
.fm-callout-warn .fm-callout-label { color: var(--fm-red); }

.fm-callout-info    { background: #eff5fc; border-color: var(--fm-blue); }
.fm-callout-info .fm-callout-label { color: var(--fm-blue); }

.fm-callout-success { background: var(--fm-green-pale); border-color: var(--fm-green); }
.fm-callout-success .fm-callout-label { color: var(--fm-green); }

.fm-callout-note    { background: #f5f6f5; border-color: var(--fm-gray); }
.fm-callout-note .fm-callout-label { color: var(--fm-gray); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHOTOS + DIAGRAMS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-photo { margin: 16px 0; }

.fm-photo img {
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--fm-hairline);
}

.fm-photo-tall img { max-height: 520px; object-fit: cover; }

.fm-photo-screenshot img {
    border: 1.5px solid var(--fm-ink);
    box-shadow: 5px 5px 0 var(--fm-green-pale);
}

.fm-photo-framed img {
    border: 8px solid #fff;
    outline: 1px solid var(--fm-hairline);
    box-shadow: var(--shadow-md);
}

.fm-photo-inset { max-width: 60%; margin-left: auto; margin-right: auto; }

.fm-photo-polaroid {
    max-width: 340px;
    background: #fff;
    border: 1px solid var(--fm-hairline);
    border-radius: 4px;
    padding: 10px 10px 16px;
    box-shadow: var(--shadow-md);
    transform: rotate(-1.2deg);
}

.fm-photo-polaroid img { border-radius: 2px; border: 0; }

.fm-photo-caption {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--fm-gray);
    line-height: 1.5;
}

.fm-photo-polaroid .fm-photo-caption { text-align: center; font-family: var(--fm-display); font-weight: 600; }

.fm-photo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 22px 18px;
    border: 2px dashed var(--fm-hairline);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    color: var(--fm-gray);
    font-size: 13.5px;
    font-style: italic;
}

.fm-photo-placeholder-cam { font-size: 20px; font-style: normal; }

.fm-photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}

.fm-photo-pair .fm-photo { margin: 0; }

.fm-photo-pair-label {
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 6px;
}

.fm-photo-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.fm-photo-grid .fm-photo { margin: 0; }
.fm-photo-grid-2 { grid-template-columns: 1fr 1fr; }
.fm-photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fm-photo-grid-4 { grid-template-columns: repeat(2, 1fr); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DO / DON'T
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-dodont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}

.fm-dodont-cell {
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid;
}

.fm-dodont-do   { background: var(--fm-green-pale); border-color: rgba(46, 125, 50, 0.3); }
.fm-dodont-dont { background: #fdf1f0; border-color: rgba(198, 40, 40, 0.3); }

.fm-dodont-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fm-dodont-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.fm-dodont-do .fm-dodont-icon   { background: var(--fm-green); }
.fm-dodont-dont .fm-dodont-icon { background: var(--fm-red); }

.fm-dodont-tag {
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.fm-dodont-do .fm-dodont-tag   { color: var(--fm-green); }
.fm-dodont-dont .fm-dodont-tag { color: var(--fm-red); }

.fm-dodont-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.fm-dodont-text  { font-size: 13.5px; line-height: 1.55; color: var(--fm-gray); margin: 0; }
.fm-dodont-cell .fm-photo { margin: 0 0 10px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DECISION (IF / THEN)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-decision {
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 18px 0;
}

.fm-decision-q {
    font-family: var(--fm-display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--fm-ink);
    padding: 11px 16px;
}

.fm-decision-branch {
    padding: 14px 16px;
    border-top: 1px solid var(--fm-hairline);
}

.fm-decision-branch:first-of-type { border-top: 0; }
.fm-decision-branch:nth-child(even) { background: var(--fm-paper-warm); }

.fm-decision-if {
    font-weight: 600;
    font-size: 14.5px;
    margin-bottom: 6px;
}

.fm-decision-if-tag {
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--fm-blue);
    background: #eff5fc;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 6px;
    vertical-align: 1px;
}

.fm-decision-then {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--fm-gray);
    line-height: 1.55;
}

.fm-decision-arrow {
    color: var(--fm-green);
    font-weight: 800;
    flex-shrink: 0;
}

.fm-decision-link { white-space: nowrap; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-table-wrap {
    margin: 18px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fm-table-caption {
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fm-green);
    margin-bottom: 8px;
}

.fm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-sm);
}

.fm-table th {
    font-family: var(--fm-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: #fff;
    background: var(--fm-ink);
    padding: 10px 12px;
}

.fm-table td {
    padding: 9px 12px;
    border-top: 1px solid var(--fm-hairline);
    vertical-align: top;
}

.fm-table tbody tr:nth-child(even) { background: var(--fm-paper-warm); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHECKLIST (interactive on web, boxes in print)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-checklist {
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    padding: 18px;
    margin: 18px 0;
}

.fm-checklist-title {
    font-family: var(--fm-display);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fm-ink);
    margin-bottom: 12px;
}

.fm-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 14.5px;
    line-height: 1.5;
}

.fm-checklist-box {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fm-checklist-mark,
.fm-checklist-print-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid var(--fm-green);
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: background var(--duration-fast) var(--ease-out);
}

.fm-checklist-box:checked + .fm-checklist-mark { background: var(--fm-green); }

.fm-checklist-box:checked + .fm-checklist-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.fm-checklist-box:checked ~ .fm-checklist-text {
    color: var(--fm-gray);
    text-decoration: line-through;
    text-decoration-color: var(--fm-green-soft);
}

.fm-checklist-box:focus-visible + .fm-checklist-mark {
    outline: 2px solid var(--fm-green-soft);
    outline-offset: 2px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TIMELINE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-timeline { margin: 18px 0; }

.fm-timeline-item {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 0 0 20px 0;
}

.fm-timeline-item::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: var(--fm-hairline);
}

.fm-timeline-item:last-child::before { display: none; }

.fm-timeline-marker {
    flex-shrink: 0;
    width: 90px;
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fm-green);
    text-align: center;
    background: var(--fm-green-pale);
    border: 1px solid rgba(46, 125, 50, 0.25);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    height: fit-content;
    position: relative;
    z-index: 1;
}

.fm-timeline-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.fm-timeline-text  { font-size: 14px; color: var(--fm-gray); margin: 0; line-height: 1.55; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MISTAKES (ABORT CRITERIA)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-mistakes {
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fm-mistake-row {
    display: flex;
    gap: 13px;
    padding: 14px 16px;
    border-top: 1px solid rgba(198, 40, 40, 0.15);
    font-size: 14.5px;
    line-height: 1.55;
}

.fm-mistake-row:first-child { border-top: 0; }
.fm-mistake-row:nth-child(odd) { background: #fdf6f5; }

.fm-mistake-x {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--fm-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.fm-mistake-bad { font-weight: 700; color: var(--fm-ink); }
.fm-mistake-fix { color: var(--fm-gray); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTAs
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-cta-tool {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: center;
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    padding: 22px;
    margin: 26px 0;
}

.fm-cta-tool > .fm-photo { margin: 0; }
.fm-cta-tool:not(:has(.fm-photo)) { grid-template-columns: 1fr; }

.fm-cta-tool-heading {
    font-family: var(--fm-display);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fm-ink);
    margin: 0 0 8px;
    line-height: 1.15;
}

.fm-cta-tool-body p { font-size: 14.5px; color: var(--fm-gray); margin: 0 0 14px; }

.fm-cta-tool-btn,
.fm-lock-btn-primary {
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--bb-orange);
    border-radius: var(--radius-full);
    padding: 11px 22px;
    text-decoration: none;
    box-shadow: var(--shadow-orange-glow);
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.fm-cta-tool-btn:hover,
.fm-lock-btn-primary:hover {
    background: var(--bb-orange-hover);
    transform: translateY(-1px);
    color: #fff !important;
}

.fm-cta-final {
    text-align: center;
    background: var(--fm-ink);
    color: #e9f2eb;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    margin: 40px 0 0;
}

.fm-cta-final-heading {
    font-family: var(--fm-display);
    font-size: clamp(26px, 4.5vw, 34px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #fff;
}

.fm-cta-final-heading span { color: var(--fm-green-soft); }

.fm-cta-final p {
    max-width: 560px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #c4d4c8;
}

.fm-cta-final p strong { color: #fff; }

.fm-cta-final-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fm-cta-final-btn {
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--bb-orange);
    border-radius: var(--radius-full);
    padding: 14px 32px;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(245, 120, 66, 0.35);
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.fm-cta-final-btn:hover {
    background: var(--bb-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(245, 120, 66, 0.5);
    color: #fff !important;
}

.fm-cta-video-btn,
.fm-cta-video-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    padding: 8px 18px;
}

.fm-cta-video-btn {
    color: #fff !important;
    border: 1.5px solid var(--fm-green-soft);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
}

.fm-cta-video-btn:hover { background: rgba(76, 175, 80, 0.18); }

.fm-cta-video-soon {
    color: #93a89a;
    border: 1.5px dashed rgba(185, 204, 189, 0.4);
    cursor: default;
}

.fm-print-url {
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--fm-green);
}

.fm-cta-final .fm-print-url { color: var(--fm-green-soft); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMAIL CAPTURE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-email-capture {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: center;
    border: 1.5px dashed var(--fm-green);
    border-radius: var(--radius-md);
    background: var(--fm-green-pale);
    padding: 22px;
    margin: 32px 0 0;
}

.fm-email-capture-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--fm-green);
    color: #fff;
    grid-row: span 2;
}

.fm-email-capture-copy h3 {
    font-family: var(--fm-display);
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fm-ink);
    margin: 0 0 4px;
    line-height: 1.15;
}

.fm-email-capture-copy p {
    font-size: 13.5px;
    color: var(--fm-gray);
    margin: 0;
    line-height: 1.5;
}

.fm-email-capture-form {
    grid-column: 2;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fm-email-input {
    flex: 1;
    min-width: 200px;
    font-family: var(--fm-body);
    font-size: 14.5px;
    color: var(--fm-ink);
    background: #fff;
    border: 1.5px solid var(--fm-hairline);
    border-radius: var(--radius-full);
    padding: 11px 18px;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.fm-email-input:focus {
    border-color: var(--fm-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.fm-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fm-email-btn {
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bb-orange);
    border: 0;
    border-radius: var(--radius-full);
    padding: 11px 24px;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.fm-email-btn:hover:not(:disabled) { background: var(--bb-orange-hover); transform: translateY(-1px); }
.fm-email-btn:disabled { opacity: 0.6; cursor: wait; }

.fm-email-msg { grid-column: 2; font-size: 13.5px; font-weight: 600; min-height: 0; }
.fm-email-msg.is-success { color: var(--fm-green); }
.fm-email-msg.is-error   { color: var(--fm-red); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUOTE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-quote {
    border-left: 4px solid var(--fm-green-soft);
    padding: 6px 0 6px 20px;
    margin: 20px 0;
}

.fm-quote p {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.55;
    color: var(--fm-ink);
    margin: 0 0 6px;
}

.fm-quote cite {
    font-family: var(--fm-display);
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-gray);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VIDEO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--fm-ink);
    margin: 18px 0;
}

.fm-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fm-video-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px dashed var(--fm-hairline);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    color: var(--fm-gray);
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 26px;
    margin: 18px 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GATED SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-gated { position: relative; margin: 26px 0; }

.fm-gated-open {
    border: 1.5px solid var(--fm-green);
    border-radius: var(--radius-md);
    padding: 38px 20px 20px;
}

.fm-gated-tag {
    position: absolute;
    top: -1px;
    left: 18px;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--fm-green);
    border-radius: 0 0 6px 6px;
    padding: 4px 12px;
}

.fm-gated-locked {
    border: 1.5px solid var(--fm-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 320px;
}

.fm-gated-blur {
    filter: blur(7px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    padding: 20px;
    max-height: 380px;
    overflow: hidden;
}

.fm-gated-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.92) 62%);
    color: var(--fm-ink);
}

.fm-gated-overlay svg { color: var(--fm-green); }

.fm-gated-title {
    font-family: var(--fm-display);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 4px 0 0;
    line-height: 1.1;
}

.fm-gated-text {
    font-size: 14px;
    color: var(--fm-gray);
    max-width: 420px;
    margin: 0 0 10px;
}

.fm-gated-btn {
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--bb-orange);
    border-radius: var(--radius-full);
    padding: 12px 26px;
    text-decoration: none;
    box-shadow: var(--shadow-orange-glow);
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.fm-gated-btn:hover { background: var(--bb-orange-hover); transform: translateY(-1px); color: #fff !important; }

/* ── Gated skeleton: content-free stand-in under the blur ── */
.fm-gated-skel { padding: 6px 2px; }

.fm-skel-line {
    display: block;
    height: 13px;
    border-radius: 6px;
    background: #cfdacf;
    margin: 10px 0;
}

.fm-skel-table {
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 14px 0;
}

.fm-skel-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 14px;
    padding: 12px 14px;
    border-top: 1px solid var(--fm-hairline);
}

.fm-skel-row:first-child { border-top: 0; }
.fm-skel-row span { height: 12px; border-radius: 6px; background: #cfdacf; }
.fm-skel-row-head { background: var(--fm-ink); }
.fm-skel-row-head span { background: #46594c; }

.fm-skel-list { margin: 14px 0; }

.fm-skel-check {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 0;
}

.fm-skel-box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #9fb5a3;
    border-radius: 5px;
}

.fm-skel-check .fm-skel-line { margin: 0; }

/* ── Print mode: members-only box (no skeleton theater on paper) ── */
body.fm-mode-print .fm-gated-print-locked {
    text-align: center;
    border: 1.5px dashed var(--fm-green);
    border-radius: var(--radius-md);
    background: var(--fm-green-pale);
    padding: 26px 22px;
    margin: 22px 0;
}

body.fm-mode-print .fm-gated-tag-locked {
    display: inline-block;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--fm-ink);
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

body.fm-mode-print .fm-gated-print-locked .fm-gated-title { margin: 4px 0 6px; }
body.fm-mode-print .fm-gated-print-locked .fm-gated-text { margin: 0 auto 14px; max-width: 440px; }
body.fm-mode-print .fm-gated-print-locked .fm-print-url { margin-top: 10px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOOL EMBED + INLINE SPECS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-tool-embed { margin: 22px 0; }
.fm-tool-embed iframe { border-radius: var(--radius-md); }

.fm-tool-embed-print {
    border: 1.5px solid var(--fm-ink);
    border-radius: var(--radius-md);
    background: var(--fm-paper-warm);
    padding: 18px;
    margin: 18px 0;
    text-align: center;
    font-family: var(--fm-display);
    font-size: 16px;
}

.fm-specs-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.fm-spec-chip {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-sm);
    background: var(--fm-paper-warm);
    padding: 8px 14px;
}

.fm-spec-chip-label {
    font-family: var(--fm-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fm-gray);
}

.fm-spec-chip-value {
    font-family: var(--fm-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--fm-ink);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FAQ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-faq-item {
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: var(--fm-paper-warm);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.fm-faq-item[open] { border-color: var(--fm-green-soft); background: #fff; }

.fm-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.fm-faq-q::-webkit-details-marker { display: none; }

.fm-faq-chevron {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--fm-green);
    border-bottom: 2.5px solid var(--fm-green);
    transform: rotate(45deg);
    transition: transform var(--duration-normal) var(--ease-out);
    margin-top: -4px;
}

.fm-faq-item[open] .fm-faq-chevron { transform: rotate(225deg); margin-top: 4px; }

.fm-faq-a { padding: 0 18px 16px; }
.fm-faq-a p { margin: 0; font-size: 14.5px; color: var(--fm-gray); line-height: 1.65; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MEMBERS LOCK WALL (web teaser)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-lock-wall {
    text-align: center;
    padding: 44px 20px 28px;
}

.fm-lock-wall svg { color: var(--fm-green); margin-bottom: 14px; }

.fm-lock-title {
    font-family: var(--fm-display);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.08;
    color: var(--fm-ink);
    margin: 0 0 10px;
}

.fm-lock-sub {
    font-size: 16px;
    color: var(--fm-gray);
    max-width: 540px;
    margin: 0 auto 16px;
}

.fm-lock-note {
    font-size: 14px;
    color: var(--fm-gray);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.fm-lock-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.fm-lock-btn-secondary {
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fm-green);
    border: 1.5px solid var(--fm-green);
    border-radius: var(--radius-full);
    padding: 10px 22px;
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
}

.fm-lock-btn-secondary:hover { background: var(--fm-green-pale); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RELATED GUIDES (NEXT MISSIONS)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-related { margin-top: var(--space-8); }

.fm-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.fm-related-head h2 {
    font-family: var(--fm-display);
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bb-green-dark);
    margin: 0;
}

.fm-related-all {
    font-family: var(--fm-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bb-green);
    text-decoration: none;
    white-space: nowrap;
}

.fm-related-all:hover { color: var(--bb-orange); }

.fm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.fm-related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--fm-paper);
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-md);
    padding: 18px;
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.fm-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--fm-green-soft);
}

.fm-related-num {
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--fm-green);
}

.fm-related-title {
    font-family: var(--fm-display);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--fm-ink);
}

.fm-related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--fm-gray);
}

.fm-related-stars { color: var(--fm-green-soft); letter-spacing: 1px; font-size: 12px; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BACK TO LIBRARY FLOAT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.fm-back-to-guides {
    position: fixed;
    bottom: 26px;
    left: 26px;
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fm-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bb-green);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--fm-hairline);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.fm-back-to-guides:hover { transform: translateY(-2px); color: var(--bb-orange); }

@media (max-width: 1100px) {
    .fm-back-to-guides { display: none; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 640px) {
    .fm-page { padding-top: calc(var(--nav-height-mobile) + var(--space-4)); }

    .fm-band { flex-direction: column; align-items: flex-start; gap: 8px; }
    .fm-band-id { text-align: left; }

    .fm-spec-strip { grid-template-columns: 1fr 1fr; }
    .fm-spec { border-left: 0; border-top: 1px solid var(--fm-hairline); }
    .fm-spec:nth-child(-n+2) { border-top: 0; }
    .fm-spec:nth-child(even) { border-left: 1px solid var(--fm-hairline); }

    .fm-step { flex-direction: column; gap: 10px; }
    .fm-step-num { width: 38px; height: 38px; font-size: 19px; }
    .fm-step-title { margin-top: 0; }

    .fm-dodont { grid-template-columns: 1fr; }
    .fm-photo-pair { grid-template-columns: 1fr; }
    .fm-photo-grid-3, .fm-photo-grid-4 { grid-template-columns: 1fr 1fr; }
    .fm-photo-inset { max-width: 100%; }

    .fm-cta-tool { grid-template-columns: 1fr; }

    .fm-email-capture { grid-template-columns: 1fr; }
    .fm-email-capture-icon { grid-row: auto; }
    .fm-email-capture-form, .fm-email-msg { grid-column: 1; }

    .fm-timeline-item { flex-direction: column; gap: 8px; }
    .fm-timeline-item::before { display: none; }
    .fm-timeline-marker { width: fit-content; padding: 5px 12px; }

    .fm-crumb-current { max-width: 150px; }
    .fm-topbar { flex-direction: column; align-items: flex-start; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMBED MODE (dashboard tool modal)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body.fm-mode-embed {
    margin: 0;
    background: #fff;
    font-family: var(--fm-body);
}

body.fm-mode-embed .fm-doc {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.fm-embed-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60vh;
    text-align: center;
    font-family: var(--fm-body);
    color: var(--fm-ink);
    padding: 24px;
}

.fm-embed-login a {
    font-family: var(--fm-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--bb-orange, #F57842);
    border-radius: 9999px;
    padding: 11px 24px;
    text-decoration: none;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRINT MODE (?print=1) - THE FLIGHT MANUAL PDF
   @page margin 0 kills Chrome's URL/date header-footer.
   single-guide.js paginates #fmSource into fixed 8.5x11 .fm-sheet
   divs with real PAGE X OF Y footers. Layout-affecting rules live
   OUTSIDE @media print so screen measurement == printed output.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body.fm-mode-print {
    margin: 0;
    padding: 0;
    background: #e8ebe8;
    font-family: var(--fm-body);
}

/* Shared doc typography for source + sheets (identical metrics, no surprises) */
body.fm-mode-print .fm-doc {
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* Pre-pagination fallback view (visible only if JS fails) */
/* body.fm-mode-print prefix required: must outrank the shared
   body.fm-mode-print .fm-doc rule that zeroes padding */
body.fm-mode-print .fm-print-source {
    width: 8.5in;
    margin: 24px auto;
    background: #fff;
    padding: 0.45in 0.5in;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ── The sheets ── */
.fm-sheets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
}

.fm-sheets:empty { display: none; }

/* Pagination loader (visible only while sheets assemble) */
body.fm-mode-print .fm-print-loading {
    text-align: center;
    padding: 80px 20px;
    font-family: var(--fm-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--fm-green);
    animation: fm-load-pulse 1.1s ease-in-out infinite;
}

@keyframes fm-load-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ── Compact spacing mode: chosen by the paginator only when it saves
   a page or rescues an orphan. Slightly tighter, never cramped. ── */
body.fm-mode-print .fm-compact .fm-step { padding: 18px 0; }
body.fm-mode-print .fm-compact .fm-p { margin-bottom: 11px; }
body.fm-mode-print .fm-compact .fm-list li { margin-bottom: 5px; }
body.fm-mode-print .fm-compact .fm-callout { margin: 12px 0; padding: 11px 14px 11px 16px; }
body.fm-mode-print .fm-compact .fm-section-head { margin: 28px 0 14px; }
body.fm-mode-print .fm-compact .fm-faq-q { padding: 11px 16px; }
body.fm-mode-print .fm-compact .fm-faq-a { padding: 0 16px 11px; }
body.fm-mode-print .fm-compact .fm-checklist-item { padding: 5px 0; }
body.fm-mode-print .fm-compact .fm-mistake-row { padding: 11px 14px; }
body.fm-mode-print .fm-compact .fm-band { margin-bottom: 20px; padding: 11px 18px; }
body.fm-mode-print .fm-compact .fm-title-block { margin-bottom: 16px; }
body.fm-mode-print .fm-compact .fm-spec-strip { margin-bottom: 26px; }
body.fm-mode-print .fm-compact .fm-product-card { padding: 28px 12px 12px; }
body.fm-mode-print .fm-compact .fm-product-img,
body.fm-mode-print .fm-compact .fm-product-img-placeholder { height: 96px; margin-bottom: 6px; }

/* ── Viewport-independent print typography: clamp() computes from vw,
   which differs between the pre-warm iframe, the print tab, and paper.
   Pinned sizes make cached layout == live layout == printed output. ── */
body.fm-mode-print .fm-h1 { font-size: 46px; }
body.fm-mode-print .fm-section-head h2 { font-size: 26px; }
body.fm-mode-print .fm-step-title { font-size: 22px; }
body.fm-mode-print .fm-cta-final-heading { font-size: 30px; }
body.fm-mode-print .fm-gated-title { font-size: 22px; }

body.fm-mode-print .fm-sheet {
    position: relative;
    width: 8.5in;
    height: 11in;
    padding: 0.45in 0.5in 0.75in;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.fm-sheet-inner {
    height: 100%;
    overflow: hidden;
}

.fm-sheet-footer {
    position: absolute;
    left: 0.5in;
    right: 0.5in;
    bottom: 0.28in;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid var(--fm-ink);
    padding-top: 6px;
    font-family: var(--fm-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fm-green);
}

/* ── Compact media so steps stay tight ── */
body.fm-mode-print .fm-photo { text-align: center; }

body.fm-mode-print .fm-photo img {
    max-height: 3.4in;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

body.fm-mode-print .fm-photo-pair img,
body.fm-mode-print .fm-photo-grid img { max-height: 2.6in; }

/* Gated section in print: corner tag becomes a static label */
body.fm-mode-print .fm-gated-open { border: 0; padding: 0; }

body.fm-mode-print .fm-gated-tag {
    position: static;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 12px;
}

body.fm-mode-print .fm-faq-item {
    border: 0;
    border-top: 1px solid var(--fm-hairline);
    border-radius: 0;
    background: #fff;
}

body.fm-mode-print .fm-faq-chevron { display: none; }

body.fm-mode-print a { color: var(--fm-ink); text-decoration: none; }

body.fm-mode-print .fm-email-capture,
body.fm-mode-print .fm-back-to-guides,
body.fm-mode-print .fm-print-btn { display: none !important; }

@media print {
    /* Margin 0 = no zone for Chrome's URL/date garbage */
    @page { size: letter; margin: 0; }

    body.fm-mode-print { background: #fff; }

    body.fm-mode-print * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fm-sheets { display: block; padding: 0; gap: 0; }

    .fm-sheet {
        box-shadow: none;
        margin: 0;
        break-after: page;
        page-break-after: always;
    }

    .fm-sheet:last-child { break-after: auto; page-break-after: auto; }
}


/* ━━━ Button color safety net: resolves to design tokens on web, hard hex
   fallback in standalone print/embed docs. Last in cascade at equal
   specificity, so it wins regardless of stylesheet load order. ━━━ */

.fm-product-btn,
.fm-cta-tool-btn,
.fm-lock-btn-primary,
.fm-cta-final-btn,
.fm-gated-btn,
.fm-email-btn {
    background: var(--fm-orange);
}

.fm-product-btn:hover,
.fm-cta-tool-btn:hover,
.fm-lock-btn-primary:hover,
.fm-cta-final-btn:hover,
.fm-gated-btn:hover,
.fm-email-btn:hover:not(:disabled) {
    background: var(--fm-orange-hover);
}