/* =====================================================================
   The end of the survey (js/app.js): Your tax, Your street, and after sending,
   everything they told me. The tax and street cards carry a Continue button fixed to
   the foot of the window, and the summary a "Request a personal response" button,
   over the same band and fade as the letter page's "Take the survey".

   Phones (up to 34rem) stack everything. The wide layouts start at 60rem.
   ===================================================================== */

#screen[data-screen='tax'],
#screen[data-screen='street'],
#screen[data-screen='thanks'] { max-width: calc(76rem + 2 * var(--gutter)); }

.end-page { --red: var(--accent); --red-ink: var(--accent-ink); --rule: rgb(27 43 58 / 0.1); padding-block-start: clamp(0rem, 2.5vw - 0.5rem, 1.75rem); }
.end-page h1, .end-page h2, .end-page h3 { color: var(--ink); }

/* Frosted card */
.glass {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.48));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(27 43 58 / 0.07), 0 22px 44px -34px rgb(20 40 60 / 0.6);
}

/* Line icons in a round badge */
.ci { display: grid; place-items: center; flex: none; color: var(--ink); border-radius: 50%; }
.ci svg, .money-badge svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Headings ---------- */
/* one gap between a kicker and the heading it names, everywhere on these pages */
.end-page { --kick-gap: 1rem; }
.end-kicker { margin: 0 0 var(--kick-gap); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.end-head h1 { max-width: 68rem; font-size: clamp(2.25rem, 3.5vw + 1rem, 4.125rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.end-lede { margin: 1.25rem 0 0; max-width: 48.75rem; font-size: clamp(1.03rem, 0.5vw + 0.8rem, 1.25rem); line-height: 1.5; color: var(--muted); }
.end-h2 { margin: 0.625rem 0 0; max-width: 56rem; font-size: clamp(2.125rem, 2.5vw + 1.25rem, 3.5rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.03em; }
.end-h2.is-sec { margin: 0; font-size: clamp(1.875rem, 1.3vw + 1.3rem, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.end-h2.is-small { margin: 0 0 1.5rem; font-size: clamp(1.625rem, 0.6vw + 1.3rem, 2rem); letter-spacing: -0.02em; }
.end-sub { margin: 1.5rem 0 0; font-size: clamp(1.375rem, 0.8vw + 1rem, 1.875rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.card-h { display: flex; align-items: center; gap: 0.5625rem; margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-wrap: pretty; }
.card-h .n { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.card-p { margin: 1.25rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

/* "If new agreements can be reached": the red pill that ties every saving to the new money */
.money-badge { display: flex; align-items: center; gap: 0.5rem; width: max-content; margin: 0; padding: 0.4375rem 0.9375rem 0.4375rem 0.625rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.875rem; font-weight: 500; line-height: 1.2; }
.money-badge svg { width: 1.125rem; height: 1.125rem; }

.end-sec { margin-top: clamp(4rem, 6vw + 1.5rem, 7.5rem); }
.end-save, .end-open { padding-top: clamp(3rem, 2.5vw + 2rem, 4.5rem); border-top: 1px solid rgb(27 43 58 / 0.14); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.125rem; }
.end-sources { margin: 2.5rem 0 0; max-width: none; font-size: 0.875rem; }
.end-nav { margin-block-start: clamp(3.5rem, 4vw + 1.5rem, 5.5rem); }

/* ---------- The opening: the question, then the three cards that set it up ----------
   On a computer it is one screen: the question and the proposal side by side, then
   What Stewart gets (its figure, the chart and the note in one card) beside What Stewart
   carries and A fair share. Phones and tablets stack it, the chart in a card of its own. */
.tt-hero .end-lede { margin-top: 1.25rem; }
.tt-grid { display: grid; gap: 0.75rem; margin-top: 2rem; }
.tt-gets { display: contents; }
.tt-gets-text { margin-top: 0.5rem; }
.eg-big { margin: 0.875rem 0 0; font-size: clamp(2.5rem, 1vw + 2rem, 3.25rem); font-weight: 300; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.eg-big span { font-size: 1.0625rem; letter-spacing: 0; color: var(--muted); }
.eg-lead { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.5; }
.eg-chart { margin: 0.25rem 0 0; padding: 1.25rem 1.1rem 1.35rem; border-radius: 24px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.48));
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(27 43 58 / 0.07), 0 22px 44px -34px rgb(20 40 60 / 0.6); }
.eg-chart figcaption { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 0.875rem; }
.eg-chart figcaption b { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.eg-chart figcaption span { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.g-head { display: grid; grid-template-columns: 7.75rem minmax(0, 1fr); gap: 0.875rem; margin: 0 0 0.5rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); }
.g-head span:first-child { text-align: end; }
.eg-chart ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--row-gap, 7px); }
.eg-chart li { display: grid; grid-template-columns: 7.75rem minmax(0, 1fr); align-items: center; gap: 0.875rem; }
.eg-chart li.is-me { margin-top: 4px; }
.g-name { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font-size: 0.875rem; line-height: 1.2; color: var(--ink); }
.g-name small { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-bar { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.g-bar i { flex: none; width: calc((100% - 64px) * var(--w)); height: var(--bar-h, 18px); border-radius: 5px; background: var(--ink); }
.g-bar b { font-size: 0.8125rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.is-me .g-name, .is-me .g-name small { font-weight: 600; color: var(--red-ink); }
.is-me .g-bar i { background: var(--red); }
.is-me .g-bar b { font-weight: 600; color: var(--red-ink); }
.tt-note { margin: 0.25rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.tt-note b { font-weight: 500; color: var(--ink); }
.tt-card { display: flex; flex-direction: column; padding: 1.375rem 1.25rem 1.5rem; border-radius: 24px; }
.tt-card .card-h { margin-bottom: 1rem; }
.tt-card .card-p { margin-top: 0.875rem; }
.tt-routes { flex-direction: row; flex-wrap: wrap; }
@media (min-width: 48rem) and (max-width: 59.99rem) {
  .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .tt-gets > * { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
  .tt-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 4.5rem); align-items: end; }
  .tt-hero h1 { font-size: clamp(2.5rem, 1.6vw + 1.6rem, 3.5rem); }
  .tt-hero .end-lede { margin: 0; max-width: 30rem; font-size: 1.0625rem; }
  .tt-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 1rem; margin-top: 2.25rem; }
  .tt-gets { grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'text chart' 'note chart'; column-gap: 2.5rem; padding: 1.75rem 2rem; border-radius: 28px; }
  .tt-gets-text { grid-area: text; margin: 0; }
  .tt-gets .eg-chart { grid-area: chart; margin: 0; padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .tt-note { grid-area: note; align-self: end; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
  .tt-card { padding: 1.375rem 1.625rem 1.5rem; border-radius: 28px; }
  .tt-card .card-h { margin-bottom: 0.875rem; }
  .tt-card .load-bar { height: 40px; }
  .tt-routes.deal-chips li { padding: 0.25rem 0.75rem 0.25rem 0.3125rem; border-radius: 10px; }
  .tt-routes.deal-chips .ci { width: 26px; height: 26px; }
  .tt-routes.deal-chips .ci svg { width: 15px; height: 15px; }
  .tt-gets .eg-lead { font-size: 0.9375rem; }
  .tt-gets .eg-big { font-size: clamp(2.25rem, 1vw + 1.75rem, 3rem); }
}

/* ---------- A fair share in figures: at Hazelton's rate, split three ways ----------
   One bar for what Stewart would get: what it gets today (navy), the tax cut (red) and
   what is left over (pale, outlined). Each part is labelled under its own length from
   tablets up; phones list the three under the bar. */
.ff-head { align-items: flex-end; }
.ff-head .end-kicker { margin-bottom: var(--kick-gap); }
.ff-fig { margin: 0; }
.ff-bar { display: grid; grid-template-columns: var(--cols); gap: 4px; height: clamp(44px, 4vw + 16px, 64px); }
.ff-bar i { border-radius: 10px; }
.ff-now { --c: var(--ink); }
.ff-cut { --c: var(--red); }
.ff-bar .ff-now { background: var(--ink); }
.ff-bar .ff-cut { background: var(--red); }
.ff-bar .ff-left { background: rgb(27 43 58 / 0.08); box-shadow: inset 0 0 0 1.5px rgb(27 43 58 / 0.32); }
.ff-keys { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
.ff-keys li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 0.75rem; align-items: baseline; }
.ff-keys li::before { content: ''; grid-row: span 2; width: 12px; height: 12px; border-radius: 3px; background: var(--c, rgb(27 43 58 / 0.08)); translate: 0 1px; }
.ff-keys .ff-left::before { box-shadow: inset 0 0 0 1.5px rgb(27 43 58 / 0.32); }
.ff-keys b { font-size: clamp(1.625rem, 1vw + 1.25rem, 2.25rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ff-keys .ff-cut b { color: var(--red-ink); }
.ff-keys span { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.ff-fine { margin-top: 1.5rem; max-width: 48rem; }
@media (min-width: 34.01rem) and (max-width: 59.99rem) {
  .ff-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .ff-head { margin-bottom: 1.25rem; }
  .ff-head .end-h2 { font-size: 1.5rem; }
  .ff-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .ff-keys li { grid-template-columns: 10px minmax(0, 1fr); column-gap: 0.4rem; }
  .ff-keys li::before { grid-row: 1; width: 10px; height: 10px; }
  .ff-keys b { font-size: 1.125rem; letter-spacing: -0.01em; font-weight: 400; }
  .ff-keys span { grid-column: 1 / -1; font-size: 0.75rem; line-height: 1.35; }
  .ff-fine { margin-top: 1.125rem; }
}
@media (min-width: 60rem) {
  .ff-bar { grid-template-columns: var(--cols-wide); }
  .ff-keys { grid-template-columns: var(--cols-wide); gap: 4px; margin-top: 0.875rem; }
  .ff-keys li { display: block; padding: 0.5rem 0.75rem 0 0; }
  .ff-keys li::before { display: none; }
  .ff-keys li:not(:first-child) { padding-left: 0.875rem; border-left: 1px solid var(--rule); }
  .ff-keys b { font-size: clamp(1.625rem, 0.8vw + 1.2rem, 2.125rem); }
  .ff-keys span { display: block; max-width: 17rem; }
}

/* ---------- 2 and 3. What Stewart carries, and a fair share ---------- */
.end-cards { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.end-card { display: flex; flex-direction: column; padding: 1.375rem 1.25rem 1.5rem; border-radius: 26px; }
.end-card .card-h { margin-bottom: 1.25rem; }
/* Open in Stewart: why it makes sense, the words straight under the heading */
.why-cards .card-h { margin-bottom: 0.75rem; }
.why-cards .card-p { margin: 0; font-size: 1rem; }
@media (min-width: 48rem) {
  .end-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
  .end-card { padding: 1.625rem 1.5rem; }
  .why-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .end-card > .load-fig, .end-card > .deal-chips { display: flex; flex-direction: column; justify-content: center; min-height: 8.25rem; }
}
.load-bar { display: flex; gap: 4px; height: 44px; }
.load-bar > span { display: grid; place-items: center; border-radius: 10px; font-size: 0.9375rem; font-weight: 500; text-align: center; }
.lb-pay { flex: 1 1 0; background: var(--ink); color: #fff; }
.lb-off { flex: 3.6 1 0; padding-inline: 0.5rem; border: 1.5px dashed rgb(163 11 63 / 0.75); background: rgb(163 11 63 / 0.06); color: var(--red-ink); }
.load-fig p { display: flex; justify-content: space-between; gap: 0.625rem; margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.3; color: var(--muted); }
.load-fig p span + span { text-align: end; }
.deal-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.deal-chips li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem 0.5rem 0.5rem; border-radius: 12px; background: rgb(255 255 255 / 0.72); box-shadow: 0 0 0 1px rgb(27 43 58 / 0.08); font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.deal-chips .ci { width: 30px; height: 30px; background: rgb(27 43 58 / 0.07); }
.deal-chips .ci svg { width: 17px; height: 17px; }

/* ---------- How a fair share comes back: in, pays the work, frees the reserves, back to you ---------- */
.flow3 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.f-label { margin: 0 0 0.5rem; font-size: 0.78125rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.f-back .f-label { color: var(--red-ink); }
.f-conn { display: none; }
.f-conn path { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-down { display: block; width: 20px; height: 34px; margin: 6px auto; }
.f-down path { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-src { gap: 8px; }
.f-src li { min-height: 54px; padding: 0 0.875rem 0 0.625rem; border-radius: 14px; background: rgb(255 255 255 / 0.75); }
.f-src .ci { width: 32px; height: 32px; }
.f-node { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; min-height: 150px; padding: 1.125rem; border-radius: 20px; }
.f-node .ci { width: 40px; height: 40px; background: rgb(255 255 255 / 0.9); box-shadow: 0 0 0 1px rgb(27 43 58 / 0.12); }
.f-node .ci svg { width: 19px; height: 19px; }
.f-node b { font-size: 1rem; font-weight: 500; line-height: 1.2; }
.f-node > span:last-child { font-size: 0.84375rem; line-height: 1.4; color: var(--muted); }
.f-outs { display: flex; flex-direction: column; gap: 0.625rem; }
.f-out { display: flex; align-items: center; gap: 0.875rem; min-height: 84px; padding: 0.75rem 1.125rem; border-radius: 20px; background: var(--red); color: rgb(255 255 255 / 0.9); box-shadow: 0 20px 40px -26px rgb(191 18 78 / 0.7); }
.f-out .ci { width: 42px; height: 42px; background: rgb(255 255 255 / 0.18); color: #fff; }
.f-out .ci svg { width: 20px; height: 20px; }
.f-out > span:last-child { display: flex; flex-direction: column; gap: 3px; font-size: 0.84375rem; line-height: 1.35; }
.f-out b { font-size: 1.0625rem; font-weight: 500; color: #fff; }
@media (min-width: 60rem) {
  .flow3 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 64px minmax(0, 1fr) 48px minmax(0, 1fr) 64px minmax(0, 1.25fr);
    grid-template-rows: 15rem auto;   /* the connectors are drawn for a 240px row */
  }
  .f-step, .f-gap { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
  .f-step > :not(.f-label) { grid-row: 1; align-self: center; }
  .f-label { grid-row: 2; margin: 0.875rem 0 0; font-size: 0.8125rem; }
  .f-conn { display: block; grid-row: 1; align-self: center; }
  .f-down { display: none; }
  .f-src { height: 100%; gap: 14px; }
  .f-src li { flex: 1 1 0; min-height: 0; }
  .f-node { height: 12.5rem; min-height: 0; }
  .f-node b { font-size: 1.0625rem; }
  .f-outs { height: 100%; gap: 14px; }
  .f-out { flex: 1 1 0; min-height: 0; padding-block: 0; }
  .f-out b { font-size: 1.125rem; }
}

/* When: the 50% reduction would start the year the Province commits to the next agreement */
.end-when { margin-top: 2.5rem; }
.end-when h3 { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.015em; }
.ew-rule { margin: 0.5rem 0 1.375rem; font-size: 1.03rem; font-weight: 500; line-height: 1.4; }
.end-when ol { list-style: none; margin: 0 0 0 6px; padding: 0; }
.end-when li { position: relative; padding: 0 0 1.5rem 1.625rem; border-left: 3px solid rgb(27 43 58 / 0.15); }
.end-when li.is-on { border-left-color: var(--red); }
.end-when li:last-child { padding-bottom: 0; border-left-color: transparent; }
.end-when li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px rgb(27 43 58 / 0.3); }
.end-when li.is-on::before { background: var(--red); box-shadow: none; }
.end-when b { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.1; }
.end-when li > span { display: block; margin-top: 0.3125rem; font-size: 0.90625rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 48rem) {
  .end-when { margin-top: 4rem; }
  .end-when h3 { font-size: 1.625rem; }
  .ew-rule { margin: 0.5rem 0 1.875rem; font-size: 1.125rem; }
  .end-when ol { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 0.8fr; margin: 0; }
  .end-when li, .end-when li:last-child { padding: 1.375rem 1.75rem 0 0; border-left: 0; border-top: 3px solid rgb(27 43 58 / 0.15); }
  .end-when li.is-on { border-top-color: var(--red); }
  .end-when li::before { left: 0; top: -8px; }
  .end-when b { font-size: 1.3125rem; line-height: 1.3; }
  .end-when li > span { margin-top: 0.375rem; font-size: 0.9375rem; }
}

/* ---------- What you'd save ---------- */
/* The heading: where, then the claim with its condition in a quieter navy, one sentence */
.save-head .end-kicker { margin: 0 0 var(--kick-gap); }
.save-head .end-h2 { margin: 0; max-width: 60rem; font-size: clamp(1.875rem, 1.6vw + 1.2rem, 2.875rem); line-height: 1.1; letter-spacing: -0.025em; }
.h-if { display: block; color: var(--graphite); }
.save-grid { margin-top: 1.75rem; }
.save-fig { display: flex; flex-direction: column; }
.save-fig .cs-numbers { flex-wrap: nowrap; gap: 0.75rem; }
.save-fig .cs-n { min-width: 0; }
.save-fig .cs-n b { font-size: clamp(3.375rem, 4vw + 1.5rem, 5.25rem); }
.save-fig .cs-n span { margin-top: 0.625rem; font-size: 0.8125rem; }
.save-fig .cs-numbers { align-items: flex-start; }
.save-fig .cs-arrow { align-self: flex-start; margin-top: 0.875rem; padding: 0; }
.save-fig .cs-arrow svg { width: 24px; height: 24px; }
.save-chart { margin: 2.125rem 0 0; }
.save-bars, .save-brk { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); column-gap: 7px; }
.save-bars { list-style: none; margin: 0; padding: 0; }
.save-bars li { display: flex; flex-direction: column; min-width: 0; }
.sb-plot { position: relative; display: block; height: 190px; border-bottom: 1px solid rgb(27 43 58 / 0.2); }
.sb-plot > * { position: absolute; font-style: normal; font-variant-numeric: tabular-nums; }
.sb-pay { inset-inline: 8%; bottom: 0; height: var(--h); border-radius: 7px 7px 0 0; background: var(--ink); }
.sb-plot em { inset-inline: -8px; bottom: calc(var(--h) + 6px); font-size: 0.65625rem; text-align: center; white-space: nowrap; color: var(--muted); }
.sb-off { inset-inline: 8%; bottom: var(--h); height: var(--h); display: grid; place-items: center; border: 1.5px dashed rgb(163 11 63 / 0.7); border-bottom: 0; border-radius: 7px 7px 0 0; background: rgb(163 11 63 / 0.05); font-size: 0.65625rem; font-weight: 600; color: var(--red-ink); }
.sb-half { inset-inline: 8%; bottom: 0; height: var(--h); display: flex; justify-content: center; padding-top: 0.5rem; border-radius: 7px 7px 0 0; background: var(--red); font-size: 0.65625rem; font-weight: 600; color: #fff; }
.sb-y { padding-top: 0.5625rem; font-size: 0.71875rem; text-align: center; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.is-cs .sb-y { font-weight: 600; color: var(--red-ink); }
.save-brk { margin-top: 8px; }
.save-brk span { grid-column: -3 / -1; grid-row: 1; height: 8px; border: 1.5px solid var(--red); border-top: 0; border-radius: 0 0 6px 6px; }
.save-brk em { grid-column: 1 / -1; grid-row: 2; margin-top: 7px; font-size: 0.75rem; font-style: normal; font-weight: 500; text-align: end; color: var(--red-ink); }
.save-fig .hh-fine { margin-top: 0.875rem; max-width: 40rem; font-size: 0.8125rem; }
.save-note-sm, .op-key.op-key-sm { display: none; }
.save-q { margin-top: 2.25rem; display: flex; flex-direction: column; }
.save-q .hq > legend, .street-q .hq > legend { margin-block-end: 0.875rem; font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 60rem) {
  .save-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 7vw - 1rem, 6.25rem); align-items: start; margin-top: 3rem; }
  .save-fig .cs-numbers { gap: 1.125rem; }
  .save-fig .cs-n span { font-size: 0.9375rem; }
  .save-fig .cs-arrow { margin-top: 1.5625rem; }
  .save-fig .cs-arrow svg { width: 30px; height: 30px; }
  .save-chart { margin-top: 2.75rem; }
  .save-bars, .save-brk { column-gap: 14px; }
  .sb-plot { height: 300px; }
  .sb-plot em, .sb-off, .sb-half { font-size: 0.8125rem; }
  .sb-y { font-size: 0.875rem; }
  .save-brk em { font-size: 0.8125rem; }
  .save-fig .hh-fine { margin-top: 1.125rem; font-size: 0.875rem; }
  .save-q { margin-top: 0; align-self: center; }
}

/* ---------- Open in Stewart: each break drawn as tax over time ---------- */
.end-open .money-badge { margin-bottom: 1.125rem; }
.op-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.op-head .end-kicker { margin: 0; font-size: 0.75rem; }
.op-h { margin: var(--kick-gap) 0 0; font-size: clamp(2.875rem, 2.5vw + 2.2rem, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }
.op-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.8125rem; color: var(--muted); }
.op-key .k { display: inline-block; width: 18px; height: 13px; border-radius: 3px; }
.op-key .k-pay { background: var(--ink); }
.op-key .k-off { margin-inline-start: 0.75rem; border: 1.5px dashed rgb(163 11 63 / 0.75); background: rgb(163 11 63 / 0.06); }
.end-open > .end-lede { margin-top: 0.875rem; font-size: clamp(1rem, 0.4vw + 0.85rem, 1.1875rem); }
.op-list { list-style: none; margin: 1.375rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.op-row { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem 1.2rem; border-radius: 24px; }
.op-big { margin: 0.625rem 0 0; font-size: clamp(2rem, 0.8vw + 1.75rem, 2.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.035em; color: var(--red); }
.op-p { margin: 0.625rem 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }
.op-q .q > legend { margin-block-end: 0.625rem; font-size: 0.9375rem; font-weight: 500; }
.op-q .seg > .opt { font-size: 0.9375rem; }
.op-q .saved:not(:empty) { margin-top: 0.75rem; font-size: 0.875rem; }
.op-fine { margin-top: 0.625rem; max-width: 48.75rem; font-size: 0.8125rem; }
@media (min-width: 60rem) {
  .end-open .money-badge { margin-bottom: 1.375rem; }
  .op-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; }
  .op-head .end-kicker { font-size: 0.8125rem; }
  .op-key { margin-bottom: 0.5rem; }
  .end-open > .end-lede { margin-top: 1.125rem; }
  .op-list { margin-top: 2.125rem; gap: 1rem; }
  .op-act { display: contents; }
  .op-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 4vw - 0.5rem, 3.25rem); align-items: center; padding: 1.75rem 2.25rem; border-radius: 28px; }
  .op-q .seg > .opt { font-size: 1rem; }
  .op-fine { margin-top: 0.75rem; font-size: 0.875rem; }
}

/* the small charts: solid is District tax paid, dashed red is what the break takes off */
.mini { --mini-h: 124px; --mf: 0.71875rem; }
.m-cols, .m-brks { display: grid; column-gap: 6px; }
.m-cols { list-style: none; margin: 0; padding: 0; }
.m-cols li { display: flex; flex-direction: column; min-width: 0; }
.m-plot { position: relative; display: block; height: var(--mini-h); border-bottom: 1px solid rgb(27 43 58 / 0.2); }
.m-plot i { position: absolute; inset-inline: 9%; display: grid; place-items: center; font-size: calc(var(--mf) - 1px); font-style: normal; font-weight: 600; white-space: nowrap; }
.m-plot i.is-top { border-radius: 6px 6px 0 0; }
.m-pay { background: var(--ink); }
.m-pay.is-stacked { box-shadow: inset 0 1.5px 0 rgb(255 255 255 / 0.45); }
.m-off { border: 1.5px dashed rgb(163 11 63 / 0.75); background: rgb(163 11 63 / 0.07); color: var(--red-ink); }
.m-off.is-stacked { border-bottom: 0; }
.m-x { padding-top: 6px; font-size: var(--mf); text-align: center; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-x.is-red { font-weight: 600; color: var(--red-ink); }
.m-brks { margin-top: 8px; }
.m-brk { display: flex; flex-direction: column; gap: 6px; font-size: var(--mf); font-weight: 500; line-height: 1.3; text-align: center; color: var(--red-ink); }
.m-brk i { display: block; height: 7px; border: 1.5px solid var(--red); border-top: 0; border-radius: 0 0 6px 6px; }
.m-brk.is-grey { color: var(--muted); }
.m-brk.is-grey i { border-color: rgb(27 43 58 / 0.35); }
@media (min-width: 60rem) { .mini { --mini-h: 150px; --mf: 0.78125rem; } }

/* ---------- Why residents should share in it ---------- */
.fair-say { margin: 0.75rem 0 0; max-width: 51.25rem; font-size: clamp(1.25rem, 0.8vw + 0.95rem, 1.625rem); font-weight: 300; line-height: 1.33; letter-spacing: -0.01em; }
.loop { position: relative; list-style: none; margin: 1.875rem 0 0; padding: 0 2.5rem 0 0; display: flex; flex-direction: column; gap: 1.375rem; }
.loop li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 0.875rem; align-items: start; }
.loop .ci { grid-row: span 2; width: 46px; height: 46px; background: rgb(255 255 255 / 0.85); box-shadow: 0 0 0 1px rgb(27 43 58 / 0.12); }
.loop .ci svg { width: 20px; height: 20px; }
.loop .is-hot .ci { background: var(--red); box-shadow: none; color: #fff; }
.loop b { padding-top: 2px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.loop li > span:last-child { font-size: 0.90625rem; line-height: 1.4; color: var(--muted); }
/* the way back round, on the right: from the last step up to the first */
.loop::after { content: ''; position: absolute; right: 0; top: 22px; bottom: 22px; width: 28px; border: 1.6px dashed var(--graphite); border-left: 0; border-radius: 0 10px 10px 0; }
.loop::before { content: ''; position: absolute; right: 22px; top: 17px; width: 8px; height: 12px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M7 1 2 6l5 5' fill='none' stroke='%23516478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.loop-back { margin: 0.625rem 0 0; font-size: 0.8125rem; text-align: end; color: var(--muted); }
@media (min-width: 60rem) {
  .loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5.5rem; margin-top: 3rem; padding: 0; }
  .loop::before, .loop::after { content: none; }
  .loop li { position: relative; display: flex; flex-direction: column; gap: 0.625rem; }
  .loop .ci { width: 52px; height: 52px; }
  .loop .ci svg { width: 22px; height: 22px; }
  .loop b { padding: 0; font-size: 1.1875rem; }
  .loop li > span:last-child { font-size: 0.9375rem; line-height: 1.45; }
  .loop li + li::before { content: ''; position: absolute; left: calc(-2.75rem - 10px); top: 16px; width: 20px; height: 20px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23516478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h13M11 4.5 16.5 10 11 15.5'/%3E%3C/svg%3E"); }
  /* a dashed U from under the last step back to the first, with an arrow up */
  .loop-back { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 5.5rem; height: 3.375rem; margin: 1.125rem 0 0; text-align: center; }
  .loop-back::before { content: ''; grid-column: 1 / 4; grid-row: 1; margin: 8px calc(-5.5rem - 26px) 0 26px; height: 36px; border: 1.6px dashed var(--graphite); border-top: 0; border-radius: 0 0 14px 14px; }
  .loop-back::after { content: ''; grid-column: 1; grid-row: 1; justify-self: start; margin-left: 19px; width: 14px; height: 10px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 9 7 2l6 7' fill='none' stroke='%23516478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .loop-back span { grid-column: 1 / 4; grid-row: 1; align-self: start; margin: 14px calc(-5.5rem - 26px) 0 26px; }
}

/* ---------- Your street ---------- */
/* one column: the picture, what was found, the ways to look further, then the question.
   On a computer the question sits beside the picture, and what was found and the
   buttons share the line under both. */
.street-grid { display: flex; flex-direction: column; margin-top: 1.5rem; }
.street-visual .ba { max-width: none; }
.street-visual .ba-frame { border-radius: 18px; }
.street-foot { display: contents; }
.street-facts { order: 1; margin-top: 1.375rem; }
.street-foot .street-go { order: 2; }
.street-q { order: 3; }
.street-tally { flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.street-tally li { gap: 0.5rem; font-size: 0.9375rem; }
.street-tally li::before { width: 10px; height: 10px; }
.street-tally b { font-size: clamp(2.5rem, 1.6vw + 1.9rem, 3.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.street-found { margin: 0.625rem 0 0; font-size: 0.875rem; color: var(--muted); }
.street-q { margin-top: 2.5rem; }
.street-q .ba-reply { margin-top: 0.375rem; font-size: 1.0625rem; }
.end-page .streets-sec { margin: clamp(4rem, 5vw + 2rem, 8rem) 0 0; }
.end-page .streets-sec + .streets-sec { margin-top: clamp(3.25rem, 2vw + 2.5rem, 4.5rem); }
.end-page .streets-sec h2.is-sec { margin: 0 0 1.25rem; }
.end-page .streets-sec .worst-grid { margin: 0; }
.end-page .streets-sec .launch { margin-top: 0; }
@media (min-width: 60rem) {
  .street-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'visual q' 'foot foot'; gap: 1.5rem clamp(3rem, 5vw, 4.5rem); align-items: start; margin-top: 3rem; }
  .street-visual { grid-area: visual; }
  .street-visual .ba-frame { border-radius: 26px; }
  .street-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
  .street-facts { margin-top: 0; }
  .street-foot .street-go { margin: 0 0 0 auto; }
  .street-tally li { font-size: 1rem; }
  .street-found { font-size: 0.9375rem; }
  .street-q { grid-area: q; margin-top: 0; }
  .street-q .ba-reply { margin-top: 0.5rem; font-size: 1.125rem; }
  .end-page .streets-sec h2.is-sec { margin-bottom: 1.75rem; }
  .end-page .streets-sec .worst-grid { gap: 1.375rem 0.875rem; }
  .end-page .streets-sec .worst-grid figcaption { font-size: 0.84375rem; }
}

/* ---------- Thank you ---------- */
/* The hero: the thanks on the left and "When will you vote?" top right (phones: under the
   thanks). Then everything they told me, in two columns where there is room. */
.ty-hero { display: grid; gap: 1.75rem; align-items: start; }
.ty-intro .sum-sent { margin: 0 0 1rem; }
.ty-lede { margin: 1.25rem 0 0; max-width: 34rem; font-size: clamp(1.03rem, 0.5vw + 0.85rem, 1.25rem); line-height: 1.5; color: var(--muted); }
.ty-lede a { color: var(--ink); }
.ty-h { margin: 3rem 0 0; font-size: clamp(1.6rem, 1.5vw + 1rem, 2.25rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 60rem) {
  .ty-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); }
  .ty-intro { padding-top: 1.75rem; }
  .ty-h { margin-top: 4rem; }
}

/* When will you vote? Two days to pick, then a calendar file or a text reminder */
.vote-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem 1.375rem; border-radius: 26px; }
.vote-card h2 { margin: 0; font-size: clamp(1.5rem, 1vw + 1.1rem, 1.9rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; }
.vote-sub { margin: -0.375rem 0 0; font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.vote-days { display: grid; gap: 0.5rem; }
.vote-day { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 0.625rem 0.875rem 0.625rem 0.625rem; border-radius: 18px; cursor: pointer; background: rgb(255 255 255 / 0.5); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 0 0 1px rgb(27 43 58 / 0.1); transition: background-color 0.2s, box-shadow 0.2s; }
.vote-day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vote-day .date-tile { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 60px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ink); line-height: 1; color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.vote-day .date-tile small { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; }
.vote-day .date-tile b { margin: 3px 0; font-size: 1.3rem; font-weight: 400; }
.vd-t { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; line-height: 1.3; color: var(--muted); }
.vd-t b { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
@media (hover: hover) { .vote-day:hover { background: rgb(255 255 255 / 0.75); } }
.vote-day:has(input:checked) { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 12px 26px -16px rgb(20 40 60 / 0.5); }
.vote-day:has(input:checked) .date-tile { background: var(--ink); color: #fff; }
.vote-day:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.vote-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.vote-card .btn-go[disabled] { opacity: 0.4; cursor: not-allowed; }
.vote-msg { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.vote-msg strong { color: var(--ink); }
.vote-msg:empty { display: none; }
.vote-text { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.vote-text label { font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
.vote-text-row { display: flex; gap: 0.5rem; }
.vote-text-row input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1.1rem; font: inherit; font-size: 1rem; color: var(--ink); border: 1px solid rgb(27 43 58 / 0.2); border-radius: 999px; background: rgb(255 255 255 / 0.85); }
.vote-text-row input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.vote-text-row input[disabled] { opacity: 0.55; }
.vote-text-row .btn-go { flex: none; min-height: 52px; }
.vote-mail { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 60rem) { .vote-card { padding: 1.75rem 1.75rem 1.5rem; } }

/* Everything they told me: two columns on wide screens, each card its own height; one
   column on phones, in the order the survey asked (priorities, For everyone, the
   questions on each priority, the town, their words, their street) */
.sum-sent { display: flex; align-items: center; gap: 0.625rem; font-size: clamp(0.96875rem, 0.35vw + 0.85rem, 1.125rem); color: var(--muted); }
.sum-sent .saved-tick { width: 22px; height: 22px; }
.sum-cols { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.sum-col { display: contents; }
.sum-pri { order: 1; }
.sum-dec { order: 2; }
.sum-picks { order: 3; }
.sum-town { order: 4; }
.sum-words { order: 5; }
.sum-street { order: 6; }
.sum-card { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; padding: 1.375rem 1.25rem 1.5rem; border-radius: 26px; }
.sum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.sum-head h2 { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sum-head a { font-size: 0.9rem; }
.sum-none { margin: 0; font-size: 1rem; color: var(--muted); }
/* priorities */
.sum-pri { gap: 1.5rem; }
.sum-ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.sum-ranks li { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 1.0625rem; }
.sum-ranks .n { display: grid; place-items: center; flex: none; width: 40px; height: 30px; font-size: 1.0625rem; font-weight: 500; color: var(--muted); }
.sum-ranks li.is-one { align-items: flex-start; padding-top: 0; border-top: 0; font-size: 1.625rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.sum-ranks li.is-one .n { height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.125rem; letter-spacing: 0; }
/* the questions on each priority */
.sum-picks { gap: 0.5rem; padding-bottom: 0.75rem; }
.sum-blocks { list-style: none; margin: 0; padding: 0; }
.sum-blocks > li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.sb-p { display: flex; align-items: center; gap: 0.625rem; margin: 0 0 0.625rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.sb-p .n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; }
.sum-blocks dl { display: grid; gap: 0.75rem; margin: 0; padding-left: calc(26px + 0.625rem); }
.sum-blocks dt { font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.sum-blocks dd { margin: 3px 0 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.sum-blocks dd.is-none { color: var(--muted); }
.sb-rank { margin: 0; padding-left: 1.25rem; }
.sb-rank li + li { margin-top: 2px; }
.sb-rank li::marker { font-weight: 500; color: var(--muted); }
/* in their own words */
.sum-words { gap: 1.375rem; }
.sum-q { margin: 0; font-size: 0.875rem; color: var(--muted); }
/* a second written answer (what they love, then what they'd change) sits a little apart */
.sum-words blockquote + .sum-q { margin-top: 0.5rem; }
.sum-words blockquote { position: relative; margin: 0; padding-left: 1.625rem; font-size: 1.5625rem; font-weight: 300; line-height: 1.18; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sum-words blockquote.is-long { font-size: 1.125rem; line-height: 1.4; letter-spacing: 0; }
.sum-words blockquote > span { position: absolute; left: 0; top: -4px; font-size: 2.875rem; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--red); }
/* For everyone */
.sum-dec { gap: 0.5rem; padding-bottom: 0.5rem; }
.sum-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.sum-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 0.75rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.sl-n { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.sum-list li > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.sl-t { font-size: 0.875rem; color: var(--muted); }
.sl-a { font-size: 1.03125rem; line-height: 1.35; }
.sl-a.is-none, .ss-a.is-none { font-weight: 400; color: var(--muted); }
/* the town: the answer, with a small four-part scale marked when it is on it */
.sum-town { gap: 0.5rem; padding-bottom: 0.5rem; }
.sum-scales { list-style: none; margin: 0; padding: 0; }
.sum-scales li { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.ss-t { font-size: 1rem; line-height: 1.35; }
.ss-row { display: flex; align-items: center; gap: 0.75rem; }
.ss-mini { display: inline-grid; grid-template-columns: repeat(4, 16px); gap: 3px; flex: none; }
.ss-mini i { height: 8px; border-radius: 4px; background: rgb(27 43 58 / 0.14); }
.ss-mini i.is-on { background: var(--ink); }
.ss-a { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
/* your street */
.ss-top { display: flex; align-items: center; gap: 1.25rem; }
.ss-img { flex: none; width: 120px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.ss-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; min-width: 0; }
.st-title { margin: 0; font-size: 1.0625rem; font-weight: 500; }
/* answer chips */
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--ink); }
.chip svg { width: 12px; height: 12px; flex: none; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-yes { background: var(--ink); color: #fff; }
.chip-unsure { box-shadow: inset 0 0 0 1.5px rgb(27 43 58 / 0.3); }
.chip-other { background: rgb(27 43 58 / 0.08); }
.chip-none { font-weight: 400; color: var(--muted); box-shadow: inset 0 0 0 1px rgb(27 43 58 / 0.16); }
.sum-street .chip { white-space: normal; }
/* the foot: what is published, and the ways back */
.sum-foot { margin-top: 1.875rem; }
.sum-foot > p { margin: 0; max-width: 45rem; font-size: 0.9375rem; line-height: 1.5; }
.sum-actions { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1.375rem; }
.sum-actions .link-line { margin: 0; font-size: 0.9375rem; }
.sum-actions .btn-primary, .sum-actions .btn-secondary { width: 100%; min-height: 52px; }
@media (min-width: 60rem) {
  .sum-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; align-items: start; margin-top: 1.75rem; }
  .sum-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
  .sum-card { padding: 1.75rem 1.875rem 1.875rem; }
  .sum-picks, .sum-dec, .sum-town { padding-bottom: 0.875rem; }
  .sum-words { padding-inline: 2.125rem; }
  .sum-ranks .n { width: 46px; }
  .sum-ranks li { font-size: 1.1875rem; }
  .sum-ranks li.is-one { font-size: 2rem; }
  .sum-ranks li.is-one .n { height: 46px; font-size: 1.25rem; }
  .sum-words blockquote { padding-left: 2.125rem; font-size: 2.125rem; }
  .sum-words blockquote.is-long { font-size: 1.3125rem; }
  .sum-words blockquote > span { font-size: 3.75rem; }
  .sl-a { font-size: 1.0625rem; }
  .ss-t { font-size: 1.0625rem; }
  .st-title { font-size: 1.1875rem; }
  .ss-img { width: 150px; }
  .sum-foot { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2.75rem; }
  .sum-foot > p { font-size: 1rem; }
  .sum-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 0; }
  .sum-actions .btn-primary, .sum-actions .btn-secondary { width: auto; min-height: 50px; }
  .sum-actions .link-line { max-width: 22rem; }
}

/* ---------- The button fixed to the foot of the window ---------- */
/* As on the letter page: a band of the page's own backdrop at the bottom of the window,
   the page fading into it above, and the button in the band. The button sits low (40px up
   on computers, 30px on phones) and the band stops just above it, so the fade starts near
   the bottom of the window (computers: band 112px, fade 72px; phones 96 and 56; plus the
   phone's home bar). It stays to the end of the page, which leaves room so the footer
   scrolls clear of it. */
body.has-dock { --band: calc(112px + env(safe-area-inset-bottom, 0px)); --bf: 72px; --dock-btn: 40px; }
@media (max-width: 34rem) { body.has-dock { --band: calc(96px + env(safe-area-inset-bottom, 0px)); --bf: 56px; --dock-btn: 30px; } }
/* shorter windows (most laptops): a slimmer band, so more of each screen is the page */
@media (min-width: 34.01rem) and (max-height: 860px) { body.has-dock { --band: calc(92px + env(safe-area-inset-bottom, 0px)); --bf: 48px; --dock-btn: 26px; } }
@media (max-width: 34rem) and (max-height: 720px) { body.has-dock { --band: calc(84px + env(safe-area-inset-bottom, 0px)); --bf: 44px; --dock-btn: 24px; } }
body.has-dock .site-footer { padding-top: 2.5rem; padding-bottom: calc(var(--band) + var(--bf) + 0.25rem); }
.float-dock[hidden] { display: none; }
.dock-fade {
  --fh: calc(var(--band) + var(--bf));
  --off: calc(var(--fh) - 100dvh);
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  height: var(--fh);
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgb(163 194 217 / 0) calc(100% - 52px), rgb(163 194 217 / 0.35) calc(100% - 28px), var(--edge-bottom) 100%),
    linear-gradient(to top, rgb(40 150 220 / 0.32) 0%, rgb(40 150 220 / 0.12) 28%, transparent 55%),
    radial-gradient(70rem 45rem at 100% 100%, rgb(163 11 63 / 0.06), transparent 70%),
    radial-gradient(60rem 40rem at 0% 0%, rgb(160 205 215 / 0.06), transparent 70%),
    linear-gradient(to bottom, rgb(251 252 252 / 0.56) 0%, rgb(251 252 252 / 0.56) 12%, rgb(251 252 252 / 0.8) 26%, rgb(251 252 252 / 0.78) 58%, rgb(251 252 252 / 0.3) 100%),
    var(--backdrop-photo);
  background-size: 100% 100%, 100% 100vh, 100% 100vh, 100% 100vh, 100% 100vh, max(100%, calc(100vh * 1.3159)) auto;
  background-position: 0 0, 0 var(--off), 0 var(--off), 0 var(--off), 0 var(--off), center var(--off);
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to top,
    #000 0, #000 var(--band),
    rgb(0 0 0 / 0.99) calc(var(--band) + var(--bf) * 0.099), rgb(0 0 0 / 0.96) calc(var(--band) + var(--bf) * 0.195),
    rgb(0 0 0 / 0.92) calc(var(--band) + var(--bf) * 0.287), rgb(0 0 0 / 0.88) calc(var(--band) + var(--bf) * 0.374),
    rgb(0 0 0 / 0.82) calc(var(--band) + var(--bf) * 0.457), rgb(0 0 0 / 0.75) calc(var(--band) + var(--bf) * 0.536),
    rgb(0 0 0 / 0.67) calc(var(--band) + var(--bf) * 0.611), rgb(0 0 0 / 0.58) calc(var(--band) + var(--bf) * 0.683),
    rgb(0 0 0 / 0.48) calc(var(--band) + var(--bf) * 0.751), rgb(0 0 0 / 0.38) calc(var(--band) + var(--bf) * 0.815),
    rgb(0 0 0 / 0.27) calc(var(--band) + var(--bf) * 0.876), rgb(0 0 0 / 0.17) calc(var(--band) + var(--bf) * 0.932),
    transparent 100%);
  mask-image: linear-gradient(to top,
    #000 0, #000 var(--band),
    rgb(0 0 0 / 0.99) calc(var(--band) + var(--bf) * 0.099), rgb(0 0 0 / 0.96) calc(var(--band) + var(--bf) * 0.195),
    rgb(0 0 0 / 0.92) calc(var(--band) + var(--bf) * 0.287), rgb(0 0 0 / 0.88) calc(var(--band) + var(--bf) * 0.374),
    rgb(0 0 0 / 0.82) calc(var(--band) + var(--bf) * 0.457), rgb(0 0 0 / 0.75) calc(var(--band) + var(--bf) * 0.536),
    rgb(0 0 0 / 0.67) calc(var(--band) + var(--bf) * 0.611), rgb(0 0 0 / 0.58) calc(var(--band) + var(--bf) * 0.683),
    rgb(0 0 0 / 0.48) calc(var(--band) + var(--bf) * 0.751), rgb(0 0 0 / 0.38) calc(var(--band) + var(--bf) * 0.815),
    rgb(0 0 0 / 0.27) calc(var(--band) + var(--bf) * 0.876), rgb(0 0 0 / 0.17) calc(var(--band) + var(--bf) * 0.932),
    transparent 100%);
}
/* Phones and tablets: a frosted veil instead of the copy of the valley. It blurs whatever
   is behind it at that moment, so it has nothing to line up. On iPhone the band rides up
   and down with Safari's toolbar, and Safari only updates 100dvh once the toolbar has
   stopped moving: the copy slid with the band, then jumped back into place. */
@media (hover: none) {
  .dock-fade {
    background-image:
      linear-gradient(to bottom, rgb(163 194 217 / 0) calc(100% - 52px), rgb(163 194 217 / 0.35) calc(100% - 28px), var(--edge-bottom) 100%),
      linear-gradient(to bottom, rgb(var(--band-tint) / 0.4), rgb(var(--band-tint) / 0.55));
    background-size: auto;
    background-position: 0 0;
    -webkit-backdrop-filter: blur(var(--band-blur)) saturate(1.1);
    backdrop-filter: blur(var(--band-blur)) saturate(1.1);
  }
}
.float-dock .dock-btn {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-btn) + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  z-index: 31;
  width: max-content;
  max-width: calc(100vw - 2rem);
  white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgb(20 30 40 / 0.5);
}

/* On Your tax the button starts as the home page's down arrow (no pill, no circle, drifting
   gently) and opens into Continue once the page moves (js/app.js, setDock). Until the
   Community Share is answered, Continue is greyed; a tap on it lights up the question. */
.float-dock .dock-btn .btn-label { display: inline-block; max-width: 16rem; overflow: hidden; padding-block: 0.3em; margin-block: -0.3em; vertical-align: middle; transition: max-width 0.5s var(--ease), opacity 0.35s ease 0.1s; }
.float-dock .dock-btn .disc svg { transition: rotate 0.45s var(--ease); }
.float-dock .dock-btn::before, .float-dock .dock-btn .disc { transition: opacity 0.35s ease, background-color 0.25s, color 0.25s, right 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); }
.float-dock .dock-btn.is-more { gap: 0; padding: 0.4rem; box-shadow: none; }
.float-dock .dock-btn.is-more::before { opacity: 0; }
.float-dock .dock-btn.is-more .btn-label { max-width: 0; opacity: 0; transition: none; }
.float-dock .dock-btn.is-more .disc { background: transparent; color: var(--ink); }
.float-dock .dock-btn.is-more .disc svg { rotate: 90deg; width: 48px; height: 48px; stroke-width: 1.15; }
@media (max-width: 34rem) { .float-dock .dock-btn.is-more .disc svg { width: 44px; height: 44px; stroke-width: 1.2; } }
.float-dock .dock-btn.is-opening { transition: padding 0.5s var(--ease), gap 0.5s var(--ease), box-shadow 0.4s ease; }
.float-dock .dock-btn.is-opening .disc svg { transition: rotate 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .float-dock .dock-btn.is-more .disc svg { animation: dock-more 2.2s ease-in-out 1s infinite; }
  @keyframes dock-more { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
}
.float-dock .dock-btn.is-locked:not(.is-more) { box-shadow: none; cursor: default; }
.float-dock .dock-btn.is-locked:not(.is-more)::before { background: rgb(81 100 120 / 0.38); }
.float-dock .dock-btn.is-locked:not(.is-more) .disc { background: rgb(255 255 255 / 0.85); color: rgb(81 100 120 / 0.8); }
@media (hover: hover) {
  .float-dock .dock-btn.is-more:hover::before, .float-dock .dock-btn.is-locked:not(.is-more):hover::before { right: 0; }
  .float-dock .dock-btn.is-more:hover .disc { translate: none; color: var(--teal-ink, var(--ink)); }
  .float-dock .dock-btn.is-locked:not(.is-more):hover::before { background: rgb(81 100 120 / 0.46); }
  .float-dock .dock-btn.is-locked:not(.is-more):hover .disc { translate: none; color: rgb(81 100 120 / 0.8); }
}
/* the question, lit up: a red ring that swells twice around the answers, the question red */
.hq.is-flash .opts { animation: q-flash 1.1s ease-out 2; }
.hq.is-flash > legend { color: var(--red-ink, var(--accent-ink)); transition: color 0.3s; }
@keyframes q-flash {
  0% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(35 31 32 / 0.1), 0 0 0 0 rgb(163 11 63 / 0.55); }
  60% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 2px rgb(163 11 63 / 0.9), 0 0 0 10px rgb(163 11 63 / 0); }
  100% { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(35 31 32 / 0.1), 0 0 0 0 rgb(163 11 63 / 0); }
}
@media (prefers-reduced-motion: reduce) { .hq.is-flash .opts { animation: none; box-shadow: 0 0 0 2px rgb(163 11 63 / 0.9); } }

/* ---------- The street card: the map, the drive and some of the worst ----------
   Frosted pills with a navy disc, set to the right under the question. The one navy
   button on the page stays Continue. */
.street-go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.625rem; margin-top: 1.5rem; }
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 52px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.52) 60%, rgb(255 255 255 / 0.64));
  -webkit-backdrop-filter: blur(20px) saturate(1.15) brightness(1.06);
  backdrop-filter: blur(20px) saturate(1.15) brightness(1.06);
  box-shadow: inset 1.5px 1.5px 0 rgb(255 255 255 / 0.85), inset -1px -1px 0 rgb(255 255 255 / 0.35), 0 0 0 1px rgb(27 43 58 / 0.08), 0 10px 26px -18px rgb(20 40 60 / 0.5);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-glass .disc { width: 42px; height: 42px; background: var(--ink); color: #fff; }
@media (hover: hover) {
  .btn-glass:hover { background: #fff; box-shadow: 0 0 0 1px rgb(27 43 58 / 0.1), 0 14px 30px -18px rgb(20 40 60 / 0.55); }
  .btn-glass:hover .disc { translate: 4px 0; background: var(--accent); }
}
@media (max-width: 34rem) {
  .street-go { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; margin-top: 1.125rem; gap: 0.5rem; }
  .btn-glass { justify-content: space-between; min-height: 48px; font-size: 0.9375rem; }
  .btn-glass .disc { width: 38px; height: 38px; }
}

/* Some of the worst around town: a window of the road survey's close-ups */
.reply-dlg.worst-dlg { width: min(60rem, calc(100% - 4rem)); padding: 2rem 2.25rem 2.25rem; }
.worst-dlg .end-kicker { margin: 0 0 0.625rem; padding-right: 3rem; }
.worst-dlg-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.worst-dlg-grid figure { margin: 0; }
.worst-dlg-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--line); }
.worst-dlg-grid figcaption { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.35; color: var(--muted); }
.worst-dlg-grid figcaption b { display: block; font-weight: 500; color: var(--ink); }
@media (max-width: 40rem) {
  .reply-dlg.worst-dlg { width: min(60rem, calc(100% - 2rem)); padding: 1.5rem 1.125rem 1.5rem; }
  .worst-dlg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.625rem; }
  .worst-dlg-grid figcaption { font-size: 0.8125rem; }
}

/* ---------- The next card fading in (js/app.js enterPage) ----------
   No cross-fade: the new page, and the button at the foot, fade up on their own, already
   laid out (after the last card has faded out, survey.css .page-leave). Only the opacity
   changes, so nothing moves while the screens are measured. */
@keyframes page-enter { from { opacity: 0; } }
.page-enter { animation: page-enter 0.4s ease-out both; }
@media (prefers-reduced-motion: reduce) { .page-enter { animation: none; } }
.float-dock .dock-btn { view-transition-name: dock; }

/* ---------- Screen to screen ----------
   As a screen rises into the window its parts fade up into place, tied to the scroll, so
   snapping from one screen to the next reads as one movement rather than a jump. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .snap-y .end-page [data-a]:not([data-a] [data-a]) { animation: part-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* The first row of each screen only fades: it is what the screen snaps to, and a part still
   rising would move the place it snaps to. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .snap-y .end-page [data-a].snap-lead:not([data-a] [data-a]) { animation-name: part-fade; }
  }
}
@keyframes part-in { from { opacity: 0; translate: 0 28px; } }
@keyframes part-fade { from { opacity: 0; } }
html.snap-measure .end-page [data-a] { animation: none !important; }

/* ---------- The name in the header: where to go (js/app.js openHomeDlg) ---------- */
.home-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.home-go [hidden] { display: none; }
@media (max-width: 34rem) {
  .home-go { flex-direction: column; align-items: stretch; }
  .home-go .btn-go { justify-content: space-between; }
}

/* ---------- Request a personal response ---------- */
.reply-dlg {
  width: min(35rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 2.125rem 2.25rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fafb, #eef3f6);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgb(10 20 30 / 0.6);
}
.reply-dlg::backdrop { background: rgb(16 24 32 / 0.46); }
.reply-dlg[open] { animation: reply-in 0.28s var(--ease); }
@keyframes reply-in { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .reply-dlg[open] { animation: none; } }
.reply-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgb(27 43 58 / 0.07); color: var(--ink); cursor: pointer; }
.reply-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) { .reply-x:hover { background: rgb(27 43 58 / 0.13); } }
.reply-dlg h2 { display: flex; align-items: center; gap: 0.625rem; margin: 0; padding-right: 3rem; font-size: clamp(1.625rem, 1vw + 1.3rem, 1.875rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.reply-dlg h2 .saved-tick { width: 26px; height: 26px; background-size: 15px; }
.reply-dlg h2:focus { outline: none; }
.reply-updates { margin-top: 0.75rem; } /* In person: campaign updates by email, under the email */
/* The form scrolls without a scroll bar when a short window can't hold it all */
.reply-dlg { scrollbar-width: none; }
.reply-dlg::-webkit-scrollbar { display: none; }
/* In person: the email and the updates tick come in once the phone number is complete */
.reply-dlg [data-after-phone].is-in { animation: reply-reveal 0.4s var(--ease) both; }
@keyframes reply-reveal { from { opacity: 0; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .reply-dlg [data-after-phone].is-in { animation: none; } }
.reply-lede { margin: 0.625rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--muted); }
.reply-form { margin: 0; }
.reply-via { margin: 1.375rem 0 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
.via-opt { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 60px; padding: 0 1rem; border-radius: 18px; background: rgb(255 255 255 / 0.6); box-shadow: 0 0 0 1px rgb(27 43 58 / 0.14); font-size: 1.0625rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
.via-opt input, .time-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.via-opt .ci { width: 36px; height: 36px; background: rgb(27 43 58 / 0.07); transition: background-color 0.2s, color 0.2s; }
.via-opt .ci svg { width: 18px; height: 18px; }
.via-opt:has(input:checked) { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 10px 24px -14px rgb(20 30 40 / 0.45); }
.via-opt:has(input:checked) .ci { background: var(--ink); color: #fff; }
.via-opt:has(input:focus-visible), .time-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.reply-field { margin-top: 1.125rem; }
.reply-field.is-small { margin-top: 0.75rem; }
.reply-times { margin: 1.375rem 0 0; padding: 0; border: 0; min-width: 0; }
.reply-times legend { padding: 0 0 0.625rem; font-size: 0.9375rem; font-weight: 500; }
.reply-times > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.time-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; min-height: 48px; padding: 0.4rem 0.75rem 0.4rem 1rem; border-radius: 14px; background: rgb(255 255 255 / 0.6); box-shadow: 0 0 0 1px rgb(27 43 58 / 0.14); font-size: 0.9375rem; line-height: 1.25; color: var(--muted); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.time-opt i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgb(27 43 58 / 0.3); transition: background-color 0.2s; }
.time-opt i svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.time-opt:has(input:checked) { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1.5px var(--ink); }
.time-opt:has(input:checked) i { background: var(--ink); box-shadow: none; }
.time-opt:has(input:checked) i svg { opacity: 1; }
.reply-error { margin: 0.875rem 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--alert); }
.reply-error:empty { display: none; }
.reply-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.125rem; margin-top: 1.625rem; }
.reply-note { margin: 0; font-size: 0.84375rem; line-height: 1.4; color: var(--muted); }
/* Phones: a sheet from the bottom of the window */
@media (max-width: 34rem) {
  .reply-dlg {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    padding: 0.875rem 1.125rem calc(1.875rem + env(safe-area-inset-bottom, 0px));
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -20px 60px -30px rgb(10 20 30 / 0.6);
  }
  .reply-dlg.worst-dlg { width: 100%; padding: 0.875rem 1.125rem calc(1.875rem + env(safe-area-inset-bottom, 0px)); }
  .reply-dlg::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 1.125rem; border-radius: 3px; background: rgb(27 43 58 / 0.2); }
  .reply-x { top: 26px; right: 18px; }
  @keyframes reply-in { from { translate: 0 40px; opacity: 0.4; } }
  .via-opt { min-height: 56px; gap: 0.625rem; padding: 0 0.75rem; font-size: 1rem; }
  .time-opt { font-size: 0.875rem; }
}
/* In person, by phone or by email: three across, each a little narrower. On phones the
   icon sits above the words so all three fit side by side. */
.via-opt { gap: 0.6rem; padding: 0 0.85rem; }
@media (max-width: 34rem) {
  .reply-via { gap: 0.5rem; }
  .via-opt { flex-direction: column; justify-content: center; gap: 0.4rem; min-height: 78px; padding: 0.6rem 0.35rem; font-size: 0.9375rem; line-height: 1.15; text-align: center; }
  .via-opt .ci { width: 34px; height: 34px; }
}

/* Between phone and computer widths the stacked parts keep a readable width */
@media (min-width: 34.01rem) and (max-width: 59.99rem) {
  .flow3, .loop, .loop-back, .op-fig, .op-q { max-width: 36rem; }
}

/* ---------- The header on the tax and street cards (js/app.js, setSnap) ---------- */
/* The survey's header, the same on every card from the priorities to the thank-you page: one
   row (the label, "Roman", the tagline) over the progress bar. (It used to be taller on the
   question cards, with the step's name and "Saved" in a second row, and shrink for the street
   card only.) */
@property --logo { syntax: '<length>'; inherits: true; initial-value: 3.5rem; }
@property --head-pad { syntax: '<length>'; inherits: true; initial-value: 3.2rem; }
@property --side { syntax: '<number>'; inherits: true; initial-value: 1; }
.survey-page .masthead { transition: --logo 0.45s var(--ease), --head-pad 0.45s var(--ease), --side 0.45s var(--ease); view-transition-name: masthead; } /* its own layer when cards change, so it shrinks in place rather than fading through the page */
.survey-page .steps { transition: padding 0.45s var(--ease); }
.survey-page .steps-now { max-height: 3rem; overflow: hidden; transition: max-height 0.45s var(--ease), margin 0.45s var(--ease), opacity 0.25s ease; }
/* The words either side of the name shrink less than the name does (--side) */
.survey-page .masthead .survey-name { font-size: calc(0.78rem + (var(--side) - 1) * 0.4rem); }
.survey-page .brand-tag { font-size: calc(var(--logo) * 0.414 * var(--side)); }
body.head-small .masthead, body.survey-page .masthead { --logo: 2.75rem; --head-pad: 1rem; --side: 1.1; }
body.head-small .steps-now, body.survey-page .steps-now { max-height: 0; margin: 0; opacity: 0; }
body.head-small .steps, body.survey-page .steps { padding-top: 0.6rem; }
@media (max-width: 34rem) {
  .survey-page .brand-tag { font-size: calc(var(--logo) * 0.5 * var(--side)); }
  /* phones: the small header on every card of the survey, not only the tax and street cards */
  body.head-small .masthead, body.survey-page .masthead { --logo: 1.6rem; --head-pad: 0.7rem; --side: 1.12; }
  body.head-small .steps, body.survey-page .steps { padding-top: 0.45rem; }
  body.survey-page .steps-now { max-height: 0; margin: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .survey-page .masthead, .survey-page .steps-now, .survey-page .steps { transition: none; }
}
/* When the street card opens or closes, the page under the header is replaced and fades in,
   so the header takes its new size at once (js/app.js setSnap). Shrinking it slowly slid the
   new page up under it and laid the screens out a second time. */
.head-now .masthead, .head-now .masthead *, .head-now .steps, .head-now .steps-now { transition: none !important; }

/* ---------- One screenful at a time (js/app.js, layoutSnap) ---------- */
/* The page snaps from screen to screen. The script packs the parts into screens that fit
   between the header and the Continue band (--avail), starts each one the same distance under the header,
   and falls back to gentle snapping when a part is taller than the space. */
/* Snapping starts only once the screens are laid out (.snap-ready): with no screens marked
   yet, the footer was the one place left to snap to, and the card opened at its foot. */
html.snap-y { scroll-padding-top: var(--mh); }
html.snap-y.snap-ready { scroll-snap-type: y mandatory; }
html.snap-y.snap-ready.snap-loose { scroll-snap-type: y proximity; }
.snap-y .snap-at { scroll-snap-align: start; }
.snap-y .site-footer { scroll-snap-align: end; }
.snap-y #screen { padding-top: 0; }
.snap-y .end-page { padding-block-start: 0; }
/* the big gaps between sections become ordinary ones; screens are spaced by the script */
.snap-y .end-cards, .snap-y .end-sec, .snap-y .end-page .streets-sec, .snap-y .end-page .streets-sec + .streets-sec { margin-top: 2.5rem; }
.snap-y .end-save, .snap-y .end-open { padding-top: 0; border-top: 0; }
.snap-y .end-when { margin-top: 2.5rem; }
.snap-y .end-sources { margin-top: 1.75rem; }
.snap-y .end-nav { margin-block-start: 1.5rem; }
/* room kept for the lines that appear when an answer is picked, so nothing moves */
.snap-y .end-page .saved { min-height: 1.6rem; margin-top: 0.8rem; }
.snap-y .street-q .ba-reply { display: block; min-height: 2.8em; }
/* sizes that follow the space */
.snap-y .end-head h1 { font-size: min(clamp(2.25rem, 3.5vw + 1rem, 4.125rem), calc(var(--avail, 600px) * 0.1)); }
.snap-y .sb-plot { height: clamp(120px, calc(var(--avail, 600px) - 190px), 260px); }
.snap-y .mini { --mini-h: clamp(64px, calc(var(--avail, 600px) - 400px), 124px); }
.snap-y .street-visual .ba { max-width: calc((var(--avail, 600px) - 150px) * 4 / 3); }
.snap-y .lt-img { aspect-ratio: auto; height: clamp(150px, calc(var(--avail, 600px) - 150px), 240px); }
@media (min-width: 60rem) {
  .snap-y .mini { --mini-h: clamp(80px, calc((var(--avail, 600px) - 320px) / 2), 150px); }

  .snap-y .end-page .streets-sec .worst-grid img { height: clamp(110px, calc((var(--avail, 600px) - 240px) / 2), 220px); aspect-ratio: auto; }
  .snap-y .lt-img { height: clamp(180px, calc(var(--avail, 600px) - 190px), 380px); }
}
/* the opening on a computer: the chart's rows and the heading follow the space */
@media (min-width: 60rem) {
  .snap-y .tt-hero h1 { font-size: min(clamp(2.25rem, 1.6vw + 1.5rem, 3.5rem), calc(var(--avail, 600px) * 0.08)); }
  .snap-y .tax-top { --bar-h: clamp(12px, calc((var(--avail, 600px) - 340px) / 9 - 6px), 22px); --row-gap: 6px; }
  .snap-y .tt-grid { margin-top: clamp(1.25rem, calc((var(--avail, 600px) - 400px) / 8), 2.25rem); }
}
/* what you'd save on a computer: the heading, the figures and the question on one screen.
   The badge and the address share a line, the heading has one of its own, and the chart
   takes whatever height is left. */
@media (min-width: 60rem) {
  .snap-y .save-grid { margin-top: 1.5rem; }
  .snap-y .save-fig .cs-n b { font-size: clamp(2.75rem, 2.5vw + 1.25rem, 4.25rem); }
  .snap-y .save-fig .cs-n span { margin-top: 0.375rem; }
  .snap-y .save-fig .cs-arrow { margin-top: 1rem; }
  .snap-y .save-chart { margin-top: 1.25rem; }
  .snap-y .save-fig .hh-fine { margin-top: 0.75rem; }
  .snap-y .sb-plot { height: clamp(88px, calc(var(--avail, 600px) - 430px), 280px); }
  .snap-y .save-q .hq > legend { margin-block-end: 0.625rem; }
  .snap-y .save-q .hq .opts.glide > .opt { min-height: 44px; padding-block: 0.45rem; }
}
/* the street on a computer: the picture with what was found under it, the question beside */
@media (min-width: 60rem) {
  .snap-y .street-grid { grid-template-columns: min-content minmax(0, 1fr); row-gap: 1.25rem; margin-top: 1.5rem; }
  .snap-y .street-visual .ba { width: calc((var(--avail, 600px) - 250px) * 4 / 3); max-width: min(100%, 44rem); }
  /* the worst streets (no address, or a street in good shape) take the picture's place and size;
     the column is sized to its content, so the mosaic needs a width of its own */
  .snap-y .street-visual .worst-mosaic { width: calc((var(--avail, 600px) - 250px) * 4 / 3); max-width: min(100%, 44rem); }
  .snap-y .street-found { margin-top: 0.5rem; }
}
/* the tax breaks on a computer: the heading and the first break share a screen */
@media (min-width: 60rem) {
  .snap-y .op-h { font-size: min(clamp(2.875rem, 2.5vw + 2.2rem, 4.5rem), calc(var(--avail, 600px) * 0.1)); }
  .snap-y .end-open .money-badge { margin-bottom: 0.875rem; }
  .snap-y .op-list { margin-top: 1.25rem; }
}
/* phones: the timeline a little tighter so it fits on one screen */
@media (max-width: 34rem) {
  .snap-y .end-when li { padding-bottom: 1.125rem; }
  .snap-y .ew-rule { margin-bottom: 1rem; }
  .snap-y .end-when li > span { font-size: 0.875rem; }
}
/* ---------- Phones, one screen at a time ----------
   The opening fits the question and What Stewart currently gets on one screen; the
   savings put the heading, the figures and the chart on one screen and the question
   with its note on the next; each tax break shows its words first, then its picture
   and its question in a card of their own; the why section fits its loop. */
@media (max-width: 34rem) {
  .snap-y .tt-hero h1 { font-size: 2rem; }
  .snap-y .tt-hero .end-lede { margin-top: 1rem; font-size: 0.96875rem; line-height: 1.45; }
  .snap-y .tt-grid { margin-top: 1.5rem; }
  .snap-y .tt-gets .eg-lead { font-size: 0.9375rem; }
  .snap-y .tt-gets .eg-big { margin-top: 0.625rem; font-size: 2.375rem; }

  .snap-y .save-head .end-h2 { font-size: 1.625rem; line-height: 1.12; }
  .snap-y .save-grid { margin-top: 1.25rem; }
  .snap-y .save-fig .cs-n b { font-size: 2.875rem; }
  .snap-y .save-chart { margin-top: 1rem; }
  .snap-y .sb-plot { height: clamp(88px, calc(var(--avail, 600px) - 330px), 200px); }
  .snap-y .save-note { display: none; }
  .snap-y .save-note-sm { display: block; margin-top: 1.25rem; font-size: 0.8125rem; }

  .snap-y .end-open .money-badge { margin-bottom: 0.875rem; }
  .snap-y .op-h { font-size: 2.25rem; }
  .snap-y .open-head .op-key { display: none; }
  .snap-y .op-list { gap: 0; margin-top: 1.25rem; }
  .snap-y .op-row { display: contents; }
  .snap-y .op-row + .op-row .op-text { margin-top: 2rem; }
  .snap-y .op-big { font-size: 2rem; }
  .snap-y .op-p { font-size: 0.9375rem; }
  .snap-y .op-act { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1rem; padding: 1.125rem 1.1rem 1rem; border-radius: 24px;
    background: linear-gradient(160deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.48));
    -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: inset 1px 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(27 43 58 / 0.07), 0 22px 44px -34px rgb(20 40 60 / 0.6); }
  .snap-y .op-key.op-key-sm { display: flex; font-size: 0.75rem; }

  .snap-y .end-sec > .sec-head { margin-bottom: 1.25rem; }
  .snap-y .f-down { height: 24px; margin: 4px auto; }
  .snap-y .f-node { min-height: 0; padding: 1rem 1.125rem; gap: 0.375rem; }
  .snap-y .f-out { min-height: 72px; }
  .snap-y .end-when li { padding-bottom: 1rem; }
  .snap-y .fair-say { font-size: 1.125rem; line-height: 1.4; }
  .snap-y .loop { gap: 1rem; margin-top: 1.25rem; }
  .snap-y .loop .ci { width: 40px; height: 40px; }
  .snap-y .loop li { grid-template-columns: 40px minmax(0, 1fr); }
  .snap-y .loop b { font-size: 1rem; }
  .snap-y .loop li > span:last-child { font-size: 0.84375rem; }
  .snap-y .loop-back { display: none; }
  /* the street card: your street and what was found, then the ways to look further, then the question */
  .snap-y .street-q { margin-top: 2rem; }
}
/* short windows: the answer rows a little tighter */
@media (min-width: 34.01rem) and (max-height: 700px) {
  .snap-y .hq .opts.glide > .opt { min-height: 44px; padding-block: 0.5rem; }
}
/* laptop-height windows: the opening's two side cards a little tighter, so the question
   and all three cards share one screen; the street's answers a little tighter */
@media (min-width: 60rem) and (max-height: 860px) {
  .snap-y .street-q .hq .opts.glide > .opt { min-height: 46px; padding-block: 0.55rem; }
  .snap-y .street-q .saved { min-height: 1.35rem; margin-top: 0.5rem; }
  .snap-y .tt-card { padding-block: 1.125rem 1.25rem; }
  .snap-y .tt-card .card-h { margin-bottom: 0.75rem; }
  .snap-y .tt-card .card-p { margin-top: 0.625rem; }
  .snap-y .tt-card .load-bar { height: 36px; }
}
/* short computer windows: each tax break fits with its heading, the why section with its loop */
@media (min-width: 60rem) and (max-height: 700px) {
  .snap-y .op-row { padding-block: 1.25rem; }
  .snap-y .mini { --mini-h: clamp(64px, calc((var(--avail, 600px) - 320px) / 2), 150px); }
  .snap-y .op-list { margin-top: 1rem; }
  .snap-y .loop { margin-top: 1.5rem; }
  .snap-y .loop-back { margin-top: 0.5rem; height: 2.5rem; }
}
/* short computer windows: the street's answers in two columns, so the picture, the
   question and the buttons share one screen */
@media (min-width: 60rem) and (max-height: 700px) {
  .snap-y .street-q .hq .opts.glide { grid-template-columns: 1fr 1fr; }
  .snap-y .street-q .hq .opts.glide > .opt::before { display: none; }
  .snap-y .street-q .hq .opts.glide > .opt:nth-of-type(n+3)::before { display: block; }
  .snap-y .street-q .hq .opts.glide > .opt:has(input:checked) + .opt + .opt::before { opacity: 0; }
  .snap-y .street-q .hq > legend { font-size: 1.25rem; }
  .snap-y .street-q .hq .opts.glide > .opt { min-height: 44px; padding-block: 0.5rem; }
  .snap-y .street-q .ba-reply { min-height: 1.5em; font-size: 1rem; }
  .snap-y .street-grid { margin-top: 1.25rem; }
  .snap-y .street-visual .ba { width: calc((var(--avail, 600px) - 210px) * 4 / 3); }
  .snap-y .street-visual .worst-mosaic { width: calc((var(--avail, 600px) - 210px) * 4 / 3); }
}
/* short computer windows: what you'd save still fits on one screen with its heading */
@media (min-width: 60rem) and (max-height: 700px) {
  .snap-y .save-head .end-h2 { font-size: 1.625rem; }
  .snap-y .save-grid { margin-top: 1rem; }
  .snap-y .save-q .hq .opts.glide > .opt { min-height: 38px; padding-block: 0.3rem; }
  .snap-y .save-q .saved { min-height: 1.35rem; margin-top: 0.5rem; }
}
