/* The live site's walkthrough styles (site_20261105/public/assets/site.css lines 12-55 tokens, 140-150 helper, 759-1093), kept so 'A check, line by line' works exactly as today, re-toned by pages.css. */
:root {
  color-scheme: dark;
  --bg: #07101e;
  --bg-2: #0a1628;
  --surface: #0d1a2e;
  --surface-2: #12233a;
  --text: #f2f1eb;
  --text-2: #a9b4c4;
  --text-3: #8592a5;
  --line: rgba(242, 241, 235, 0.09);
  --line-2: rgba(242, 241, 235, 0.2);
  --accent: #9fe3de;
  --accent-2: #c2efeb;
  --on-accent: #07101e;
  --accent-soft: rgba(159, 227, 222, 0.1);
  --flag: #fe9a00;
  --flag-soft: rgba(254, 154, 0, 0.1);
  --listed: #b48cff;
  --listed-soft: rgba(180, 140, 255, 0.12);
  --danger: #ff9b8f;
  --focus: #9fe3de;
  --sky-star: 242, 241, 235;
  --sky-line: 159, 227, 222;
  --sky-alpha: 1;
  --glow-a: rgba(142, 81, 255, 0.16);
  --glow-b: rgba(159, 227, 222, 0.07);
  --glow-c: rgba(142, 81, 255, 0.07);
  --lift: 0 32px 64px -32px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.25);
  --control: rgba(242, 241, 235, 0.38);
  --dim: 0.55;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius: 10px;

  /* Display type follows the brief's clamp and also the screen's height, so a short laptop still sees the whole point at once. */
  --display: clamp(2.8rem, min(1.6rem + 5.2vw, 9.3vh), 6.4rem);
  --display-home: clamp(2.8rem, min(1.6rem + 5.2vw, 12.5vh), 6.4rem);
  --h2: clamp(1.8rem, 1.2rem + 2.2vw, 3rem);
  --figure: clamp(2.2rem, min(1.4rem + 3vw, 7vh), 4rem);
  --lead: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- The walkthrough ---------- */

.wt button, .wt a { scroll-margin-top: 112px; scroll-margin-bottom: 96px; }
main { --banner-h: 52px; }
.wt-banner {
  position: sticky; top: var(--header-h); z-index: 45;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 0.8rem; font-weight: 700; line-height: 1.35;
  color: var(--text);
}
.wt-banner .wrap { padding-block: 8px; }
.wt-banner p::before {
  content: ""; display: inline-block; vertical-align: 0.14em;
  width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--accent);
}

.stage-wt {
  justify-content: flex-start;
  min-height: 0;
  padding-block: clamp(14px, 2.4vh, 28px) clamp(28px, 5vh, 56px);
}
.wt-head h1 { max-width: 100%; }
.wt-head .lead { margin-top: clamp(8px, 1.3vh, 16px); max-width: none; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem); }
.stage-wt .eyebrow { margin-bottom: clamp(10px, 1.6vh, 18px); }

.wt { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(14px, 2.2vh, 24px); }
.wt-right { display: contents; }
.stepbar { order: 1; }
.wt-narr { order: 2; }
.bill { order: 3; min-width: 0; }

.stepbar {
  position: sticky; top: calc(var(--header-h) + var(--banner-h, 48px)); z-index: 30;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.stepbar button {
  min-height: 46px; padding: 0 6px;
  border: 0; border-left: 1px solid var(--line-2);
  background: transparent; color: var(--text-2);
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.stepbar button:first-child { border-left: 0; }
.stepbar button:hover { color: var(--text); background: var(--accent-soft); }
.stepbar button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.stepbar button:focus-visible { outline-offset: -5px; }
.stepbar button[aria-pressed="true"]:focus-visible { outline-color: var(--on-accent); }

.step-text { font-size: 1.02rem; line-height: 1.45; min-height: 4.4em; }
.wt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.wt-controls .btn { min-height: 44px; padding: 0 20px; font-size: 0.93rem; }
.wt-controls [data-act="next"] { border-color: var(--accent); color: var(--accent); }
.wt-controls [data-act="next"]:hover { background: var(--accent-soft); }
.wt-controls .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; pointer-events: none; }
.wt-reset {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0;
  border: 0; background: none; color: var(--text-2); cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.wt-reset:hover { color: var(--text); }
@media (min-width: 640px) and (max-width: 999px) {
  .step-text { min-height: 3em; }
}

/* The bill */
.bill-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.bill-figure {
  font-size: clamp(2.2rem, min(1.4rem + 3vw, 6.2vh), 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.bill-cap { font-size: 0.85rem; color: var(--text-3); }

.bill-table-wrap { margin-top: 10px; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.35; }
.bill-table thead th {
  padding: 4px 8px 6px; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--line-2);
}
.bill-table thead th.c-month { text-align: right; }
.bill-table tbody th, .bill-table tbody td {
  padding: 6px 8px; vertical-align: top; text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.bill-table tbody th { font-weight: 700; }
.bill-table .c-line { width: 33%; }
.bill-table .c-month { width: 10%; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.bill-table .c-see { color: var(--text-2); text-wrap: pretty; }
.bill-table .c-flag { width: 9%; white-space: nowrap; }
.bill-row > * { transition: background-color 0.18s ease, opacity 0.2s ease; }
.bill-row, .detail-row { transition: opacity 0.2s ease; }

.flag-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem;
  opacity: 0; visibility: hidden;
}
.wt .mark, .bl-mark .mark, .bill .mark { flex: none; width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.mark-listed { display: none; }
.has-flag .flag-tag { color: var(--flag); }
.is-kept .flag-tag { color: var(--accent); }

.wt[data-step="2"] .flag-tag, .wt[data-step="3"] .flag-tag {
  opacity: 1; visibility: visible;
  transition: opacity 0.18s ease calc(var(--i, 0) * 70ms), visibility 0s linear calc(var(--i, 0) * 70ms);
}
.wt[data-step="2"] .bill-row.has-flag > *, .wt[data-step="3"] .bill-row.has-flag > * {
  background-color: var(--flag-soft);
}
/* The row-by-row stagger belongs to step 2. In step 3 a row answers the press at once. */
.wt[data-step="2"] .bill-row.has-flag > * { transition: background-color 0.18s ease calc(var(--i, 0) * 70ms); }

/* Step 3 */
.detail-row td { padding: 0 !important; border: 0 !important; }
.detail-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.22s var(--ease), visibility 0.22s; }
.detail-inner { min-height: 0; overflow: hidden; }
.wt[data-step="3"] .detail-wrap { grid-template-rows: 1fr; visibility: visible; }
.wt[data-step="3"] .detail-row td { background-color: var(--flag-soft); border-bottom: 1px solid var(--line) !important; }
.wt[data-step="3"] .bill-row.has-flag > * { border-bottom-color: transparent; }
.decide {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  padding: 2px 8px 8px;
}
.decide-change { flex: 1 1 240px; font-size: 0.875rem; line-height: 1.4; color: var(--text); }
.decide-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 3px; }
.mini {
  min-height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: transparent; color: var(--text);
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mini:active { transform: translateY(1px); }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini-list { border-color: var(--accent); color: var(--accent); }
.mini-list:hover { background: var(--accent-soft); }
.mini-later[aria-pressed="true"] { background: var(--line); }
.listed-label { display: none; align-items: center; gap: 6px; color: var(--listed); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }

/* Listed */
.wt[data-step="3"] .bill-row.is-listed > *, .wt[data-step="3"] .detail-row.is-listed td { background-color: var(--listed-soft); }
.is-listed .flag-tag { color: var(--listed); }
.is-listed .mark-flag { display: none; }
.is-listed .mark-listed { display: inline-block; color: var(--listed); }
.is-listed .listed-label { display: inline-flex; animation: slide-in 0.2s var(--ease) both; }
.is-listed .mini-later { display: none; }
.is-listed .mini-list { border-color: var(--line-2); color: var(--text); }
.is-listed .mini-list:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
@keyframes slide-in { from { transform: translateX(-4px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Kept and "not now" rows step back */
.wt[data-step="3"] .bill-row.is-kept, .wt[data-step="3"] .bill-row.is-later { opacity: var(--dim); }
.wt[data-step="3"] .bill-row.is-later > *, .wt[data-step="3"] .detail-row.is-later td { background-color: transparent; }
.wt[data-step="3"] .bill-row.is-kept .c-see, .wt[data-step="3"] .bill-row.is-later .c-see,
.wt[data-step="3"] .bl-row.is-kept .bl-see, .wt[data-step="3"] .bl-row.is-later .bl-see { color: var(--text); }
.detail-row.is-later .decide-change { opacity: var(--dim); }
.is-later .flag-tag { color: var(--text); }
/* Teal at this strength can't be read on cream. */
:root[data-theme="light"] .wt[data-step="3"] .is-kept .flag-tag,
:root[data-theme="light"] .wt[data-step="3"] .is-kept > .bl-head .bl-mark { color: var(--text); }

.nb { white-space: nowrap; }
.bill-note { margin-top: 10px; }
.closing { margin-top: 10px; font-weight: 700; color: var(--listed); line-height: 1.45; }

/* The list (small screens) */
.bill-list { display: none; margin-top: 10px; border-top: 1px solid var(--line-2); }
.bl-row { border-bottom: 1px solid var(--line); transition: opacity 0.2s ease; }
.bl-head {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 12px; align-items: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 7px 8px 7px 6px;
  border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: inherit; font-size: 0.97rem; line-height: 1.25;
}
.bl-head:focus-visible { outline-offset: -3px; }
.bl-head::after {
  content: ""; width: 7px; height: 7px; justify-self: end;
  border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3);
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.is-open > .bl-head::after { transform: translateY(1px) rotate(-135deg); }
.bl-line { font-weight: 700; }
.bl-month { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-mark { display: inline-flex; opacity: 0; visibility: hidden; }
.bl-mark .mark { width: 14px; height: 14px; }
.has-flag > .bl-head .bl-mark { color: var(--flag); }
.is-kept > .bl-head .bl-mark { color: var(--accent); }
.is-listed > .bl-head .bl-mark { color: var(--listed); }
.wt[data-step="2"] .bl-mark, .wt[data-step="3"] .bl-mark {
  opacity: 1; visibility: visible;
  transition: opacity 0.18s ease calc(var(--i, 0) * 70ms), visibility 0s linear calc(var(--i, 0) * 70ms);
}
.wt[data-step="2"] .bl-row.has-flag, .wt[data-step="3"] .bl-row.has-flag { background-color: var(--flag-soft); }
.wt[data-step="2"] .bl-row.has-flag { transition: background-color 0.18s ease calc(var(--i, 0) * 70ms), opacity 0.2s ease; }
.wt[data-step="3"] .bl-row.is-listed { background-color: var(--listed-soft); }
.wt[data-step="3"] .bl-row.is-kept { opacity: var(--dim); }
.wt[data-step="3"] .bl-row.is-later { background-color: transparent; }
/* "Not now" fades the words once, and leaves the two buttons at full strength so it can be undone. */
.wt[data-step="3"] .bl-row.is-later > .bl-head,
.wt[data-step="3"] .bl-row.is-later .bl-see,
.wt[data-step="3"] .bl-row.is-later .decide-change { opacity: var(--dim); }
.bl-body { padding: 0 8px 12px 32px; display: grid; gap: 6px; }
.bl-see { color: var(--text-2); font-size: 0.97rem; line-height: 1.4; }
.bl-body .flag-tag { justify-self: start; }
.bl-body .decide { display: none; padding: 0; }
.wt[data-step="3"] .bl-body .decide { display: grid; gap: 8px; justify-content: stretch; }
.bl-body .decide-change { flex: none; }
.bl-body .decide-acts { justify-content: flex-start; padding: 0; }
.bl-body .mini { min-height: 44px; padding: 0 18px; }

/* The report sheet */
.wt-sheet {
  order: 4;
  padding: 20px 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--lift);
}
.sheet-title { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.fig-row { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: baseline; padding-block: 8px; border-bottom: 1px solid var(--line); }
.fig {
  font-size: var(--figure); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fig-cap { font-size: 0.97rem; font-weight: 700; line-height: 1.25; color: var(--text-2); }
.fig-row[data-kind="flagged"] .fig { color: var(--flag); }
.fig-row[data-kind="listed"] .fig { color: var(--listed); }
.wt[data-step="1"] .fig-row[data-kind="flagged"] .fig, .wt[data-step="1"] .fig-row[data-kind="listed"] .fig,
.wt[data-step="2"] .fig-row[data-kind="listed"] .fig { color: var(--text-3); }
.sheet-hold { padding-top: 10px; font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--listed); }
.sheet-where { margin-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--text-2); }
.is-off { visibility: hidden; }

.wt-cta { order: 7; margin-top: 8px; }
.wt-cta .btn { width: 100%; }

html:not(.js) .stepbar, html:not(.js) .wt-controls { display: none; }
html:not(.js) .step-text { min-height: 0; }

@media (max-width: 639px) {
  .js .bill-table-wrap { display: none; }
  .js .bill-list { display: block; }
  html:not(.js) .bill-table { font-size: 0.85rem; }
  html:not(.js) .bill-table .c-flag { display: none; }
  /* Report panel as a compact strip that stays in reach; everything else about it follows in the page. */
  .wt-sheet { display: contents; }
  .sheet-figs {
    order: 4;
    position: sticky; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter);
    background: var(--surface);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 -12px 28px -18px rgba(0, 0, 0, 0.5);
  }
  .fig-row { display: block; padding: 0; border: 0; }
  .fig { display: block; font-size: 1.7rem; line-height: 1.1; }
  .fig-cap { display: block; font-size: 0.75rem; line-height: 1.2; }
  .sheet-hold { grid-column: 1 / -1; padding-top: 4px; font-size: 0.8rem; }
  .is-off { display: none; }
  .sheet-title { order: 5; padding: 0; border: 0; }
  .sheet-where { order: 6; margin: -8px 0 0; }
  .wt { gap: 12px; }
  .step-text { min-height: 5.8em; }
  .bill-figure { font-size: clamp(1.9rem, 9vw, 2.2rem); }
  .wt-banner p::before { display: none; }
}
@media (max-width: 639px) and (max-height: 500px) {
  /* A short screen can't spare the height: the step bar and the figures scroll with the page. The banner stays. */
  .stepbar, .sheet-figs { position: static; }
}
@media (min-width: 640px) {
  .sheet-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
  .fig-row { display: block; border-bottom: 0; }
  .fig { display: block; }
  .sheet-hold { grid-column: 1 / -1; }
  .wt-cta .btn { width: auto; }
  .stepbar { position: static; }
}
@media (min-width: 1000px) {
  .wt-banner .wrap { padding-block: 7px; }
  .wt {
    display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr); align-items: start;
  }
  .stepbar { grid-column: 1; grid-row: 1; }
  .bill { grid-column: 1; grid-row: 2; }
  .wt-right { display: block; grid-column: 2; grid-row: 1 / span 2; }
  .wt-cta { margin-top: 12px; }
  .wt-cta .btn { width: 100%; }
  /* One screen at 1440 x 900: the head gives up a little height so all twelve lines fit. */
  .stage-wt { padding-top: clamp(10px, 1.8vh, 24px); }
  .stage-wt .eyebrow { padding-bottom: 12px; margin-bottom: clamp(8px, 1.1vh, 14px); }
  .wt-head h1 { font-size: clamp(2.8rem, min(1.6rem + 5.2vw, 8.2vh), 6.4rem); }
  .wt-head .lead { margin-top: clamp(6px, 0.9vh, 12px); }
  .wt { margin-top: clamp(10px, 1.5vh, 20px); gap: 12px 32px; }
  .bill-table tbody th, .bill-table tbody td { padding-block: 5px; }
  .bill-table thead th { padding-block: 2px 5px; }
  .bill-table-wrap { margin-top: 6px; }
  .stepbar button { min-height: 48px; }
  .wt-sheet { margin-top: 12px; padding: 16px 22px 14px; }
  .sheet-title { padding-bottom: 10px; }
  .sheet-figs { display: block; }
  .fig-row { display: grid; border-bottom: 1px solid var(--line); }
  .step-text { min-height: 4.4em; }
  .stepbar button { font-size: 1rem; }
}
@media (min-width: 1000px) and (min-height: 800px) {
  .wt-right { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* ---------- Page change ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}

/* ---------- Reduced motion: nothing moves, every state changes at once ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: words on paper ---------- */

