/* PrairieTrade theme (mockup v5: Direction C "Three doors" adopted site-wide, 27 Nov 2026).
   Direction: tonal blocks on Paper. Every page opens on a bounded block (a "door"): Sky for planning a job,
   Ink for something wrong right now, white for checking a company, businesses and the small print.
   Inside a block, white cards carry the content. No JS required. No blur. No side-tab accent bars.
   Colour roles (owner rules):
     sky    = things you can press, and the "planning a job" surface
     ink    = the "something's wrong right now" surface
     wheat  = paid placement only (Featured, Verified Pro)
     clay   = errors and gas safety only
     spruce = verified checks only
     sample, placeholder and status tags = neutral, dashed edge, never hatched
   Radii: 18px blocks and cards, 12px controls and tiles, 6px tags.
   Icons: Tabler Icons 3.x outline paths (MIT licence, github.com/tabler/tabler-icons), pasted inline.
   File map: 1 tokens, 2 fonts, 3 base, 4 layout, 5 type, 6 mockup scaffolding, 7 header, 8 buttons, 9 forms,
   10 page head (doors on inner pages), 11 homepage doors, 12 homepage ledger, 13 homepage this week,
   14 homepage sample record, 15 homepage before you call, 16 homepage seasons and alerts, 17 homepage
   businesses box, 18 cards, 19 paid placement, 20 listings, 21 content blocks, 22 asides, 23 search and
   confirmation steps, 24 charts, 25 for businesses, 26 tables, 27 FAQ, 28 updates feed, 29 call bar,
   30 footer, 31 motion, forced colours, print. */

/* ==== 1. Tokens ==================================================================== */
/* Colour tokens. The same list is re-declared on white content cards that sit inside a dark block
   (.ph-plan .answer and friends), so they read as normal light or dark surfaces again. */
:root, .ph-plan .answer, .ph-now .answer, .ph-plan .safety, .ph-now .safety {
  --bg: light-dark(#FBF8F2, #0E1419);              /* Paper: the one warm ground */
  --surface: light-dark(#FFFFFF, #172029);
  --surface-2: light-dark(#F1F3F4, #1B252E);       /* cool neutral: table heads, hovers */
  --soft: light-dark(#F1EEE7, #141C23);            /* footer, quiet panels */
  --ink: light-dark(#17222B, #ECF0F3);
  --ink-2: light-dark(#3D4A54, #C2CCD3);
  --muted: light-dark(#58646D, #9AA6AE);
  --primary: light-dark(#1E4A6B, #8CC0E6);         /* Sky */
  --primary-hover: light-dark(#163A55, #A9D1EF);
  --primary-soft: light-dark(#E1ECF4, #1A2D3C);
  --on-primary: light-dark(#FFFFFF, #0E1419);
  --wheat-text: light-dark(#6B4400, #F0C679);      /* paid only */
  --wheat-soft: light-dark(#F7E2AE, #3A2E12);
  --wheat-rule: light-dark(#A06A00, #E8B45A);
  --verified: light-dark(#1F6B5F, #7FD1C0);        /* Spruce */
  --verified-soft: light-dark(#E0F0EC, #13302B);
  --clay: light-dark(#A3231B, #F2928B);            /* errors and gas safety */
  --clay-soft: light-dark(#FBE6E3, #3A1B19);
  --tag-ink: light-dark(#3D4A54, #C2CCD3);
  --tag-bg: light-dark(#EDEAE3, #1B252E);
  --line: light-dark(#DCD7CD, #2C3740);            /* card edges, row rules */
  --rule: light-dark(#9AA3AA, #4A5761);
  --line-strong: light-dark(#6E7A84, #6F7C86);     /* control borders, 3:1+ */
  --focus: light-dark(#1E4A6B, #F0C679);
  color: var(--ink);
}
:root {
  /* Light only (owner decision, 27 Nov 2026): the approved Direction C colours on every device. The dark
     values stay in the tokens, unused, in case a dark mode is ever wanted (set color-scheme: light dark). */
  color-scheme: light;
  /* The doors: tonal blocks. Text on them is always light, in both modes. */
  --door-now: light-dark(#17222B, #222D37); --door-now-2: light-dark(#24313B, #2C3944);
  --door-plan: light-dark(#1E4A6B, #183A55); --door-plan-2: light-dark(#2A5A7E, #22496A);
  --job-bg: light-dark(#FFFFFF, #0F2233); --job-ink: light-dark(#17222B, #ECF0F3);
  --job-icon: light-dark(#1E4A6B, #8CC0E6); --job-chev: light-dark(#55626B, #9AA6AE);
  --font: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', system-ui, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --wrap: 1200px; --prose: 66ch;
  /* Type scale: phone 18 / 22 / 28 / 34, display 32 */
  --fs-body: 1.125rem; --fs-h3: 1.375rem; --fs-h2: 1.75rem; --fs-h1: 2.125rem; --fs-display: 2rem;
  --fs-small: 1rem; --fs-meta: .9375rem;
  /* Spacing: inside a component s-2..s-4; between components s-5; above an h2 s-7; between sections s-7/s-8 */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0'/%3E%3Cpath d='M9 12l2 2l4 -4'/%3E%3C/svg%3E");
}
:root[data-theme="light"] { color-scheme: light; }
/* Desktop: 19 / 24 / 36 / 44, display 52 */
@media (min-width: 1024px) {
  :root { --fs-body: 1.1875rem; --fs-h3: 1.5rem; --fs-h2: 2.25rem; --fs-h1: 2.75rem; --fs-display: 3.25rem; }
}
/* On a dark door: light text, white buttons with ink text, ghost secondary buttons, a wheat-gold focus ring */
.d-now, .d-plan, .ph-now > .wrap, .ph-plan > .wrap {
  --ink: #FFFFFF; --ink-2: #D3E1EC; --muted: #C9D6E0;
  --primary: #FFFFFF; --primary-hover: #E6EEF5; --on-primary: #17222B; --primary-soft: rgba(255, 255, 255, .12);
  --surface-2: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .22); --rule: rgba(255, 255, 255, .32);
  --line-strong: #8FA9BD; --focus: #F0C679; --tag-ink: #F3F5F7; --tag-bg: rgba(255, 255, 255, .1);
  --clay: #FFB4AC; --verified: #9FE0D1;
  color: var(--ink);
}
.d-now, .ph-now > .wrap { --surface: var(--door-now-2); --ink-2: #C9D3DA; --muted: #C9D3DA; }
.d-plan, .ph-plan > .wrap { --surface: var(--door-plan-2); }

/* Fallback for browsers without light-dark(): plain light values, then a dark block. */
@supports not (color: light-dark(#000, #fff)) {
  :root, .ph-plan .answer, .ph-now .answer, .ph-plan .safety, .ph-now .safety {
    --bg: #FBF8F2; --surface: #FFFFFF; --surface-2: #F1F3F4; --soft: #F1EEE7; --ink: #17222B; --ink-2: #3D4A54; --muted: #58646D;
    --primary: #1E4A6B; --primary-hover: #163A55; --primary-soft: #E1ECF4; --on-primary: #FFFFFF;
    --wheat-text: #6B4400; --wheat-soft: #F7E2AE; --wheat-rule: #A06A00;
    --verified: #1F6B5F; --verified-soft: #E0F0EC; --clay: #A3231B; --clay-soft: #FBE6E3;
    --tag-ink: #3D4A54; --tag-bg: #EDEAE3; --line: #DCD7CD; --rule: #9AA3AA; --line-strong: #6E7A84; --focus: #1E4A6B;
  }
  :root { --door-now: #17222B; --door-now-2: #24313B; --door-plan: #1E4A6B; --door-plan-2: #2A5A7E;
    --job-bg: #FFFFFF; --job-ink: #17222B; --job-icon: #1E4A6B; --job-chev: #55626B; }
  @media (prefers-color-scheme: dark) and (min-width: 99999px) { /* disabled: light only */
    :root, .ph-plan .answer, .ph-now .answer, .ph-plan .safety, .ph-now .safety {
      --bg: #0E1419; --surface: #172029; --surface-2: #1B252E; --soft: #141C23; --ink: #ECF0F3; --ink-2: #C2CCD3; --muted: #9AA6AE;
      --primary: #8CC0E6; --primary-hover: #A9D1EF; --primary-soft: #1A2D3C; --on-primary: #0E1419;
      --wheat-text: #F0C679; --wheat-soft: #3A2E12; --wheat-rule: #E8B45A;
      --verified: #7FD1C0; --verified-soft: #13302B; --clay: #F2928B; --clay-soft: #3A1B19;
      --tag-ink: #C2CCD3; --tag-bg: #1B252E; --line: #2C3740; --rule: #4A5761; --line-strong: #6F7C86; --focus: #F0C679;
    }
    :root { --door-now: #222D37; --door-now-2: #2C3944; --door-plan: #183A55; --door-plan-2: #22496A;
      --job-bg: #0F2233; --job-ink: #ECF0F3; --job-icon: #8CC0E6; --job-chev: #9AA6AE; }
  }
}

/* ==== 2. Fonts ===================================================================== */
/* Metric-matched local fallback so the swap to Atkinson Hyperlegible Next doesn't move text.
   Measured in Edge on 27 Nov 2026 against Arial. Production self-hosts the webfont (see build.py). */
@font-face { font-family: 'Atkinson Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT');
  size-adjust: 100.4%; ascent-override: 97.6%; descent-override: 31.9%; line-gap-override: 0%; }
@font-face { font-family: 'Atkinson Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 100.4%; ascent-override: 97.6%; descent-override: 31.9%; line-gap-override: 0%; }

/* ==== 3. Base ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (max-width: 859px) { html { scroll-padding-top: 76px; scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; }
main:focus { outline: none; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { left: 12px; }
.tel { white-space: nowrap; font-variant-numeric: tabular-nums; }   /* phone numbers never break */
.nowrap { white-space: nowrap; }                                     /* date ranges in tables */
.num, td, .record b, .price { font-variant-numeric: tabular-nums; }

/* ==== 4. Layout ==================================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
/* padding-block, never the shorthand: .wrap owns the side gutters */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding-block: var(--s-6) var(--s-7); }
.layout > * { min-width: 0; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); padding-block: var(--s-7) var(--s-8); } }
.page-body { padding-block: var(--s-6) var(--s-7); }
@media (min-width: 1024px) { .page-body { padding-block: var(--s-7) var(--s-8); } }
.layout > div > section + section, .layout > div > section + .prose, .page-body > h2:not(:first-child) { margin-top: var(--s-7); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.75rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) { .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.after-seq { margin-top: var(--s-5); }
.mt-section { margin-top: var(--s-7); }
/* Homepage sections: one rhythm, a head row (title left, source or date right) */
.home-sec { padding-block: var(--s-7) 0; }
@media (min-width: 1024px) { .home-sec { padding-block: var(--s-8) 0; } }
.home-sec:last-child { padding-bottom: var(--s-8); }
.sec-head { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-5); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.split { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }
.split > div > h2 { margin-bottom: var(--s-3); }

/* ==== 5. Type ====================================================================== */
h1, h2, h3 { font-family: var(--font); color: var(--ink); text-wrap: balance; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.02em; }
.display { font-size: var(--fs-display); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h2 + p, h3 + p { margin-top: 0; }
p { margin: 0 0 1em; color: var(--ink-2); max-width: var(--prose); text-wrap: pretty; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 1024px) { .lead { font-size: 1.3125rem; } }
.small, small { font-size: var(--fs-small); color: var(--muted); }
.label { font-size: var(--fs-meta); font-weight: 700; color: var(--ink-2); }   /* sentence case, no tracking */

/* ==== 6. Mockup scaffolding (sample data and placeholders; never shipped as-is) ===== */
.mockbar { background: #2b2b2b; color: #f1f1f1; font-size: .875rem; padding: .45rem 16px; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }
.mockbar code { color: #ffd27a; font-family: ui-monospace, Consolas, monospace; }
code { overflow-wrap: anywhere; }   /* long file paths in internal notes must wrap at 360px */
.mockbar a { color: #9fd0ff; }
.sample-tag { display: inline-block; vertical-align: .15em; font-size: .875rem; font-weight: 700; line-height: 1.6; color: var(--tag-ink); background: var(--tag-bg); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 0 .45rem; letter-spacing: 0; }
h2 .sample-tag, h3 .sample-tag { margin-left: .35rem; }
.placeholder { display: block; background: var(--tag-bg); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: .9rem 1rem; color: var(--ink-2); font-size: 1rem; }
.sample-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 280px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--tag-bg); color: var(--tag-ink); font-weight: 600; text-align: center; padding: 1rem; }
.notice { background: var(--tag-bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r); padding: .75rem 1rem; font-size: 1rem; font-weight: 600; margin: 1rem 0; }
.example-state { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 1rem; margin-top: 1rem; display: grid; gap: 1rem; background: var(--surface); max-width: 560px; }
.example-state > .label { margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.swatch { display: inline-flex; flex-direction: column; justify-content: flex-end; width: 9.5rem; min-height: 5rem; border-radius: var(--r); border: 1px solid var(--line-strong); padding: .5rem .6rem; font-size: .875rem; font-weight: 600; }

/* ==== 7. Header and navigation ======================================================= */
/* Desktop (1024px+): logo, one row of links, "For businesses" pill; sticky.
   Below 1024px: logo, a "No heat?" shortcut and a Menu button. The menu is <details>, so it opens
   without JavaScript; a few lines of JS add Escape and click-outside to close. */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: .5rem; min-height: 60px; position: relative; }
@media (min-width: 1024px) { .site-header .wrap { min-height: 76px; gap: 1rem; } }
.logo { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 1.25rem; font-weight: 700; margin-right: auto; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .t { color: var(--primary); }
.nav { display: none; }
@media (min-width: 1200px) { .nav { display: flex; align-items: center; gap: .15rem; } }
.nav > a, .dd-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.nav > a:hover, .dd-top:hover { color: var(--primary); text-decoration: underline; }
.nav > a[aria-current="page"], .dd-top[aria-current="page"], .dd.is-section .dd-top { box-shadow: inset 0 -3px 0 var(--primary); }
/* Dropdowns: the trade name links to its hub; the chevron button (or hover, or keyboard focus) opens the job list. */
.dd { position: relative; display: inline-flex; align-items: center; }
.dd-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 0 .2rem; margin-left: -.45rem; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: var(--r-sm); }
.dd-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 250px; margin: 0; padding: .4rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 32px -16px rgb(0 0 0 / .3); }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dd:hover:not(.shut) > .dd-menu, .dd:focus-within:not(.shut) > .dd-menu, .dd.open > .dd-menu { display: block; }
.dd-menu li { margin: 0; }
.dd-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9875rem; white-space: nowrap; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
/* Emergency: a small dark button on every screen size, opening the two emergency checklists. */
.dd-emergency { margin-left: auto; }
@media (min-width: 1200px) { .dd-emergency { margin-left: .5rem; } }
.em-btn { gap: .3rem; min-height: 44px; margin: 0; padding: 0 .8rem 0 1rem; border-radius: 999px; background: var(--door-now); color: #fff; font: 700 .9375rem/1 var(--font); }
.em-btn svg { width: 16px; height: 16px; }
.em-btn:hover { background: var(--door-now-2); color: #fff; }
.dd-emergency > .dd-menu { left: auto; right: 0; }
.nav-pros { display: none; }
@media (min-width: 1200px) { .nav-pros { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; margin-left: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; } .nav-pros:hover { border-color: var(--primary); } }
.menu > summary { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 700; font-size: .9375rem; color: var(--ink); background: var(--surface); cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .15s ease, background-color .15s ease; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu[open] > summary { border-color: var(--primary); color: var(--primary); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .35); padding: .5rem 16px 1.25rem; max-height: calc(100dvh - 60px); overflow-y: auto; }
.menu-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu-panel li { border-bottom: 1px solid var(--line); }
.menu-panel li a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.menu-panel li a::after { content: "›"; color: var(--muted); font-size: 1.4rem; }
.menu-panel li.mp-sub { border-bottom: 0; }
.menu-panel li.mp-sub a { min-height: 44px; padding-left: 1rem; font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.menu-panel li.mp-sub a::after { content: none; }
.menu-panel li a[aria-current="page"] { color: var(--primary); }
.menu-panel .menu-pros { width: 100%; }
@media (min-width: 768px) { .menu-panel { padding-inline: 24px; } .menu-panel ul, .menu-panel .menu-pros { max-width: 560px; } }
@media (min-width: 1200px) { .menu { display: none; } }
@media (max-width: 479px) { .site-header .wrap { gap: .4rem; } .menu > summary { padding: 0 .75rem; } .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .em-btn { padding: 0 .65rem 0 .85rem; } }
@media (max-width: 359px) { .em-btn { padding: 0 .55rem 0 .7rem; } .menu > summary { padding: 0 .65rem; } .logo { font-size: 1.1rem; } }

/* ==== 8. Buttons ==================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .55rem 1.2rem; border-radius: var(--r); border: 1px solid transparent; font: 700 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0; max-width: none; }

/* Required fields: an asterisk after the label (ink, not clay: clay is for errors only). */
.req-note { font-size: .9375rem; color: var(--muted); margin: 0 0 .5rem; }
.req { color: var(--ink); font-weight: 700; }
.field:has(:is(input, select, textarea)[required]) > label::after,
fieldset:has(input[required]) > legend::after,
.check:has(input[required]) > span::after { content: " *"; color: var(--ink); font-weight: 700; }

/* ==== 9. Forms ====================================================================== */
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; color: var(--ink); }
.field select, .field textarea, .field input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); padding: .55rem .9rem; font: inherit; font-size: 1.0625rem; }
.field textarea { min-height: 112px; line-height: 1.4; resize: vertical; }
.hint { font-size: 1rem; color: var(--muted); margin: .3rem 0 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1rem; margin-bottom: .35rem; padding: 0; color: var(--ink); }
.radio, .check { display: flex; gap: .7rem; align-items: center; min-height: 44px; font-weight: 400; font-size: 1.0625rem; color: var(--ink); }
.check { align-items: flex-start; padding-block: .3rem; }
.radio input, .check input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--primary); }
.form-card { display: grid; gap: 1rem; max-width: 560px; }
.form-card .privacy { font-size: .9375rem; color: var(--ink-2); margin: 0; max-width: none; }
.form-card .emergency-note { font-weight: 700; color: var(--ink); margin: 0; }
.form-card > .hint, .form-card > p { margin: 0; }
.form-card > h2, .form-card > h3 { margin: 0; font-size: var(--fs-h3); }
.form-card > .btn { justify-self: start; }
/* Form states: error (clay), success (spruce) */
.field-error { display: flex; gap: .4rem; align-items: flex-start; color: var(--clay); font-weight: 600; font-size: 1rem; margin: .35rem 0 0; }
.field-error svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; fill: none; stroke: currentColor; stroke-width: 2.2; }
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--clay); }
.error-summary { border: 2px solid var(--clay); background: var(--clay-soft); border-radius: var(--r); padding: .8rem 1rem; }
.error-summary h2, .error-summary h3 { font-size: 1.0625rem; margin: 0 0 .3rem; color: var(--clay); }
.error-summary ul { margin: 0; padding-left: 1.2rem; color: var(--ink); }
.status-msg { background: var(--verified-soft); color: var(--verified); border-radius: var(--r); padding: .8rem 1rem; font-weight: 600; }
.status-msg:empty { display: none; }

/* ==== 10. Page head: every inner page opens on a door ============================== */
/* Default: the white "check" door. .ph-plan = Sky (jobs, trades, guides, data);
   .ph-now = Ink (no heat, burst pipe). White cards inside a dark door reset to normal tokens. */
.page-head { padding: var(--s-4) 16px 0; }
@media (min-width: 768px) { .page-head { padding: var(--s-5) 24px 0; } }
@media (min-width: 1024px) { .page-head { padding: var(--s-6) 32px 0; } }
.page-head > .wrap { max-width: calc(var(--wrap) - 64px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.25rem 1.75rem; }
@media (min-width: 768px) { .page-head > .wrap { padding: 2rem 2rem 2.25rem; } }
@media (min-width: 1024px) { .page-head > .wrap { padding: 2.5rem 2.75rem 2.75rem; } }
.ph-plan > .wrap { background: var(--door-plan); border-color: transparent; }
.ph-now > .wrap { background: var(--door-now); border-color: transparent; }
.page-head h1 { max-width: 28ch; }
.page-head > .wrap > :last-child { margin-bottom: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: 1rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: .3rem; }
.crumbs a { color: var(--muted); }
/* Answer box: a tint and a full hairline on light doors, a white card on dark ones */
.answer { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: var(--r); padding: var(--s-4) 1.25rem; margin: 1.25rem 0 0; max-width: 780px; }
.ph-plan .answer, .ph-now .answer { background: var(--surface); border-color: transparent; }
.answer.short::before { content: "Short answer"; display: block; font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: .35rem; }
.answer p { margin: 0; color: var(--ink); font-size: 1.125rem; }
.answer p + p { margin-top: .5rem; }
.answer .basis { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font-size: 1rem; color: var(--muted); margin-top: 1rem; }
.byline b { color: var(--ink-2); }
.byline .notice { margin: 0; }
.head-meta { margin: var(--s-2) 0 0; }
.updated { margin: -.15rem 0 0; font-size: var(--fs-meta); color: var(--muted); }

/* ==== 11. Homepage: intro and the three doors ======================================= */
.intro { padding: var(--s-5) 0 1.75rem; }
@media (min-width: 1024px) { .intro { padding: 2.5rem 0; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: end; } }
.intro h1 { margin: 0; }
.intro p { margin: .9rem 0 0; font-size: 1.125rem; }
@media (min-width: 1024px) { .intro p { margin: 0; padding-bottom: .4rem; } }
.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1024px) { .doors { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 16px; }
  .d-plan { grid-column: 1; grid-row: 1 / 3; } .d-now { grid-column: 2; grid-row: 1; } .d-check { grid-column: 2; grid-row: 2; } }
.door { border-radius: var(--r-lg); padding: 1.5rem 1.25rem; }
@media (min-width: 768px) { .door { padding: 2rem; } }
.door .q { margin: 0; font-size: 1rem; font-weight: 700; display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.door h2 { font-size: 1.625rem; margin: .35rem 0 0; }
@media (min-width: 1024px) { .door h2 { font-size: 1.875rem; } }
.door .sub { margin: .5rem 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.d-now { background: var(--door-now); }
.d-now .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.gas { margin: 1rem 0 0; display: flex; gap: .55rem; align-items: flex-start; font-size: 1rem; color: var(--ink-2); }
.gas svg { color: var(--clay); width: 22px; height: 22px; margin-top: 1px; }
.gas b { color: var(--clay); }
.d-plan { background: var(--door-plan); display: flex; flex-direction: column; }
.jobs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1024px) { .d-plan .jobs { flex: 1; grid-auto-rows: 1fr; } }
.jobs li { display: flex; }
.job { flex: 1; display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .7rem 1rem; border-radius: var(--r); background: var(--job-bg); color: var(--job-ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; transition: box-shadow .12s ease; }
.job svg.i { width: 28px; height: 28px; color: var(--job-icon); stroke-width: 1.6; }
.job .chev { width: 20px; height: 20px; margin-left: auto; color: var(--job-chev); transition: transform .12s ease; }
.job:hover { color: var(--job-ink); box-shadow: 0 0 0 3px #8CC0E6; }
.job:hover .chev { transform: translateX(2px); }
.plan-foot { margin: auto 0 0; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 1rem; max-width: none; }
.plan-foot span { display: inline-flex; gap: .45rem; align-items: center; }
.plan-foot svg { width: 20px; height: 20px; color: var(--verified); }
.d-check { background: var(--surface); border: 1px solid var(--line); }
.d-check form { margin-top: 1rem; }
.d-check label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem; }
.d-check .row { display: flex; gap: .5rem; }
.d-check input { flex: 1; min-width: 0; min-height: 54px; font: inherit; font-size: 1.0625rem; padding: .5rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.d-check .hint { font-size: .9375rem; margin-top: .4rem; }
.browse { margin: 1.25rem 0 0; font-size: 1rem; }

/* Section bands: full-width tonal rows that alternate down a page, so long pages read in chapters.
   The band colour is painted with a border-image outset (ink overflow, so it never causes sideways
   scroll) while the content keeps its .wrap width. Only existing tokens: white, Sky tint, deep Sky.
   Never wheat (paid only) or clay (safety only). In WordPress: add the class "band band-white"
   (or band-sky / band-deep) to a Group block, or use the "Section band" pattern. */
.band { --band-bg: var(--surface); padding-block: var(--s-7); margin-top: var(--s-7); border-image: conic-gradient(var(--band-bg) 0 0) fill 0 / / 0 100vmax; }
@media (min-width: 1024px) { .band { padding-block: var(--s-8); margin-top: var(--s-8); } }
.home-sec.band { padding-block: var(--s-7); }
@media (min-width: 1024px) { .home-sec.band { padding-block: var(--s-8); } }
.band + .home-sec, .band + .band { margin-top: 0; }
.band-white { --band-bg: var(--surface); }
.band-sky { --band-bg: var(--primary-soft); }
.band-deep { --band-bg: var(--door-plan); }
.band-deep > .sec-head h2, .band-deep > .sec-head p { color: #fff; }
/* Cards that are white on Paper need an edge on a white band, and stay white on the Sky bands. */
.band-white .card, .band-white .season, .band-white .marks, .band-white .ask, .band-white .split > div > .card { border-color: var(--line); }
.band-sky .card, .band-sky .rec, .band-sky .biz-box { background: var(--surface); }
@media (forced-colors: active) { .band { border-image: none; } }

/* Rotating word in the homepage H1. The HTML holds the full sentence ("Calgary furnace, HVAC and
   plumbing companies, checked against City records"), which is what Google, screen readers, copy-paste
   and reduced-motion users get. On screen, the three trade words take turns in one slot:
   HVAC, then furnace, then plumbing, 3 seconds each. CSS only; no JavaScript. */
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.rot > .w { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); animation: rot-word 9s cubic-bezier(.2, .7, .2, 1) infinite; color: var(--primary); }
.rot > .w1 { animation-delay: 0s; }
.rot > .w2 { animation-delay: 3s; }
.rot > .w3 { animation-delay: 6s; }
.rot > .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes rot-word {
  0% { opacity: 0; transform: translateY(.6em); }
  5%, 30% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-.6em); }
}
@media (prefers-reduced-motion: reduce) {
  .rot { display: inline; overflow: visible; }
  .rot > .w { opacity: 1; transform: none; animation: none; color: inherit; }
  .rot > .sep { position: static; width: auto; height: auto; clip: auto; }
  .rot + br { display: none; }
}

/* Emergency door (panel review, 27 Nov 2026): the gas warning comes first, as a full-width strip. */
.gas-strip { margin: .9rem 0 1rem; padding: .75rem .9rem; border-radius: var(--r); background: #FBE6E3; border: 1px solid #A3231B; color: #17222B; font-size: 1.0625rem; font-weight: 600; }
.gas-strip svg { color: #A3231B; } .gas-strip b { color: #A3231B; }

/* One plain line under the H1 on hubs and service pages (replaces the stats box, 27 Nov 2026). */
.head-lead { margin: .75rem 0 0; }
.ph-plan .head-lead, .ph-now .head-lead { color: #E6EDF2; }
.ph-plan .head-lead a, .ph-now .head-lead a { color: #fff; }
.data-note { color: var(--muted); }

/* ==== 12. Homepage: "Checked means…" ledger ======================================== */
.marks { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.marks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; padding: 1.1rem 1.25rem; border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 768px) { .marks li { padding: 1.25rem 1.75rem; } }
.marks li:first-child { border-top: 0; }
.marks .m { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.marks .yes { background: var(--verified-soft); color: var(--verified); }
.marks .no { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }
.marks .paid { background: var(--wheat-soft); color: var(--wheat-text); }
.marks b { display: block; font-size: 1.125rem; }
.marks .t { display: block; color: var(--ink-2); font-size: 1rem; margin-top: .15rem; }

/* ==== 13. Homepage: this week in Calgary =========================================== */
.strip { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .strip { grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 16px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
@media (min-width: 768px) { .tile { padding: 1.4rem 1.5rem; } }
.tile p { margin: 0; }
.tile .n { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .n small { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-left: .25rem; }
.tile .l { font-size: 1rem; line-height: 1.35; }
@media (max-width: 1023px) { .tile:nth-child(2) { grid-column: 1 / -1; } }   /* no orphan tile on phones */
.tile.lead-t { grid-column: 1 / -1; background: var(--primary-soft); border-color: transparent; }
@media (min-width: 1024px) { .tile.lead-t { grid-column: auto; } .tile.lead-t .n { font-size: 3.25rem; } }
.tile .ctx { font-size: .9375rem; }
.tile a { font-weight: 700; font-size: 1rem; margin-top: auto; padding-top: .35rem; }
/* 7-week bars; dashed bars are provisional weeks (data encoding, not decoration) */
.wk { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin-top: .4rem; }
.wk i { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; opacity: .9; }
.wk i.p { background: transparent; border: 2px dashed var(--primary); border-bottom: 0; }
.wk-l { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); }
.src-line { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); max-width: none; }
.home-latest { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .home-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; } }
.home-latest li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .home-latest li { border-bottom: 0; } }
.home-latest a { font-weight: 700; color: var(--ink); text-decoration: none; }
.home-latest a:hover { color: var(--primary); text-decoration: underline; }
.home-latest .k { display: block; font-size: .875rem; color: var(--muted); margin-top: .25rem; }

/* ==== 14. Homepage: sample firm record (B's record style) =========================== */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specimen-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; align-items: baseline; padding: 1.1rem 1.25rem; border-bottom: 2px solid var(--ink); }
@media (min-width: 768px) { .specimen-h { padding: 1.25rem 1.75rem; } }
.specimen-h h3 { font-size: 1.25rem; margin: 0; }
.specimen-h p { margin: 0; font-size: .9375rem; color: var(--muted); }
.specimen dl { margin: 0; }
.specimen .r { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1.5rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .specimen .r { grid-template-columns: 12rem minmax(0, 1fr); } }
@media (min-width: 768px) { .specimen .r { padding-inline: 1.75rem; } }
.specimen dt { font-weight: 700; font-size: 1rem; }
.specimen dd { margin: 0; font-size: 1rem; color: var(--ink); }
.specimen dd small { display: block; font-size: .875rem; margin-top: .15rem; }
.specimen .v { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; }
.specimen .v.ok { color: var(--verified); }
.specimen .v.ok svg { width: 20px; height: 20px; }
.specimen-foot { margin: 0; padding: .9rem 1.25rem 1.1rem; font-size: .9375rem; max-width: none; }
@media (min-width: 768px) { .specimen-foot { padding-inline: 1.75rem; } }
.specimen-foot b { color: var(--ink); }

/* ==== 15. Homepage: before you call ================================================= */
.ask-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .ask-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.25rem; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 768px) { .ask { padding: 1.75rem; } }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.ask h3 { font-size: 1.25rem; margin: .4rem 0 .45rem; }
.ask p { margin: 0; font-size: 1.0625rem; }

/* ==== 16. Homepage: season by season, and the alerts sign-up ======================== */
.seasons-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .seasons-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .seasons-only { grid-template-columns: 1fr; } .seasons-only .seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seasons { display: grid; gap: 12px; }
@media (min-width: 640px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.season-h { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.season-h h3 { margin: 0; font-size: 1.25rem; }
.season-h span { display: block; font-size: .875rem; color: var(--muted); }
.season .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.season ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.season li a { display: inline-flex; min-height: 36px; align-items: center; font-weight: 600; font-size: 1rem; }
.season .fig { margin: 0 0 .4rem; font-size: 1rem; color: var(--ink); }
.season .fig b { font-size: 1.75rem; letter-spacing: -.02em; margin-right: .2rem; }

/* ==== 17. Homepage: businesses box ================================================== */
.biz-box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.75rem 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .biz-box { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: 2rem 2.25rem; } }
.biz-box .ic { width: 64px; height: 64px; border-radius: 16px; }
.biz-box .ic svg { width: 34px; height: 34px; }
.biz-box h2 { font-size: 1.5rem; margin: 0; }
.biz-box p { margin: .4rem 0 0; font-size: 1.0625rem; }
.biz-box .acts { display: grid; gap: .6rem; justify-items: start; }
@media (min-width: 900px) { .biz-box .acts { justify-items: end; } }
.biz-box .acts a:not(.btn) { font-weight: 600; font-size: 1rem; }

/* ==== 18. Cards (hub pages: one card = one destination) ============================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
@media (min-width: 1024px) { .card { padding: 1.5rem; } }
a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow .12s ease, border-color .12s ease; }
a.card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
a.card h3 { color: var(--primary); }
.card h3 { font-size: 1.25rem; }
.card p { font-size: 1rem; margin: 0; }
.card p + p { margin-top: .6rem; }
.card .fact { margin-top: .6rem; font-size: var(--fs-meta); color: var(--ink-2); }
.card .date { margin-top: .5rem; font-size: .875rem; color: var(--muted); }

/* ==== 19. Paid placement: wheat, always with the words ============================== */
.tag-paid { display: inline-flex; align-items: center; min-height: 32px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--wheat-text); background: var(--wheat-soft); border: 1px solid var(--wheat-rule); border-radius: var(--r-sm); padding: .15rem .65rem; text-decoration: none; vertical-align: middle; }
a.tag-paid:hover { text-decoration: underline; color: var(--wheat-text); }
.featured-zone { border-top: 3px solid var(--wheat-rule); padding-top: var(--s-4); margin-top: var(--s-2); }
.featured-zone > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.featured-zone .group-note { font-size: 1rem; color: var(--ink-2); margin: 0 0 var(--s-4); }
.why-link { font-size: 1rem; font-weight: 600; }
.listing.is-featured { border: 2px solid var(--wheat-rule); }
.paid-strip { grid-column: 1 / -1; margin: -1.25rem -1.25rem 0; padding: .5rem 1.25rem; background: var(--wheat-soft); color: var(--wheat-text); font-size: var(--fs-meta); font-weight: 700; border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0; max-width: none; }
@media (min-width: 768px) { .paid-strip { margin: -1.5rem -1.75rem 0; padding: .5rem 1.75rem; } }

/* ==== 20. Listings: one object per firm, checks as a list, the record line ========= */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin: var(--s-7) 0 var(--s-3); }
.list-head h2 { margin: 0; font-size: var(--fs-h3); }
.list-head p { margin: 0; font-size: 1rem; }
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: var(--s-3); }
.listing + .listing { margin-top: var(--s-3); }
.listing > * { min-width: 0; }
/* Long lists only: skip rendering off-screen cards. Block size only, so it never adds width. */
.listing:nth-of-type(n+9) { content-visibility: auto; contain-intrinsic-block-size: auto 360px; }
@media (min-width: 768px) { .listing { grid-template-columns: minmax(0, 1fr) 230px; padding: 1.5rem 1.75rem; } }
.listing h3 { margin: 0 0 .2rem; font-size: var(--fs-h3); }
.listing h3 a { color: var(--ink); }
.meta { display: flex; align-items: center; gap: .45rem; margin: .1rem 0 .5rem; font-size: 1rem; color: var(--ink-2); max-width: none; }
.quad { width: 14px; height: 14px; flex: none; }
.quad rect, .quad path { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.quad rect.on { fill: var(--primary); stroke: none; }
.checks { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .45rem; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .5rem; align-items: start; font-size: 1rem; font-weight: 600; color: var(--ink); }
.checks svg { width: 22px; height: 22px; margin-top: .1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* On the profile the checks list stands alone, so it gets the card edge */
section > h2 + .checks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; gap: .8rem; max-width: 780px; }
.checks .ok svg { color: var(--verified); }
.checks .firm svg { color: var(--ink-2); }
.checks .when { display: block; font-weight: 400; font-size: var(--fs-meta); color: var(--muted); }
.checks .def { display: block; font-weight: 400; font-size: var(--fs-meta); color: var(--ink-2); }   /* what the check means, exactly */
/* Latest permit (type, month, quadrant; never an address) and owner-reported hours */
.latest { margin: .5rem 0 0; font-size: 1rem; color: var(--ink); max-width: none; }
.hours { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .5rem; align-items: start; margin: .6rem 0 0; font-size: 1rem; color: var(--ink); max-width: none; }
.hours svg { width: 22px; height: 22px; margin-top: .1rem; fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hours .when { display: block; font-size: var(--fs-meta); color: var(--muted); }
.record { margin: .5rem 0 0; color: var(--ink); max-width: none; }
.record b { font-size: 1.375rem; font-weight: 700; margin-right: .2rem; }
.record .src { display: block; margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.listing .actions { display: flex; flex-direction: column; gap: .5rem; }
.listing .actions .btn { min-height: 48px; height: auto; padding: .55rem 1rem; text-align: center; font-size: 1rem; flex-direction: column; gap: 0; }
.listing .actions .tel-num { display: none; font-weight: 400; font-size: var(--fs-meta); }
@media (min-width: 768px) { .listing .actions .tel-num { display: block; } }
.listing .claim-line { grid-column: 1 / -1; font-size: var(--fs-meta); color: var(--muted); border-top: 1px solid var(--line); padding-top: .6rem; margin: 0; max-width: none; }
.list-note { font-size: var(--fs-meta); color: var(--ink-2); margin: var(--s-4) 0 0; max-width: none; }
.list-note + .list-note { margin-top: .4rem; }

/* ==== 21. Content blocks: note, gas safety, fact list, what we don't check ========= */
.note { background: var(--primary-soft); border-radius: var(--r); padding: var(--s-4) 1.2rem; margin: 1.2rem 0; color: var(--ink); }
.note p { color: var(--ink); margin: 0; }
/* Gas safety: GOV.UK-style warning, full clay border plus an icon and a heading */
.safety { background: var(--clay-soft); border: 2px solid var(--clay); border-radius: var(--r); padding: var(--s-4) 1.25rem; margin: 1.25rem 0; display: grid; gap: var(--s-3); max-width: 780px; }
.safety > .safety-h { display: flex; gap: .6rem; align-items: center; margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--clay); }
.safety > .safety-h svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safety p { color: var(--ink); margin: 0; }
.safety strong { color: var(--ink); }
dl.facts { display: grid; gap: .3rem 1rem; margin: 1rem 0; }
@media (min-width: 640px) { dl.facts { grid-template-columns: 12rem minmax(0, 1fr); } }
dl.facts dt { font-weight: 700; color: var(--ink); }
dl.facts dd { margin: 0; color: var(--ink-2); }
dl.check-defs { gap: .25rem 1.5rem; }
@media (min-width: 640px) { dl.check-defs { grid-template-columns: 14rem minmax(0, 1fr); } }
dl.check-defs dd { margin-bottom: .6rem; }
/* "What we don't check": neutral, not clay (not a danger) and not wheat */
.not-checked { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-top: var(--s-5); max-width: 780px; }
@media (min-width: 768px) { .not-checked { padding: 1.5rem 1.75rem; } }
.not-checked h2 { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.not-checked h2 svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.not-checked ul { margin: 0 0 var(--s-3); padding-left: 1.2rem; color: var(--ink-2); font-size: 1.0625rem; }
.not-checked li { margin-bottom: .35rem; }
.not-checked b { color: var(--ink); }
.not-checked p { margin: 0; font-size: 1rem; }

/* ==== 21b. Article layout (guides, checklists, updates, blog posts) ================== */
/* Title left, byline right; a wide rounded hero; a numbered "In this article" rail on the left and the
   text on the right. Phones: title, byline, hero, then a collapsed contents box. Same classes as the
   WordPress single template, so this block styles both. */
.art-head { padding-block: 1.25rem 1.5rem; }
@media (min-width: 1024px) { .art-head { padding-block: 1.75rem 2.25rem; } }
.art-title { display: grid; gap: 1rem; margin-top: .75rem; }
@media (min-width: 900px) { .art-title { grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 3rem; align-items: start; } }
.art-title h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.375rem); line-height: 1.06; letter-spacing: -.02em; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.art-meta { font-size: var(--fs-meta); color: var(--muted); }
@media (min-width: 900px) { .art-meta { padding-top: .6rem; } }
.art-meta p { margin: 0 0 .2rem; max-width: none; }
.art-meta .by { color: var(--ink); font-weight: 700; margin-bottom: .45rem; }
.art-meta .by a { color: inherit; }
.art-meta .review { display: inline-block; margin-top: .5rem; padding: .15rem .55rem; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--tag-bg); color: var(--tag-ink); font-size: .8125rem; line-height: 1.4; }
.art-hero { margin: 0 0 2rem; }
.art-hero img, .art-hero .ph-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 40px 12px 40px 12px; box-shadow: 0 22px 30px -26px rgb(0 0 0 / .55); }
@media (min-width: 768px) { .art-hero img, .art-hero .ph-img { aspect-ratio: 2 / 1; border-radius: 72px 16px 72px 16px; } }
@media (min-width: 1024px) { .art-hero { margin-bottom: 3.5rem; } .art-hero img, .art-hero .ph-img { aspect-ratio: 12 / 5; } }
.art-hero .ph-img { display: grid; place-items: center; text-align: center; padding: 1rem; background: var(--soft); color: var(--muted); border: 1px dashed var(--line-strong); }
.art-hero .ph-img span { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: .35rem .7rem; font-size: .9375rem; }
.art-grid { display: grid; gap: 1.5rem; padding-bottom: var(--s-8); }
@media (min-width: 1024px) { .art-grid { grid-template-columns: 13.5rem minmax(0, 46rem); gap: 4.5rem; } }
.art-toc { display: none; }
@media (min-width: 1024px) { .art-toc { display: block; position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.toc-h, .art-toc-sm > summary { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 .75rem; }
.art-toc ol, .art-toc-sm ol { list-style: none; margin: 0; padding: 0; }
.art-toc li, .art-toc-sm li { margin: 0; }
.art-toc li a, .art-toc-sm li a { display: grid; grid-template-columns: 1.75rem 1fr; padding: .4rem 0; color: var(--ink-2); text-decoration: none; font-size: .9375rem; line-height: 1.35; }
.art-toc li a:hover, .art-toc-sm li a:hover { color: var(--primary); text-decoration: underline; }
.art-toc .n, .art-toc-sm .n { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.toc-about { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--muted); }
.toc-about a { color: var(--ink-2); }
.art-toc-sm { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 1rem; margin-bottom: 1.5rem; }
.art-toc-sm > summary { margin: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.art-toc-sm > summary::-webkit-details-marker { display: none; }
.art-toc-sm > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--primary); }
.art-toc-sm[open] > summary::after { content: "–"; }
.art-toc-sm ol { padding-bottom: .5rem; }
.art-toc-sm .toc-about { margin: .5rem 0 1rem; }
@media (min-width: 1024px) { .art-toc-sm { display: none; } }
.art-body { max-width: none; }
.art-body > .answer:first-child { margin-top: 0; }
.art-lead { margin-bottom: 1.5rem; }
.art-related { margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.art-related h2 { font-size: 1.125rem; margin: 0 0 .5rem; }
.art-related ul { margin: 0; padding-left: 1.1rem; }

@media (min-width: 1024px) { .art-grid--no-toc { grid-template-columns: minmax(0, 46rem); justify-content: center; } }
/* WordPress block output inside the article and page bodies */
.prose .wp-block-image img { border-radius: var(--r); height: auto; }
.prose .wp-block-table table, .prose table { width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.nav-links { display: flex; gap: .5rem; margin-top: 1.5rem; } .nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* All companies table (real City data). Desktop: a sortable-looking plain table; phones: each row is a card. */
.co-filter { display: grid; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .co-filter { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.co-count { color: var(--muted); font-size: var(--fs-meta); margin: 0 0 .75rem; }
.co-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.co-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.co-table th, .co-table td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.co-table { margin: 0; }
.co-table thead th { background: var(--surface-2); font-size: .875rem; color: var(--ink-2); }
.co-table tbody th { background: none; }
.co-table td:empty::after { content: "—"; color: var(--muted); }
.co-table tbody th { font-weight: 700; color: var(--ink); }
.co-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-table .sub { color: var(--muted); font-size: .875rem; }
.co-table tr[hidden] { display: none; }
.lic-ok { color: var(--verified); font-weight: 700; }
.co-none { margin-top: 1rem; }
@media (max-width: 767px) {
  .co-table thead { display: none; }
  .co-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .2rem .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .co-table th, .co-table td { padding: 0; border: 0; }
  .co-table tbody th { grid-column: 1 / -1; font-size: 1.0625rem; }
  .co-table td[data-label="Area"], .co-table td[data-label="City licence"] { grid-column: span 3; color: var(--ink-2); font-size: .9375rem; }
  .co-table td[data-label="City licence"]::before { content: "City licence: "; color: var(--muted); }
  .co-table td[data-label="Area"]:empty { display: none; }
  .co-table td.n { text-align: left; font-size: .9375rem; }
  .co-table td.n::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; white-space: normal; }
}

/* Real company list on service pages (City data). */
.job-firms { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.job-firms li { display: grid; gap: .15rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); margin: 0; }
.job-firms li:last-child { border-bottom: 0; }
@media (min-width: 768px) { .job-firms li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .job-firms .jf-meta { grid-column: 1; } .job-firms .jf-n { grid-column: 2; grid-row: 1 / 3; text-align: right; } }
.jf-name { font-weight: 700; }
.jf-meta { font-size: .9375rem; color: var(--muted); }
.jf-n { font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.jf-n b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ==== 22. Asides: one card per page; the contact box leads on the profile ========== */
.aside-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.aside-panel section + section { margin-top: 1.1rem; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.aside-panel h2 { font-size: 1.125rem; margin-bottom: .4rem; }
.aside-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.aside-panel p { font-size: 1rem; margin: 0; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: var(--s-4); }
.contact-box h2 { font-size: 1.125rem; margin-bottom: var(--s-3); }
.contact-box p { margin: 0; }
.contact-box p + p { margin-top: var(--s-3); }
@media (min-width: 1024px) { .aside-sticky { position: sticky; top: 100px; } }

/* ==== 23. Search forms, results and confirmation steps ============================== */
.search-form { display: grid; gap: .5rem; max-width: 600px; }
.search-form .row { display: grid; gap: .6rem; }
@media (min-width: 640px) { .search-form .row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
/* Live name-search results (search.html): reuse .listing; counts are a plain list, A to Z, no ranking */
.search-count { margin: var(--s-4) 0 var(--s-3); font-weight: 600; }
.search-count:empty { display: none; }
.search-results .listing { grid-template-columns: minmax(0, 1fr); }
.search-results .record { font-size: 1rem; font-weight: 600; }
.prose .permit-counts, .permit-counts { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .2rem; }
.prose .permit-counts li, .permit-counts li { margin: 0; font-size: 1rem; color: var(--ink); }
.permit-counts b { font-size: 1.25rem; margin-right: .15rem; }
.search-results .src { margin: .5rem 0 0; padding-top: .3rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.search-form + .small { margin-top: var(--s-3); }
.narrow > .status-msg + h2 { margin-top: var(--s-5); }
.next-steps { margin: var(--s-4) 0; padding-left: 1.25rem; }
.next-steps li + li { margin-top: .4rem; }
.code-input { max-width: 12rem; font-size: 1.5rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* ==== 24. Charts (div bars + "Show the numbers" table) ============================== */
.chart { margin: 1rem 0; }
.chart figcaption { margin-bottom: .8rem; }
.chart .bars, .chart .bar-labels { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 480px) { .chart .bars, .chart .bar-labels { gap: 6px; } }
.chart .bars { align-items: end; height: 180px; }
.chart .bars > div { background: var(--primary); border-radius: 4px 4px 0 0; }
.chart .bar-labels { font-size: .75rem; color: var(--muted); text-align: center; margin-top: .4rem; }
.chart .bar-labels span { overflow: hidden; }
.chart .l-short { display: inline; }
.chart .l-long { display: none; }
@media (min-width: 480px) { .chart .bar-labels { font-size: .8rem; } .chart .l-short { display: none; } .chart .l-long { display: inline; } }
.chart details.faq { margin-top: .6rem; }

/* ==== 25. For businesses: promises, plans, waitlist, sample report ================== */
.promise-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.promise-list li { padding: 1rem 1.25rem 1rem 3.4rem; color: var(--ink-2); position: relative; }
.promise-list li + li { border-top: 1px solid var(--line); }
.promise-list li::before { content: ""; position: absolute; left: 1.2rem; top: 1.15rem; width: 22px; height: 22px; background: var(--verified); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.promise-list b { color: var(--ink); }
.plans { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: var(--s-2); }
.plan h3 { margin: 0; }
.plan-paid { border: 2px solid var(--wheat-rule); }
.plan-paid .paid-strip { margin: -1.5rem -1.5rem .25rem; padding: .5rem 1.5rem; }
.plan .price { font-size: 2.25rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.1; }
.plan .price .per { font-size: 1.0625rem; font-weight: 400; color: var(--ink-2); }
.plan ul { padding-left: 1.2rem; margin: .25rem 0; font-size: 1rem; color: var(--ink-2); }
.plan-note { font-size: 1rem; color: var(--ink-2); margin: 0; }
.plan-terms { display: grid; gap: .15rem; margin: .5rem 0; font-size: 1rem; }
.plan-terms dt { font-weight: 700; color: var(--ink); margin-top: .5rem; }
.plan-terms dd { margin: 0; color: var(--ink-2); }
.plan .btn { justify-self: start; margin-top: .5rem; }
.waitlist { margin: 1.25rem 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); max-width: 75ch; }
.sample-report { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 1.1rem 1.25rem; max-width: 640px; }
.sample-report .stamp { display: inline-block; font-weight: 700; color: var(--tag-ink); background: var(--tag-bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .1rem .6rem; font-size: .875rem; }

/* ==== 26. Tables: one rule per row; data stays tabular =============================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 1rem 0 1.4rem; scrollbar-gutter: stable; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: .75rem 1rem; font-size: var(--fs-meta); color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
th { text-align: left; background: var(--surface-2); padding: .7rem 1rem; font-weight: 700; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
td { padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
th.n { text-align: right; }
td.n { text-align: right; white-space: nowrap; }
tr.median td { font-weight: 700; color: var(--ink); }
.prov-note { display: block; font-size: .875rem; color: var(--muted); font-style: italic; }
@media (max-width: 479px) {
  th, td { padding: .6rem .55rem; }
  th:first-child, td:first-child { padding-left: .75rem; }
}

/* ==== 27. FAQ and disclosures ======================================================= */
details.faq { border-bottom: 1px solid var(--line-strong); }
details.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1.125rem; padding: .5rem 0; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; content: "+" / ""; font-size: 1.4rem; color: var(--primary); flex: none; }
details.faq[open] summary::after { content: "\2013"; content: "\2013" / ""; }
details.faq > div { padding: 0 0 1rem; }
/* The homepage FAQ: each question is its own card */
.faq-grid { display: grid; gap: 12px; align-items: start; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; } }
.faq-grid details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.25rem; }
.faq-grid details.faq[open] { border-color: var(--line-strong); }
.faq-grid details.faq > div p { margin: 0; }
.narrow { max-width: 560px; }

/* ==== 28. Updates feed (updates.html) =============================================== */
.upd-feed { list-style: none; padding: 0; margin: var(--s-4) 0 0; max-width: 780px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.upd-feed li { padding: 1.1rem 1.25rem; }
@media (min-width: 768px) { .upd-feed li { padding: 1.25rem 1.75rem; } }
.upd-feed li + li { border-top: 1px solid var(--line); }
.upd-feed h3 { margin: 0; font-size: 1.25rem; }
.upd-meta { display: block; margin: .2rem 0 .4rem; font-size: var(--fs-meta); color: var(--muted); }
.upd-feed p { margin: 0; }

/* ==== 29. Sticky call bar (profile pages, small screens) ============================ */
/* Calls go to the firm (its own number, or a tracked forwarding number for Featured firms).
   Hidden while a form field has focus. */
.call-bar { display: none; }
@media (max-width: 859px) {
  .call-bar { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(23,34,43,.10); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .call-bar .btn { flex: 1; }
  body.has-call-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
body:has(input:focus, textarea:focus, select:focus) .call-bar { display: none; }

/* ==== 30. Footer: quiet, on the soft ground ========================================= */
.site-footer { background: var(--soft); color: var(--ink-2); padding: var(--s-7) 0 var(--s-5); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.site-footer .foot-h { color: var(--ink); font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .2rem; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; font-size: 1rem; }
.site-footer p { font-size: 1rem; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .foot-brand { grid-column: auto; } }
.foot-brand .logo { font-size: 1.15rem; margin-bottom: .4rem; }
.site-footer .foot-brand .logo .t { color: var(--primary); }
.site-footer p a, .legal a { text-decoration: underline; }   /* links inside sentences keep the underline */
.legal { border-top: 1px solid var(--line); margin-top: var(--s-6); padding-top: 1.2rem; font-size: var(--fs-meta); color: var(--muted); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }

/* ==== 31. Motion, forced colours, print ============================================= */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .card, .listing, .job, .answer, .notice, .sample-tag, .placeholder, .door, .tile, .ask, .season, .specimen, .page-head > .wrap { border: 1px solid CanvasText; }
  .chart .bars > div, .wk i { forced-color-adjust: none; background: Highlight; }
  .wk i.p { background: Canvas; border-color: Highlight; }
  .nav a[aria-current="page"] { box-shadow: none; border-bottom: 3px solid LinkText; }
  .paid-strip, .tag-paid { border: 1px solid CanvasText; }
}
@media print { .site-header, .site-footer, .call-bar, .mockbar { display: none; } body { background: #fff; color: #000; } }
