/* Royal Capital Solutions, v2: service, rescue, comparison and tool pages
   Loads after home.css and local.css and reuses their hero, direct answer,
   know-how list, deep instrument tile (.lc-condo + .lc-sheet), ruled cost
   rows, cases, steps, FAQ, close and footer. Only the sections those pages
   don't have live here. Built by design/v2/build/build.py.

   ┌ action break ─────────────────────────────────────────────┐
   │ statement, large                    [primary] [Call Robert] │
   └────────────────────────────────────────────────────────────┘
   ┌ document tray (white) ─────────┐ ┌ fit ──────┐ ┌ not a fit ┐
   │ ▢ name          why it's asked │ │ ✓ ...     │ │ – ...     │
   └────────────────────────────────┘ └───────────┘ └───────────┘

   CONTENTS: 1 deep tile art · 2 action break · 3 document tray ·
   4 options · 5 fit · 6 data table · 7 related index · 8 A/B proof line ·
   9 the inline-form variant (AB1) · 10 two-step form (AB4) · 11 tools ·
   12 fixes · 13 paths (hub goal grid) · 14 loan library · 15 jump index ·
   16 questionnaire · 17 five-item know list · 18 D15 header and footer
   ============================================================ */

/* 1. DEEP TILE ART: lumen line drawings beside the instrument sheet === */
.sv-art { display: none; width: 100%; height: auto; color: var(--text-lumen); }
/* The tall instrument drawings (shield, gauge, bars and so on) are retired (2026-11-06): they floated between the text and the panel and read as stretched. The tile is the text and the panel. */
.sv-art { display: none !important; }
.lc-condo .lc-sheet li strong + span { max-width: 52ch; }
.sv-deep-solo .lc-building { grid-template-columns: minmax(0, 1fr); }

/* 2. ACTION BREAK: the statement and both actions on one ruled band === */
.sv-break { display: grid; gap: var(--s-6); align-items: end; padding-block: var(--s-10); border-block: 1px solid var(--line-strong); }
.sv-break-text { max-width: 30ch; font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.sv-break-text span { color: var(--text-3); }
.sv-break .hx-actions { margin-top: 0; }
.sv-break .btn-ghost { border: 1px solid var(--line-control); color: var(--text); }
@media (min-width: 64rem) { .sv-break { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-12); } }

/* 3. DOCUMENT TRAY: what to send, each with why it's asked ========== */
.sv-docs { display: grid; gap: var(--bento-gap); }
.sv-tray { display: grid; align-content: start; padding: var(--s-2) var(--card-pad); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sv-tray-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding-block: var(--s-4) var(--s-3); border-bottom: 1px solid var(--line-strong); font-size: var(--fs-xs); color: var(--text-3); }
.sv-tray-head strong { font-weight: 500; color: var(--text); }
.sv-tray ul { margin: 0; padding: 0; list-style: none; }
.sv-tray li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 2px var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.sv-tray li:last-child { border-bottom: 0; }
.sv-tray li > svg { grid-row: span 2; width: 2rem; height: 2rem; padding: 0.3rem; border-radius: var(--r-control); background: var(--surface-mint); fill: none; stroke: var(--text-brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sv-tray li strong { font-size: var(--fs-sm); font-weight: 500; line-height: 1.4; }
.sv-tray li span { font-size: var(--fs-xs); line-height: 1.5; color: var(--text-2); }
@media (min-width: 64rem) {
    .sv-docs { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
    .sv-tray li { grid-template-columns: 2rem minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
    .sv-tray li > svg { grid-row: auto; }
    .sv-tray li span { padding-top: 0.15em; }
}

/* 4. OPTIONS: ruled rows (.lc-costs) whose last column says who it fits */
.sv-options .lc-fig { display: grid; grid-template-columns: 1fr; gap: 2px; font-weight: 400; }
.sv-options .lc-fig b { font-size: var(--fs-xs); font-weight: 600; color: var(--text-brand-strong); }
.sv-options .lc-fig span { font-size: var(--fs-sm); color: var(--text); }
.sv-options .lc-links { margin-top: var(--s-1); padding-top: 0; }
.sv-num { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--r-control); background: var(--surface-mint); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-brand-strong); }

/* 5. FIT: for you / not a fit, side by side ========================== */
.sv-fit { display: grid; gap: var(--bento-gap); }
.sv-fit > div { display: grid; align-content: start; gap: var(--s-4); padding: var(--card-pad); border-radius: var(--r-card); }
.sv-fit-yes { background: var(--surface-mint); }
.sv-fit-no { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sv-fit h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; }
.sv-fit ul { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.sv-fit li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.5; }
.sv-fit li .ic { margin-top: 0.15em; }
.sv-fit-yes .ic { color: var(--text-brand); }
.sv-fit-no .ic { color: var(--text-3); }
.sv-fit-no li { color: var(--text-2); }
@media (min-width: 48rem) { .sv-fit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* 6. DATA TABLE: ruled, figures in mono, a dated source line under it  */
.sv-table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sv-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.45; }
.sv-table th, .sv-table td { padding: var(--s-4) var(--s-5); text-align: start; vertical-align: top; }
.sv-table thead th { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line-strong); }
.sv-table tbody tr + tr { border-top: 1px solid var(--line); }
.sv-table tbody th { font-weight: 500; color: var(--text); }
.sv-table td { color: var(--text-2); }
.sv-table td.t-mono { color: var(--text); }
.sv-table a { color: var(--text-brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.sv-table-note { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 47.99rem) {
    /* Phones: each row becomes a card, the column name beside the value */
    .sv-table-wrap { overflow: visible; background: none; box-shadow: none; }
    .sv-table { min-width: 0; }
    .sv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sv-table, .sv-table tbody, .sv-table tr, .sv-table th, .sv-table td { display: block; }
    .sv-table tbody tr { margin-bottom: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
    .sv-table tbody tr + tr { border-top: 0; }
    .sv-table tbody th { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
    .sv-table td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-3); padding: var(--s-2) 0; }
    .sv-table td::before { content: attr(data-label); font-family: var(--font); font-size: var(--fs-xs); color: var(--text-3); }
    .sv-table.is-kv td { display: block; overflow-wrap: anywhere; }
    .sv-table.is-kv td::before { content: none; }
}

/* 7. RELATED: an index of next pages, each row one link ============= */
.sv-related { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.sv-related li { border-bottom: 1px solid var(--line-strong); }
.sv-related a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-6); align-items: center; padding-block: var(--s-5); color: var(--text); text-decoration: none; }
.sv-related strong { font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.sv-related span { grid-column: 1; font-size: var(--fs-sm); color: var(--text-2); }
.sv-related .ic { grid-column: 2; grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; color: var(--text-brand); transition: transform var(--t-ui) var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .sv-related a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
    .sv-related a:hover .ic { transform: translate(2px, -2px); }
}
@media (min-width: 64rem) {
    .sv-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-12); }
    .sv-related li:nth-child(1), .sv-related li:nth-child(2) { border-top: 0; }
}

/* 8. A/B PROOF LINE (AB2): one story's headline above the form ======== */
.sv-proofline { display: grid; gap: 2px; max-width: 48ch; padding-inline-start: var(--s-4); border-inline-start: 2px solid var(--text-lumen); font-size: var(--fs-sm); line-height: 1.45; color: var(--text-on-deep-2); }
.sv-proofline strong { font-weight: 500; color: var(--text-on-deep); }

/* 9. INLINE FORM VARIANT (AB1): the form right after the answer ======= */
.sv-early .hm-cta { margin-bottom: 0; }

/* 10. TWO-STEP FORM (AB4) ============================================ */
.enq.is-steps [data-step="2"] { display: none; }
.enq.is-steps.is-step-2 [data-step="1"] { display: none; }
.enq.is-steps.is-step-2 [data-step="2"] { display: grid; }
.enq.is-steps .enq-send[data-step="2"] { display: none; }
.enq.is-steps.is-step-2 .enq-send[data-step="2"] { display: flex; }
.enq-stepbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); grid-column: 1 / -1; }
.enq-steplabel { font-family: var(--font-mono); font-size: var(--fs-xs); opacity: 0.8; }
.enq-back { min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }

/* 11. TOOLS: calculator sections on tool pages (fields from calc.css) == */
.sv-tool { display: grid; gap: var(--s-4); }
.sv-tool .calc-out { position: sticky; top: calc(var(--hdr-h, 4.5rem) + var(--s-4)); align-self: start; }
.sv-result-big { font-family: var(--font-mono); font-size: var(--fs-figure); font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sv-verdict { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3); border-radius: var(--r-chip); background: var(--surface-mint); font-size: var(--fs-xs); font-weight: 600; color: var(--text-brand-strong); }
.sv-verdict[data-tone="low"] { background: var(--surface-grey); color: var(--text-2); }
.sv-scale { position: relative; height: 0.5rem; margin-block: var(--s-4) var(--s-2); border-radius: var(--r-chip); background: linear-gradient(90deg, var(--n-300) 0 40%, var(--g-400) 40% 60%, var(--g-600) 60%); }
.sv-scale i { position: absolute; top: 50%; width: 1rem; height: 1rem; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--text); transform: translate(-50%, -50%); transition: left 240ms var(--ease-out, cubic-bezier(.23,1,.32,1)); }
.sv-scale-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .sv-scale i { transition: none; } }

/* 12. FIXES TO SHARED PIECES, SERVICE PAGES ONLY ======================
   Four steps beside the Robert card: two by two, never one left over.
   The lead tile in the know-how list holds an sv-art drawing smaller
   than its flood house.                                              */
.lc-flood .sv-art { width: min(100%, 12rem); margin-inline: auto; }
@media (min-width: 72rem) { .lc-know-7 .lc-flood .sv-art { width: 11rem; margin: 0 auto var(--s-4); } }
/* Four items in the know-how list: two by two, then four across */
@media (min-width: 48rem) { .lc-know:not(.lc-know-7):has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .lc-know:not(.lc-know-7):has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Four document trays: two by two */
@media (min-width: 64rem) { .sv-docs:has(> .sv-tray:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Equity bar (S8-P1): owed · could borrow · stays untouched */
.calc .k-keep { background: var(--n-300); }
.calc-out:not(.is-ready) .sv-scalebox { display: none; }
/* The DSCR scale: below 0.75 grey, 0.75 to 1.00 jade, 1.00 and up forest */
.sv-scale { background: linear-gradient(90deg, var(--n-300) 0 25%, var(--g-400) 25% 50%, var(--g-600) 50%); }
/* MAP for Palm Beach: the same dots, Palm Beach lit */
.lc-where.is-palm .hm-map .c-miami { stroke-opacity: 0.16; }
.lc-where.is-palm .hm-map .c-palm { stroke-opacity: 0.85; }

/* 13. PATHS: goal routing on the hub pages (S0-P6, S5-P4); the page's bold moment.
   A deep tile ruled into cells, each cell one link in the visitor's words. */
.sv-paths-tile { padding: clamp(1.5rem, 0.9rem + 2.4vw, 3.5rem); }
.sv-paths-tile .hm-head { margin-bottom: var(--s-6); }
.sv-paths { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-on-deep); }
.sv-paths li { border-bottom: 1px solid var(--line-on-deep); }
.sv-paths a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-content: start; height: 100%; padding-block: var(--s-5); color: inherit; text-decoration: none; }
.sv-paths .lc-cost-art { grid-row: 1 / span 3; flex: none; width: 1.75rem; height: 1.75rem; fill: currentColor; stroke: none; color: var(--text-lumen); }
.sv-paths .lc-cost-art .lc-cost-hi { stroke: var(--text-lumen); }
.sv-paths strong { grid-column: 2; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.sv-paths-p { grid-column: 2; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-on-deep-2); text-wrap: pretty; }
.sv-paths-to { grid-column: 2; margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-lumen); }
.sv-paths .ic { grid-column: 3; grid-row: 1; width: 1.25rem; height: 1.25rem; color: var(--text-lumen); transition: transform var(--t-ui) var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .sv-paths a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
    .sv-paths a:hover .ic { transform: translate(2px, -2px); }
}
@media (min-width: 48rem) {
    .sv-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-10); }
    .sv-paths a { padding-block: var(--s-6); }
}
@media (min-width: 72rem) {
    .sv-paths.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-paths.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-8); }
    .sv-paths.is-4 a { grid-template-columns: minmax(0, 1fr) auto; }
    .sv-paths.is-4 .lc-cost-art { grid-row: auto; grid-column: 1; margin-bottom: var(--s-3); }
    .sv-paths.is-4 strong, .sv-paths.is-4 .sv-paths-p, .sv-paths.is-4 .sv-paths-to { grid-column: 1; }
    .sv-paths.is-4 .ic { grid-column: 2; }
}

/* 14. LIBRARY (S0-P7): every loan in a group, one ruled row each.
   Phones: name, then labelled lines. Wide: three columns under one header row. */
.sv-lib { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.sv-lib li { border-bottom: 1px solid var(--line-strong); }
.sv-lib-head { display: none; }
.sv-lib a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-6); padding-block: var(--s-5); color: var(--text); text-decoration: none; }
.sv-lib strong { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.sv-lib-cell { grid-column: 1; display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.sv-lib-cell b { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 400; color: var(--text-2); }
.sv-lib .ic { grid-column: 2; grid-row: 1; width: 1.25rem; height: 1.25rem; color: var(--text-brand); transition: transform var(--t-ui) var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .sv-lib a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
    .sv-lib a:hover .ic { transform: translate(2px, -2px); }
}
@media (min-width: 64rem) {
    .sv-lib a, .sv-lib-head { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr) 1.25rem; align-items: baseline; column-gap: var(--s-8); }
    .sv-lib-head { display: grid; padding-block: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-2); }
    .sv-lib-cell { grid-column: auto; }
    .sv-lib-cell b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .sv-lib .ic { grid-column: 4; grid-row: 1; align-self: center; }
}

/* 15. JUMP INDEX: a short row of in-page links above a long library */
.sv-jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.sv-jump-l { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); }
.sv-jump ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.sv-jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--s-4); border: 1px solid var(--line-control); border-radius: var(--r-chip); font-size: var(--fs-sm); color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sv-jump a:hover { border-color: var(--text); } }

/* 16. QUESTIONNAIRE (S0-P8): one question at a time, a result before any form */
.qz { display: grid; gap: var(--s-6); padding: clamp(1.25rem, 0.8rem + 2vw, 3rem); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.qz-top { display: grid; gap: var(--s-3); }
.qz-count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); }
.qz-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.qz-bar i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color var(--t-ui) var(--ease); }
.qz-bar i.is-on { background: var(--action); }
.qz-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.qz-q legend { max-width: 24ch; margin-bottom: var(--s-5); padding: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.qz-q + .qz-q { margin-top: var(--s-8); }
.qz.is-live .qz-q + .qz-q { margin-top: 0; }
.qz-opts { display: grid; gap: var(--s-2); }
@media (min-width: 40rem) { .qz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qz-opt { position: relative; display: block; }
.qz-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.qz-opt span { display: flex; align-items: center; min-height: 3.5rem; padding: var(--s-3) var(--s-5); border: 1px solid var(--line-control); border-radius: var(--r-control); background: var(--surface); font-size: var(--fs-base); line-height: 1.3; transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), transform 120ms var(--ease); }
.qz-opt input:checked + span { border-color: var(--action); background: var(--surface-mint); box-shadow: inset 0 0 0 1px var(--action); }
.qz-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.qz-opt input:active + span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .qz-opt input:not(:checked):hover + span { border-color: var(--text); } }
.qz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.qz-back { min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.qz-time { font-size: var(--fs-sm); color: var(--text-2); }
/* Script on: taps move on, so the submit button is only the no-script path */
.qz.is-live .qz-go { display: none; }
.qz-result[hidden], .qz[hidden], .qz [hidden] { display: none; }
p .qz-back { min-height: 1.5rem; }
/* Result */
.qz-result { display: grid; gap: var(--s-8); }
.qz-result:focus { outline: none; }
.qz-result-h { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.qz-said { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.qz-picks { display: grid; gap: var(--s-2); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.qz-pick { display: grid; gap: var(--s-3); justify-items: start; padding: clamp(1.25rem, 0.8rem + 1.6vw, 2rem); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.qz-tag { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--text-3); }
.qz-pick h4 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); font-weight: 500; line-height: 1.15; letter-spacing: var(--tr-head); }
.qz-pick .qz-why { max-width: 52ch; font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.qz-pick .qz-check { justify-self: stretch; display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border-radius: var(--r-control); background: var(--surface-mint); font-size: var(--fs-sm); line-height: 1.45; color: var(--text); }
.qz-pick .qz-check b { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 400; letter-spacing: var(--tr-mono); text-transform: uppercase; color: var(--text-brand-strong); }
.qz-pick a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 2.75rem; color: var(--text); font-weight: 500; text-decoration: none; }
.qz-pick a .ic { color: var(--text-brand); transition: transform var(--t-ui) var(--ease); }
.qz-pick a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-control); }
/* Best match: the one dark card */
.qz-pick.is-top { background: var(--surface-deep); box-shadow: none; color: var(--text-on-deep); }
.qz-pick.is-top .qz-tag { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-lumen); }
.qz-pick.is-top .qz-tag::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--g-500); }
.qz-pick.is-top h4 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); color: var(--text-on-deep); }
.qz-pick.is-top .qz-why { color: var(--text-on-deep-2); }
.qz-pick.is-top .qz-check { background: var(--glass-frost); color: var(--text-on-deep); }
.qz-pick.is-top .qz-check b { color: var(--text-lumen); }
.qz-pick.is-top a { color: var(--text-on-deep); }
.qz-pick.is-top a .ic { color: var(--text-lumen); }
@media (hover: hover) and (pointer: fine) { .qz-pick a:hover .ic { transform: translate(2px, -2px); } .qz-pick a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
@keyframes qz-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .qz-pick { animation: qz-in 520ms var(--ease) calc(var(--i) * 120ms) both; } }
.qz-note { max-width: 60ch; padding-inline-start: var(--s-4); border-inline-start: 2px solid var(--action); font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.qz-next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.qz-next .btn-ghost { border: 1px solid var(--line-control); }
@media (min-width: 64rem) {
    .qz-result { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-12); align-items: start; }
    .qz-result-side { position: sticky; top: calc(var(--hdr-h, 4.5rem) + var(--s-4)); display: grid; gap: var(--s-6); padding-top: var(--s-2); }
}
.qz-result-side { display: grid; gap: var(--s-6); }
@media (prefers-reduced-motion: reduce) { .qz-opt span, .qz-bar i { transition: none; } .qz-opt input:active + span { transform: none; } }

/* 17. FIVE ITEMS in the know-how list: three over two on tablets, five across wide */
@media (min-width: 48rem) {
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 80rem) {
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) > li,
    .lc-know:not(.lc-know-7):has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: auto; }
}

/* 18. HEADER AND FOOTER, D15 MENU (SITE_NAV.md, 2026-11-04) ===========
   Find my loan sits beside the header buttons once there's room; below
   that it's in the open menu. The footer lists every page by group. */
.hdr-find { display: none; }
@media (min-width: 72rem) { .hdr-find { display: inline-flex; } }

/* 16. FORM PLACEMENT TEST (AB1, variant B) ==========================
   The form moves up beside the answer. The close that is left behind is
   one slim line with the two ways in, never a second form-sized tile. */
.sv-late .hm-cta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-8); padding: var(--s-6); }
.sv-late .hm-cta::before { display: none; }
.sv-late .hm-cta-main { display: contents; }
.sv-late .hm-cta .hm-title { max-width: none; font-size: var(--fs-xl); }
.sv-late .hm-cta .hm-title { margin: 0; text-align: left; }
.sv-late .hm-cta .hx-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-left: auto; }
@media (max-width: 47.99rem) { .sv-late .hm-cta .hx-actions { margin-left: 0; } }
