/* ============================================================
   Adla client portal — additions on top of the ported B2a
   system (css/main.css). Same tokens, same component language:
   ink-outlined surfaces, mango accents, Capriola headings.
   Layout = the "book": index page left, worksheet right
   (Jacob's Mock N, 2026-07-13). No tabs, no rail.
   ============================================================ */

body { background: var(--cream); background-image: none; }

button:focus-visible, summary:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }

.pagehead { max-width: 1300px; margin: 0 auto; box-sizing: border-box;
  padding: 22px clamp(16px, 4vw, 48px) 0; }
.pagehead .rail-logo { height: 30px; display: block; }

/* ── The folio head: greeting + fact slots + quiet actions.
   Mobile: stacked under the logo (the taller, breathing version).
   Desktop (≥1060): one compact row — logo · greeting · fact · sign out —
   above the thin-framed card. ── */
.folio-head { max-width: 1300px; margin: 0 auto; box-sizing: border-box;
  padding: 18px clamp(16px, 4vw, 48px) 16px; }
.folio-head h1 { margin: 0 0 12px; font-size: clamp(20px, 2.4vw, 25px); }
.fh-logo { display: none; }
@media (min-width: 1060px) {
  .pagehead { display: none; }
  .fh-logo { display: block; height: 26px; }
  .folio-head { max-width: none; display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px 18px; padding: 13px clamp(16px, 2vw, 28px) 11px; }
  .folio-head h1 { margin: 0; font-size: 19px; }
  .folio-head .head-row { flex: 1 1 auto; }
  .folio-head .fact { padding: 7px 12px; }
}
.head-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.factrow { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: stretch; flex: 0 1 auto; min-width: 0; }
.fact { background: #fff; border: 1.5px solid var(--line-ink); border-radius: 12px;
  padding: 9px 14px; display: flex; align-items: center; gap: 9px; box-shadow: 0 2px 0 rgba(25,25,25,.08); }
.fact .k { font: 400 11px 'Capriola', sans-serif; color: var(--soft); text-transform: uppercase; letter-spacing: .7px; }
.fact .v { font: 400 13.5px 'Capriola', sans-serif; color: var(--ink); }
.fact a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; font: 500 13px 'Roboto', sans-serif; }
.fact-progress { flex: 0 0 auto; }
.fact-progress .rail-progress-track { flex: none; width: 128px; margin: 0; }
.fact-btn { cursor: pointer; font: 400 13.5px 'Capriola', sans-serif; color: var(--ink);
  transition: border-color .14s, transform .12s; }
.fact-btn:hover { border-color: var(--mango); transform: translateY(-1px); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; flex: 0 0 auto; }
.head-actions .link-btn { padding: 6px 0; font-size: 13px; text-decoration: none; white-space: nowrap; }
.head-actions .link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── The book ── */
.book-wrap { max-width: 1300px; margin: 0 auto; box-sizing: border-box;
  padding: 0 clamp(16px, 4vw, 48px) 64px; }
.book { background: #fff; border: 1.5px solid var(--line-ink); border-radius: 20px;
  box-shadow: var(--lift); overflow: hidden; }

/* Stacked (phone) seam — the desktop left/right seam shadow rotated 90°, so
   the menu reads as its own layer above the worksheet (Jacob 2026-07-18).
   The 1060px block below overrides both for the side-by-side layout. */
.page-left { position: relative; padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 34px) 26px; box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(43,36,26,0) calc(100% - 34px), rgba(43,36,26,.05)); }
.page-right { padding: clamp(24px, 3vw, 36px) clamp(20px, 3.5vw, 44px) 36px; box-sizing: border-box;
  border-top: 1.5px solid var(--tan2);
  box-shadow: 0 -18px 30px -24px rgba(43,36,26,.30);
  background: linear-gradient(to bottom, rgba(43,36,26,.028), rgba(43,36,26,0) 30px); }

.fold-toggle { position: absolute; top: 16px; right: 14px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); cursor: pointer;
  display: grid; place-items: center; font: 400 15px 'Capriola', sans-serif; color: var(--ink);
  padding: 0 0 2px; line-height: 1; }
.fold-toggle:hover { background: var(--cream2); }
.fold-toggle[hidden] { display: none; }

.page-left h2 { margin: 0 0 5px; font-size: 18px; padding-right: 40px; }
.page-left .intro { margin: 0 0 16px; font-size: 13.5px; color: var(--soft); line-height: 1.6; }
.tile-line { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--text); }
.tile-line.soft { color: var(--soft); font-size: 13px; }

/* The index — numbered rows */
.toc-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; border-left: 3px solid transparent; cursor: pointer;
  padding: 8px 8px 8px 9px; border-radius: 0 10px 10px 0; box-sizing: border-box;
  font: 400 13.5px 'Capriola', sans-serif; color: var(--ink); line-height: 1.35; }
.toc-row:hover { background: var(--cream2); }
.toc-row.active { border-left-color: var(--mango); background: var(--cream2); }
.toc-num { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center;
  font: 400 11.5px 'Capriola', sans-serif; color: var(--soft); box-sizing: border-box; }
.toc-row.active .toc-num { border: 2px solid var(--ink); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.toc-row.done .toc-num { background: var(--green-l); border-color: var(--green-l); color: var(--green-d); font-size: 13.5px; }
.toc-row.na .toc-num { background: var(--cream2); }
.toc-row.done { color: var(--soft); }
.toc-row.na { color: var(--soft); opacity: .55; }
.toc-state { margin-left: auto; flex: none; font: 500 11px 'Roboto', sans-serif; color: var(--soft); }

/* Section zero — the Overview. Label-only when the list is open (not a
   numbered task); the ≡ square comes back in the collapsed spine. */
.toc-row.ov-row { font-size: 14.5px; padding-top: 9px; padding-bottom: 13px; margin-bottom: 8px;
  border-bottom: 1.5px solid var(--tan2); border-radius: 0 10px 0 0; }
.toc-row.ov-row .toc-num { display: none; }
.book.collapsed .toc-row.ov-row { border-bottom: none; margin-bottom: 0; padding: 3px; font-size: 13.5px; }
.book.collapsed .toc-row.ov-row .toc-num { display: grid; }

/* Overview: single column — steps run left-to-right on desktop, the About
   sections follow full-width, and the disclosure + details close the page
   just above the art. */
.ov-steps-wrap { margin-bottom: 4px; }
@media (min-width: 1060px) {
  /* Jacob's S2: connected stepper — the mobile dotted thread rotated
     horizontal. The section mirrors a wrow: title in the label column,
     steps starting where the body text starts. */
  .ov-steps-wrap { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 13px; }
  .ov-steps-wrap .steps-title { margin: 0; padding-top: 8px; }
  .ov-steps-wrap .step-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px; max-width: 760px; position: relative; }
  .ov-steps-wrap .step-list::before { display: block; content: ''; position: absolute;
    left: 15px; right: calc(16.67% - 15px); top: 19px; bottom: auto; height: 0; width: auto;
    border-left: none; border-top: 2px dotted var(--tan2); }
  .ov-steps-wrap .step { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 0; position: relative; }
  .ov-steps-wrap .step .toc-num { position: relative; z-index: 1; }
  .ov-steps-wrap .step p { margin: 0; font-size: 12.5px; line-height: 1.5; }
}
.ov-disclosure.ov-side { margin-top: 0; border-top: none; padding-top: 0; }
.ov-about-full { border-top: 1.5px solid var(--tan2); margin-top: 26px; padding-top: 8px; }
.ov-bottom { border-top: 1.5px solid var(--tan2); margin-top: 24px; padding-top: 14px; }
.ov-bottom .ov-details { margin-top: 12px; border-top: none; padding-top: 0; }

/* "Your situation" form controls */
.sit-intro { margin: 14px 0 6px; font-size: 13px; line-height: 1.6; }
.sit-group { border-top: 1.5px solid var(--tan2); padding-top: 16px; margin-top: 16px; }
.sit-field { margin: 0 0 16px; }
.sit-q { display: block; font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.sit-choice { display: inline-flex; align-items: center; gap: 7px; margin: 0 14px 8px 0;
  font: 400 13.5px 'Roboto', sans-serif; color: var(--ink); cursor: pointer; }
.sit-choice input { accent-color: var(--mango); width: 17px; height: 17px; }
.sit-mini { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px;
  font: 400 12.5px 'Roboto', sans-serif; color: var(--soft); cursor: pointer; }
.sit-mini input { accent-color: var(--mango); }
.sit-yn { display: inline-flex; }
.sit-input { box-sizing: border-box; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--line-ink); background: #fff; border-radius: 11px;
  font: 400 14px 'Roboto', sans-serif; color: var(--ink); outline: none; }
.sit-input:focus { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(251,196,92,.30); }
.sit-note { min-height: 64px; margin-top: 8px; }
.sit-note-lg { min-height: 112px; }
.sit-amount { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.sit-amount .dollar { color: var(--soft); }
.dep-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; align-items: center; }
.dep-row .dep-name { width: 180px; }
.dep-row .dep-age { width: 70px; }
.dep-row .dep-rel { width: 180px; }
@media (max-width: 560px) { .dep-row .dep-name, .dep-row .dep-rel { width: 100%; } }

/* The finish line — Final check, sectioned off below Expenses. */
.toc-row.check-row { font-size: 14.5px; padding-top: 13px; padding-bottom: 9px; margin-top: 8px;
  border-top: 1.5px solid var(--tan2); border-radius: 0 0 10px 0; }
.toc-row.check-row .toc-num { display: none; }
.book.collapsed .toc-row.check-row { border-top: none; margin-top: 0; padding: 3px; font-size: 13.5px; }
.book.collapsed .toc-row.check-row .toc-num { display: grid; }

/* Final check — intro line + lists */
.check-intro { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--soft); max-width: 640px; }
.check-list, .about-ul { margin: 0 0 10px; padding-left: 20px; }
.check-list li, .about-ul li { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 6px; max-width: 620px; }
.check-list li:last-child, .about-ul li:last-child { margin-bottom: 0; }
.check-gaps { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 10px; }
.check-gap { padding: 0; font-size: 14px; }

/* ── Ask a question — docked bottom right; kiwi on top ── */
.ask-dd { position: fixed; right: 16px; bottom: 14px; z-index: 15; }
.ask-dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px;
  background: var(--mango); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 19px;
  font: 400 14.5px 'Capriola', sans-serif; color: var(--ink); box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s; }
.ask-dd summary:hover { transform: translateY(-2px); }
.ask-dd summary::-webkit-details-marker { display: none; }
.ask-dd summary .dd-caret { flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(225deg); transition: transform .16s; margin-top: 4px; }
.ask-dd[open] summary .dd-caret { transform: rotate(45deg); margin-top: -4px; }
.dock-panel { position: absolute; bottom: calc(100% + 12px); right: 0;
  width: min(380px, calc(100vw - 32px)); box-sizing: border-box;
  background: #fff; border: 1.5px solid var(--line-ink); border-radius: 16px;
  box-shadow: var(--lift); padding: 16px 18px 16px;
  max-height: min(560px, calc(100vh - 120px)); overflow-y: auto; }
.dock-panel .soft { margin: 0 0 12px; font-size: 12.5px; color: var(--soft); line-height: 1.6; }
.dock-panel .call-note { min-height: 76px; margin-bottom: 12px; font-size: 14px; }
.ask-send { min-height: 40px; padding: 8px 22px; font-size: 14px; }
.call-toggle { display: block; margin-top: 14px; padding: 4px 0; font-size: 12.5px; }
.dock-kiwi { position: fixed; bottom: 46px; right: 30px; width: 56px; z-index: 14;
  pointer-events: none; filter: drop-shadow(0 5px 8px rgba(43,36,26,.12)); }
.ask-dd[open] + .dock-kiwi { display: none; }
/* On a phone the open panel sat white-on-white behind a faint edge — give it
   the ink outline the floating controls use so it stands off the page
   (Jacob 2026-07-18). Desktop keeps the quiet edge above. */
@media (max-width: 1059px) {
  .dock-panel { border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink), var(--lift); }
}

/* The chat thread inside the dock */
.msg-thread { display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 12px; max-height: 260px; overflow-y: auto; padding-right: 2px; }
.msg { max-width: 88%; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.msg.client { align-self: flex-end; background: var(--cream2); border-color: var(--line-ink); border-bottom-right-radius: 5px; }
.msg.adla { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.msg .msg-who { display: block; font: 400 11px 'Capriola', sans-serif; color: var(--rust); margin-bottom: 3px; }
.msg .msg-when { display: block; font-size: 11px; color: var(--soft); margin-top: 4px; }

/* ── Documents — a dropdown on the index page ── */
.docs-inline { border-top: 1.5px solid var(--tan2); margin-top: 22px; }
.docs-inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px;
  padding: 16px 2px 14px; font: 400 16px 'Capriola', sans-serif; color: var(--ink); }
.docs-inline summary::-webkit-details-marker { display: none; }
.docs-inline summary .dd-count { color: var(--soft); font-size: 14px; }
.docs-inline summary .dd-caret { margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
  transform: rotate(45deg); transition: transform .16s; margin-top: -4px; }
.docs-inline[open] summary .dd-caret { transform: rotate(225deg); margin-top: 4px; }
.docs-inline summary:hover .dd-caret { border-color: var(--ink); }
.docs-inline .soft { margin: 0 0 6px; font-size: 12.5px; color: var(--soft); line-height: 1.6; }

.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1.5px solid var(--tan2); font-size: 13.5px; }
.doc-row:last-child { border-bottom: none; }
.doc-row .doc-name { overflow-wrap: anywhere; }
.doc-row .doc-for { display: block; font-size: 11.5px; color: var(--soft); }
.doc-row .doc-date { color: var(--soft); font-size: 12px; flex: none; }
.doc-row a, .doc-row .link-btn { color: var(--rust); font-weight: 500; text-decoration: underline;
  text-underline-offset: 3px; flex: none; font-size: 13px; }
.doc-row a:hover, .doc-row .link-btn:hover { color: var(--ink); }

/* ── The current-step bar — phone-only; tap to pick a different item ── */
.current-bar { display: none; width: 100%; box-sizing: border-box; text-align: left;
  align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink);
  border-radius: 13px; box-shadow: 0 3px 0 var(--ink); padding: 9px 14px;
  font: 400 14.5px 'Capriola', sans-serif; color: var(--ink); cursor: pointer; }
.current-bar:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.current-bar .cb-label { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.current-bar .dd-caret { flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); margin-top: -4px; margin-right: 3px; }
.current-bar .toc-num.cbn-done { background: var(--green-l); border-color: var(--green-l);
  color: var(--green-d); font-size: 13.5px; }
.current-bar .toc-num.cbn-na { background: var(--cream2); }

/* ── Phone next/back — the bottom of every worksheet page (Jacob 2026-07-18).
   Back mirrors .adv-later's quiet white pill; Next is the standard CTA. ── */
.mob-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--tan2); }
.mob-nav-back { flex: none; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; font: 400 13.5px 'Capriola', sans-serif; color: var(--ink); cursor: pointer; }
.mob-nav-back:hover { background: var(--cream2); }
.mob-nav .mob-nav-next { min-width: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 18px; font-size: 13.5px; }
.mob-nav .mnn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44vw; }
@media (min-width: 1060px) { .mob-nav { display: none; } }

/* ── The worksheet page ── */
.page-right .eyebrow-row { margin-bottom: 4px; }
.page-right .status-chip { margin: 0; }
.page-right h3 { margin: 10px 0 0; font: 400 clamp(20px, 2.2vw, 24px) 'Capriola', sans-serif; color: var(--ink); line-height: 1.25; }
.page-right h3 .cl-opt { font: 500 13px 'Roboto', sans-serif; color: var(--soft); margin-left: 8px; }
.squig { display: block; width: 168px; height: 12px; margin: 8px 0 0; overflow: visible; }
.squig path { fill: none; stroke: var(--mango); stroke-width: 6; stroke-linecap: round; }
/* Long titles get the stretched squiggle — "Your fund and provider" at the
   default width stopped mid-word (Jacob 2026-07-17). */
.squig-lg { width: 335px; max-width: 92%; }
.letter-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 16px; max-width: 960px; }
.letter-main { min-width: 0; }
.wrow { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-top: 1.5px solid var(--tan2); }
.wrow:first-child { border-top: none; padding-top: 4px; }
.wrow .wl { font: 400 11px 'Capriola', sans-serif; color: var(--rust);
  text-transform: uppercase; letter-spacing: .8px; padding-top: 4px; }
.wrow p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text); max-width: 640px; }
/* Multi-paragraph rows: wrap the right cell in .wtext so extra paragraphs
   stay in the text column instead of falling into the label column. */
.wrow .wtext { min-width: 0; }
.wrow .wtext p { margin: 0 0 10px; }
.wrow .wtext p:last-child { margin-bottom: 0; }

/* ── Overview — Mock O: centred head, steps left, note right ── */
.ov-head { text-align: center; margin-bottom: 26px; }
.ov-head h3 { margin: 0 0 16px; }
.ov-head .ov-progress { justify-content: center; margin: 0 auto; max-width: 380px; }
.ov-progress { display: flex; align-items: center; gap: 12px; max-width: 420px; }
.ov-progress .rail-progress-track { flex: 1; margin: 0; }
.ov-count { flex: none; font: 400 13px 'Capriola', sans-serif; color: var(--ink); white-space: nowrap; }
.ov-next { margin: 12px 0 0; font-size: 14px; color: var(--text); }
.ov-next-link { padding: 0; font-size: 14px; }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
@media (min-width: 1060px) { .ov-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }

.steps-title { margin: 0 0 14px; font: 400 12px 'Capriola', sans-serif; color: var(--rust);
  text-transform: uppercase; letter-spacing: .8px; }
.step-list { position: relative; margin: 0; padding: 0; list-style: none; }
.step-list::before { content: ''; position: absolute; left: 15px; top: 14px; bottom: 14px;
  width: 0; border-left: 2px dotted var(--tan2); }
.step { position: relative; display: flex; gap: 14px; padding: 9px 0; }
.step .toc-num { position: relative; z-index: 1; flex: none; }
.step p { margin: 3px 0 0; font-size: 14px; line-height: 1.6; color: var(--text); }

.ov-disclosure { margin: 22px 0 0; border-top: 1.5px solid var(--tan2); padding-top: 12px;
  font-size: 12px; line-height: 1.65; color: var(--soft); max-width: 560px; }

.about-plain { padding-left: 20px; border-left: 1.5px solid var(--tan2); }
.about-plain .nq { margin: 0 0 8px; font: 600 19px 'Caveat', cursive; color: var(--rust); }
.about-plain p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--soft); }
.about-plain p:last-child { margin-bottom: 0; }
@media (max-width: 1059px) { .about-plain { padding-left: 0; border-left: none; border-top: 1.5px dashed var(--tan2); padding-top: 16px; } }

/* The closing scene under the Overview — the site's footer art. */
.ov-art { display: block; width: 100%; margin-top: 28px;
  border: 1.5px solid var(--line); border-radius: 14px;
  height: clamp(140px, 16vw, 210px); object-fit: cover; object-position: center;
  opacity: .72; }

.ov-details { margin-top: 18px; border-top: 1.5px solid var(--tan2); padding-top: 13px;
  font-size: 12.5px; color: var(--soft); line-height: 1.7; }
.ov-details strong { font-weight: 500; color: var(--ink); }
.item-docs { border-top: 1.5px solid var(--tan2); padding-top: 6px; }
.letter-main .cl-actions { border-top: 1.5px solid var(--tan2); padding-top: 18px; margin-top: 4px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cl-upload-btn { min-height: 44px; padding: 10px 20px; font-size: 14px; cursor: pointer; }
.item-error { margin-top: 12px; }
.letter-margin { border-top: 1.5px dashed var(--tan2); margin-top: 22px; padding-top: 18px; }
.note { margin-bottom: 18px; }
.note:last-child { margin-bottom: 0; }
.note .note-q { margin: 0 0 3px; font: 600 18px 'Caveat', cursive; color: var(--rust); line-height: 1.25; }
.note .note-a { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--soft); }
.home-fix { display: block; margin-top: 7px; font-size: 12px; color: var(--soft); }

/* Phone form of the Q&As — collapsed dropdowns after the actions. */
.note-dd { border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream2);
  padding: 0 14px; margin-bottom: 10px; }
.note-dd:last-child { margin-bottom: 0; }
.note-dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font: 400 13.5px 'Capriola', sans-serif; color: var(--ink); line-height: 1.4; }
.note-dd summary::-webkit-details-marker { display: none; }
.note-dd summary .dd-caret { margin-left: auto; flex: none; width: 8px; height: 8px;
  border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
  transform: rotate(45deg); transition: transform .16s; margin-top: -3px; }
.note-dd[open] summary .dd-caret { transform: rotate(225deg); margin-top: 3px; }
.note-dd .note-a { margin: 0; padding: 0 0 12px; font-size: 12.5px; line-height: 1.6; color: var(--soft); }

/* The budget worksheet — the moved-in panel drops its card chrome. */
.page-right .portal-card { background: none; border: none; box-shadow: none; border-radius: 0;
  padding: 16px 0 4px; margin: 0; border-top: 1.5px solid var(--tan2); }
.page-right #panel-budget > .soft { margin: 14px 0 2px; font-size: 13px; color: var(--soft); line-height: 1.6; }
.page-right .budget-group h3 { margin: 0 0 4px; font: 400 16px 'Capriola', sans-serif; color: var(--ink); }
.page-right #budget-result { border-top: 1.5px solid var(--tan2); }

/* ── The Your-details card ── */
.modal-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(43,36,26,.32);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim[hidden] { display: none; }
.modal-card { position: relative; background: #fff; border: 1.5px solid var(--line-ink); border-radius: 18px;
  box-shadow: var(--lift); padding: 26px 26px 22px; width: min(420px, 100%); box-sizing: border-box; }
.modal-card h2 { margin: 0 0 14px; font-size: 18px; }
.modal-card .soft { margin: 14px 0 0; font-size: 12.5px; color: var(--soft); line-height: 1.6; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none;
  font: 400 20px 'Capriola', sans-serif; color: var(--soft); cursor: pointer; }
.modal-close:hover { color: var(--ink); }

/* Help note field (shared by the dock chat + call request) */
.call-note { width: 100%; box-sizing: border-box; min-height: 84px; padding: 12px 16px;
  border: 1.5px solid var(--line-ink); background: #fff; border-radius: 13px;
  font: 400 15px 'Roboto', sans-serif; color: var(--ink); outline: none;
  margin-bottom: 16px; resize: vertical; }
.call-note:focus { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(251,196,92,.30); }

.status-chip { display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--sand); border: 1.5px solid var(--line);
  font: 400 12px 'Capriola', sans-serif; color: var(--rust); margin-bottom: 12px; }
.status-chip[hidden] { display: none; }
.cl-chip.uploaded { background: var(--green-l); color: var(--green-d); border-color: var(--green-l); }
.cl-chip.na { background: var(--cream2); color: var(--soft); }

/* ── Collapsed. Phone: the list becomes the current-step bar.
   Desktop (≥1060): the slim numbered spine. ── */
.book.collapsed .page-left h2, .book.collapsed .page-left .intro,
.book.collapsed .page-left .docs-inline,
.book.collapsed #hardship-chip, .book.collapsed #hardship-line { display: none; }
.book.collapsed #toc, .book.collapsed .fold-toggle { display: none; }
.book.collapsed .current-bar:not([hidden]) { display: flex; }
.book.collapsed .page-left { padding: 14px; }
.book.collapsed .toc-row > .toc-label, .book.collapsed .toc-state { display: none; }
.book.collapsed .toc-row { width: auto; padding: 3px; border-left: none; border-radius: 11px; }
.book.collapsed .toc-row.active { background: none; }

.mobile-foot { display: none; }

@media (min-width: 1060px) {
  /* Thin frame (Jacob's E, 2026-07-14): the card fills the viewport inside a
     slim cream ribbon; sidebar ~a quarter, white, divided by the seam shadow. */
  .book-wrap { max-width: none; padding: 0 14px 14px; }
  .book { display: grid; grid-template-columns: minmax(270px, 26%) minmax(0, 1fr);
    align-items: stretch; min-height: calc(100vh - 76px); }
  .book.collapsed { grid-template-columns: 68px minmax(0, 1fr); }
  .page-left { border-right: 1.5px solid var(--tan2);
    background: linear-gradient(to right, rgba(43,36,26,0) calc(100% - 34px), rgba(43,36,26,.05)); }
  .page-right { border-top: none;
    box-shadow: -18px 0 30px -24px rgba(43,36,26,.30);
    background: linear-gradient(to right, rgba(43,36,26,.028), rgba(43,36,26,0) 30px); }
  .fold-toggle { right: -15px; }
  .book.collapsed .page-left { padding: 56px 0 18px; }
  .book.collapsed .fold-toggle:not([hidden]) { display: grid; right: 19px; }
  .book.collapsed #toc:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 7px; }
  .current-bar { display: none !important; }
  .letter-grid { grid-template-columns: minmax(0, 1fr) 202px; column-gap: clamp(22px, 2.5vw, 34px); }
  .letter-margin { border-top: none; margin-top: 0; padding-top: 6px;
    border-left: 1.5px solid var(--tan2); padding-left: 20px; }
}

/* Phone-width pass */
@media (max-width: 560px) {
  .pagehead { padding-top: 18px; }
  .pagehead .rail-logo { height: 26px; }
  .folio-head { padding-top: 14px; padding-bottom: 12px; }
  .head-row, .factrow { gap: 8px; }
  .fact { padding: 8px 12px; }
  .fact-progress .rail-progress-track { width: 104px; }
  .wrow { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .wrow .wl { padding-top: 0; }
  .page-left h2 { padding-right: 46px; }

  /* The bottom stack on a phone: documents, expenses, then the links. */
  .head-actions, .factrow .fact-btn, .page-left .docs-inline { display: none; }
  .mobile-foot { display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 22px 16px 6px; }
  .mobile-foot .docs-inline { width: 100%; max-width: 420px; margin-top: 0;
    border-bottom: 1.5px solid var(--tan2); }
  .mobile-foot .fact-btn:not([hidden]) { width: 100%; max-width: 420px; justify-content: center; display: flex; }
  .mf-links { display: flex; gap: 24px; }
  .work-foot p { padding-bottom: 84px; }
}

.work-foot { border-top: 1.5px solid var(--tan2); }
.work-foot p { max-width: 1300px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 48px) 26px;
  font-size: 13px; color: var(--soft); box-sizing: border-box; }
@media (min-width: 1060px) {
  /* Under the thin frame the foot spans with the card, not a centred column. */
  .work-foot { border-top: none; }
  .work-foot p { max-width: none; padding: 2px 18px 16px; }
}
.work-foot .foot-links { display: inline-block; }
.work-foot .foot-links a { color: var(--rust); }

/* ── Budget builder rows (unchanged component language) ── */
.budget-group .soft { margin: 0 0 14px; }
.budget-rows { display: flex; flex-direction: column; gap: 12px; }
.budget-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.budget-row label { flex: 1 1 auto; font-size: 14.5px; color: var(--text); }
.budget-amount { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.budget-amount .dollar { color: var(--soft); font-size: 14px; }
.budget-input {
  width: 110px; box-sizing: border-box; height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line-ink); background: #fff; border-radius: 11px;
  font: 400 15px 'Roboto', sans-serif; color: var(--ink); text-align: right; outline: none;
  box-shadow: 0 1px 2px rgba(43,36,26,.05); transition: box-shadow .14s, border-color .14s;
}
.budget-input:focus { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(251,196,92,.30); }
.budget-amount .wk { min-width: 92px; font-size: 12.5px; color: var(--soft); text-align: right; }
#budget-save { font-size: 13px; color: var(--soft); margin: 8px 0 18px; }
#budget-balance-chip { font-size: 14px; }
@media (max-width: 520px) {
  .budget-row { flex-wrap: wrap; gap: 6px 12px; }
  .budget-row label { flex: 1 0 100%; }
  .budget-input { width: 120px; }
  .budget-amount .wk { min-width: 0; }
}

/* "Your details" read-only file lines */
.sit-onfile { display: flex; gap: 12px; font-size: 13.5px; margin: 5px 0; }
.sit-onfile span { color: var(--soft); min-width: 108px; }
.sit-onfile b { font-weight: 600; }

/* Narrative box counters */
.sit-count { display: block; font-size: 11.5px; color: var(--soft); margin-top: 4px; }

/* ID item: photo-to-certification-page diagram */
.id-diagram { display: block; width: 100%; max-width: 470px; height: auto; margin: 2px 0 4px; }

/* Index section labels */
.toc-section { margin: 14px 2px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.toc-section:first-child { margin-top: 4px; }

/* Liability rows: where-it-is note under each amount */
/* "What you owe" rows carry the where-box on the SAME line as the amount
   (Jacob 2026-07-17 round 6 — was a full-width input underneath): label,
   then the dollar box pulled in left, the where-box taking the right. */
.budget-row-owe { justify-content: flex-start; }
.budget-row-owe label { flex: 0 1 32%; min-width: 130px; }
.budget-row-owe .row-note { flex: 1 1 140px; min-width: 0; max-width: 420px; }
@media (max-width: 620px) {
  .budget-row-owe label { flex: 1 0 100%; }
  /* The where-box shared the amount's line and crushed its own placeholder
     (Jacob 2026-07-18) — it takes a full line of its own instead. */
  .budget-row-owe .row-note { flex: 1 0 100%; max-width: none; }
}
.row-note { font-size: 12.5px; padding: 5px 9px;
  border: 1.5px solid var(--tan2); border-radius: 8px; background: #fff; color: var(--ink);
  font-family: inherit; }
.row-note::placeholder { color: var(--soft); opacity: .7; }

/* ── Fund/provider advice (Phase 2) — "Your fund and provider" ──
   A port of the First Home Planner's KiwiSaver step
   (views/advice/sections/plan.html), RE-SKINNED into the book. The planner is
   Tailwind + Lucide; neither exists here and neither is being added. The
   translation, once, so the next person doesn't have to rediscover it:

     planner .card slab        -> .adv-sec, separated by a tan2 hairline.
                                  The worksheet already strips card chrome off
                                  every moved-in panel (see .page-right
                                  .portal-card above) — the BOOK is the card.
                                  Nested card slabs are exactly what makes a
                                  screen read as pasted in from another product.
     planner dark-sage fill    -> mango + ink border (.adv-opt.sel) —
                                  "this one" everywhere else here is
                                  .chip-btn.sel, and it's mango.
     planner .margin-note      -> .note/.note-q/.note-a (Caveat, rust).
     planner Lucide icons      -> dropped; the copy carries the rows.

   Reuses the ported quiz chip (.chip-btn/.chip-row, main.css) for the
   tap-questions and the worksheet's own .wrow/.wl for the scope statement
   and the recommendation's why-row — no new form language invented. The
   stay-put tile is GONE (Jacob 2026-07-17 round 3: one tile covers fund AND
   provider); stay-put lives on in the frozen disclosures, the SOA, and the
   adviser call the opt-in note promises. */

/* Sections within a card — hairline-separated, never nested slabs. Titles are
   real subheadings (Jacob 2026-07-17: the 12px rust eyebrows read as "small
   text, not really highlighted"), and sections breathe more. */
.adv-sec { border-top: 1.5px solid var(--tan2); margin-top: 26px; padding-top: 20px; }
.adv-sec:first-child { border-top: none; margin-top: 12px; padding-top: 0; }
.adv-sec-label { margin: 0 0 12px; font: 400 15px 'Capriola', sans-serif; color: var(--ink); }

.adv-questions { margin-top: 4px; }
.adv-q { border-top: 1.5px solid var(--tan2); padding: 20px 0; }
.adv-q:first-child { border-top: none; padding-top: 6px; }
/* The question IS the heading of its row — bold ink, not body text (Jacob
   2026-07-17 round 4: "hard to read, just text"). */
.adv-q-label { margin: 0 0 8px; font: 600 16px 'Roboto', sans-serif; color: var(--ink); line-height: 1.5; }
.adv-q-helper { margin: 0 0 10px; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.adv-q .chip-row { margin-bottom: 0; }
.adv-q .chip-btn { font: 400 13.5px 'Roboto', sans-serif; min-height: 40px; padding: 9px 16px; text-align: left; }
.adv-note { margin-bottom: 12px; }

/* The 1-5 scales (knowledge, ethical) — an equal-width row that stays a row,
   with the scale's own end labels beneath it. Driven by questions.js's
   `scale: {min,max}`; never hardcoded here. */
.chip-row.adv-scale { flex-wrap: nowrap; gap: 6px; }
.adv-q .adv-scale .chip-btn { flex: 1 1 0; min-width: 0; padding: 9px 4px; text-align: center;
  font: 400 14px 'Capriola', sans-serif; }
/* End labels sized to be READ, not decoration (Jacob 2026-07-17: "Beginner" /
   "Know it well" were vanishing at 11.5px soft). */
.adv-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.adv-ends span { font-size: 13px; color: var(--text); }
.adv-ends span:last-child { text-align: right; }

/* The eight industry pills (questions.js's `pills`) — labels, not controls, so
   they stay quiet: tan hairline, no shadow and no hover. Text colour and size
   are readable-quiet, not faint (Jacob 2026-07-17). */
.adv-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.adv-pill { border: 1.5px solid var(--tan2); border-radius: 999px; background: #fff;
  padding: 4px 11px; font-size: 12.5px; color: var(--text); line-height: 1.4; }

/* Option cards — questions whose options carry a `sub` line (lossReaction).
   Same chrome and the same mango selected-state as .chip-btn, because they are
   the same act: picking one. */
.adv-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* auto-fit, not a fixed 3: every option-card question spans the full row —
   3 options make 3 columns, 4 make 4 (Jacob 2026-07-17 round 4: all
   questions should span the width like the scales do). */
@media (min-width: 620px) { .adv-opts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.adv-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--ink); border-radius: 13px; padding: 12px 14px;
  box-shadow: 0 3px 0 var(--ink); box-sizing: border-box;
  transition: transform .12s, box-shadow .12s, background .12s; }
.adv-opt:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: var(--cream2); }
.adv-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.adv-opt.sel { background: var(--mango); }
.adv-opt-label { font: 400 13.5px 'Capriola', sans-serif; color: var(--ink); line-height: 1.3; }
.adv-opt-sub { font-size: 12px; color: var(--soft); line-height: 1.5; }
.adv-opt.sel .adv-opt-sub { color: var(--text); }

.adv-status { margin: 10px 0 0; font-size: 12.5px; }

/* Card nav — Back/Next, no auto-advance (the planner doesn't). The full 52px
   .btn-pill is too heavy inside the worksheet; this is the same pill, smaller. */
.adv-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; border-top: 1.5px solid var(--tan2); padding-top: 18px; }
.adv-nav .btn-pill { min-height: 46px; padding: 12px 24px; font-size: 14px; }
.adv-nav .adv-back { padding: 6px 2px; font-size: 13.5px; text-decoration: none; }
.adv-nav .adv-back:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .adv-nav .btn-pill { flex: 1 1 auto; justify-content: center; }
}

.adv-empty { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--soft); }

.adv-outcome { margin-top: 22px; border-top: 1.5px solid var(--tan2); padding-top: 20px; }

.adv-card { background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 4px 0 var(--ink); }
.adv-card-eyebrow { margin: 0 0 6px; font: 400 11px 'Capriola', sans-serif; color: var(--rust);
  text-transform: uppercase; letter-spacing: .6px; }
.adv-card h4 { margin: 0 0 8px; font: 400 18px 'Capriola', sans-serif; color: var(--ink); line-height: 1.25; }
.adv-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.adv-card p:last-child { margin-bottom: 0; }
.adv-card .link-btn { padding-top: 4px; font-size: 13px; }
.adv-reasons { margin: 0; padding-left: 18px; }
.adv-reasons li { font-size: 13.5px; line-height: 1.6; color: var(--text); margin-bottom: 6px; }
.adv-reasons li:last-child { margin-bottom: 0; }

/* The recommendation tile, per Jacob's funnel fund-selection mock
   (2026-07-17): one plain-English headline with the fund AND provider names
   highlighted (the eyebrow pill was cut in round 5 — the headline carries
   it), the why-row in the worksheet's own .wrow language, and the long
   planner blurbs folded behind <details> pills. */
.adv-card h4.adv-rec-h { margin: 2px 0 12px; font-size: 21px; line-height: 1.5; }
.adv-rec-hl { background: rgba(251,196,92,.45); border-radius: 6px; padding: 1px 7px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-decoration: underline; text-decoration-color: var(--ink);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.adv-rec-row { margin-top: 4px; }
.adv-rec-dds { margin: 4px 0 2px; padding: 14px 0 2px; border-top: 1.5px solid var(--tan2); }
.adv-dd { margin: 0 0 8px; }
.adv-dd:last-child { margin-bottom: 0; }
.adv-dd summary { display: inline-flex; align-items: center; cursor: pointer;
  list-style: none; background: var(--cream2); border: 1.5px solid var(--tan2);
  border-radius: 999px; padding: 7px 15px;
  font: 400 11.5px 'Capriola', sans-serif; color: var(--rust);
  text-transform: uppercase; letter-spacing: .7px; }
.adv-dd summary::-webkit-details-marker { display: none; }
.adv-dd summary::before { content: '▸'; margin-right: 8px; transition: transform .15s; }
.adv-dd[open] summary::before { transform: rotate(90deg); }
.adv-dd[open] summary { background: var(--sand); }
.adv-dd > p { margin: 12px 4px 6px; font-size: 13.5px; line-height: 1.65; color: var(--text); }

/* The info tile — the background reading as its own object under the
   recommendation (Jacob 2026-07-17 round 3). Same card chrome; the inner
   .adv-sec hairlines do the internal separating. */
.adv-card-info { margin-top: 22px; }
.adv-card-info .adv-sec:first-child { margin-top: 0; padding-top: 0; }
.adv-card-info .adv-sec { margin-top: 22px; padding-top: 18px; }
/* Inside the info tile the section labels ARE the titles — a step up from
   the in-card labels elsewhere (Jacob 2026-07-17 round 4). */
.adv-card-info .adv-sec-label { font-size: 17px; margin: 0 0 14px; }

.adv-optin { margin-top: 18px; border-top: 1.5px solid var(--tan2); padding-top: 18px; }
.adv-optin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
/* The soft no — quieter than the yes on purpose: outlined, smaller, no
   shadow theatre (Jacob 2026-07-17 round 4). */
.adv-later { background: #fff; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; font: 400 13px 'Capriola', sans-serif; color: var(--ink);
  cursor: pointer; min-height: 40px; }
.adv-later:hover { background: var(--cream2); }
/* The timing qualifier under the opt-in button — grey by design (Jacob
   2026-07-17): quiet, but always in the same glance as the button it
   qualifies. */
.adv-optin-note { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); line-height: 1.5; }
.adv-optin-done { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }

/* ── Card B — funds and providers (Task 9). Same translation table as the
   header comment above: planner slabs -> hairline sections; planner dark-sage
   "selected" -> mango + ink; Lucide -> dropped. The fund-types TABLE is the
   one thing ported structurally intact (spec §4.5 — "the distinctive
   artifact"): five clickable columns, four rows, the PNG icons, the
   allocation bar. Only its colours are re-keyed into the book's tokens. ── */

/* Section lead — the planner's intro sentence under a card title. */
.adv-lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }

/* What you're choosing — the fund / the provider, two quiet lists. */
.adv-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 24px; }
@media (min-width: 700px) { .adv-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adv-choice-t { margin: 0 0 6px; font: 400 13px 'Capriola', sans-serif; color: var(--ink); }
.adv-choice-list { margin: 0; padding-left: 16px; }
.adv-choice-list li { font-size: 13px; line-height: 1.65; color: var(--text); margin-bottom: 5px; }
.adv-choice-list li:last-child { margin-bottom: 0; }
.adv-choice-list li::marker { color: var(--rust); }

/* The fund-types table. The wrap owns any horizontal overflow: at phone
   widths the TABLE scrolls inside it and the page never grows sideways —
   540px is the narrowest the five columns can go before "Conservative"
   wraps under its icon. */
.adv-ftable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.adv-ftable { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 0;
  table-layout: fixed; }
.adv-ftable th { padding: 0; font-weight: 400; vertical-align: bottom; }
.adv-ftable th:first-child { width: 82px; }

/* Column headers — the clickable fund picks. The planner physically merges
   its selected header into the column tint (bottom:-1px, shared fill); the
   book's selection language is a discrete outlined object instead, so the
   selected header is the same mango + ink + cast-shadow chip as .chip-btn.sel,
   sitting above its tinted column. */
.adv-fcol { display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: calc(100% - 6px); margin: 0 3px 4px; padding: 10px 3px 8px; cursor: pointer;
  background: none; border: 2px solid transparent; border-radius: 12px;
  font: 400 11.5px 'Capriola', sans-serif; color: var(--soft); line-height: 1.25;
  transition: background .15s, color .15s, box-shadow .15s; box-sizing: border-box; }
.adv-fcol:hover:not(.sel) { background: var(--cream2); color: var(--text); }
.adv-fcol.sel { background: var(--mango); border-color: var(--ink); color: var(--ink);
  box-shadow: 0 2px 0 var(--ink); }
.adv-fcol-img { width: 40px; height: 40px; object-fit: contain;
  opacity: .55; filter: grayscale(25%); transition: opacity .15s, filter .15s; }
.adv-fcol.sel .adv-fcol-img { opacity: 1; filter: none; }

/* Body cells. Row separators are the planner's, re-keyed to the warm tan;
   row labels speak in soft uppercase Capriola caps, no separator (as the
   planner). */
.adv-ftable td { text-align: center; vertical-align: middle; padding: 9px 4px;
  border-top: 1px solid var(--tan); transition: background .15s; }
.adv-ftable td.adv-frow-l { text-align: left; padding-right: 10px; border-top: none;
  font: 400 10.5px 'Capriola', sans-serif; color: var(--soft);
  text-transform: uppercase; letter-spacing: .6px; }
/* Phone: the wrap scrolls the columns; the row labels stay put (sticky inside
   the scroll container), so "Risk / Volatility / …" never scrolls away from
   the icons it names. Solid background: tinted cells slide UNDER it. */
.adv-ftable td.adv-frow-l, .adv-ftable th:first-child { position: sticky; left: 0;
  z-index: 1; background: #fff; }
.adv-ftable td.sel { background: var(--sand);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.adv-ftable tr:last-child td.sel { border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px 8px; }
.adv-frow-img { display: block; width: 38px; height: 38px; object-fit: contain; margin: 0 auto;
  opacity: .4; filter: grayscale(30%); transition: opacity .15s, transform .15s, filter .15s; }
td.sel .adv-frow-img { opacity: 1; filter: none; transform: scale(1.08); }
.adv-fpill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--tan2); font-size: 11px; color: var(--soft); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; }
td.sel .adv-fpill { background: var(--mango); border-color: var(--ink); color: var(--ink); }

/* The description block — cream band, updated on
   column click. The bar: income = warm tan (quiet), growth = ink
   (emphatic), matching the bolded Growth label. Width transition is why
   paintFund() writes into these nodes instead of re-rendering. */
.adv-fdesc { margin-top: 12px; background: var(--cream2); border: 1.5px solid var(--tan2);
  border-radius: 13px; padding: 14px 16px; }
.adv-fdesc-name { margin: 0 0 10px; font: 400 15px 'Capriola', sans-serif; color: var(--ink); }
.adv-fassets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 12px; }
.adv-fassets-k { margin: 0 0 3px; font: 400 11px 'Capriola', sans-serif; color: var(--soft);
  text-transform: uppercase; letter-spacing: .7px; }
.adv-fassets-v { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--soft); }
.adv-fbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden;
  background: #fff; margin-bottom: 7px; }
.adv-fbar-i { background: var(--tan2); border-radius: 6px 0 0 6px; transition: width .35s ease; }
.adv-fbar-g { flex: 1; background: var(--ink); border-radius: 0 6px 6px 0; }
.adv-fbar-labs { display: flex; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: var(--soft); }
.adv-fbar-labs strong { color: var(--ink); font-weight: 600; }
.adv-fblurb { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--text); }

/* What to consider in a provider — six cream bands; *Active vs passive*
   highlighted in the book's own "this one" (mango + ink, per .chip-btn.sel),
   never the planner's dark-sage slab. */
.adv-provs { display: flex; flex-direction: column; gap: 8px; }
.adv-prov { background: var(--cream2); border: 1.5px solid var(--tan2); border-radius: 13px;
  padding: 12px 14px; }
.adv-prov-t { margin: 0 0 6px; font: 400 13px 'Capriola', sans-serif; color: var(--ink); }
.adv-prov-p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.65; color: var(--soft); }
.adv-prov-p:last-child { margin-bottom: 0; }
.adv-prov-p strong { color: var(--ink); font-weight: 600; }
.adv-prov.hi { background: var(--mango); border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink); }
.adv-prov.hi .adv-prov-p { color: var(--text); }

/* ── Phone pass on the advice info surfaces (Jacob 2026-07-18): the opt-in
   buttons stack centred; the fund table shrinks so only a little scroll
   remains (base min-width 540px stands on desktop); every info box steps
   its text down ~1px so the sections read less wordy. ── */
@media (max-width: 560px) {
  .adv-optin-row { flex-direction: column; align-items: stretch; }
  .adv-optin-row .btn-pill { width: 100%; box-sizing: border-box; }
  .adv-optin-row .adv-later { align-self: center; }

  .adv-ftable { min-width: 420px; }
  .adv-ftable th:first-child { width: 56px; }
  .adv-ftable td.adv-frow-l { font-size: 9.5px; letter-spacing: .4px; padding-right: 6px; }
  .adv-fcol { font-size: 10.5px; padding: 8px 2px 6px; gap: 4px; }
  .adv-fcol-img { width: 30px; height: 30px; }
  .adv-frow-img { width: 30px; height: 30px; }
  .adv-ftable td { padding: 7px 2px; }
  .adv-fpill { padding: 3px 7px; font-size: 10px; }

  /* .adv-card prefix beats the generic `.adv-card p` 13.5px rule (610) —
     bare class selectors here lose to it and never apply. */
  .adv-card .adv-lead { font-size: 12.5px; }
  .adv-card .adv-choice-list li { font-size: 12px; }
  .adv-card .adv-fdesc-name { font-size: 14px; }
  .adv-card .adv-fassets-k { font-size: 10px; }
  .adv-card .adv-fassets-v { font-size: 10.5px; }
  .adv-card .adv-fbar-labs { font-size: 10.5px; }
  .adv-card .adv-fblurb { font-size: 11.5px; }
  .adv-card .adv-prov-t { font-size: 12px; }
  .adv-card .adv-prov-p { font-size: 11.5px; }
  .adv-card .adv-dd > p { font-size: 12.5px; }
}
