/* =====================================================================
   Sacramento Elite Bath Remodeling: the Western Living world.
   A Sunset-style home feature: near-white coated stock, warm daylight
   photography, ink type, logo teal for links and bands, burnt orange for
   the call. Reddit Sans Condensed for display, Atkinson Hyperlegible Next
   for reading, Petrona for captions and ledes. (Token names --gold and
   --sky are kept for continuity; they now carry orange and neutral.)
   ===================================================================== */

@font-face { font-family: "Reddit Sans Condensed"; src: url("../fonts/reddit-sans-condensed-var-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("../fonts/petrona-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Petrona"; src: url("../fonts/petrona-var-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-var-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-var-latin-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --teal: #0F4C5C;
  --teal-deep: #0A3742;
  --teal-ink: #0C4250;
  --gold: #C4471A;
  --gold-deep: #A93A12;
  --sky: #FEFDFB;
  --sky-pale: #FEFDFB;
  --ink: #16201F;
  --ink-2: #3D4A4C;
  --page: #FEFDFB;
  --rule: #C3D3D8;
  --rule-strong: #16201F;
  --on-teal: #FFFFFF;
  --on-teal-2: #D6E9EC;

  --display: "Reddit Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --serif: "Petrona", Georgia, serif;
  --read: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(1.9rem, 1.3rem + 2.9vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-body: 1.1875rem;
  --fs-small: 1.0625rem;
  --fs-label: 0.9375rem;

  --gutter: 20px;
  --wrap: 1240px;
  --radius: 4px;
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 6.5rem;
  --shadow-lift: 0 18px 36px -14px rgba(16, 20, 20, 0.30), 0 2px 6px rgba(16, 20, 20, 0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; } }

/* ---------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--read); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: "kern" 1; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: inherit; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--teal-ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2.5px; }
strong, b { font-weight: 700; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

/* browser surfaces carry the design too */
::selection { background: #F3D6C8; color: var(--ink); }
html { caret-color: var(--teal); scrollbar-color: var(--teal) var(--sky-pale); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.on-teal :focus-visible, .band :focus-visible, .close :focus-visible { outline-color: #FFFFFF; }
.num, .fig-key b, .svc-num { font-variant-numeric: tabular-nums lining-nums; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.75rem 1.1rem; background: var(--gold); color: #FFFFFF;
  font-family: var(--display); font-weight: 800; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0.7rem 1.6rem;
  font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.15rem; line-height: 1.32;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn-call { background: var(--gold); color: #FFFFFF; }
.btn-call:hover { background: #F7C460; color: var(--ink); text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn-line { border-color: currentColor; color: var(--teal-ink); background: transparent; }
.btn-line:hover { background: var(--sky-pale); color: var(--teal-deep); text-decoration: none; }
.on-teal .btn-line { color: #fff; }
.on-teal .btn-line:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------------------------------------------------------- header */
.site-header { background: var(--page); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { flex: none; display: block; padding-block: 4px; }
.brand img { height: 36px; width: auto; }
@media (min-width: 640px) { .brand img { height: 44px; } }
#primary-nav { display: none; }
.bar-call { margin-left: auto; display: none; text-align: right; line-height: 1.32; }
.bar-tel {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
  font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 1.4rem; color: var(--teal-ink); text-decoration: none;
}
.bar-tel svg { width: 20px; height: 20px; fill: var(--teal); }
.bar-tel:hover { color: var(--teal-deep); text-decoration: underline; }
.bar-hours { display: block; font-size: var(--fs-label); color: var(--ink-2); }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 48px; min-width: 48px; padding: 0 0.85rem;
  background: var(--page); border: 2px solid var(--teal); border-radius: var(--radius); color: var(--teal-ink);
  font-family: var(--display); font-weight: 800; font-size: 1rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.call-strip { display: block; border-top: 1px solid var(--rule); }
.call-strip { padding-block: 0.25rem; }
.call-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--s2); }
.call-strip a {
  display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--teal-ink); text-decoration: none;
}
.call-strip .lic { padding-bottom: 0.35rem; font-size: var(--fs-label); color: var(--ink-2); }
.call-strip svg { width: 18px; height: 18px; fill: var(--teal); display: inline-block; vertical-align: -2px; margin-right: 0.35rem; }

.site-header.nav-open #primary-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--page); border-bottom: 2px solid var(--teal); box-shadow: var(--shadow-lift);
}
#primary-nav.open a {
  display: flex; align-items: center; min-height: 58px; padding: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none;
}
#primary-nav.open a[aria-current="page"] { color: var(--teal-ink); box-shadow: inset 0 -3px 0 var(--gold); }

@media (min-width: 1024px) {
  .bar { min-height: 92px; gap: var(--s4); }
  .nav-toggle, .call-strip { display: none; }
  .bar-call { display: block; }
  #primary-nav, .site-header.nav-open #primary-nav {
    display: flex; position: static; gap: 0.25rem; margin-left: var(--s3);
    background: none; border: 0; box-shadow: none;
  }
  #primary-nav a, #primary-nav.open a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border: 0;
    font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none;
  }
  #primary-nav a:hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 0.35em; }
  #primary-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
}

/* ---------------------------------------------------------- the opening spread */
.opening { overflow-x: clip; }
.opening-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "fig" "side" "quote";
}
.title {
  grid-area: title; position: relative; color: var(--on-teal); background-color: var(--teal);
  padding-block: var(--s5) var(--s5);
  /* the teal title band runs edge to edge behind this row only */
  border-image: linear-gradient(var(--teal) 0 0) fill 0 / 0 / 0 100vmax;
}
.title h1 {
  font-stretch: 110%; font-weight: 850; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.012em;
  max-width: 30ch;
}
.title .hook { margin-top: var(--s3); max-width: 36ch; font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.45; color: var(--on-teal-2); }
.title .acts { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

.quote-side { grid-area: quote; position: relative; z-index: 1; padding-block: var(--s5) var(--s6); }
.sidebar-box, .band .form-wrap { padding: 0 var(--s3) var(--s3); }
.sidebar-box { background: var(--sky); }
.sidebar-box .lead-form .form-head, .band .form-wrap .lead-form .form-head {
  margin: 0 calc(var(--s3) * -1) var(--s3); padding: var(--s3) var(--s3) 1.1rem; background: var(--page); border-top: 4px solid var(--gold);
}
.sidebar-box .lead-form .form-sub, .band .form-wrap .lead-form .form-sub { color: var(--ink); }

.fig-area { grid-area: fig; padding-block: var(--s6) 0; margin: 0; }
.fig-side { grid-area: side; padding-top: var(--s4); }

@media (min-width: 1024px) {
  .title { padding-block: 3.5rem 3.75rem; }
}
/* From 1100px the drawing sits directly under the band with its key beside it,
   and the quote box overhangs the band into the white page above the key.
   --hang is measured by script so the key starts just below the box; the
   fallback suits the compact form's usual height. */
@media (min-width: 1100px) {
  .opening-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
    grid-template-rows: auto var(--hang, 230px) auto;
    grid-template-areas: none;
  }
  .title { grid-column: 1 / 9; grid-row: 1; align-self: start; }
  .quote-side { grid-column: 9 / 13; grid-row: 1 / 3; align-self: start; padding-block: var(--s4) 0; }
  .sidebar-box { box-shadow: var(--shadow-lift); }
  /* the plan stays beside the key while the key is read */
  .fig-area { grid-column: 1 / 8; grid-row: 2 / 4; padding-top: 1.75rem; position: sticky; top: var(--s2); align-self: start; }
  .fig-side { grid-column: 8 / 13; grid-row: 3; padding: 0 0 0 var(--s3); }
}

/* ---------------------------------------------------------- figures */
.fig-head { max-width: 32ch; font-stretch: 108%; font-weight: 800; font-size: var(--fs-h2); line-height: 1.08; margin-bottom: var(--s2); }
.fig-lede { max-width: 60ch; color: var(--ink-2); margin-bottom: var(--s4); }
figure { margin: 0; }
.plate img { border: 1px solid var(--rule-strong); }
figcaption, .cap {
  margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px solid var(--rule-strong);
  font-family: var(--serif); font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2);
}
figcaption b, .cap b { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-right: 0.35rem; }

/* Fig. 1: the measured hall bathroom */
.fig1 { --hi: var(--gold-deep); }
.fig1-draw { position: relative; background: var(--page); }
.fig1-draw svg { width: 100%; height: auto; overflow: visible; }
.fig1 .wall { stroke: var(--teal); stroke-width: 9; fill: none; }
.fig1 .ln { stroke: var(--teal); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig1 .ln-fine { stroke: var(--teal); stroke-width: 1.5; fill: none; }
.fig1 .tint { fill: var(--sky-pale); }
.fig1 .dim { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.fig1 .dim-t { fill: var(--ink-2); font-family: var(--display); font-weight: 700; font-size: 15px; }
.fig1 .lab-t { fill: var(--teal-ink); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.fig1 .m { transition: opacity 220ms var(--ease-out); }
.fig1 .m .ln, .fig1 .m .dim, .fig1 .m .wall { transition: stroke 220ms var(--ease-out), stroke-width 220ms var(--ease-out); }
.fig1 .dot .disc { fill: var(--gold); stroke: var(--page); stroke-width: 3; transition: r 220ms var(--ease-out), fill 220ms var(--ease-out); }
.fig1 .dot .hit { fill: transparent; }
.fig1 .dot:focus { outline: none; }
.fig1 .dot:focus-visible .disc { stroke: var(--teal-deep); stroke-width: 5; }
.fig1 .dot text { fill: var(--ink); font-family: var(--display); font-weight: 850; font-size: 19px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.fig1 .dot { cursor: pointer; }

/* one measurement in focus: it goes gold, the rest of the plan steps back */
.fig1[data-active]:not([data-active=""]) .m { opacity: 0.35; }
.fig1[data-active="1"] .m1, .fig1[data-active="2"] .m2, .fig1[data-active="3"] .m3,
.fig1[data-active="4"] .m4, .fig1[data-active="5"] .m5, .fig1[data-active="6"] .m6 { opacity: 1; }
.fig1[data-active="1"] .m1 :is(.ln, .dim, .wall), .fig1[data-active="2"] .m2 :is(.ln, .dim, .wall),
.fig1[data-active="3"] .m3 :is(.ln, .dim, .wall), .fig1[data-active="4"] .m4 :is(.ln, .dim, .wall),
.fig1[data-active="5"] .m5 :is(.ln, .dim, .wall), .fig1[data-active="6"] .m6 :is(.ln, .dim, .wall) { stroke: var(--hi); stroke-width: 5; }
.fig1[data-active="1"] .d1 .disc, .fig1[data-active="2"] .d2 .disc, .fig1[data-active="3"] .d3 .disc,
.fig1[data-active="4"] .d4 .disc, .fig1[data-active="5"] .d5 .disc, .fig1[data-active="6"] .d6 .disc { r: 22; fill: var(--teal); }
.fig1[data-active="1"] .d1 text, .fig1[data-active="2"] .d2 text, .fig1[data-active="3"] .d3 text,
.fig1[data-active="4"] .d4 text, .fig1[data-active="5"] .d5 text, .fig1[data-active="6"] .d6 text { fill: #fff; }

/* before and after the conversion */
.fig1 .st-after { opacity: 0; }
.fig1[data-state="after"] .st-after { opacity: 1; }
.fig1[data-state="after"] .st-before { opacity: 0; }
.fig1 .st-before, .fig1 .st-after { transition: opacity 420ms var(--ease-out); }

.fig1-switch { display: inline-flex; margin-bottom: var(--s3); border: 2px solid var(--teal); border-radius: var(--radius); }
.fig1-switch[hidden] { display: none; }
.fig1-switch button {
  min-height: 48px; padding: 0 1.1rem; border: 0; background: var(--page); color: var(--teal-ink); cursor: pointer;
  font-family: var(--display); font-weight: 750; font-size: 1.02rem;
}
.fig1-switch button + button { border-left: 2px solid var(--teal); }
.fig1-switch button[aria-pressed="true"] { background: var(--teal); color: #fff; }

@media (max-width: 639px) {
  .fig1 .dot .disc { r: 25; }
  .fig1 .dot .hit { r: 41; }
  .fig1 .dot text { font-size: 27px; }
  .fig1[data-active="1"] .d1 .disc, .fig1[data-active="2"] .d2 .disc, .fig1[data-active="3"] .d3 .disc,
  .fig1[data-active="4"] .d4 .disc, .fig1[data-active="5"] .d5 .disc, .fig1[data-active="6"] .d6 .disc { r: 29; }
  .fig1 .dim-t { font-size: 25px; }
  .fig1 .lab-t { font-size: 24px; }
  .fig1-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .fig1-switch button { padding: 0.5rem 0.6rem; line-height: 1.25; }
}
.fig-key { list-style: none; margin-top: var(--s4); display: grid; gap: 0; }
@media (min-width: 760px) and (max-width: 1099px) { .fig-key { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.fig-side .fig-lede { margin-bottom: var(--s3); }
.fig-side .fig-key { margin-top: var(--s2); }
.fig-key li { border-top: 1px solid var(--rule); }
.fig-key button {
  width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 0.15rem 0.9rem; align-items: start;
  padding: 1rem 0.25rem 1.05rem; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  border-radius: var(--radius);
}
.fig-key button:hover { background: var(--sky-pale); }
.fig-key .n {
  grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); font-family: var(--display); font-weight: 850; font-size: 1.05rem; color: #FFFFFF;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.fig-key button[aria-pressed="true"] .n { background: var(--teal); color: #fff; }
.fig-key b { display: block; font-family: var(--display); font-stretch: 108%; font-weight: 850; font-size: 1.35rem; line-height: 1.15; color: var(--teal-ink); }
.fig-key .t { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
.fig-key .go { display: flex; align-items: flex-start; min-height: 46px; padding: 0 0.25rem 1rem 3.4rem; font-size: var(--fs-small); }
.fig1 .cap { margin-top: var(--s3); }

/* first draw: the plan inks itself once, then stays put */
.fig1.will-draw .ink { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fig1.will-draw .dot { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; }
.fig1.is-drawn .ink { animation: ink 1.25s var(--ease-out) forwards; }
.fig1.is-drawn .dot { animation: pop 420ms var(--ease-out) forwards; animation-delay: calc(700ms + var(--i, 0) * 70ms); }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fig1.will-draw .ink { stroke-dasharray: none; stroke-dashoffset: 0; }
  .fig1.will-draw .dot { opacity: 1; transform: none; }
  .fig1.is-drawn .ink, .fig1.is-drawn .dot { animation: none; }
  .fig1 .st-before, .fig1 .st-after, .fig1 .m { transition: none; }
}

/* ---------------------------------------------------------- page sections on the rail */
.sec { padding-block: var(--s7) var(--s6); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec.pale { background: var(--sky-pale); border-top: 0; }
.rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 1024px) {
  .rail { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s5); }
}
.side-head h2 { font-stretch: 108%; font-weight: 800; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.005em; }
.side-head p { margin-top: var(--s2); color: var(--ink-2); max-width: 46ch; }
.side-head .plate { margin-top: var(--s4); }
.body-col { min-width: 0; }
.body-col p, .body-col li { max-width: 68ch; }

/* services index: identical furniture for every service */
.svc-group + .svc-group { margin-top: var(--s5); }
.svc-group h3 {
  font-stretch: 108%; font-weight: 800; font-size: var(--fs-h3); padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rule-strong);
}
.svc-group > p { margin: 0.6rem 0 0; color: var(--ink-2); font-size: var(--fs-small); }
.svc-rows { list-style: none; }
.svc-rows li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.svc-thumb { grid-row: 1 / span 3; width: 96px; height: 72px; object-fit: cover; }
.svc-rows a { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.svc-num { font-family: var(--display); font-weight: 850; font-size: 1.1rem; color: var(--teal-ink); white-space: nowrap; }
.svc-note { font-size: var(--fs-small); color: var(--ink-2); max-width: 60ch; }
@media (min-width: 760px) {
  .svc-rows li { grid-template-columns: 8.5rem minmax(0, 14rem) 7rem minmax(0, 1fr); column-gap: var(--s3); align-items: center; }
  .svc-thumb { grid-row: auto; width: 8.5rem; height: 5.7rem; }
}

/* troubleshooting: problem, what to do, the evidence */
.trouble { list-style: none; }
.trouble > li { padding: var(--s4) 0; border-top: 2px solid var(--rule-strong); }
.trouble > li:first-child { padding-top: 0; border-top: 0; }
.trouble h3 { font-stretch: 104%; font-weight: 800; font-size: var(--fs-h3); line-height: 1.32; margin-bottom: 0.7rem; }
.trouble .evidence {
  margin: var(--s2) 0; padding: 0.85rem 1rem; background: var(--sky); border-radius: var(--radius);
  font-size: var(--fs-small); line-height: 1.5;
}
.trouble .evidence cite { display: block; margin-top: 0.3rem; font-style: normal; color: var(--ink-2); font-size: 0.95rem; }
.trouble .solves { font-size: var(--fs-small); font-weight: 700; }
@media (min-width: 1024px) {
  .side-head.stick { position: sticky; top: var(--s4); align-self: start; }
}

/* fold: secondary detail that phones open on demand (fold() in build.py) */
.fold > summary {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-bottom: 0.5rem;
  font-family: var(--display); font-weight: 750; font-size: 1rem; color: var(--teal-ink);
  cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; width: 9px; height: 9px; margin-top: -4px; border: solid var(--gold-deep); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 180ms var(--ease-out);
}
.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fold > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.fold-body > :last-child { margin-bottom: 0; }
.trouble .fold[open] { margin-bottom: var(--s2); }
.form-fold > summary { margin-bottom: var(--s3); }
@media (min-width: 768px) {
  .fold > summary { display: none; }
  .trouble .fold[open] { margin-bottom: 0; }
}

/* before you sign: the deliverables checklist */
.checklist { list-style: none; display: grid; gap: var(--s3); }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; }
.checklist svg { width: 26px; height: 26px; fill: var(--teal); margin-top: 2px; }
.checklist strong { display: block; font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.15rem; line-height: 1.32; margin-bottom: 0.25rem; }

/* rules we work by */
.principles { display: grid; gap: var(--s5); }
.principles h3 { font-stretch: 104%; font-weight: 800; font-size: var(--fs-h3); line-height: 1.32; margin-bottom: 0.7rem; }
.principles .std {
  margin-top: 0.85rem; padding-top: 0.55rem; border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: 750; font-size: 0.98rem; color: var(--teal-ink); letter-spacing: 0.01em;
}
.plates-2 { display: grid; gap: var(--s4); margin-top: var(--s4); }

/* the teal bands that bookend the page */
.band { background: var(--teal); color: var(--on-teal); padding-block: var(--s7); }
.band h2 { font-stretch: 108%; font-weight: 850; font-size: var(--fs-h2); line-height: 1.08; max-width: 18ch; }
.band p { margin-top: var(--s2); color: var(--on-teal-2); max-width: 52ch; }
.band .on-teal a:not(.btn) { color: #fff; }
.band-list { list-style: none; margin-top: var(--s3); display: grid; gap: 0.6rem; }
.band-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--on-teal-2); }
.band-list svg { width: 22px; height: 22px; fill: var(--gold); flex: none; margin-top: 3px; }
@media (min-width: 1024px) { .band .rail { grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); align-items: start; } }
.band .form-wrap { background: var(--page); color: var(--ink); }
.close { text-align: left; }
.close .acts { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }

/* communities: each keeps its own tint */
.towns { list-style: none; }
.towns li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.2rem 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.towns li:first-child { border-top: 2px solid var(--rule-strong); }
.towns .tint { grid-row: 1; align-self: center; width: 18px; height: 18px; border-radius: 3px; background: var(--tint, var(--teal)); box-shadow: inset 0 0 0 1px rgba(22, 32, 31, 0.18); }
.towns .fact { grid-column: 2; }
.towns a { font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.2rem; line-height: 1.35; }
.towns .fact { font-size: var(--fs-small); color: var(--ink-2); }
.also { margin-top: var(--s3); color: var(--ink-2); }

/* questions */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: var(--s2); align-items: center;
  min-height: 64px; padding: 1rem 0.25rem;
  font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.18rem; line-height: 1.32;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--sky)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230F4C5C' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }
.faq summary:hover { color: var(--teal-ink); }
.faq details > p { padding: 0 0.25rem var(--s3); max-width: 66ch; }

/* ---------------------------------------------------------- the lead form */
.lead-form { color: var(--ink); }
.lead-form .form-head { margin-bottom: var(--s3); }
.lead-form .form-head h2 { font-stretch: 108%; font-weight: 850; font-size: 1.6rem; line-height: 1.1; }
.lead-form .form-sub { margin-top: 0.4rem; font-size: var(--fs-small); color: var(--ink-2); }
.lead-form .field { margin-bottom: var(--s3); }
.lead-form label { display: block; margin-bottom: 0.35rem; font-family: var(--display); font-weight: 750; font-size: 1.02rem; color: var(--ink); }
.lead-form .req { color: #A3351E; }
.lead-form .opt { font-family: var(--read); font-weight: 400; color: var(--ink-2); font-size: 0.95rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; min-height: 54px; padding: 0.7rem 0.85rem;
  background: var(--page); border: 2px solid #5E7A82; border-radius: var(--radius); font-size: 1.1rem;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form select {
  appearance: none; padding-right: 2.6rem;
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230F4C5C' d='M12 16.5 5.5 10l1.4-1.4L12 13.7l5.1-5.1L18.5 10z'/%3E%3C/svg%3E") right 0.7rem center / 22px no-repeat;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(196, 71, 26, 0.35);
}
.lead-form input:user-invalid, .lead-form select:user-invalid { border-color: #A3351E; }
.lead-form .hint { display: block; margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }
.lead-form .hp { position: absolute !important; left: -9999px !important; }
.lead-form .cf-turnstile { margin-bottom: var(--s3); min-height: 65px; }
@media (max-width: 400px) { .lead-form .cf-turnstile { min-height: 140px; overflow: hidden; } }
.lead-form button[type="submit"] {
  width: 100%; min-height: 58px; padding: 0.8rem 1.2rem; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--teal); color: #fff; font-family: var(--display); font-stretch: 108%; font-weight: 850; font-size: 1.2rem;
  transition: background-color 160ms var(--ease-out);
}
.lead-form button[type="submit"]:hover { background: var(--teal-deep); }
.lead-form .form-note { margin-top: var(--s2); font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--sky-pale); border-top: 8px solid var(--teal); padding-block: var(--s6) var(--s4); font-size: var(--fs-small); }
.foot { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .foot { grid-template-columns: 1.3fr 1.1fr 1.1fr 0.8fr; } }
.foot-id img { height: 44px; width: auto; margin-bottom: var(--s3); }
.foot-id p { max-width: 34ch; color: var(--ink-2); }
.foot-id address { margin-top: var(--s2); line-height: 1.55; }
.foot-id .bar-tel { font-size: 1.3rem; }
.site-footer h2 { font-stretch: 104%; font-weight: 800; font-size: 1.3rem; padding-bottom: 0.5rem; margin-bottom: 0.4rem; border-bottom: 2px solid var(--rule-strong); }
.site-footer ul { list-style: none; }
.foot-fold > summary { display: block; list-style: none; cursor: pointer; }
.foot-fold > summary::-webkit-details-marker { display: none; }
.foot-fold > summary h2 { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.foot-fold > summary h2::after {
  content: ""; width: 10px; height: 10px; margin: -5px 6px 0 0; border: solid var(--teal); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 180ms var(--ease-out);
}
.foot-fold[open] > summary h2::after { transform: rotate(-135deg); margin-top: 5px; }
.foot-fold > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 767px) {
  .foot { gap: var(--s3); }
  .foot-id { margin-bottom: var(--s2); }
}
@media (min-width: 768px) {
  .foot-fold > summary { cursor: default; }
  .foot-fold > summary h2::after { display: none; }
}
.site-footer li a { display: flex; align-items: center; min-height: 44px; padding-block: 0.45rem; color: var(--ink); text-decoration: none; line-height: 1.35; }
.site-footer li a:hover { color: var(--teal-ink); text-decoration: underline; }
.foot-legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.98rem; }
.foot-legal p { max-width: 90ch; }
.foot-legal .row { margin-top: var(--s2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.foot-legal .row a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------------------------------------------------------- sticky call bar (phones) and call tab (desktop) */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.25fr 1fr;
  transform: translateY(110%); transition: transform 260ms var(--ease-out);
  box-shadow: 0 -8px 24px rgba(10, 55, 66, 0.18); padding-bottom: env(safe-area-inset-bottom);
  background: var(--page);
}
.mobile-cta.visible { transform: none; }
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 60px; text-decoration: none;
  font-family: var(--display); font-weight: 850; font-size: 1.12rem;
}
.mobile-cta .call { background: var(--gold); color: #FFFFFF; }
.mobile-cta .quote { background: var(--teal); color: #fff; }
.mobile-cta svg { width: 20px; height: 20px; fill: currentColor; }
.fab { display: none; }
@media (min-width: 1024px) {
  .mobile-cta { display: none; }
  .fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 56px; padding: 0 1.25rem; border-radius: var(--radius);
    background: var(--gold); color: #FFFFFF; text-decoration: none; box-shadow: var(--shadow-lift);
    font-family: var(--display); font-weight: 850; font-size: 1.12rem;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
  }
  .fab.visible { opacity: 1; transform: none; pointer-events: auto; }
  .fab svg { width: 20px; height: 20px; fill: currentColor; }
}
/* The page margin only holds the full number from 1640px. Narrower, the tab
   shrinks to a round call button so it covers as little reading text as it can;
   its aria-label still names the number. */
@media (min-width: 1024px) and (max-width: 1639px) {
  .fab { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
  .fab svg { width: 24px; height: 24px; }
}
@media (max-width: 1023px) { body.has-mobile-cta { padding-bottom: 64px; } }

/* standalone row links meet the 44px touch target this audience needs */
/* at every width: iPads in landscape are touch screens wider than 1024px */
.svc-rows a, .towns a, .area-block-body h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.trouble .solves a { display: inline-block; padding-block: 0.65rem; }

/* Figs. 3 and 4: how-to section drawings in the same two colours as Fig. 1 */
.plate.drawn .drawing { width: 100%; height: auto; padding: 12px; background: var(--page); border: 1px solid var(--rule-strong); }
/* in an article column a plate keeps print-plate size, so its lettering stays near body size */
.prose .plate.drawn { max-width: 34rem; }
.drawing .ln { stroke: var(--teal); stroke-width: 2.5; fill: none; }
.drawing .ln-fine { stroke: var(--teal); stroke-width: 1.5; fill: none; }
.drawing .tint { fill: var(--sky-pale); }
.drawing .hatch, .drawing .membrane { fill: var(--gold); }
.drawing .bar { stroke: var(--teal-deep); stroke-width: 11; stroke-linecap: round; fill: none; }
.drawing .screw circle { fill: var(--page); stroke: var(--teal-deep); stroke-width: 2; }
.drawing .dim { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
.drawing .dim-t { fill: var(--ink-2); font-family: var(--display); font-weight: 700; font-size: 19px; }
.drawing .lab-t { fill: var(--teal-ink); font-family: var(--display); font-weight: 750; font-size: 18px; letter-spacing: 0.04em; }

/* =====================================================================
   Rollout: the shared page components, in the same world as the homepage.
   ===================================================================== */
.container { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* narrow content still starts on the same left edge as everything else */
.container-narrow { width: min(860px, 100% - 2 * var(--gutter)); margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); margin-right: auto; }
.mt-3 { margin-top: var(--s3); }
.scroll-cue { color: #fff; }

/* buttons as the older templates name them */
.btn-lg { min-height: 56px; }
.btn-on-dark { background: var(--gold); color: #FFFFFF; }
.btn-on-dark:hover { background: #F7C460; color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; border-color: currentColor; color: var(--teal-ink); }
.btn-secondary:hover { background: var(--sky-pale); text-decoration: none; }
.page-hero .btn-secondary, .cta-band .btn-secondary { color: #fff; }
.page-hero .btn-secondary:hover, .cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* breadcrumbs: a quiet ruled line above the title band */
.breadcrumbs { border-bottom: 1px solid var(--rule); font-size: var(--fs-label); color: var(--ink-2); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; min-height: 44px; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--rule); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }
/* a community page wears its own tint: the swatch on its crumb, and the band's lower edge */
.breadcrumbs.has-tint [aria-current] { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs.has-tint [aria-current]::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px;
  background: var(--tint); box-shadow: inset 0 0 0 1px rgba(22, 32, 31, 0.18);
}
.page-hero.has-tint { border-bottom: 10px solid var(--tint); }

/* page title band: the homepage's teal band, without the photo wash */
.page-hero { background: var(--teal); color: var(--on-teal); padding-block: var(--s5) var(--s5); }
.page-hero h1 { font-stretch: 110%; font-weight: 850; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 24ch; }
.page-hero p { margin-top: var(--s2); max-width: 60ch; font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem); line-height: 1.5; color: var(--on-teal-2); text-wrap: pretty; }
.page-hero .byline { font-size: var(--fs-label); color: var(--on-teal-2); margin-top: var(--s2); }
.page-hero .hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
/* "more below": sits on the band's left edge, under the actions */
.scroll-cue {
  display: flex; align-items: center; gap: 0.45rem;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: var(--s3) auto 0; min-height: 44px;
  font-family: var(--display); font-weight: 750; font-size: var(--fs-small); color: #fff; text-decoration: none;
}
.scroll-cue span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
.scroll-cue svg { flex: none; width: 22px; height: 22px; fill: var(--gold); animation: scroll-nudge 2.2s ease-in-out infinite; }
.scroll-cue:hover span { text-decoration-thickness: 2.5px; }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
@media (min-width: 1024px) { .page-hero { padding-block: var(--s6) var(--s5); } }

/* sections and their heads */
main > section:not(.page-hero):not(.opening):not(.band):not(.cta-band):not(.cover):not(.dept) { padding-block: var(--s6); }
.bg-alt { background: var(--sky-pale); }
.section-head { max-width: 62ch; margin-bottom: var(--s4); }
.section-head h2 { font-stretch: 108%; font-weight: 800; font-size: var(--fs-h2); line-height: 1.08; }
.section-head p { margin-top: var(--s2); color: var(--ink-2); }
.section-head.center, .center, .mx-auto { text-align: left; margin-left: 0; }

/* article column and its sidebar */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 1024px) { .layout-2col { grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr); column-gap: var(--s5); } }
.prose { min-width: 0; }
.prose > * + * { margin-top: var(--s2); }
.prose h2 { margin-top: var(--s6); margin-bottom: var(--s2); font-stretch: 108%; font-weight: 800; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.12; }
.prose h3 { margin-top: var(--s4); margin-bottom: 0.6rem; font-stretch: 104%; font-weight: 800; font-size: var(--fs-h3); line-height: 1.32; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol:not(.steps):not(.fig-key) { padding-left: 1.35rem; }
.prose li { margin-top: 0.4rem; }
.prose li::marker { color: var(--teal); }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.45rem); line-height: 1.5; color: var(--ink); }
.lead p { max-width: 62ch; }
.category-note { padding: 0.8rem 1rem; background: var(--sky-pale); border-radius: var(--radius); font-size: var(--fs-small); }
.sourced { font-size: 0.98rem; color: var(--ink-2); }
.sourced strong { color: var(--ink); }

.sidebar { display: grid; gap: var(--s4); }
@media (min-width: 1024px) { .sidebar { position: sticky; top: var(--s3); } }
.sidebar > .lead-form { background: var(--sky); padding: 0 var(--s3) var(--s3); box-shadow: var(--shadow-lift); }
.sidebar > .lead-form .form-head, .bg-alt .lead-form .form-head {
  margin: 0 calc(var(--s3) * -1) var(--s3); padding: var(--s3) var(--s3) 1.1rem; background: var(--page); border-top: 4px solid var(--gold);
}
.sidebar > .lead-form .form-sub, .bg-alt .lead-form .form-sub { color: var(--ink); }
.bg-alt .lead-form { background: var(--page); padding: 0 var(--s3) var(--s3); border: 1px solid var(--rule); }
.sidebar-card { padding-top: var(--s2); border-top: 2px solid var(--rule-strong); }
.sidebar-card h3 { font-stretch: 104%; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.3rem; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { margin: 0; padding-block: 2px; border-bottom: 1px solid var(--rule); }
.sidebar-card li a { display: flex; align-items: center; min-height: 44px; padding-block: 0.4rem; line-height: 1.35; }

/* At a glance: a tinted how-to box */
.specbox { margin-top: var(--s4); background: var(--sky-pale); border-top: 2px solid var(--rule-strong); }
.specbox h2 { margin: 0 !important; padding: var(--s2) var(--s3) 0.6rem; font-size: 1.3rem !important; }
.specbox dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .specbox dl { grid-template-columns: 1fr 1fr; column-gap: var(--s3); padding-inline: var(--s3); } }
.specbox .row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.75rem; padding: 0.75rem var(--s3); border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .specbox .row { padding-inline: 0; } }
.specbox dt { font-family: var(--display); font-weight: 750; font-size: 1rem; }
.specbox dd { margin: 0; font-size: var(--fs-small); }
.specbox > .note { max-width: none; margin: 0; padding: 0.75rem var(--s3) var(--s2); font-size: 0.98rem; color: var(--ink-2); border-top: 1px solid var(--rule); }
/* the footnote rule spans exactly what the row rules span */
@media (min-width: 640px) { .specbox > .note { margin-inline: var(--s3); padding-inline: 0; } }

/* key figures: one truth each, ruled like a printed data strip */
.keyfacts { margin-top: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); border-block: 2px solid var(--rule-strong); }
@media (min-width: 640px) { .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.keyfact { padding: var(--s2) var(--s2) var(--s2) 0; }
.keyfact + .keyfact { border-top: 1px solid var(--rule); }
@media (min-width: 640px) {
  .keyfact + .keyfact { border-top: 0; border-left: 1px solid var(--rule); padding-left: var(--s2); }
}
.keyfact .num { font-family: var(--display); font-stretch: 108%; font-weight: 850; font-size: 1.75rem; line-height: 1.1; color: var(--teal-ink); }
.keyfact .lbl { margin-top: 0.3rem; font-size: 0.98rem; line-height: 1.45; color: var(--ink); }

/* figures inside articles: keylined plates with ruled captions */
.figure-band, .figure-split figure { margin-top: var(--s4); }
.figure-band img, .figure-split img { width: 100%; border: 1px solid var(--rule-strong); }
.figure-split { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .figure-split { grid-template-columns: 1fr 1fr; } }

/* item grids: ruled, never a coloured side bar */
.depth-grid { margin-top: var(--s3); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3) var(--s4); }
@media (min-width: 760px) { .depth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.depth-item { min-width: 0; padding-top: var(--s2); border-top: 2px solid var(--rule-strong); }
.depth-item h3 { margin: 0 0 0.5rem !important; font-stretch: 104%; font-weight: 800; font-size: 1.2rem; line-height: 1.32; }
.depth-item p { font-size: var(--fs-small); }
.datapoint { display: block; margin-top: var(--s2); padding: 0.8rem 1rem; background: var(--sky); border-radius: var(--radius); font-size: var(--fs-small); line-height: 1.5; }
.datapoint cite { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.95rem; color: var(--ink-2); }
.solves { margin-top: var(--s2); font-size: var(--fs-small); font-weight: 700; }

/* process steps: the sequence carries information, so the numbers stay */
.steps { list-style: none; padding: 0; margin-top: var(--s3); counter-reset: step; display: grid; gap: var(--s3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #FFFFFF; font-family: var(--display); font-weight: 850; font-size: 1.05rem;
}
.steps .step-body { min-width: 0; }
.steps strong { display: block; font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.15rem; line-height: 1.32; margin-bottom: 0.25rem; }
.callout { margin-top: var(--s4); padding: var(--s3); background: var(--sky-pale); border-top: 2px solid var(--rule-strong); }
.callout > :first-child { margin-top: 0 !important; }

/* tables: ruled, with a labelled stack below 640px */
.table-scroll { overflow-x: auto; margin-top: var(--s3); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th { text-align: left; padding: 0.7rem 0.75rem; font-family: var(--display); font-weight: 800; background: var(--sky-pale); border-bottom: 2px solid var(--rule-strong); vertical-align: bottom; }
.prose td { padding: 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.cost-table td:first-child { font-weight: 700; }
.cost-table .price { font-family: var(--display); font-weight: 850; color: var(--teal-ink); white-space: nowrap; }
.cost-table tbody tr.is-match { background: rgba(196, 71, 26, 0.10); }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { margin-bottom: var(--s2); border-top: 2px solid var(--rule-strong); }
  .prose td { border-bottom: 0; padding: 0.45rem 0; }
  .prose td::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 750; font-size: 0.9rem; color: var(--ink-2); }
  .cost-table .price { white-space: normal; }
}

/* cost finder */
.cost-finder { margin-top: var(--s4); padding: var(--s3); background: var(--sky-pale); border-top: 2px solid var(--rule-strong); }
.cost-finder h3 { margin: 0 0 0.35rem !important; }
.cost-finder .cf-intro { font-size: var(--fs-small); color: var(--ink-2); }
.cost-finder .cf-q { border: 0; margin: var(--s3) 0 0; padding: 0; }
.cost-finder .cf-q legend { padding: 0; margin-bottom: 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.cost-finder .cf-opt {
  display: flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.5rem 0.8rem; margin-bottom: 0.45rem;
  background: var(--page); border: 2px solid var(--rule); border-radius: var(--radius); cursor: pointer; line-height: 1.4;
}
.cost-finder .cf-opt:hover { border-color: var(--teal); }
.cost-finder .cf-opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.cost-finder .cf-opt:has(input:checked) { border-color: var(--teal); background: var(--sky); font-weight: 700; }
.cost-finder .cf-out { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.cost-finder .cf-range { font-size: 1.1rem; }
.cost-finder .cf-help, .cost-finder .cf-caveat { font-size: var(--fs-small); color: var(--ink-2); }

/* why choose us: the standard reads as a line under the text, never an eyebrow */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s3); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { display: flex; flex-direction: column; padding-top: var(--s2); border-top: 2px solid var(--rule-strong); }
.pillar h3 { margin: 0 0 0.6rem !important; font-stretch: 104%; font-weight: 800; font-size: var(--fs-h3); line-height: 1.32; }
.pillar p { font-size: var(--fs-small); }
.pillar .stat { order: 9; margin-top: 0.85rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); font-family: var(--display); font-weight: 750; font-size: 0.98rem; color: var(--teal-ink); }

/* community links: each keeps its homepage tint */
.city-links { list-style: none; padding: 0 !important; margin-top: var(--s3); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0 var(--s3); }
.city-links li { margin: 0; padding-block: 2px; border-bottom: 1px solid var(--rule); }
.city-links a { display: flex; align-items: center; gap: 0.7rem; min-height: 48px; font-family: var(--display); font-weight: 750; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.city-links a:hover { color: var(--teal-ink); text-decoration: underline; }
.city-links a::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--tint, var(--teal)); box-shadow: inset 0 0 0 1px rgba(22, 32, 31, 0.18); }
:is(.city-links, .area-block, .towns, .town-links) a[href*="carmichael"] { --tint: #5F8A3A; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="rancho-cordova"] { --tint: #B0602C; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="fair-oaks"] { --tint: #3F7458; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="west-sacramento"] { --tint: #2E6B9A; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="north-highlands"] { --tint: #86682F; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="florin"] { --tint: #9C4867; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="rosemont"] { --tint: #665596; }
:is(.city-links, .area-block, .towns, .town-links) a[href*="rio-linda"] { --tint: #93761B; }

/* catalog rows instead of a card grid (services hub, guides index) */
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s4); border-top: 2px solid var(--rule-strong); }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s2); align-items: start; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
@media (min-width: 640px) { .service-card { grid-template-columns: 150px minmax(0, 1fr); } }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule-strong); }
.service-card h3 { font-stretch: 104%; font-weight: 800; font-size: 1.2rem; line-height: 1.32; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.service-card p { margin-top: 0.3rem; font-size: var(--fs-small); color: var(--ink); }
.service-card .arrow { display: none; }
.service-card:hover h3 { text-decoration-thickness: 2.5px; }

/* service-areas directory */
div.area-list { display: grid; gap: 0; border-top: 2px solid var(--rule-strong); }
/* About page: the sixteen communities as a scannable grid */
ul.area-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); }
@media (min-width: 620px) { ul.area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ul.area-list li { margin: 0; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.area-block-label { margin-top: var(--s3) !important; font-family: var(--display); font-weight: 750; font-size: 1rem; color: var(--ink) !important; }
/* inside one community's block the heading carries the chip; its service list does not repeat it */
.area-block .city-links a::before { display: none; }
.area-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .area-block { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.area-block-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule-strong); }
.area-block-body { min-width: 0; }
.area-block-body h3 { font-stretch: 104%; font-weight: 800; font-size: 1.35rem; line-height: 1.35; }
.area-block-body h3 a { display: inline-flex; align-items: center; gap: 0.6rem; }
.area-block-body h3 a::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--tint, var(--teal)); box-shadow: inset 0 0 0 1px rgba(22, 32, 31, 0.18); }
.area-block-body p { margin-top: 0.5rem; color: var(--ink-2); font-size: var(--fs-small); }

/* closing band */
.cta-band { background: var(--teal); color: var(--on-teal); padding-block: var(--s6); }
.cta-band h2 { font-stretch: 108%; font-weight: 850; font-size: var(--fs-h2); line-height: 1.08; max-width: 22ch; }
.cta-band p { margin-top: var(--s2); max-width: 56ch; color: var(--on-teal-2); }
.cta-band .cta-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.cta-band a:not(.btn) { color: #fff; }

/* guide contents: a tinted box, ruled at the top */
.guide-toc { margin-bottom: var(--s4); padding: var(--s2) var(--s3); background: var(--sky-pale); border-top: 2px solid var(--rule-strong); }
.guide-toc h2 { margin: 0 0 0.5rem !important; font-size: 1.1rem !important; }
.guide-toc ol { padding-left: 1.3rem; }
.guide-toc li { margin-top: 0.15rem; }
.guide-toc li > a { display: inline-flex; align-items: center; min-height: 44px; }
.prose h2[id] { scroll-margin-top: 24px; }

/* utility pages */
.figure-band figcaption, .figure-split figcaption { font-size: var(--fs-small); }

.get-list { list-style: none; padding: 0; display: grid; gap: var(--s3); margin-top: var(--s3); }
@media (min-width: 760px) { .get-list { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }
.get-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; align-items: start; }
.get-list svg { width: 26px; height: 26px; fill: var(--teal); margin-top: 2px; }
.get-list strong { display: block; font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.15rem; line-height: 1.32; margin-bottom: 0.25rem; }

/* every photo in an article is a numbered plate, as on the homepage */
.prose { counter-reset: fig; }
.figure-band figcaption::before, .figure-split figcaption::before {
  counter-increment: fig; content: "Fig. " counter(fig);
  font-family: var(--display); font-stretch: 108%; font-weight: 800; color: var(--teal-ink); margin-right: 0.4rem;
}

/* catalog rows: link lists beyond the homepage catalog (catalog_rows() in build.py).
   A 2px ink rule opens the list, 1px rules divide it, names set in the display face. */
.cat-list { list-style: none; padding: 0 !important; margin-bottom: var(--s3); border-top: 2px solid var(--rule-strong); }
.prose .cat-list li, .cat-list li { max-width: none; margin: 0; padding: 0.2rem 0 0.65rem; border-bottom: 1px solid var(--rule); }
.cat-list li:not(:has(.cat-note)) { padding-bottom: 0.2rem; }
.cat-list li > a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-stretch: 104%; font-weight: 800; font-size: 1.1rem; line-height: 1.35; }
.cat-note { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  .cat-list li:has(.cat-note) { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); column-gap: var(--s3); align-items: baseline; padding-bottom: 0.3rem; }
  .cat-list li:has(.cat-note) > a { align-self: start; }
  .cat-note { padding-top: 0.65rem; }
}
.sidebar-card .cat-short li { padding: 2px 0; }
.sidebar-card .cat-short li > a { font-size: 1.02rem; font-weight: 750; }

/* Standalone links meet the 44px target this audience needs: a list item that is
   only a link, the per-community "everything we do" link, and the contact page's
   phone number. Links inside running sentences keep normal line height. */
main li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0.2rem; line-height: 1.35; }
.area-block-body .mt-3 > a { display: inline-flex; align-items: center; min-height: 48px; }

/* utility pages (404, privacy, terms, thank-you) title in the prose column */
.prose h1 { font-stretch: 110%; font-weight: 850; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: var(--s3); max-width: 24ch; }

/* sidebar community lists carry the chip; the trailing "all areas" link does not */
.town-links a { gap: 0.6rem; }
.town-links a[href*="carmichael"]::before, .town-links a[href*="rancho-cordova"]::before, .town-links a[href*="fair-oaks"]::before,
.town-links a[href*="west-sacramento"]::before, .town-links a[href*="north-highlands"]::before, .town-links a[href*="florin"]::before,
.town-links a[href*="rosemont"]::before, .town-links a[href*="rio-linda"]::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--tint); box-shadow: inset 0 0 0 1px rgba(22, 32, 31, 0.18);
}

/* Desktop: the quote sidebar rises into the title band, as on the homepage, so the
   band's right side holds the action instead of empty teal. */
@media (min-width: 1024px) {
  /* script sets the exact lift so the box starts level with the band's top padding;
     220px is the fallback without script */
  .page-hero + section .layout-2col > .sidebar { margin-top: calc(-1 * var(--lift, 220px)); position: sticky; z-index: 2; }
  .page-hero .container > :not(.hero-actions) { max-width: min(var(--hero-measure, 100%), calc((100% - var(--s5)) * 2 / 3)); }
  .page-hero h1 { --hero-measure: 24ch; }
  .page-hero .container > p { --hero-measure: 60ch; }
}

/* Western Living: a photo leads the "why" column where the old line drawings were */
.why-photo { margin-top: var(--s4); }
.why-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------------------------------------------------------- Western Living: article opener
   The page's own photograph runs full width; the title is set below it on the page's
   ground, like a feature opening in a home magazine. Replaces the teal title band. */
.page-hero { background: var(--page); color: var(--ink); padding-block: 0 var(--s4); }
.page-hero .hero-photo { margin: 0 0 var(--s4); }
.page-hero .hero-photo img { width: 100%; height: clamp(210px, 36vw, 500px); object-fit: cover; }
.page-hero h1 { font-weight: 700; font-size: clamp(2.2rem, 1.45rem + 3.1vw, 3.7rem); line-height: 0.97; letter-spacing: -0.022em; color: var(--ink); }
.page-hero p { font-family: var(--serif); color: var(--ink-2); font-size: clamp(1.15rem, 1.08rem + 0.35vw, 1.4rem); line-height: 1.45; }
.page-hero .byline { font-family: var(--display); font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.page-hero .btn-secondary { color: var(--teal-ink); }
.page-hero .btn-secondary:hover { background: var(--sky-pale); color: var(--teal-ink); }
.page-hero .scroll-cue { color: var(--teal-ink); }
.page-hero.has-tint { border-bottom: 0; }
.page-hero.has-tint .hero-photo { border-bottom: 10px solid var(--tint); }
.page-hero :focus-visible { outline-color: var(--teal); }
@media (min-width: 1024px) { .page-hero { padding-block: 0 var(--s5); } }

/* orange call buttons keep white text on hover (a:hover would turn it teal) */
.btn-call:hover, .btn-on-dark:hover, .mobile-cta .call:hover, .fab:hover, .reply-call:hover, .skip-link:hover { color: #FFFFFF; background: var(--gold-deep); }

/* ---------------------------------------------------------- Western Living: one ground, teal only for links
   Every section sits on the same white coated stock. The bands that used to be teal
   fields (the quote band, the closing call, the article call band) become a reply card
   on the page ground; teal stays for links and the masthead mark. */
.living .band, .living .cta-band { background: var(--page); color: var(--ink); }
.living .band h2, .living .cta-band h2 { color: var(--ink); }
.living .band p, .living .band-list li, .living .cta-band p { color: var(--ink-2); }
.living .band .on-teal a:not(.btn) { color: var(--teal-ink); }
.living .band .band-list svg { fill: var(--gold); }
.living .on-teal .btn-line, .living .cta-band .btn-secondary { color: var(--teal-ink); border-color: var(--teal-ink); }
.living .on-teal .btn-line:hover, .living .cta-band .btn-secondary:hover { background: var(--page); color: var(--teal-deep); }
.living .band :focus-visible, .living .cta-band :focus-visible, .living .close :focus-visible { outline-color: var(--teal); }
.living .band .form-wrap, .living .band .lead-form { background: #FFFFFF; box-shadow: 0 14px 36px rgba(10, 17, 28, 0.14); }
.living .band { border-top: 1px solid var(--rule-strong); }
/* sources read as ruled serif captions, not grey boxes */
.living .trouble .evidence { background: none; padding: 0.55rem 0 0; border-radius: 0; border-top: 1px solid var(--rule-strong); font-family: var(--serif); }
.living .evidence, .living .callout, .living .specbox { background: none; }
/* service figures as pull numbers */
.living .svc-num { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); font-weight: 800; color: var(--teal-ink); letter-spacing: -0.02em; line-height: 1; }
/* the homepage town list drops its swatches; the names carry it */
.living .towns .tint { display: none; }
/* the town list is one column once the swatch track is gone: name above its note */
.living .towns li { grid-template-columns: minmax(0, 1fr); }
.living .towns .fact { grid-column: 1; }
/* pull numbers get a column that holds them and may wrap, so no figure prints over its note */
.living .svc-num { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
/* tablet: thumbnail, then name over figure, then the note; desktop: four proportional columns */
@media (min-width: 760px) and (max-width: 1099px) {
  .living .svc-rows li { grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto; align-items: start; row-gap: 0.35rem; }
  .living .svc-rows li .svc-thumb { grid-column: 1; grid-row: 1 / span 2; }
  .living .svc-rows li > a { grid-column: 2; grid-row: 1; }
  .living .svc-rows li .svc-num { grid-column: 2; grid-row: 2; }
  .living .svc-rows li .svc-note { grid-column: 3; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .living .svc-rows li { grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.3fr); }
}
/* the quote band is one white card: no inner box, and the send button takes the call colour */
.living .band .form-wrap .lead-form { background: transparent; box-shadow: none; padding: 0; border: 0; }
.living .lead-form button[type="submit"] { background: var(--gold); color: #fff; }
.living .lead-form button[type="submit"]:hover { background: var(--gold-deep); color: #fff; }
.living .band .form-wrap .lead-form .form-head { background: transparent; }
