/* Abbotsford Insider: inner directory pages (category + business profile).
   REDESIGN 2026-11-17 (owner review: "reads as plain text, structure is weak, empty right side").
   The approved home page is the reference: key-cap tiles, the evergreen band, guide plates, ledger rows,
   gold buttons with the ink edge and the 6d press feel. Duolingo for engagement: bold tiles, press feedback,
   clear steps, small wins (a checklist you tick, the helpful line). Loaded after styles.css on inner pages
   only, so the approved home/contact CSS stays byte-identical. Every value is a token from tokens.css or
   styles.css. Mobile first (375 > 768 > 1024 > 1440). Transform + opacity only; hover on fine pointers only;
   nothing animates in on scroll (plain zone, DESIGN.md s7). No mascot, no art. */

[hidden] { display: none !important; }

/* ---------- Phosphor icons used as UI icons (filled outlines, not strokes) ---------- */
.icon--ph { fill: currentColor; stroke: none; }

/* ---------- Breadcrumb: one line, the current page truncates first ---------- */
.crumbs { margin-top: var(--s4); font-size: var(--step-small); }
.crumbs ol { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.crumbs li { display: flex; align-items: center; min-width: 0; flex: none; }
.crumbs li + li::before { content: "/"; color: var(--muted); padding: 0 var(--s1); }
.crumbs li:last-child { flex: 0 1 auto; overflow: hidden; }
.crumbs a { color: var(--evergreen); font-weight: var(--w-ui); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--s1); }
.crumbs [aria-current] { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; text-decoration-thickness: 2px; } }

/* ---------- Type: the home page's scale. H1 and section heads in evergreen, card heads 22px ink ---------- */
.cat-head h1, .biz-head h1 { font-size: 40px; line-height: var(--lh-display); letter-spacing: -.02em; color: var(--evergreen); overflow-wrap: anywhere; }
.list-head h2, .choose > h2, .faq-side h2, .related > h2, .compare-side h2, .quote-box--quiet .qb-intro > :is(h2, h3) {
  font-size: var(--h2-s); line-height: 1.08; letter-spacing: -.02em; color: var(--evergreen); }
.quote-box--prominent .qb-intro > h2 { font-size: var(--step-h2-m); line-height: 1.08; letter-spacing: -.02em; color: var(--evergreen); }
.steps-card h2, .side-band h2, .bento-card h2, .where-body h2, .helpful h2, .owner-card h2, .choose h3 { font-size: var(--step-h3); line-height: var(--lh-head); letter-spacing: 0; }
@media (min-width: 768px) {
  .cat-head h1, .biz-head h1 { font-size: 56px; }
  .list-head h2, .choose > h2, .faq-side h2, .related > h2, .compare-side h2, .quote-box--quiet .qb-intro > :is(h2, h3) { font-size: var(--h2-m); }
}
@media (min-width: 1024px) {
  .cat-head h1, .biz-head h1 { font-size: 64px; }
  .list-head h2, .choose > h2, .related > h2, .quote-box--quiet .qb-intro > :is(h2, h3) { font-size: var(--h2-m); } /* 40, was 48: H1 64 must lead (rubric 6, 2026-11-18) */
}
@media (min-width: 768px) { .faq-side h2, .compare-side h2 { font-size: var(--step-h2); } } /* narrow side columns: 36 */
.on-dark a:not(.btn) { color: var(--paper); }

/* ---------- Key-cap tile (same build as the home category tiles): coloured face on a darker 4px edge ----------
   Default = the home ledger's quiet cap: evergreen face, gold glyph. kc--<category> = that category's fixed
   colour, the one UI job the illo colours may do (DESIGN.md s17). The face is what moves on hover and press. */
.kc { --size: 48px; --edge-h: 4px; --r: 14px; --face: var(--evergreen); --edge: color-mix(in oklab, var(--evergreen) 25%, var(--ink)); --glyph: var(--gold);
  --sky-deep: color-mix(in oklab, var(--illo-sky) 30%, var(--ink)); --red-deep: color-mix(in oklab, var(--illo-red) 45%, var(--ink));
  position: relative; isolation: isolate; flex: none; display: grid; place-items: center; width: var(--size); height: calc(var(--size) + var(--edge-h)); padding-bottom: var(--edge-h); color: var(--glyph); }
.kc::before { content: ""; position: absolute; z-index: -2; inset: var(--edge-h) 0 0; border-radius: var(--r); background: var(--edge);
  box-shadow: 0 1px 2px rgb(23 59 47 / .10), 0 6px 12px rgb(23 59 47 / .10); }
.kc::after { content: ""; position: absolute; z-index: -1; inset: 0 0 var(--edge-h); border-radius: var(--r); background: var(--face); transition: transform var(--dur) var(--ease); }
.kc > svg { width: calc(var(--size) * .5); height: calc(var(--size) * .5); fill: currentColor; transition: transform var(--dur) var(--ease); }
.kc-num { font: var(--w-display) calc(var(--size) * .46)/1 var(--font-display); font-variant-numeric: tabular-nums; transition: transform var(--dur) var(--ease); }
.kc--sm { --size: 36px; --edge-h: 3px; --r: 10px; }
.kc--md { --size: 48px; --r: 14px; }
.kc--lg { --size: 64px; --r: 18px; }
.kc--xl { --size: 64px; --r: 18px; }
@media (min-width: 768px) { .kc--xl { --size: 88px; --edge-h: 5px; --r: var(--radius-card); } }
.kc--paper { --face: var(--paper); --edge: color-mix(in oklab, var(--paper) 62%, var(--ink)); --glyph: var(--evergreen); }
/* category colours: copied from the home index (styles.css .entry--*), so a category looks the same everywhere */
.kc--plumber, .kc--electrician, .kc--roofer, .kc--hvac, .kc--landscaper, .kc--cleaning, .kc--painter, .kc--windshield, .kc--detailing, .kc--dentist, .kc--reno, .kc--vet, .kc--web {
  --edge: color-mix(in oklab, var(--face) 72%, var(--ink)); --glyph: var(--ink); }
.kc--plumber     { --face: var(--illo-sky); --glyph: var(--sky-deep); }
.kc--electrician { --face: var(--gold); }
.kc--roofer      { --face: var(--illo-red); --glyph: var(--paper); }
.kc--hvac        { --face: color-mix(in oklab, var(--gold) 55%, var(--illo-red)); }
.kc--landscaper  { --face: var(--illo-green); --glyph: var(--paper); }
.kc--cleaning    { --face: color-mix(in oklab, var(--illo-sky) 45%, var(--paper)); --glyph: var(--sky-deep); }
.kc--painter     { --face: color-mix(in oklab, var(--illo-red) 32%, var(--paper)); --glyph: var(--red-deep); }
.kc--windshield  { --face: color-mix(in oklab, var(--illo-sky) 55%, var(--ink)); --glyph: var(--paper); }
.kc--detailing   { --face: var(--evergreen); --glyph: var(--gold); --edge: color-mix(in oklab, var(--evergreen) 55%, var(--ink)); }
.kc--dentist     { --face: color-mix(in oklab, var(--illo-sky) 50%, var(--illo-green)); --glyph: var(--paper); }
.kc--reno        { --face: color-mix(in oklab, var(--illo-red) 68%, var(--ink)); --glyph: var(--paper); }
.kc--vet         { --face: color-mix(in oklab, var(--gold) 55%, var(--paper)); }
.kc--web         { --face: color-mix(in oklab, var(--illo-green) 40%, var(--paper)); --glyph: var(--evergreen); }

/* Pressable things that carry a key-cap: the face rises 2px on hover, drops 2px into its edge on press */
.glance-tile, .steps-card a, .map-box--link { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  :is(.glance-tile, .steps-card a, .map-box--link):hover .kc::after,
  :is(.glance-tile, .steps-card a, .map-box--link):hover .kc > * { transform: var(--card-hover); }
}
:is(.glance-tile, .steps-card a, .map-box--link):active .kc::after,
:is(.glance-tile, .steps-card a, .map-box--link):active .kc > * { transform: var(--btn-press); transition-duration: var(--dur-press); }

/* ---------- Category head: key-cap + H1 + glance tiles | three steps ---------- */
.cat-head { display: grid; gap: var(--s4); margin-top: var(--s4); }
.cat-head-main { display: grid; gap: var(--s2); justify-items: start; align-content: start; }
.cat-head-main .kc { margin-bottom: var(--s1); }
/* category mascot beside the H1 (acts the category's job; plays when it comes on screen, then rests) */
/* 2026-11-23: every category has a mascot now and some H1s are long ("Home renovation contractors"). In a narrow column the
   mascot sits ABOVE the H1 (where the key-cap used to be) so no word is ever split; beside it once the column has room. */
.cat-head-main { container-type: inline-size; }
.cat-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); width: 100%; }
.cat-title .cat-mascot { grid-row: 1; }
.cat-mascot { width: 128px; pointer-events: none; }
@container (min-width: 600px) {
  .cat-title { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s2); }
  .cat-title .cat-mascot { grid-row: auto; width: 168px; margin-bottom: -8px; }
}
@container (min-width: 640px) { .cat-title .cat-mascot { width: 184px; } }
.cat-lead { font-size: 18px; line-height: var(--lh-body); color: var(--ink); }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); width: 100%; margin-top: var(--s3); }
.glance > li { display: flex; }
.glance-tile { position: relative; width: 100%; display: grid; gap: 4px; align-content: start; justify-items: start; padding: 12px 0 4px; border-top: 2px solid var(--ink); border-radius: 0;
  color: var(--ink); text-decoration: none; background: var(--paper); transition: transform var(--dur) var(--ease); }
.glance-n { font: var(--w-display) 40px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--evergreen); }
.glance-l { font-size: var(--step-small); line-height: 1.3; color: var(--muted); font-weight: var(--w-ui); }
@media (hover: hover) and (pointer: fine) {
  .glance-tile:hover .glance-l { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
}
.glance-tile:active { transform: var(--press); transition-duration: var(--dur-press); }
.glance-tile:focus-visible { outline-offset: 4px; }

/* three steps: a strip of three caps on phones, a panel beside the H1 from 1024 */
.steps-card { position: relative; background: var(--paper); border: var(--card-border); border-radius: var(--radius-card); padding: var(--s2); display: grid; gap: 12px; }
.steps-mascot { position: absolute; right: var(--s3); top: 0; width: 132px; transform: translateY(-92.86%); pointer-events: none; } /* Peep peek: svg bottom (y=520 of 560) on the card edge */
@media (max-width: 1023.98px) { .steps-card { margin-top: var(--s5); } }
.steps-card ol { display: grid; gap: 0; }
.steps-card li + li { border-top: var(--rule); }
.steps-card a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: center; min-height: 56px; padding: 4px 12px 4px 4px; border-radius: 16px;
  color: var(--ink); text-decoration: none; background: var(--paper); }
.steps-card a > span:last-child { display: grid; gap: 0; }
.steps-card strong { font-size: var(--step-body-m); font-weight: var(--w-display); }
.steps-card a > span:last-child > span { font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .steps-card a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.steps-card a:focus-visible { outline-offset: 3px; }

@media (min-width: 640px) { .glance { gap: var(--s3); } .glance-n { font-size: 48px; } }
@media (min-width: 1024px) {
  .cat-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s5); align-items: end; margin-top: var(--s6); }
  .steps-card { padding: var(--s3); gap: var(--s2); }
  .steps-card a { padding: var(--s1) var(--s2) var(--s1) var(--s1); min-height: 72px; }
}

/* ---------- Category body: list (left) + sticky side column (right) from 1024 ---------- */
.cat-body { display: grid; gap: var(--rhythm-section); margin-top: var(--rhythm-section); align-items: start; }
.cat-main { display: grid; gap: var(--s5); min-width: 0; }
.list-block { display: grid; gap: var(--s3); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); }
.list-how { font-weight: var(--w-ui); white-space: nowrap; }
@media (min-width: 1024px) { .cat-body:not(.cat-body--quotes) .list-how { display: none; } }
.rank-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); color: var(--muted); font-size: var(--step-small); }
.ranked-list { display: grid; gap: var(--s2); container: list / inline-size; }
.cat-side { display: grid; gap: var(--s2); }
.side-band { background: var(--panel); border-radius: var(--radius-card); padding: var(--s3); display: grid; gap: var(--s2); justify-items: start; } /* 2026-11-18: quiet panel, so the list leads */
.side-band .spec-show:not(.spec-show--featured) { background: var(--paper); }
.side-band .spec-show { width: 100%; color: var(--ink); font-size: var(--step-small); line-height: 1.4; flex-wrap: nowrap; align-items: center; }
.side-band .spec-show--featured { color: var(--evergreen); flex-wrap: wrap; }
.side-band .rank-num { width: auto; min-width: 28px; }
.side-band .btn--quiet, .rank-card .btn--quiet { padding: 0; }
.side-quote { display: none; }
@media (min-width: 1024px) {
  .cat-body { grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--s6); }
  .cat-side { position: sticky; top: calc(var(--s6) + var(--s4)); gap: var(--s4); }
  .side-quote { display: grid; gap: var(--s2); justify-items: start; background: var(--panel); border-radius: var(--radius-card); padding: var(--s3); }
  .side-quote p { font-size: var(--step-small); line-height: var(--lh-body); }
  .side-quote strong { display: block; font-size: var(--step-body); margin-bottom: 4px; }
  /* prominent quote categories: the form takes the side column; it is too tall to stick */
  .cat-body--quotes .cat-side--quote { grid-column: 2; grid-row: 1; position: static; }
  .cat-body--quotes .cat-main { grid-column: 1; grid-row: 1; }
}

/* ---------- Listing card (design-system-compiled s3): fact tags; actions move right when the column is wide ---------- */
.card { position: relative; background: var(--paper); border: var(--card-border); border-radius: var(--radius-card); padding: var(--s3) var(--s2) var(--s2);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; transition: transform var(--dur) var(--ease); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--card-shadow-hover); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.card-body { display: grid; gap: var(--s1); min-width: 0; }
.card-name { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--step-h3); line-height: var(--lh-head); margin: 0; letter-spacing: 0; }
.card-name a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--ink); text-decoration: none; border-radius: var(--s1); }
.card .meta { font-size: var(--step-small); color: var(--muted); margin: 0; display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.card-tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 4px; }
.card-tags li { display: inline-flex; align-items: center; gap: var(--s1); min-height: 32px; padding: 0 12px; border-radius: var(--radius-tag); background: var(--panel);
  font-size: var(--step-small); font-weight: var(--w-ui); line-height: 1.2; color: var(--ink); }
.card .actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: center; }
.card .actions .btn { font-size: var(--step-small); padding: 0 var(--s2) 4px; }
.visit { color: var(--evergreen); font-weight: var(--w-ui); font-size: var(--step-small); display: inline-flex; gap: 4px; align-items: center;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; min-height: var(--control-h); border-radius: var(--s1); }
.visit .icon { width: 16px; height: 16px; }
.card--featured { border: var(--featured-border); }
.card--ranked { grid-template-columns: var(--rank-col) minmax(0, 1fr); column-gap: var(--s1); }
.card--ranked .rank { grid-row: 1 / span 2; align-self: start; font-size: var(--rank-numeral); font-weight: var(--rank-numeral-weight);
  color: var(--rank-numeral-colour); line-height: 1; font-variant-numeric: tabular-nums; }
.card--ranked > :not(.rank) { grid-column: 2; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: var(--card-hover); }
  .card:hover::after { opacity: 1; }
  .card-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .visit:hover { text-decoration-thickness: 2px; }
}
@container list (min-width: 600px) {
  .card { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s3); align-items: center; padding: var(--s3); }
  .card--ranked { grid-template-columns: var(--rank-col) minmax(0, 1fr) auto; column-gap: var(--s2); }
  .card--ranked .rank { grid-row: auto; align-self: center; }
  .card--ranked > :not(.rank) { grid-column: auto; }
  .card .actions { flex-direction: column; align-items: stretch; gap: 0; }
  .card .actions .btn { min-height: var(--control-h); }
  .card .actions .visit { justify-content: center; min-height: 44px; }
}

/* ---------- Featured slot: own slot above the list, never numbered ---------- */
.featured-slot { background: var(--featured-bg); border-radius: var(--radius-card); padding: var(--s2); display: grid; gap: var(--s2); container: list / inline-size; }
.slot-head { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; margin: 0; font-size: var(--step-small); color: var(--evergreen); }
.slot-head .tag-featured { background: var(--paper); }
@media (min-width: 768px) { .featured-slot { padding: var(--s3); } }

/* ---------- Quote box (design-system-compiled s5): a panel, the three steps beside the form when wide ---------- */
.quote-box { background: var(--panel); border-radius: var(--radius-card); padding: var(--s3) var(--s2) var(--s2); display: grid; gap: var(--s3); }
.qb-intro { display: grid; gap: var(--s2); align-content: start; }
.quote-box .qb-lead { margin: 0; font-size: var(--step-body-m); line-height: var(--lh-body); color: var(--ink); }
.qb-steps { display: grid; gap: 12px; }
.qb-steps li { display: flex; gap: 12px; align-items: center; font-weight: var(--w-ui); line-height: 1.35; }
.qb-note { font-size: var(--step-small); line-height: var(--lh-body); color: var(--muted); }
.qb-form { background: var(--paper); border-radius: 16px; padding: var(--s3) var(--s2) var(--s2); display: grid; gap: 0; container-type: inline-size; box-shadow: 0 1px 2px rgb(23 59 47 / .06), 0 8px 24px rgb(23 59 47 / .06); }
.qb-pair { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s2); }
@container (min-width: 440px) { .qb-pair { grid-template-columns: 1fr 1fr; } }
.field .hint { margin: 0; line-height: var(--lh-body); }
.qb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qb-timeline { border: 0; margin: 0 0 var(--s2); padding: 0; min-width: 0; }
.qb-timeline legend { font-size: var(--step-small); font-weight: var(--w-ui); margin-bottom: var(--s1); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--chip-h); padding: 0 var(--s2); border: var(--chip-border); border-radius: var(--radius-control);
  background: var(--paper); color: var(--ink); font: var(--w-ui) var(--step-small)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: transform var(--dur) var(--ease); }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio input:checked + .chip { background: var(--evergreen); color: var(--paper); border-color: var(--evergreen); }
.chip-radio input:focus-visible + .chip { outline: var(--focus); outline-offset: var(--focus-offset); }
.chip-radio:active .chip { transform: var(--press); transition-duration: var(--dur-press); }
@media (hover: hover) and (pointer: fine) { .chip-radio:hover input:not(:checked) + .chip { border-color: var(--ink); } }
.qb-consent { margin: 0 0 var(--s2); font-size: var(--step-small); line-height: var(--lh-body); color: var(--muted); }
.qb-submit { width: 100%; min-height: 56px; font-size: 18px; }
.qb-submit .icon { width: 20px; height: 20px; }
@container (min-width: 440px) { .qb-submit { width: auto; justify-self: start; padding: 0 var(--s4) 4px; } }
.quote-box--quiet { background: var(--evergreen); color: var(--paper); }
.quote-box--quiet .qb-form { color: var(--ink); } /* the form card stays light: labels, hints and chips in ink */
.quote-box--quiet .qb-intro > :is(h2, h3), .quote-box--quiet .qb-lead, .quote-box--quiet .qb-steps li { color: var(--paper); }
.quote-box--quiet .qb-note { color: color-mix(in oklab, var(--paper) 82%, var(--evergreen)); }
.quote-box--quiet .qb-steps .kc { --face: var(--paper); --edge: color-mix(in oklab, var(--paper) 62%, var(--ink)); --glyph: var(--evergreen); }
@media (min-width: 768px) {
  .quote-box--quiet { padding: var(--s4); }
  .quote-box--quiet .qb-form { padding: var(--s4); }
}
@media (min-width: 1024px) {
  .quote-box--quiet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); padding: var(--s5); align-items: start; }
  .quote-box--quiet .qb-intro { position: sticky; top: calc(var(--s6) + var(--s4)); gap: var(--s3); }
  .quote-box--quiet .qb-steps { gap: var(--s2); }
}

/* ---------- "Choosing a {one} in Abbotsford": a different layout per part ---------- */
.choose { display: grid; gap: var(--rhythm-sub); }
.choose > h2 { margin-bottom: calc(var(--rhythm-head) - var(--rhythm-sub)); }
.choose > .guide-cta { margin-top: calc(var(--s3) - var(--rhythm-sub)); }
.choose-part { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.choose p, .choose li, .faq-list details p { max-width: 34em; }
/* quick picks: two panel tiles with tappable name pills */
.pick-tiles { display: grid; gap: var(--s2); }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: start; padding: var(--s3) var(--s2); border-radius: var(--radius-card); background: var(--panel); }
.pick > div { display: grid; gap: 4px; }
.pick-q { font: var(--w-display) 20px/1.2 var(--font-display); color: var(--ink); }
.pick-names { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 12px; }
.pick-names a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); border: var(--btn2-border); border-radius: var(--radius-control); background: var(--paper);
  box-shadow: var(--btn2-edge); color: var(--ink); font-weight: var(--w-display); font-size: var(--step-small); text-decoration: none; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .pick-names a:hover { transform: var(--btn-hover); } }
.pick-names a:active { transform: var(--btn-press); box-shadow: var(--btn2-edge-press); transition-duration: var(--dur-press); }
/* good to know: home-ledger rows */
.know-list { display: grid; gap: var(--s2); }
.know-list li { padding: var(--s3) 0 0; border-top: 2px solid var(--ink); }
.know-list p { font-weight: var(--w-ui); line-height: var(--lh-body); }
/* cost table */
.table-scroll { overflow-x: auto; border-radius: var(--radius-card); border: var(--card-border); }
.cost-table { width: 100%; border-collapse: collapse; font-size: var(--step-small); line-height: var(--lh-body); }
.cost-table th, .cost-table td { text-align: left; vertical-align: top; padding: 12px var(--s2); }
.cost-table thead th { border-bottom: var(--card-border); background: var(--panel); }
.cost-table tbody tr + tr > * { border-top: var(--rule); }
.cost-table tbody th { font-weight: var(--w-ui); }
.cost-table td:last-child { color: var(--muted); }
@media (max-width: 767.98px) {
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cost-table tr, .cost-table th, .cost-table td { display: block; }
  .cost-table tbody tr { padding: var(--s1) 0; }
  .cost-table tbody tr + tr > * { border-top: 0; }
  .cost-table tbody tr + tr { border-top: var(--rule); }
  .cost-table th, .cost-table td { padding: 4px var(--s2); }
  .cost-table td::before { content: attr(data-label) ": "; color: var(--muted); }
}
/* questions (checklist) beside red flags */
.choose-pair { display: grid; gap: var(--rhythm-sub); }
.ask-part { background: var(--panel); border-radius: var(--radius-card); padding: var(--s3) var(--s2) var(--s2); }
.ask-part > p { margin-top: -8px; }
.ask-list { display: grid; gap: var(--s1); }
.ask-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: center; min-height: 64px; padding: 12px var(--s2) 12px 12px;
  border-radius: 16px; background: var(--paper); cursor: pointer; transition: transform var(--dur) var(--ease); -webkit-tap-highlight-color: transparent; }
.ask-item input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ask-box { position: relative; isolation: isolate; width: 32px; height: 36px; padding-bottom: 4px; display: grid; place-items: center; flex: none; }
.ask-box::before { content: ""; position: absolute; z-index: -2; inset: 4px 0 0; border-radius: 10px; background: var(--muted); }
.ask-box::after { content: ""; position: absolute; z-index: -1; inset: 0 0 4px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--muted); transition: transform var(--dur) var(--ease); }
.ask-box svg { width: 18px; height: 18px; fill: var(--gold); opacity: 0; transform: scale(.5); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ask-q { font-weight: var(--w-ui); line-height: 1.4; }
.ask-item input:checked + .ask-box::before { background: color-mix(in oklab, var(--evergreen) 25%, var(--ink)); }
.ask-item input:checked + .ask-box::after { background: var(--evergreen); box-shadow: none; }
.ask-item input:checked + .ask-box svg { opacity: 1; transform: none; }
.ask-item:has(input:checked) { background: color-mix(in oklab, var(--paper) 55%, var(--panel)); }
.ask-item:has(input:checked) .ask-q { color: var(--muted); }
.ask-item input:focus-visible + .ask-box::after { outline: var(--focus); outline-offset: var(--focus-offset); }
@media (hover: hover) and (pointer: fine) { .ask-item:hover .ask-box::after, .ask-item:hover .ask-box svg { transform: translateY(-1px); } .ask-item:hover input:checked + .ask-box svg { transform: translateY(-1px); } }
.ask-item:active .ask-box::after, .ask-item:active .ask-box svg { transform: var(--btn-press); transition-duration: var(--dur-press); }
.ask-progress { margin-top: var(--s2); font-weight: var(--w-display); color: var(--evergreen); font-variant-numeric: tabular-nums; }
.ask-done { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s2); color: var(--evergreen); font: var(--w-display) 20px/1.25 var(--font-display); animation: ask-done-in var(--dur) var(--ease); }
/* Stamp keeps company beside the count; inner.js nods it per tick and cheers it at all ticked */
.ask-foot { display: flex; gap: var(--s2); align-items: center; margin-top: var(--s2); }
.ask-stamp { width: 112px; flex: none; pointer-events: none; }
@media (min-width: 768px) { .ask-stamp { width: 128px; } }
.ask-foot .ask-progress, .ask-foot .ask-done { margin-top: 0; }
@keyframes ask-done-in { from { opacity: 0; transform: translateY(4px); } }
.flag-list { display: grid; border-top: 1px solid var(--ink); }
.flag-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: center; padding: var(--s2) 0; border-bottom: var(--rule); font-weight: var(--w-ui); }
/* licence: the evergreen band */
.licence { background: var(--evergreen); color: var(--paper); border-radius: var(--radius-card); padding: var(--s4) var(--s3); justify-items: start; gap: var(--s3); }
.licence h3, .licence p { color: var(--paper); }
.licence-copy { display: grid; gap: var(--s1); }
.licence .btn--quiet { padding: 0; gap: var(--s1); }
.licence .btn--quiet .icon { width: 18px; height: 18px; }
.guide-cta { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3) var(--s2) var(--s2);
  border: var(--card-border); border-radius: var(--radius-card); transition: transform var(--dur) var(--ease); }
.guide-cta::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--card-shadow-hover); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.guide-cta p { font-weight: var(--w-ui); }
.guide-cta a { font-weight: var(--w-display); }
.guide-cta a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-cta > .icon { color: var(--evergreen); }
@media (hover: hover) and (pointer: fine) { .guide-cta:hover { transform: var(--card-hover); } .guide-cta:hover::after { opacity: 1; } .guide-cta:hover .kc::after, .guide-cta:hover .kc > * { transform: var(--card-hover); } }
.guide-cta:active .kc::after, .guide-cta:active .kc > * { transform: var(--btn-press); transition-duration: var(--dur-press); }
@media (min-width: 768px) {
  .pick-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
  .pick { padding: var(--s4) var(--s3); }
  .know-list { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .ask-part { padding: var(--s4); }
  .licence { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s4); padding: var(--s5); }
}
@media (min-width: 1024px) {
  .choose-pair { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s6); align-items: start; }
  .flags-part { padding-top: var(--s4); }
}

/* ---------- FAQ: heading column (sticky) beside the accordion from 1024 ---------- */
.faq { display: grid; gap: var(--rhythm-head); }
.faq-side { display: grid; gap: var(--s2); justify-items: start; align-content: start; }
.faq-side .btn--quiet { padding: 0 var(--s1); margin-left: calc(-1 * var(--s1)); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: var(--rule); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 64px; padding: 12px 0;
  font-weight: var(--w-display); font-size: var(--step-body-m); line-height: 1.35; cursor: pointer; border-radius: var(--s1); -webkit-tap-highlight-color: transparent; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-key { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-control); background: var(--panel); color: var(--evergreen); transition: transform var(--dur) var(--ease); }
.faq-key .icon { width: 20px; height: 20px; }
.faq-list .faq-minus, .faq-list details[open] .faq-plus { display: none; }
.faq-list details[open] .faq-minus { display: block; }
.faq-list details[open] .faq-key { background: var(--evergreen); color: var(--paper); }
.faq-list details p { padding: 0 0 var(--s3); }
.faq-list details[open] p { animation: faq-in var(--dur) var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-list summary:active .faq-key { transform: var(--press); transition-duration: var(--dur-press); }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
@media (min-width: 768px) { .faq-list summary { font-size: var(--step-body); } }
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); align-items: start; }
  .faq-side { position: sticky; top: calc(var(--s6) + var(--s4)); }
}

/* ---------- Related guides: the home guide plates, as cards side by side ---------- */
.related > h2 { margin-bottom: var(--rhythm-head); }
.related-list { display: grid; gap: var(--s2); }
.related-list > li { display: flex; }
.related-list .plate { width: 100%; }
.plate--plumber .tile { --face: var(--illo-sky); --glyph: color-mix(in oklab, var(--illo-sky) 30%, var(--ink)); }
.plate--landscaper .tile { --face: var(--illo-green); --glyph: var(--paper); }
@media (min-width: 768px) {
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list .plate { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; row-gap: var(--s2);
    padding: var(--s3); border: var(--card-border); border-radius: var(--radius-card); }
  .related-list .plate .go { grid-column: 2; }
  .related-list .plate::after { display: block; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .related-list .plate:hover { transform: var(--card-hover); } .related-list .plate:hover::after { opacity: 1; } }

/* ---------- Closing pair: helpful line + owner card ---------- */
.closing-pair { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s4); align-items: center; }
.closing-pair > .helpful { flex: 1 1 300px; }
.closing-pair > .owner-card { flex: 2 1 420px; }
.helpful { padding: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: center; }
.helpful-peep { width: 104px; pointer-events: none; }
@media (min-width: 768px) { .helpful-peep { width: 120px; } } /* Peep standing: cheers on Yes, nods on No (inner.js) */
.helpful-copy { display: grid; gap: var(--s2); align-content: start; }
.helpful-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.helpful-btns .icon { width: 20px; height: 20px; }
.helpful-reply { display: flex; gap: var(--s2); align-items: center; min-height: 48px; font-weight: var(--w-display); color: var(--evergreen); animation: ask-done-in var(--dur) var(--ease); }
.helpful-reply:focus { outline: none; }
.owner-card { background: var(--panel); border-radius: var(--radius-card); padding: var(--s3); display: grid; gap: var(--s2); justify-items: start; align-content: start; }
.owner-copy { display: grid; gap: var(--s1); }
.owner-copy p { max-width: 30em; }
.owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.owner-actions .btn--quiet { padding: 0 var(--s1); }
@media (min-width: 1024px) {
  .owner-card--wide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s4); padding: var(--s4); }
}

/* ---------- Business profile ---------- */
.biz-top { display: grid; gap: var(--s4); margin-top: var(--s4); }
.biz-head { display: grid; gap: var(--s2); justify-items: start; align-content: start; }
.biz-featured { display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; color: var(--evergreen); }
/* Hero redesign 2026-11-26 (owner: "way too much stuff"): category line > name > one fact-built sentence > badge > actions */
.biz-cat { color: var(--evergreen); font-weight: 700; font-size: var(--step-body-m); }
.biz-head h1 { text-wrap: balance; margin-top: -4px; }
@media (min-width: 1024px) { .biz-head h1 { font-size: 56px; } } /* the score card takes 5/12: 64px pushed long names to 3 lines */
.biz-lede { font-size: 18px; line-height: 1.5; color: var(--ink); max-width: 34em; text-wrap: pretty; }
@media (min-width: 768px) { .biz-lede { font-size: 20px; } }
.biz-head .biz-badge { margin-top: 4px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 12px var(--s2); margin-top: var(--s1); width: 100%; }
.biz-actions .btn { min-height: 56px; font-size: 18px; padding-left: var(--s4); padding-right: var(--s4); }
.biz-actions .btn--primary { padding-bottom: 4px; }
.source-line { display: flex; gap: var(--s1); align-items: flex-start; font-size: var(--step-small); color: var(--muted); line-height: var(--lh-body); }
.source-line--note { display: block; }
/* address and hours card, map on top */
.biz-where { border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; background: var(--paper); display: grid; }
.map-box { position: relative; aspect-ratio: 16 / 10; background: var(--panel); }
@media (min-width: 1024px) { .map-box { aspect-ratio: 16 / 9; } }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box--link { display: grid; place-items: center; align-content: center; gap: 12px; padding: var(--s3); color: var(--ink); text-decoration: none; text-align: center; }
.map-link-t { font-weight: var(--w-display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.map-box--link:focus-visible { outline-offset: -6px; }
.where-body { padding: var(--s3) var(--s2) var(--s2); display: grid; gap: 12px; justify-items: start; }
.biz-addr { font-weight: var(--w-ui); }
/* Fold (the map character) stands in the top right of the text half, BELOW the map: never over Google's
   attribution in the map's bottom corners. Its hop (5px) stays inside where-body. */
.where-body { position: relative; }
.fold-perch { position: absolute; top: 12px; right: var(--s1); width: 104px; pointer-events: none; }
.where-body > h2, .biz-addr { padding-right: 96px; }
.hours { width: 100%; display: grid; margin: 4px 0 0; }
.hours > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 12px; }
.hours > div + div { box-shadow: 0 -1px 0 rgb(31 29 26 / .12); }
.hours dt { color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--s1); align-items: center; }
.hours dd { margin: 0; font-weight: var(--w-ui); text-align: right; }
.hours .is-today { background: var(--panel); box-shadow: none; }
.hours .is-today + div { box-shadow: none; }
.hours .is-today dt { color: var(--ink); font-weight: var(--w-ui); }
.today-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s1); border-radius: var(--radius-tag); background: var(--evergreen); color: var(--paper); font-size: var(--step-small); font-weight: var(--w-display); line-height: 1; }
.where-body .btn--quiet { padding: 0 var(--s1); margin-left: calc(-1 * var(--s1)); }
@media (min-width: 768px) { .where-body { padding: var(--s3); } }
@media (min-width: 1024px) {
  .biz-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s5); align-items: start; margin-top: var(--s5); }
  .biz-top > .biz-head { padding-top: var(--s3); }
}
/* bento: services | quick-fact tiles, then the rank band (| reviews) */
.biz-bento { display: grid; gap: var(--rhythm-section); margin-top: var(--rhythm-section); }
.bento-card { border: var(--card-border); border-radius: var(--radius-card); padding: var(--s3) var(--s2); display: grid; gap: var(--s2); align-content: start; justify-items: start; min-width: 0; }
.svc, .facts-card { border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: var(--s3) 0 0; }
.svc { container-type: inline-size; }
.svc-list { display: grid; gap: 12px; width: 100%; }
.svc-list li { display: flex; gap: 12px; align-items: center; font-weight: var(--w-ui); line-height: 1.35; }
.svc-tick { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: var(--radius-control); background: var(--evergreen); }
.svc-tick svg { width: 15px; height: 15px; fill: var(--gold); }
@container (min-width: 520px) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: var(--s3); } }
.svc-area { display: grid; gap: var(--s1); padding-top: var(--s2); border-top: var(--rule); width: 100%; }
.area-pills { display: flex; flex-wrap: wrap; gap: var(--s1); }
.area-pills li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s2); border-radius: var(--radius-tag); border: var(--chip-border); font-size: var(--step-small); font-weight: var(--w-ui); }
.facts-card { container-type: inline-size; }
.fact-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0; }
@container (min-width: 640px) { .fact-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact-tile { background: var(--panel); border-radius: 16px; padding: var(--s2); display: grid; gap: 4px; align-content: start; min-width: 0; }
.fact-tile dt { font-size: var(--step-small); color: var(--muted); font-weight: var(--w-ui); }
.fact-tile dd { margin: 0; font-weight: var(--w-display); line-height: 1.3; overflow-wrap: break-word; }
.fact-big { font-size: 32px; line-height: 1; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.rank-card { background: var(--evergreen); color: var(--paper); border: 0; }
.rank-card h2, .rank-card p { color: var(--paper); }
.rank-card .spec-show { position: relative; color: var(--ink); width: 100%; max-width: 420px; gap: var(--s2); padding-right: 112px; }
.rank-mascot { position: absolute; right: var(--s2); bottom: 0; width: 104px; pointer-events: none; }
/* critic r5: on wide screens Tally's head met the top of the panel; bigger panel, bigger Tally */
@media (min-width: 1024px) { .rank-card .spec-show { min-height: 144px; padding-right: 148px; } .rank-mascot { width: 128px; } }
:is(.fold-perch, .rank-mascot, .steps-mascot, .ask-stamp, .helpful-peep, .cat-mascot) > .ai-char { width: 100%; height: auto; }
.rank-card .rank-num { font-size: 56px; width: auto; color: var(--evergreen); }
.rank-card .spec-name { font-size: var(--step-h3); }
.rank-card .spec-show--featured { color: var(--evergreen); }
.reviews-card { background: var(--panel); border: 0; }
@media (min-width: 768px) {
  .biz-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--rhythm-section) var(--s5); }
  .bento-card { padding: var(--s4); }
  .svc, .facts-card { padding: var(--s4) 0 0; } /* ruled blocks: headings sit on the page's left edge, not indented */
  .biz-bento { align-items: start; }
  .svc, .facts-card { grid-column: span 12; }
  .rank-card { grid-column: span 12; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: var(--s5); }
  .rank-card h2 { grid-column: 1 / -1; }
  .rank-card .btn--quiet { grid-column: 2; align-self: start; }
  .rank-card > .spec-show { grid-row: span 2; }
  .rank-card > p { align-self: end; }
  .biz-bento--reviews .rank-card { grid-column: span 7; grid-template-columns: minmax(0, 1fr); }
  .biz-bento--reviews .rank-card .btn--quiet { grid-column: auto; }
  .biz-bento--reviews .rank-card > .spec-show { grid-row: auto; }
  .reviews-card { grid-column: span 5; }
}
/* compare: heading column beside three cards */
.compare { display: grid; gap: var(--rhythm-head); }
.compare-side { display: grid; gap: var(--s2); justify-items: start; align-content: start; }
.compare-list { display: grid; gap: var(--s2); container: list / inline-size; }
@media (min-width: 1024px) {
  .compare { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); align-items: start; }
  .compare-side { position: sticky; top: calc(var(--s6) + var(--s4)); }
}
@media (max-width: 479px) { .biz-actions .btn { width: 100%; } .owner-actions .btn--secondary { width: 100%; white-space: nowrap; font-size: var(--step-small); padding-inline: var(--s2); } }

/* ---------- Colour pass 2026-11-18 (owner: "way too many light colours"; nothing complements the white) ----------
   Reference: two26-studio + copula-agency use a plain floor and FULL-STRENGTH colour blocks, never pale
   tints. Inner-page surfaces are now: paper floor · gold block · sky block · evergreen band · white outlined in ink.
   On gold and sky, text is ink or evergreen only (muted grey fails contrast there). */
.featured-slot { background: var(--gold); }
.slot-head { color: var(--ink); }
.side-band { background: var(--paper); border: 2px solid var(--ink); }
.side-band .spec-show { background: var(--paper); border: 2px solid var(--ink); color: var(--ink); } /* only the big Featured block is gold */
.side-band .spec-show--featured .tag-featured { background: var(--gold); color: var(--ink); }
.rank-card .spec-show { background: var(--paper); }
.rank-card .spec-show--featured { color: var(--ink); }
.rank-card .spec-show--featured .tag-featured { background: var(--gold); color: var(--ink); }
.hours .is-today { background: var(--illo-sky); }
.hours .is-today dt { color: var(--ink); }
.know-list li { border-top: 0; padding-top: 0; } /* spacing groups these; no extra rule system */
.side-quote { background: var(--illo-sky); }
.pick { background: var(--paper); border: 2px solid var(--ink); }
.cost-table thead th { background: var(--evergreen); color: var(--paper); border-bottom: 0; }
.ask-part { background: var(--illo-sky); }
.ask-part > .muted { color: var(--ink); }
.ask-item:has(input:checked) { background: color-mix(in oklab, var(--paper) 72%, var(--illo-sky)); }
.ask-item:has(input:checked) .ask-q { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.owner-card { background: var(--paper); border: 2px solid var(--ink); }
.fact-tile { background: var(--illo-sky); }
.fact-tile dt { color: var(--ink); }
/* characters face what they act on (owner: "why are they all facing one direction?"): the ones that stand LEFT of
   their content turn right. Mirror on the wrapper only; their own keyframes run inside it untouched. */
.ask-stamp, .helpful-peep { transform: scaleX(-1); }

/* ---------- Rows by count, never a ragged wrap (owner 2026-11-18: a lone pill dropped onto the next line looks loose) ----------
   Quick-pick names: a full-width list, one per line, any count. Form timing chips (4): one column, 2x2 when two fit,
   4 in a row when four fit. Listing facts: a text line with dot separators, not capsules. */
.pick-names { display: grid; gap: 0; margin-top: 12px; border-top: var(--rule); }
.pick-names a { display: flex; align-items: center; min-height: 48px; padding: 0; border: 0; border-bottom: var(--rule); border-radius: 0; background: none; box-shadow: none;
  color: var(--evergreen); font-size: var(--step-body-m); font-weight: var(--w-display); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .pick-names a:hover { transform: none; text-decoration-thickness: 2px; } }
.pick-names a:active { transform: none; box-shadow: none; }
.qb-timeline .chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
.qb-timeline .chip-radio { display: flex; }
.qb-timeline .chip { width: 100%; justify-content: center; }
@container (min-width: 340px) { .qb-timeline .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 600px) { .qb-timeline .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-tags { gap: 4px 0; }
.card-tags li { min-height: 0; padding: 0; gap: 0; border-radius: 0; background: none; font-weight: var(--w-ui); color: var(--ink); }
.card-tags li { white-space: nowrap; }
.card-tags li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin: 0 var(--s1); } /* dot ends an item, so a wrapped line never starts with one */

/* ---------- Reduced motion: nothing moves; colour and shape cues still change ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover, .chip, .chip-radio:active .chip, .glance-tile, .glance-tile:hover, .glance-tile:active, .pick-names a, .faq-key,
  .kc::after, .kc > *, .ask-item, .ask-box::after, .ask-box svg, .related-list .plate { transform: none !important; }
  .ask-done, .helpful-reply, .faq-list details[open] p { animation: none !important; }
}

/* ---------- Rubric fixes 2026-11-18 (fresh grade, round 1) ---------- */
.faq-list details p { max-width: 30em; } /* 2: open answers were 76-82 characters a line */
/* 18: "Visit website" gets the ink capsule on hover, like every quiet link */
.visit { position: relative; isolation: isolate; }
.visit::before { content: ""; position: absolute; z-index: -1; inset: 6px -10px; border-radius: var(--radius-control); background: var(--ink); opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .visit:hover { color: var(--paper); text-decoration: none; } .visit:hover::before { opacity: 1; } }
/* 19d: nested corners concentric (outer = inner + inset); stray 12 and 16 radii folded into the set */
.featured-slot { border-radius: calc(var(--radius-card) + var(--s2)); }
.side-band { border-radius: calc(var(--radius-card) + var(--s3) + 2px); }
.rank-card { border-radius: calc(var(--radius-card) + var(--s2)); }
@media (min-width: 768px) { .featured-slot { border-radius: calc(var(--radius-card) + var(--s3)); } .rank-card { border-radius: calc(var(--radius-card) + var(--s4)); } }
.fact-tile { border-radius: var(--radius-card); }
.hours > div { border-radius: var(--radius-control); }
/* 7: the section hairline also sits above the first block under the page head, and above the owner card */
.cat-body { margin-top: calc(var(--rhythm-section) / 2); padding-top: calc(var(--rhythm-section) / 2);
  background: linear-gradient(var(--hair), var(--hair)) center top / 100% 1px no-repeat; }
.biz > .owner-card { position: relative; }
.biz > .owner-card::before { content: ""; position: absolute; left: -2px; right: -2px; top: calc(-1 * var(--rhythm-section) / 2 - 2px); height: 1px; background: var(--hair); pointer-events: none; }
/* 8: fact dots lead each item and the one that starts a line is clipped, so no line ends on a dot */
.card-tags { margin-left: -20px; clip-path: inset(-8px -8px -8px 20px); }
.card-tags li:not(:last-child)::after { content: none; }
.card-tags li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin: 0 8px; }
/* 22: on phones "Visit website" sits beside Call at its own width, not a second full-width button */
@media (max-width: 479px) { .biz-actions .btn--secondary { width: auto; } }
/* 8: "Claim your listing" text lines up with the button above it */
.owner-actions .btn--quiet { padding: 0; }
/* ---------- Rubric fixes 2026-11-18 (fresh grade, round 2) ---------- */
/* 12: the profile bento's blocks carry their own 2px ink top rule, so no hairline above it (it read as a double rule);
   its rows are parts of one section, so they sit a sub-gap apart, not a full section gap */
.biz-bento { row-gap: var(--rhythm-sub); }
/* 19d: quote box concentric with its white form (outer = inner 20 + padding) */
.qb-form { border-radius: var(--radius-card); }
.quote-box--quiet { border-radius: calc(var(--radius-card) + var(--s2)); }
@media (min-width: 768px) { .quote-box--quiet { border-radius: calc(var(--radius-card) + var(--s4)); } }
@media (min-width: 1024px) { .quote-box--quiet { border-radius: calc(var(--radius-card) + var(--s5)); } }
/* 18: form time options show hover as a 2px ink ring, not only a border tint */
@media (hover: hover) and (pointer: fine) { .chip-radio:hover input:not(:checked) + .chip { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } }
/* ---------- Owner-delegated design calls 2026-11-18 ----------
   Outline rule: 1px grey (--card-border) = a card that is itself a link or a list of links (listing cards, guide
   plates, steps card, guide link row). 2px ink = a block that holds information (how this list works, quick picks,
   owner card, cost table). Never an outlined box inside an outlined box: inner rows separate with a rule. */
.side-band { border-radius: var(--radius-card); }
.side-band .spec-show { border: 0; border-top: var(--rule); border-radius: 0; background: none; padding: var(--s2) 0 0; min-height: 0; }
.table-scroll { border: 2px solid var(--ink); }
/* Profile quick facts: ONE sky panel (was four sky tiles beside a sky "today" row), every value one size */
.fact-tiles { background: var(--illo-sky); border-radius: var(--radius-card); padding: var(--s1); gap: 0; }
.fact-tile { background: none; border-radius: 0; }
.fact-big { font-size: inherit; line-height: inherit; color: inherit; }

/* ---------- Insider Score /100 (2026-11-26): our own checked facts only. A number, never a filled-track bar; no motion (data being read). ---------- */
.card-score { margin: 0; }
.card-score a { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ink); text-decoration: none; min-height: 32px; border-radius: var(--s1); }
.card-score b { font-family: var(--font-display); font-weight: var(--w-display); font-size: 24px; line-height: 1; color: var(--evergreen); font-variant-numeric: tabular-nums; }
.card-score .of { font-size: var(--step-small); font-weight: var(--w-ui); color: var(--muted); }
.card-score .lbl { margin-left: var(--s1); font-size: var(--step-small); font-weight: var(--w-ui); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .card-score a:hover .lbl { text-decoration: underline; text-underline-offset: 3px; } }
/* Profile hero score card (2026-11-26, after abbotsfordsbest's trust-score card): big number, six rows of got / max,
   a slim evergreen bar with NO grey track behind it (the number carries the value; the bar is aria-hidden), one quiet link. */
.ins-score { border: var(--card-border); border-radius: var(--radius-card); background: var(--paper); padding: var(--s3) var(--s2) var(--s2); display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.ins-top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num h" "num what"; column-gap: var(--s2); row-gap: 4px; align-items: center; }
.ins-top h2 { grid-area: h; align-self: end; font-size: var(--step-body-m); line-height: 1.3; letter-spacing: 0; }
.ins-num { grid-area: num; display: flex; align-items: baseline; gap: 4px; margin: 0; padding-right: var(--s2); border-right: var(--rule); }
.ins-num b { font-family: var(--font-display); font-weight: var(--w-display); font-size: 48px; line-height: 1; color: var(--evergreen); font-variant-numeric: tabular-nums; letter-spacing: -.02em; } /* below the 56px H1: the name stays the largest text */
.ins-num span { font-size: var(--step-body-m); font-weight: var(--w-ui); color: var(--muted); }
.ins-what { grid-area: what; align-self: start; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.ins-rows { display: grid; margin: 0; border-top: var(--rule); padding-top: 4px; }
.ins-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); row-gap: 8px; align-items: baseline; padding: 8px 0; }
.ins-row dt { font-weight: var(--w-ui); }
.ins-row dd { margin: 0; }
.ins-pts { white-space: nowrap; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.ins-pts b { font-family: var(--font-display); font-size: 18px; color: var(--evergreen); }
.ins-bar { grid-column: 1 / -1; height: 6px; } /* a zero row keeps its empty bar slot so every row has the same height */
.ins-bar span { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: var(--radius-tag); background: var(--evergreen); }
.ins-row--zero .ins-pts b { color: var(--muted); }
.ins-how { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--w-ui); font-size: var(--step-small); }
@media (min-width: 768px) { .ins-score { padding: var(--s4); } }
/* About beside the address, hours and map card (moved out of the hero). Services sit under About so the left column fills. */
.biz-info { display: grid; gap: var(--rhythm-sub); margin-top: var(--rhythm-section); grid-template-areas: "about" "where" "svc" "checks" "facts"; }
.biz-info > .biz-about { grid-area: about; }
.biz-info > .biz-where { grid-area: where; }
.biz-info > .svc { grid-area: svc; }
.biz-info > .facts-card { grid-area: facts; }
.biz-info > .checks-card { grid-area: checks; }
/* Buyer checks (Insider Score v2, 2026-12-01): ruled block like Services; yes = evergreen tick, no = quiet outlined minus. */
.checks-card { border: 0; border-top: 2px solid var(--ink); border-radius: 0; padding: var(--s3) 0 0; }
.checks-intro, .check-google { max-width: 40em; color: var(--muted); font-size: var(--step-small); line-height: 1.45; }
.check-google { color: var(--ink); width: 100%; max-width: none; }
.check-list { display: grid; width: 100%; }
.check-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: var(--rule); }
.check-row:first-child { border-top: var(--rule); }
.check-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-control); background: var(--evergreen); }
.check-mark svg { width: 15px; height: 15px; fill: var(--gold); }
.check-row--no .check-mark { background: none; box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--muted) 45%, transparent); }
.check-row--no .check-mark svg { fill: var(--muted); stroke: var(--muted); stroke-width: 24; }
.check-label { font-weight: var(--w-ui); line-height: 1.35; }
.check-src { font-size: var(--step-small); color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.check-src a { color: var(--ink); }
.check-row--no .check-label { color: var(--muted); }
@media (min-width: 768px) { .checks-card { padding: var(--s4) 0 0; } }
.biz-about { border-top: 2px solid var(--ink); padding-top: var(--s3); display: grid; gap: var(--s2); }
.biz-about h2 { font-size: var(--step-h3); line-height: var(--lh-head); letter-spacing: 0; }
.biz-about p { max-width: 40em; }
@media (min-width: 768px) { .biz-about { padding-top: var(--s4); } }
@media (min-width: 1024px) {
  .biz-info { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; grid-template-areas: "about where" "svc where" "checks where" "facts where"; column-gap: var(--s5); align-items: start; }
  .biz-info > .biz-where { align-self: start; position: sticky; top: calc(var(--s6) + var(--s4)); } /* short cards (no map) stay beside the column they describe */
}

/* ---------- Earned badges (2026-11-26): from the Insider Score only, never paid, never on Featured ----------
   #1 = evergreen fill, Top 3 = evergreen outline. The words carry the meaning; colour only adds emphasis.
   Static on purpose: seen on every card, so it never animates. */
.card-score { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); }
.badge-rank { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px 0 8px; border-radius: var(--radius-tag);
  font-size: var(--step-small); font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--evergreen); background: var(--paper); border: 2px solid var(--evergreen); }
.badge-rank .icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.badge-rank--first { background: var(--evergreen); color: var(--paper); }
.badge-rank--first .icon { fill: var(--gold); }
.badge-rank--lg { min-height: 36px; padding: 0 16px 0 12px; font-size: var(--step-body-m); }
.biz-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); }

/* ---------- Owner website badge (profile owner card) ---------- */
.embed { width: 100%; border-top: var(--rule); }
.owner-card--wide .embed { grid-column: 1 / -1; }
.embed summary { display: flex; align-items: center; gap: var(--s1); min-height: var(--control-h); font-weight: 700; cursor: pointer; color: var(--evergreen); list-style: none; }
.embed summary::-webkit-details-marker { display: none; }
.embed summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--evergreen); color: var(--paper); font-size: 18px; line-height: 1; }
.embed[open] summary::before { content: "\2212"; }
.embed summary:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); border-radius: var(--s1); }
.embed-body { display: grid; gap: var(--s2); justify-items: start; padding: var(--s1) 0 var(--s2); }
.embed-body p { max-width: 34em; }
.embed-preview { display: block; max-width: 100%; height: auto; }
.embed-label { font-size: var(--step-small); font-weight: var(--w-ui); }
.embed-code { width: 100%; max-width: 640px; padding: 12px var(--s2); border: var(--input-border); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.embed-code:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
.embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.embed-status { font-size: var(--step-small); font-weight: var(--w-ui); color: var(--evergreen); }
@media (hover: hover) and (pointer: fine) { .embed summary:hover { text-decoration: underline; text-underline-offset: 4px; } }
/* Long badge form (All businesses page) falls back to the short form on narrow cards, so the pill never overruns the card. */
.badge-rank { max-width: 100%; }
.bl-short { display: none; }
@media (max-width: 479px) { .bl-long { display: none; } .bl-short { display: inline; } }
/* Profile hero round-1 grader fixes (2026-11-26) */
.biz-info .fact-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } /* one column on phones, so long values never break over 3 lines */
a.badge-rank { text-decoration: none; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { a.badge-rank:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--evergreen); } }
a.badge-rank:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
/* Round-2 grader fixes (2026-11-26): a 1px hairline scale line under each bar (not a filled grey track) so 0 / 20 reads
   as scored zero rather than missing; How we rank shows a hover; a tighter step from the hero into About on wide screens. */
.ins-bar { background: linear-gradient(rgb(31 29 26 / .16), rgb(31 29 26 / .16)) left center / 100% 1px no-repeat; }
@media (hover: hover) and (pointer: fine) { .ins-how:hover { text-decoration-thickness: 2px; color: var(--ink); } }
@media (min-width: 1024px) { .biz-info { margin-top: var(--s6); } }

/* ---------- Category pages at width (2026-11-27: less side white space, like the 832px article column) ----------
   The one Quick picks card stopped at 34em (578px) beside a 1056px column of nothing. From 1024 it fills the row:
   question + intro on the left, the names in two columns filled top to bottom (--rows = half the count, rounded up,
   set on the list) so no name sits alone on a row. The guide link line runs to its arrow. Phones unchanged. */
@media (min-width: 1024px) {
  .choose .pick-tiles > li { max-width: none; }
  .pick { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4) var(--s5); column-gap: var(--s3); }
  .pick > div { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--s5); align-items: start; }
  .pick > div > p:not(.pick-q) { grid-column: 1; }
  .pick .pick-names { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 1), 1fr);
    grid-template-columns: 1fr 1fr; column-gap: var(--s4); border-top: 0; }
  .pick .pick-names a { border-top: var(--rule); border-bottom: 0; }
  .choose .guide-cta p { max-width: none; }
}
