/* v2 base — tokens, reset, type scale, wrap, buttons, links, per-ground focus rings, .smp-v2-sr-only, skip link.
   ADDED 2026-11-03 (Claude, Mike's OK; plan.md §1.5, §5.3; decisions.md #4). Loaded as handle smp-v2-base after
   smp-v2-fonts, on v2 pages only. Legacy CSS never loads on these pages, so nothing here fights !important.
   Values copied from the approved mockup's :root (studio/home/design/build/index.html); brand hexes are identical
   to assets/css/tokens.css. Mapping for component engineers porting mockup CSS:
     --smp-ds-{colour} → --smp-v2-{colour}   --smp-font-{x} → --smp-v2-font-{x}   --smp-fs-{x} → --smp-v2-fs-{x}
     .smp-wrap → .smp-v2-wrap   .smp-h2/.smp-h3 → .smp-v2-h2/.smp-v2-h3   .smp-label → .smp-v2-label
     .smp-home-btn(--ghost) → .smp-v2-btn(--ghost)   .smp-home-link → .smp-v2-link   .sr → .smp-v2-sr-only
     .on-dark / .on-light → .smp-v2-on-dark / .smp-v2-on-light   .nb → .smp-v2-nb
   Breakpoints (the approved design's set, v2 only): 380, 400, 768, 1000, 1200, 1280.
   Selectors: :where() for elements, single classes for everything else; no !important, no IDs.
   TO UNDO: delete this file. */

:root{
  /* brand primitives */
  --smp-v2-orange:#e85e29;--smp-v2-orange-deep:#c64f1f;--smp-v2-light-orange:#ea8233;
  --smp-v2-yellow:#dda855;--smp-v2-light-yellow:#efe5b7;
  --smp-v2-dark-teal:#55b19f;--smp-v2-light-teal:#99cbac;--smp-v2-teal-ink:#3a7f72;
  --smp-v2-brown:#904d22;--smp-v2-brown-deep:#5b3826;--smp-v2-white:#fff;
  /* semantic */
  --smp-v2-text:var(--smp-v2-brown-deep);--smp-v2-surface:var(--smp-v2-white);
  --smp-v2-cta:var(--smp-v2-orange-deep);--smp-v2-cta-hover:var(--smp-v2-brown-deep);
  --smp-v2-focus:var(--smp-v2-brown-deep);--smp-v2-focus-on-dark:var(--smp-v2-white);
  /* type: one scale, eight steps (13 · 15 · 17/18 · 20 · 24 · 30 · 44 · 56) */
  --smp-v2-font-display:"Righteous",system-ui,sans-serif;
  --smp-v2-font-text:"Poppins",system-ui,sans-serif;
  --smp-v2-font-wide:"termina","SMP Termina Stand-in","Krona One",Arial,sans-serif;
  --smp-v2-fs-label:13px;--smp-v2-fs-small:15px;--smp-v2-fs-body:17px;--smp-v2-fs-line:20px;
  --smp-v2-fs-h3:24px;--smp-v2-fs-h2:30px;--smp-v2-fs-big:30px;--smp-v2-fs-hero:30px;
  /* layout */
  /* R170-FRAME — 2026-11-04 (integration; Mike's wide-screen notes, rounds 1 and 2): the bleed frame. Hero photos, roller strokes and
     photo panels that bleed past the 1200px column keep their 1440px proportions on wider screens: they reach at most 120px past the
     column on each side ((1440 - 1200) / 2), centered with it, so the hero's mass no longer sits to the right of the column. Section
     grounds still run edge to edge. Every bleed reads --smp-v2-frame-w instead of 100vw, so at ≤1440px nothing changes. Round 1 used a
     1920px frame; Mike: the hero still floated right. The content column stays 1200px (Art Director: widening it would render photos
     past their measured sizes attributes). TO UNDO: delete these properties and the 1441px rule below, and put 100vw / 48px back in the
     parts (hero-stroke, stroke, page-head). */
  --smp-v2-frame-max:1440px;--smp-v2-frame-w:min(100vw,var(--smp-v2-frame-max));
  /* how far a stroke band runs past the frame edge: 48px (off-screen at ≤1440, so its square end never shows); 0 on wider screens,
     where the band's end sits on the frame line (column-left minus 120) instead of floating 48px outside it */
  --smp-v2-frame-lead:48px;
  /* R170-FRAME2 — 2026-11-04 (layout gate, coordinator): a ONE-SIDED bleed (page-head photos on service/town/story, the stroke bands of
     the stroke page heads and the scope section) reaches the viewport edge up to 1440, where it reads as full-bleed; above 1440 it would
     hang in one margin with nothing to pair it, so it stops at the column instead. Paired bleeds (the home/office/About hero: stroke left,
     photo right) keep the 120px frame. Same value as before at ≤1440. TO UNDO: replace var(--smp-v2-solo-bleed) in v2-stroke.css and
     v2-page-head.css with the max() expression below, and delete the 1441px override. */
  --smp-v2-solo-bleed:max(var(--smp-v2-gutter),(var(--smp-v2-frame-w) - var(--smp-v2-container-max))/2);
  --smp-v2-container-max:1200px;--smp-v2-container-text:720px;--smp-v2-gutter:16px;--smp-v2-section:64px;
  --smp-v2-measure:31em; /* plan §5.3: every body line ≤ 66 characters at 360–1440 */
  --smp-v2-radius:0;--smp-v2-shadow:none;--smp-v2-transition:160ms cubic-bezier(.2,.8,.2,1);
  --smp-v2-tap:48px;
}
@media (min-width:768px){:root{--smp-v2-gutter:32px;--smp-v2-fs-body:18px;--smp-v2-section:88px;--smp-v2-fs-hero:44px}}
@media (min-width:1000px){:root{--smp-v2-section:104px}}
@media (min-width:1280px){:root{--smp-v2-fs-h2:44px;--smp-v2-fs-big:44px;--smp-v2-fs-hero:56px}}
@media (min-width:1441px){:root{--smp-v2-frame-lead:0px;--smp-v2-solo-bleed:0px}} /* R170-FRAME, R170-FRAME2 */

/* reset */
*,*::before,*::after{box-sizing:border-box}
:where(body,h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd,dt,fieldset,legend){margin:0;padding:0}
:where(ul,ol){list-style:none}
:where(fieldset){border:0;min-width:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:16px}
html,body{overflow-x:clip}
/* body: Poppins 400, 17px phone / 18px desktop, line-height 1.6 (design-style C5) */
body{background:var(--smp-v2-surface);color:var(--smp-v2-text);font:400 var(--smp-v2-fs-body)/1.6 var(--smp-v2-font-text)}
:where(img,svg,video){display:block;max-width:100%;height:auto}
:where(a){color:inherit;text-underline-offset:.18em;text-decoration-thickness:1px}
:where(p){max-width:var(--smp-v2-measure)}
:where(button,input,select,textarea){font:inherit;color:inherit}

/* layout and type helpers */
.smp-v2-wrap{width:100%;max-width:calc(var(--smp-v2-container-max) + 2*var(--smp-v2-gutter));margin-inline:auto;padding-inline:var(--smp-v2-gutter)}
.smp-v2-label{font-family:var(--smp-v2-font-wide);font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:var(--smp-v2-fs-label);line-height:1.35}
.smp-v2-h2{font-family:var(--smp-v2-font-display);font-weight:400;font-size:var(--smp-v2-fs-h2);line-height:1.06;letter-spacing:-.01em;text-wrap:balance;max-width:20ch}
.smp-v2-h3{font-family:var(--smp-v2-font-display);font-weight:400;font-size:var(--smp-v2-fs-h3);line-height:1.12}
.smp-v2-small{font-size:var(--smp-v2-fs-small);line-height:1.5}
.smp-v2-nb{white-space:nowrap}
/* P2-NW — 2026-11-04 (Claude, Mike's OK; home-code-changes A6): "Total-Care", "2-year" and "W-2" never break at the hyphen
   (smp_v2_nowrap_terms()). TO UNDO: delete this rule and the helper calls. */
.smp-v2-nw{white-space:nowrap}
/* P2-CHIP — 2026-11-04 (Claude, Mike's OK; design-style C11 service chips): a page wrapper sets the service colour once, as
   --smp-v2-c, for the hero mat, chip markers and quote rules. Commercial uses light yellow (stand-in, decision Mike with Ashley).
   TO UNDO: delete these six rules. */
.smp-v2-chip--light-orange{--smp-v2-c:var(--smp-v2-light-orange)}
.smp-v2-chip--dark-teal{--smp-v2-c:var(--smp-v2-dark-teal)}
.smp-v2-chip--yellow{--smp-v2-c:var(--smp-v2-yellow)}
.smp-v2-chip--brown{--smp-v2-c:var(--smp-v2-brown)}
.smp-v2-chip--light-teal{--smp-v2-c:var(--smp-v2-light-teal)}
.smp-v2-chip--light-yellow{--smp-v2-c:var(--smp-v2-light-yellow);--smp-v2-c-edge:inset 0 0 0 1px var(--smp-v2-brown-deep)} /* commercial: + 1px brown-deep edge (build_service.py chip note) */
.smp-v2-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
/* Righteous has one weight: never synthesize bold */
:where(h1,h2,h3,h4,.smp-v2-h2,.smp-v2-h3){font-synthesis:none}

/* skip link (first in body). Its ring sits on whatever ground is under it, so it carries its own contrasting ring. */
.smp-v2-skip{position:absolute;left:8px;top:-100px;z-index:10001;background:var(--smp-v2-brown-deep);color:var(--smp-v2-white);padding:16px 16px;text-decoration:none}
.smp-v2-skip:focus{top:8px}
/* SKIP LINK RING — 2026-11-03 (Claude, Mike's OK; decisions.md #16): a white 3px ring, 2px off the link, with no halo.
   It lands on the teal-ink header (4.71:1), or on the admin bar when logged in. The brown-deep halo read 2.19:1 against
   teal-ink in focus_ring.js. Before: outline-offset:0; box-shadow:0 0 0 6px var(--smp-v2-brown-deep).
   TO UNDO: put those two values back. */
.smp-v2-skip:focus-visible{outline:3px solid var(--smp-v2-white);outline-offset:2px}

/* focus rings per ground (design-style C6): brown-deep on light grounds (white, light yellow, yellow, teal), white on dark */
:focus-visible{outline:3px solid var(--smp-v2-focus);outline-offset:2px}
.smp-v2-on-dark :focus-visible{outline-color:var(--smp-v2-focus-on-dark)}
.smp-v2-on-dark .smp-v2-on-light :focus-visible{outline-color:var(--smp-v2-focus)}

/* motion: components put transitions and animations inside @media (prefers-reduced-motion:no-preference) (design-style C9). */

/* buttons: square orange-deep, white Termina caps (C10). orange-deep is for buttons and nothing else (ECD b3 rev. 9). */
.smp-v2-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:16px 16px;background:var(--smp-v2-cta);color:var(--smp-v2-white);text-decoration:none;font-family:var(--smp-v2-font-wide);font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:var(--smp-v2-fs-small);line-height:1.2;border:0;border-radius:0;transition:background var(--smp-v2-transition);cursor:pointer;text-align:center}
.smp-v2-btn:hover{background:var(--smp-v2-cta-hover)}
@media (min-width:768px){.smp-v2-btn{padding-inline:24px}}
.smp-v2-btn--ghost{background:var(--smp-v2-white);color:var(--smp-v2-brown-deep);box-shadow:inset 0 0 0 2px var(--smp-v2-brown-deep)}
.smp-v2-btn--ghost:hover{background:var(--smp-v2-light-yellow)}
.smp-v2-link{font-weight:600;text-decoration-thickness:2px;display:inline-flex;align-items:center;min-height:44px}

/* ---------------------------------------------------------------------------------------------
   STUB LOOK — Phase 1 only. Labels the placeholder output of smp_v2_render_stub() so a stub can't
   pass for a finished part. TO UNDO: delete this block once no component calls smp_v2_render_stub().
   --------------------------------------------------------------------------------------------- */
.smp-v2-stub{display:block;margin:12px var(--smp-v2-gutter);padding:16px;background:var(--smp-v2-light-yellow);color:var(--smp-v2-brown-deep);outline:3px dashed var(--smp-v2-brown-deep);outline-offset:-3px}
.smp-v2-stub__label{font:700 var(--smp-v2-fs-label)/1.3 var(--smp-v2-font-wide);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.smp-v2-stub__h{font-family:var(--smp-v2-font-display);font-weight:400;font-size:var(--smp-v2-fs-h3);line-height:1.15;margin-bottom:8px}
.smp-v2-stub__args{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr);gap:4px 16px;font-size:var(--smp-v2-fs-small);line-height:1.4;overflow-wrap:anywhere}
.smp-v2-stub__args dt{font-weight:600}
.smp-v2-stub__note{margin:0 var(--smp-v2-gutter);font-size:var(--smp-v2-fs-small)}

/* R171-ORPH — 2026-11-04 (release 1.7.1, item 6b): headings wrap in balanced lines, so a short last word doesn't sit alone.
   Fallback: browsers without text-wrap:balance get text-wrap:pretty where supported, else normal wrapping. Phone links never break
   inside the number (Total-Care, W-2 and "2-year" are kept whole by smp_v2_nowrap_terms()). TO UNDO: delete this block. */
.smp-v2 h1,.smp-v2 h2,.smp-v2 h3,h1[class*="smp-v2"],h2[class*="smp-v2"],h3[class*="smp-v2"],.smp-hero-display{text-wrap:pretty;text-wrap:balance}
a[href^="tel:"]{white-space:nowrap}

/* R171-STARS — 2026-11-04 (release 1.7.1; Art Director's colour pick, each ≥3:1 on its ground): orange-deep on light yellow (3.65)
   and white (4.63); brown-deep on the teal, light-teal, yellow and orange grounds (2.97–5.64; orange 2.97 is not used for a rating);
   yellow on brown-deep (4.81); light yellow on teal-ink (3.71). The row sits on its own line above the dated text. TO UNDO: delete. */
.smp-v2-stars{display:block;width:max-content;margin-bottom:4px;line-height:0;color:var(--smp-v2-orange-deep)}
.smp-v2-stars svg{display:block;width:100px;height:18px}
[data-ground="dark-teal"] .smp-v2-stars,[data-ground="light-teal"] .smp-v2-stars,[data-ground="teal"] .smp-v2-stars,[data-ground="yellow"] .smp-v2-stars,[data-ground="light-orange"] .smp-v2-stars{color:var(--smp-v2-brown-deep)}
[data-ground="brown-deep"] .smp-v2-stars{color:var(--smp-v2-yellow)}
[data-ground="teal-ink"] .smp-v2-stars{color:var(--smp-v2-light-yellow)}
@media (forced-colors:active){.smp-v2-stars{color:CanvasText}}


/* R171-GSTARS (Google's review guidelines, 1.7.1): the aggregate star row on its own, apart from any "on Google" text. TO UNDO: delete. */
.smp-v2-stars--agg{margin-bottom:12px}

/* R172-HSTARS — 2026-11-04 (release 1.7.2, Mike): the hero / page-head rating block (smp_v2_rating_block()). Line 1: the brand
   orange-deep star row (4.63:1 on white, 3.65:1 on light yellow; every hero/page-head rating sits on one of those two) then
   "5.0 · 41 reviews", stars sized to the text (0.9em high) with their points on the text baseline. Line 2: the small linked credit
   "on Google, as of …" (24px tap height). TO UNDO: delete this block. */
.smp-v2-rating{margin-top:8px;font-size:var(--smp-v2-fs-small);line-height:1.35}
.smp-v2-rating__line,.smp-v2-rating__credit{display:block;margin:0}
.smp-v2-rating__line{font-weight:600;white-space:nowrap}
.smp-v2-rating .smp-v2-stars--inline{display:inline-block;vertical-align:-.08em;margin:0 .4em 0 0;color:var(--smp-v2-orange-deep)}
.smp-v2-rating .smp-v2-stars--inline svg{width:calc(.9em * 120 / 22);height:.9em}
.smp-v2-rating__credit{font-size:var(--smp-v2-fs-label);margin-top:1px}
.smp-v2-rating .smp-v2-rating__credit a{display:inline-flex;align-items:center;min-height:24px;font-weight:500}
@media (forced-colors:active){.smp-v2-rating .smp-v2-stars--inline{color:CanvasText}}
