/* ==========================================================================
   Seaview Skylights Poole
   Art direction: daylight shown against the dark.
   Governing colour rule: Sun lives on ink. Ink lives on chalk.
   ========================================================================== */

:root{
  /* --- grounds --- */
  --brand-deep:#0F2620;
  --brand-primary:#1B3A34;
  --surface:#F4F0E8;
  --white:#FFFFFF;

  /* --- accent --- */
  --accent:#C4602F;
  --accent-deep:#A44D22;
  --accent-wash:#F6E2D5;

  /* --- type --- */
  --ink:#1A2620;
  --ink-on-dark:#CFDAD3;
  --ink-muted:#5A665F;
  --ink-muted-light:#8B968F;

  /* --- support --- */
  --brand-support:#5A8C8F;
  --brand-support-deep:#3E6A6D;
  --hairline-dark:#2C4A43;
  --hairline:#DCD5C7;

  /* --- semantic (form + alert components only) --- */
  --success:#2E7D52;
  --warning:#8A5412;
  --danger:#B23A2B;

  /* --- spacing scale: the ONLY vertical/horizontal steps --- */
  --s-1:4px;  --s-2:8px;  --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;

  /* --- section padding by tier --- */
  --pad-hero:clamp(64px,9vw,128px);
  --pad-major:clamp(48px,6.5vw,96px);
  --pad-minor:clamp(32px,4vw,64px);

  /* --- containers --- */
  --w-prose:68ch;
  --w-standard:1140px;
  --w-wide:1320px;

  /* --- type scale (major third) --- */
  --fs-eyebrow:13px;
  --fs-sm:15px;
  --fs-base:17px;
  --fs-lg:clamp(19px,1.6vw,21px);
  --fs-xl:clamp(23px,2.1vw,27px);
  --fs-2xl:clamp(27px,2.8vw,33px);
  --fs-3xl:clamp(32px,3.8vw,42px);
  --fs-4xl:clamp(38px,5vw,52px);
  --fs-5xl:clamp(44px,7.5vw,82px);

  --font-display:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Newsreader',Georgia,'Times New Roman',serif;

  --head-h:64px;
  --radius:4px;
}

/* --------------------------------------------------------------- reset --- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--surface);color:var(--ink);
  font-family:var(--font-body);font-size:var(--fs-base);line-height:1.7;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,h4,h5{font-family:var(--font-display);font-weight:800;line-height:1.14;letter-spacing:-.025em;margin:0 0 var(--s-4)}
h1{font-size:var(--fs-4xl)}
h2{font-size:var(--fs-3xl)}
h3{font-size:var(--fs-2xl)}
h4{font-size:var(--fs-xl);font-weight:700}
p,ul,ol,table,figure,blockquote{margin:0 0 var(--s-4)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
strong,b{font-weight:600}
hr{border:0;height:1px;background:var(--hairline);margin:var(--s-7) 0}

.wrap{width:100%;max-width:var(--w-wide);margin:0 auto;padding-inline:var(--s-6)}
.wrap--standard{max-width:var(--w-standard)}
.prose{max-width:var(--w-prose)}

.eyebrow{
  font-family:var(--font-display);font-weight:700;font-size:var(--fs-eyebrow);
  text-transform:uppercase;letter-spacing:.14em;line-height:1;margin:0 0 var(--s-4);
}
.lede{font-size:var(--fs-lg);line-height:1.55}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;background:var(--accent);
  color:var(--brand-deep);padding:var(--s-3) var(--s-5);font-family:var(--font-display);font-weight:700;
}
.skip:focus{left:var(--s-4);top:var(--s-4)}

:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.on-chalk :focus-visible,.site-foot :focus-visible{outline-color:var(--accent-text)}

/* ------------------------------------------------------------- buttons --- */
.btn{
  display:inline-block;font-family:var(--font-display);font-weight:700;font-size:15px;
  letter-spacing:.01em;padding:var(--s-3) var(--s-5);border-radius:var(--radius);
  border:0;cursor:pointer;text-decoration:none;transition:background .16s ease,transform .16s ease;
}
.btn--primary{background:var(--accent-deep);color:#fff}
.btn--primary:hover,.btn--primary:focus{background:var(--accent-deep);color:var(--brand-deep)}
.btn--ghost{background:transparent;color:var(--accent-text);border:1.5px solid var(--accent)}
.btn--ghost:hover{background:rgba(233,195,63,.1)}
.btn--ghost-ink{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.btn--ghost-ink:hover{background:rgba(26,39,48,.06)}
.btn--sm{padding:9px 16px;font-size:14px}
.inline-cta{margin:var(--s-6) 0}

/* ---------------------------------------------------------- site header --- */
.site-head{background:var(--brand-deep);position:sticky;top:0;z-index:100;border-bottom:1px solid var(--hairline-dark)}
.site-head__bar{display:flex;align-items:center;gap:var(--s-6);min-height:var(--head-h)}

.lockup{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.lockup .mk{width:26px;height:26px;flex:none}
.lockup__wm{font-family:var(--font-display);font-weight:800;font-size:17px;letter-spacing:-.02em;color:#fff;line-height:1;white-space:nowrap}

.site-nav{display:flex;align-items:center;gap:var(--s-6);margin-left:auto}
.site-nav__list{display:flex;align-items:center;gap:var(--s-5);list-style:none;margin:0;padding:0}
.site-nav__list > li{position:relative}
.site-nav__list > li > a{
  font-family:var(--font-display);font-weight:700;font-size:15px;color:var(--ink-on-dark);
  text-decoration:none;white-space:nowrap;display:block;padding:20px 0;position:relative;
}
.site-nav__list > li > a:hover,.site-nav__list > li > a:focus{color:#fff}
.site-nav__list > li > a::after{
  content:"";position:absolute;left:0;right:0;bottom:14px;height:2px;background:var(--accent);
  transform:scaleX(0);transform-origin:left;transition:transform .16s ease;
}
.site-nav__list > li > a:hover::after,.site-nav__list > li.is-current > a::after{transform:scaleX(1)}

/* services / areas dropdown */
.has-drop > a{padding-right:14px}
.has-drop > a::before{
  content:"";position:absolute;right:0;top:50%;width:5px;height:5px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-70%) rotate(45deg);
}
.drop{
  position:absolute;top:100%;left:calc(var(--s-4) * -1);min-width:280px;background:var(--brand-primary);
  border:1px solid var(--hairline-dark);border-top:2px solid var(--accent);
  padding:var(--s-4);opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s;z-index:110;
  box-shadow:0 18px 40px rgba(0,0,0,.4);
}
.drop--wide{min-width:440px}
.has-drop:hover > .drop,.has-drop:focus-within > .drop,.has-drop.is-open > .drop{opacity:1;visibility:visible;transform:translateY(0)}
.drop__list{list-style:none;margin:0;padding:0}
.drop__list--cols{columns:2;column-gap:var(--s-5)}
.drop__list a{
  display:block;padding:7px 8px;font-family:var(--font-display);font-weight:400;font-size:14.5px;
  color:var(--ink-on-dark);text-decoration:none;border-radius:3px;break-inside:avoid;
}
.drop__list a:hover,.drop__list a:focus{background:rgba(233,195,63,.12);color:#fff}
.drop__all{
  display:inline-block;margin-top:var(--s-3);padding:6px 8px;font-family:var(--font-display);
  font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--accent-text);text-decoration:none;
}
.drop__all:hover{text-decoration:underline}

.site-nav__cta{display:flex;align-items:center;gap:var(--s-4);flex:none}
.site-nav__phone{font-family:var(--font-display);font-weight:700;font-size:15px;color:var(--accent-text);text-decoration:none;white-space:nowrap}
.site-nav__phone:hover{text-decoration:underline}

.burger{display:none;margin-left:auto;background:transparent;border:0;padding:10px;cursor:pointer}
.burger span{display:block;width:22px;height:2px;background:#fff;margin:4px 0;transition:transform .2s ease,opacity .2s ease}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* --------------------------------------------------------------- media ---
   BLOCK LEVEL ONLY. Never float. The generator emits 1024x1024 squares, so
   every content image is cropped here, in CSS.
   ------------------------------------------------------------------------ */
.media{margin:var(--s-7) auto;max-width:100%}
.media img{width:100%;object-fit:cover;display:block;background:var(--brand-primary)}
.media--banner{width:100%}
.media--banner img{aspect-ratio:16/9;object-position:50% 58%}
.media--inset{width:84%}
.media--inset img{aspect-ratio:3/2;object-position:50% 55%}
.media--hero{margin:0}
.media--hero img{aspect-ratio:16/9;object-position:50% 60%}
.media figcaption{
  font-family:var(--font-body);font-size:var(--fs-sm);color:var(--ink-muted-text);
  text-align:center;margin-top:var(--s-3);line-height:1.5;
}
.on-ink .media figcaption,.hero .media figcaption{color:var(--ink-muted-text)}

/* signature treatment: framed plate — a Sun hairline offset from the image */
.plate{position:relative;padding:8px}
.plate::after{content:"";position:absolute;inset:0;border:1px solid var(--accent);pointer-events:none}
.on-chalk .plate::after{border-color:var(--ink)}

.img-placeholder{
  aspect-ratio:16/9;background:var(--brand-primary);border:1px dashed var(--hairline-dark);
  display:flex;align-items:center;justify-content:center;color:var(--ink-muted-text);
  font-family:var(--font-display);font-size:13px;letter-spacing:.08em;text-transform:uppercase;
}

/* --------------------------------------------------------------- heroes --- */
.hero{background:var(--brand-deep);color:var(--ink-on-dark);padding-block:var(--pad-hero);position:relative}
.hero__in{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--s-8);align-items:center}
.hero--stack .hero__in{grid-template-columns:1fr;max-width:var(--w-standard)}
.hero .eyebrow{color:var(--accent-text);display:flex;align-items:center;gap:var(--s-4)}
.hero .eyebrow .ln{flex:1;height:1px;background:var(--accent);opacity:.55;max-width:120px}
.hero h1{color:#fff;font-size:var(--fs-5xl);letter-spacing:-.035em;line-height:1.04}
.hero--inner h1{font-size:var(--fs-4xl);line-height:1.08}
.hero .lede{color:var(--ink-on-dark);margin-top:var(--s-5);max-width:52ch}
.hero__cta{display:flex;gap:var(--s-4);margin-top:var(--s-7);flex-wrap:wrap;align-items:center}

/* Grid, not flex-wrap. With flex-wrap the third item orphaned onto its own row
   at common hero widths, which read as a layout bug rather than a design. */
.proof-strip{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s-5);
  margin-top:var(--s-8);padding-top:var(--s-5);border-top:1px solid var(--hairline-dark);
}
.proof-strip div{font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--ink-on-dark);letter-spacing:.02em}
.proof-strip b{display:block;color:var(--accent-text);font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.1;margin-bottom:2px}

/* ------------------------------------------------------------- sections --- */
.sec{padding-block:var(--pad-major)}
.sec--minor{padding-block:var(--pad-minor)}
.on-ink{background:var(--brand-deep);color:var(--ink-on-dark)}
.on-ink h1,.on-ink h2,.on-ink h3,.on-ink h4{color:#fff}
.on-ink .eyebrow{color:var(--accent-text)}
.on-water{background:var(--brand-primary);color:var(--ink-on-dark)}
.on-water h2,.on-water h3{color:#fff}
.on-water .eyebrow{color:var(--accent-text)}
.on-chalk{background:var(--surface);color:var(--ink)}
.on-chalk .eyebrow{color:var(--ink-muted-text)}
.on-paper{background:var(--white)}

.sec-head{display:flex;align-items:baseline;gap:var(--s-4);margin-bottom:var(--s-6)}
.sec-head__line{flex:1;height:1px;background:var(--hairline)}
.on-ink .sec-head__line,.on-water .sec-head__line{background:var(--hairline-dark)}

/* split editorial */
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-8);align-items:center}
.split--media-first .split__media{order:-1}

/* pull-stat band */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s-6)}
.stats .st b{display:block;font-family:var(--font-display);font-weight:800;font-size:clamp(30px,3.4vw,40px);color:var(--accent-text);letter-spacing:-.03em;line-height:1}
.stats .st span{display:block;font-family:var(--font-display);font-weight:700;font-size:13px;color:var(--ink-on-dark);margin-top:var(--s-2);line-height:1.4}

/* ---------------------------------------------------------------- cards --- */
.cards{display:grid;gap:var(--s-5)}
.cards--3{grid-template-columns:repeat(3,1fr)}
.cards--2{grid-template-columns:repeat(2,1fr)}
.cards--4{grid-template-columns:repeat(4,1fr)}

.card{padding:var(--s-6);position:relative;text-decoration:none;display:block;transition:transform .18s ease,box-shadow .18s ease}
.card h3,.card h4{margin-bottom:var(--s-3);font-size:var(--fs-xl);font-weight:700}
.card p{font-size:var(--fs-sm);line-height:1.6;margin-bottom:0}

.on-ink .card,.on-water .card,.card--ink{background:var(--brand-primary);border:1px solid var(--hairline-dark);color:var(--ink-on-dark)}
.on-ink .card h3,.on-ink .card h4,.card--ink h3,.card--ink h4{color:#fff}
.on-ink .card::before,.card--ink:#1A2620;position:absolute;inset:-1px -1px auto -1px;height:2px;background:var(--accent);
  transform:scaleX(0);transform-origin:left;transition:transform .18s ease;
}
.on-ink .card:hover::before,.card--ink:#1A2620;border:1px solid var(--hairline);color:var(--ink)}
.on-chalk .card h3,.on-chalk .card h4,.card--chalk h3,.card--chalk h4{color:var(--ink)}
.on-chalk .card p,.card--chalk p{color:var(--ink-muted-text)}
.on-chalk .card:hover,.card--chalk:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(12,27,38,.13)}

.card__meta{font-family:var(--font-display);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent-text);margin-bottom:var(--s-3);display:block}
.on-chalk .card__meta,.card--chalk .card__meta{color:var(--brand-support-deep)}
.card__img{margin:calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5)}
.card__img img{aspect-ratio:16/9;object-fit:cover;width:100%}

/* ------------------------------------------------------------- long read --- */
.longread{display:grid;grid-template-columns:280px minmax(0,1fr);gap:var(--s-8);align-items:start}
.longread--no-toc{grid-template-columns:minmax(0,1fr)}

/* When a rail wraps the contents nav plus the quote card, the RAIL is sticky
   and the nav inside it is static, so both scroll together as one column. */
.longread__rail{position:sticky;top:calc(var(--head-h) + var(--s-5))}
.longread__rail .toc{position:static;max-height:min(52vh,520px)}

.toc{position:sticky;top:calc(var(--head-h) + var(--s-5));border-left:1px solid var(--hairline);padding-left:var(--s-5);max-height:calc(100vh - var(--head-h) - var(--s-8));overflow-y:auto}
.toc .eyebrow{color:var(--ink-muted-text);margin-bottom:var(--s-4)}
.toc ol{list-style:none;margin:0;padding:0}
.toc li{position:relative}
.toc a{
  display:flex;gap:var(--s-3);align-items:baseline;padding:7px 0;
  font-family:var(--font-display);font-weight:700;font-size:14px;line-height:1.35;
  color:var(--ink-muted-text);text-decoration:none;transition:color .16s ease;
}
.toc a:hover{color:var(--ink)}
.toc__n{font-size:11px;color:var(--hairline);flex:none}
.toc li.is-active a{color:var(--ink)}
.toc li.is-active .toc__n{color:var(--accent-deep)}
.toc li.is-active::after{content:"";position:absolute;left:calc(var(--s-5) * -1 - 1px);top:6px;bottom:6px;width:2px;background:var(--accent)}

.longread__body{max-width:var(--w-prose)}
.longread__body > *{max-width:var(--w-prose)}
.longread__body .media{max-width:100%}

h2.chapter{
  display:flex;align-items:baseline;gap:var(--s-4);
  padding-bottom:var(--s-4);border-bottom:1px solid var(--hairline);
  margin-top:var(--s-9);margin-bottom:var(--s-5);scroll-margin-top:calc(var(--head-h) + var(--s-5));
}
h2.chapter:first-child{margin-top:0}
.chapter__n{font-family:var(--font-display);font-weight:800;font-size:var(--fs-2xl);color:var(--accent-deep);line-height:1;flex:none}
.on-ink h2.chapter{border-bottom-color:var(--hairline-dark)}
.on-ink .chapter__n{color:var(--accent-text)}

.longread__body h3{margin-top:var(--s-7)}
.longread__body p + h3,.longread__body ul + h3{margin-top:var(--s-7)}
.longread__body a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:var(--accent-deep)}
.longread__body a:hover{text-decoration-thickness:2px}
.longread__body ul,.longread__body ol{padding-left:var(--s-5)}
.longread__body li{margin-bottom:var(--s-2)}

.standfirst{font-size:var(--fs-lg);line-height:1.55;color:var(--ink-muted-text);margin-bottom:var(--s-6)}
.on-ink .standfirst{color:var(--ink-muted-text)}

/* intro band above the long read */
.intro-band{background:var(--brand-deep);color:var(--ink-on-dark);padding-block:var(--pad-major)}
.intro-band h2{color:#fff}
.intro-band .lede{max-width:60ch}

/* tables — designed features, not appendices */
.longread__body table,.tbl{
  border-collapse:collapse;width:100%;margin:var(--s-6) 0;
  font-family:var(--font-display);font-size:var(--fs-sm);
}
.longread__body thead th,.tbl thead th{
  background:var(--brand-primary);color:#fff;font-weight:700;text-align:left;
  padding:var(--s-3) var(--s-4);letter-spacing:.01em;
}
.longread__body tbody td,.tbl tbody td{padding:var(--s-3) var(--s-4);border-bottom:1px solid var(--hairline);background:var(--white)}
.longread__body tbody tr.hi td,.tbl tbody tr.hi td{background:var(--accent-wash);font-weight:700}
.longread__body td:nth-child(n+2),.tbl td.num{text-align:right}
.longread__body td:last-child,.tbl td:last-child{text-align:left}
.table-scroll{overflow-x:auto;margin:var(--s-6) 0}

/* callouts */
.callout{background:var(--accent-wash);padding:var(--s-5) var(--s-6);margin:var(--s-6) 0;border-left:3px solid var(--accent-deep)}
.callout .eyebrow{color:var(--ink);margin-bottom:var(--s-2)}
.callout p:last-child{margin-bottom:0}
.on-ink .callout{background:var(--brand-primary);border-left-color:var(--accent-text)}
.on-ink .callout .eyebrow{color:var(--accent-text)}

/* faq */
.faq{border-top:1px solid var(--hairline)}
.faq details{border-bottom:1px solid var(--hairline);padding:var(--s-4) 0}
.faq summary{font-family:var(--font-display);font-weight:700;font-size:var(--fs-base);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:var(--s-4)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:20px;color:var(--accent-deep);flex:none;line-height:1}
.faq details[open] summary::after{content:"\2212"}
.faq details p{margin-top:var(--s-3);margin-bottom:0;color:var(--ink-muted-text)}

/* sidebar quote card */
.quote-card{background:var(--brand-deep);color:var(--ink-on-dark);padding:var(--s-6);border-top:3px solid var(--accent)}
.quote-card h3,.quote-card__t{font-family:var(--font-display);font-weight:800;color:#fff;font-size:var(--fs-xl);margin:0 0 var(--s-3);letter-spacing:-.02em;line-height:1.15}
.quote-card p{font-size:var(--fs-sm);margin-bottom:var(--s-4)}
.quote-card .btn{width:100%;text-align:center}
.quote-card__phone{display:block;margin-top:var(--s-4);font-family:var(--font-display);font-weight:700;color:var(--accent-text);text-decoration:none;text-align:center}

/* breadcrumb */
.crumb{padding-block:var(--s-4)}
.crumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:var(--s-2);margin:0;padding:0;font-family:var(--font-display);font-size:13px;color:var(--ink-muted-text)}
.crumb li+li::before{content:"/";margin-right:var(--s-2);opacity:.5}
.crumb a{color:var(--ink-muted-text);text-decoration:none}
.crumb a:hover{color:var(--accent-text);text-decoration:underline}
.crumb [aria-current]{color:var(--ink-on-dark)}

/* ------------------------------------------------------------ quote band --- */
.quote-band{background:var(--brand-deep);color:var(--ink-on-dark);padding-block:var(--pad-major);scroll-margin-top:calc(var(--head-h) + var(--s-4))}
.quote-band__in{display:grid;grid-template-columns:.9fr 1.1fr;gap:var(--s-8);align-items:start}
.quote-band .eyebrow{color:var(--accent-text)}
.quote-band h2{color:#fff}
.quote-band .lede{max-width:44ch;margin-bottom:var(--s-5)}
.reassure{list-style:none;margin:0 0 var(--s-5);padding:0}
.reassure li{position:relative;padding-left:var(--s-6);margin-bottom:var(--s-3);font-size:var(--fs-sm)}
.reassure li::before{
  content:"";position:absolute;left:0;top:9px;width:10px;height:6px;
  border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg);
}
.quote-band__alt{font-size:var(--fs-sm);color:var(--ink-muted-text)}
.quote-band__alt a{color:var(--accent-text);font-family:var(--font-display);font-weight:700;text-decoration:none}
.quote-band__alt a:hover{text-decoration:underline}
.quote-band__panel{background:var(--white);padding:var(--s-5);border-radius:var(--radius);min-height:560px}
.quote-band__panel #mortaro-form{min-height:520px}

/* ----------------------------------------------------------- site footer --- */
.site-foot{background:var(--brand-deep);color:var(--ink-on-dark);padding-block:var(--pad-major) var(--s-6)}
.site-foot__top{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:var(--s-7);align-items:start;padding-bottom:var(--s-7);border-bottom:1px solid var(--hairline-dark)}
.site-foot__brand{display:flex;align-items:center;gap:var(--s-4)}
.site-foot__brand .mk--lg{width:40px;height:40px;flex:none}
.site-foot__wm{display:block;font-family:var(--font-display);font-weight:800;font-size:20px;color:#fff;letter-spacing:-.02em;line-height:1.1}
.site-foot__loc{display:block;font-family:var(--font-display);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--accent-text);margin-top:5px}
.site-foot__pitch{font-size:var(--fs-sm);color:var(--ink-on-dark);margin:0}
.site-foot__contact{display:flex;flex-direction:column;gap:var(--s-2)}
.site-foot__contact a{font-family:var(--font-display);font-weight:700;font-size:var(--fs-sm);color:var(--accent-text);text-decoration:none}
.site-foot__contact a:hover{text-decoration:underline}

.site-foot__cols{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s-6);padding-block:var(--s-7)}
.site-foot__col .eyebrow{color:var(--accent-text);margin-bottom:var(--s-4)}
.site-foot__col ul{list-style:none;margin:0;padding:0}
.site-foot__col li{margin-bottom:var(--s-2)}
.site-foot__col a{font-size:14px;color:var(--ink-on-dark);text-decoration:none;line-height:1.45}
.site-foot__col a:hover{color:var(--accent-text);text-decoration:underline}
.site-foot__more a{font-family:var(--font-display);font-weight:700;font-size:12.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--accent-text)}

.site-foot__base{display:flex;justify-content:space-between;gap:var(--s-5);flex-wrap:wrap;padding-top:var(--s-5);border-top:1px solid var(--hairline-dark)}
.site-foot__legal,.site-foot__credit{font-size:13px;color:var(--ink-muted-text);margin:0}
.site-foot__credit a{color:var(--accent-text);text-decoration:none}
.site-foot__credit a:hover{text-decoration:underline}

/* -------------------------------------------------------- sticky CTA bar --- */
.sticky-bar{display:none}

/* -------------------------------------------------------------- whatsapp --- */
.wa{position:fixed;right:16px;bottom:16px;z-index:120}
.wa__fab{
  display:flex;align-items:center;gap:8px;background:#25D366;color:var(--brand-deep);border:0;
  border-radius:999px;padding:12px 18px;font-family:var(--font-display);font-weight:700;font-size:14px;
  cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28);
}
.wa__fab:hover{background:#1FBE5A}
.wa__panel{
  position:absolute;right:0;bottom:60px;width:320px;max-height:min(70vh,560px);overflow-y:auto;
  background:var(--white);border:1px solid var(--hairline);border-top:3px solid #25D366;
  border-radius:var(--radius);padding:var(--s-5);box-shadow:0 18px 44px rgba(12,27,38,.28);
}
.wa__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--s-3);font-family:var(--font-display)}
.wa__close{background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer;color:var(--ink-muted-text)}
.wa__intro{font-size:13px;color:var(--ink-muted-text);margin-bottom:var(--s-4)}
.wa label{display:block;font-family:var(--font-display);font-weight:700;font-size:12px;color:var(--ink);margin-bottom:var(--s-3)}
.wa input,.wa textarea,.wa select{
  width:100%;margin-top:4px;padding:9px 10px;border:1px solid var(--hairline);
  border-radius:3px;font-family:var(--font-body);font-size:14px;color:var(--ink);background:#fff;
}
.wa__row{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3)}
.btn--wa{background:#25D366;color:var(--brand-deep);width:100%;text-align:center}
.btn--wa:hover{background:#1FBE5A;color:var(--brand-deep)}

/* ---------------------------------------------------------------- motion --- */
[data-reveal]{opacity:1;transform:none}
.js-reveal[data-reveal]{opacity:0;transform:translateY(12px)}
.js-reveal[data-reveal].is-in{opacity:1;transform:none;transition:opacity .38s ease,transform .38s ease}

/* ============================ RESPONSIVE ================================= */

@media (max-width:1080px){
  .site-head__bar{flex-wrap:wrap;gap:var(--s-4)}
  .burger{display:block}
  .site-nav{
    display:none;width:100%;flex-direction:column;align-items:stretch;gap:0;
    margin:0;padding-bottom:var(--s-4);
  }
  .site-nav.is-open{display:flex}
  .site-nav__list{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .site-nav__list > li > a{padding:12px 0;border-bottom:1px solid var(--hairline-dark)}
  .site-nav__list > li > a::after{display:none}
  .has-drop > a::before{right:6px}
  .drop{
    position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    border:0;border-left:2px solid var(--accent);background:transparent;
    padding:var(--s-2) 0 var(--s-3) var(--s-4);display:none;
  }
  .has-drop.is-open > .drop{display:block}
  .has-drop:hover > .drop{opacity:1;visibility:visible}
  .drop__list--cols{columns:1}
  .site-nav__cta{padding-top:var(--s-4);width:100%;justify-content:space-between}
}

@media (max-width:900px){
  .hero__in,.split,.quote-band__in,.longread{grid-template-columns:1fr}
  .longread{gap:var(--s-6)}
  .longread__rail{position:static}
  .longread__rail .toc{max-height:none}
  .toc{
    position:static;max-height:none;border-left:0;padding-left:0;
    border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline);
    padding-block:var(--s-4);margin-bottom:var(--s-5);
  }
  .toc ol{columns:2;column-gap:var(--s-5)}
  .toc li{break-inside:avoid}
  .toc li.is-active::after{display:none}
  .cards--3,.cards--4{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr);gap:var(--s-5)}
  .site-foot__top{grid-template-columns:1fr;gap:var(--s-5)}
  .site-foot__cols{grid-template-columns:repeat(2,1fr)}
  .media--inset{width:100%}
}

@media (max-width:640px){
  :root{--head-h:60px}
  .wrap{padding-inline:var(--s-5)}
  .cards--2,.cards--3,.cards--4{grid-template-columns:1fr}
  .toc ol{columns:1}
  .site-foot__cols{grid-template-columns:1fr;gap:var(--s-5)}
  .site-foot__base{flex-direction:column;gap:var(--s-3)}
  .proof-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-5)}
  .quote-band__panel{padding:var(--s-4);min-height:600px}
  .lockup__wm{font-size:15px}

  /* sticky conversion bar, mobile only */
  .sticky-bar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:115;
    background:var(--brand-deep);border-top:1px solid var(--hairline-dark);
    padding:8px;gap:8px;align-items:stretch;
  }
  .sticky-bar__call{
    flex:1;display:flex;flex-direction:column;justify-content:center;
    text-decoration:none;color:var(--ink-on-dark);font-family:var(--font-display);
    padding:6px 10px;border:1px solid var(--hairline-dark);border-radius:var(--radius);
  }
  .sticky-bar__call span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--ink-muted-text)}
  .sticky-bar__call strong{font-size:15px;color:var(--accent-text);font-weight:700}
  .sticky-bar__quote{flex:1;display:flex;align-items:center;justify-content:center}
  body{padding-bottom:72px}

  /* clear the sticky bar */
  .wa{bottom:82px;right:12px}
  .wa__fab-label{display:none}
  .wa__fab{padding:14px}
  .wa__panel{width:min(88vw,320px)}
}

/* --------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important;
  }
  .js-reveal[data-reveal]{opacity:1 !important;transform:none !important}
  .card:hover{transform:none}
}

/* -------------------------------------------------------------- print --- */
@media print{
  .site-head,.site-foot,.quote-band,.sticky-bar,.wa,.toc,.skip{display:none !important}
  body{background:#fff;color:#000}
}

/* ==========================================================================
   HUB + CONTACT COMPONENTS
   ========================================================================== */

/* cluster jump row */
.jump{display:flex;flex-wrap:wrap;gap:var(--s-3);margin-top:var(--s-6)}
.jump a{
  display:inline-flex;align-items:center;gap:var(--s-2);
  font-family:var(--font-display);font-weight:700;font-size:13px;
  padding:8px 14px;border:1px solid var(--hairline-dark);border-radius:999px;
  color:var(--ink-on-dark);text-decoration:none;transition:border-color .16s ease,color .16s ease;
}
.jump a:hover,.jump a:focus{border-color:var(--accent-text);color:#fff}
.jump a span{
  font-size:11px;color:var(--brand-deep);background:var(--accent);
  border-radius:999px;padding:1px 7px;line-height:1.5;
}

.sec-head__count{
  font-family:var(--font-display);font-weight:700;font-size:12px;
  text-transform:uppercase;letter-spacing:.1em;color:var(--ink-muted-text);flex:none;
}
.on-ink .sec-head__count,.on-water .sec-head__count{color:var(--ink-muted-text)}

/* featured guide band */
.feature{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-7);align-items:center}
.feature__media{display:block;text-decoration:none}
.feature__media .media{margin:0}
.feature__media img{aspect-ratio:16/9;object-fit:cover}
.feature__body h2{margin-bottom:var(--s-3)}
.feature__body h2 a{text-decoration:none}
.feature__body h2 a:hover{text-decoration:underline;text-decoration-color:var(--accent-text)}
.feature__body .lede{margin-bottom:var(--s-5)}

/* service card sub-links */
.card__links{list-style:none;margin:var(--s-4) 0 0;padding:var(--s-4) 0 0;border-top:1px solid var(--hairline-dark)}
.card__links li{margin-bottom:var(--s-2)}
.card__links a{font-family:var(--font-display);font-size:13.5px;font-weight:400;color:var(--ink-on-dark);text-decoration:none}
.card__links a:hover{color:var(--accent-text);text-decoration:underline}

/* area grid */
.area-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-4)}
.area-grid a{
  display:block;padding:var(--s-5);background:var(--white);
  border:1px solid var(--hairline);text-decoration:none;color:var(--ink);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.area-grid a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(12,27,38,.12);border-color:var(--accent-deep)}
.area-grid strong{display:block;font-family:var(--font-display);font-weight:800;font-size:17px;letter-spacing:-.015em;margin-bottom:4px}
.area-grid span{display:block;font-size:13.5px;color:var(--ink-muted-text);line-height:1.5}

/* contact */
.contact{display:grid;grid-template-columns:1.35fr .65fr;gap:var(--s-8);align-items:start}
.contact h1{color:#fff}
.contact .eyebrow{color:var(--accent-text)}
.contact__line{margin-bottom:var(--s-4)}
.contact__line .eyebrow{display:block;margin-bottom:4px;color:var(--ink-muted-text)}
.contact__line a{font-family:var(--font-display);font-weight:700;font-size:var(--fs-base);color:var(--accent-text);text-decoration:none}
.contact__line a:hover{text-decoration:underline}
.contact__val{font-size:var(--fs-sm);line-height:1.55;color:var(--ink-on-dark)}
.contact__note{font-size:13px;color:var(--ink-muted-text);border-top:1px solid var(--hairline-dark);padding-top:var(--s-4);margin:0}

.radius-map{margin:var(--s-6) 0 var(--s-4);border:1px solid var(--hairline)}
.radius-map svg{display:block;width:100%;height:auto}
.radius-map__note{font-size:var(--fs-sm);color:var(--ink-muted-text)}
.radius-map__note a{color:var(--ink);font-family:var(--font-display);font-weight:700;text-decoration:underline;text-decoration-color:var(--accent-deep)}

@media (max-width:900px){
  .feature,.contact{grid-template-columns:1fr}
  .area-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .area-grid{grid-template-columns:1fr}
  .jump a{font-size:12px;padding:7px 12px}
}

/* ==========================================================================
   LONG-READ TREATMENT LIBRARY
   Heavy content is displayed through one of several designed treatments,
   chosen by page role, so the site never repeats one reading device.
   ========================================================================== */

/* reading-progress bar (editorial + flow) */
.readbar{position:fixed;top:0;left:0;right:0;height:3px;z-index:130;background:transparent;pointer-events:none}
.readbar__fill{display:block;height:100%;width:0;background:var(--accent);transition:width .1s linear}
@media (prefers-reduced-motion:reduce){.readbar__fill{transition:none}}

/* shared prose baseline for all non-rail treatments */
.prose{max-width:var(--w-prose)}
.prose > *{max-width:var(--w-prose)}
.prose .media{max-width:100%}
.prose p{margin-bottom:var(--s-4)}
.prose h3{margin-top:var(--s-7)}
.prose ul,.prose ol{padding-left:var(--s-5);margin-bottom:var(--s-4)}
.prose li{margin-bottom:var(--s-2)}
.prose a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;text-decoration-color:var(--accent-deep)}
.prose a:hover{text-decoration-thickness:2px}
.prose table,.prose .tbl{border-collapse:collapse;width:100%;margin:var(--s-6) 0;font-family:var(--font-display);font-size:var(--fs-sm)}
.prose thead th{background:var(--brand-primary);color:#fff;font-weight:700;text-align:left;padding:var(--s-3) var(--s-4)}
.prose tbody td{padding:var(--s-3) var(--s-4);border-bottom:1px solid var(--hairline);background:var(--white)}
.prose tbody tr.hi td{background:var(--accent-wash);font-weight:700}
.prose td:nth-child(n+2){text-align:right}
.prose td:last-child{text-align:left}
.prose blockquote{margin:var(--s-6) 0;padding-left:var(--s-5);border-left:3px solid var(--accent);font-size:var(--fs-lg);line-height:1.5;color:var(--ink)}

/* -------------------------------------------------- rail CTA (service pages) */
/* the rail no longer carries a bulky quote card; a compact anchored CTA instead */
.rail-cta{display:block;margin-top:var(--s-6);padding:var(--s-5);background:var(--brand-deep);border-top:3px solid var(--accent);text-decoration:none;transition:transform .18s ease}
.rail-cta:hover{transform:translateY(-2px)}
.rail-cta__k{display:block;font-family:var(--font-body);font-size:var(--fs-sm);color:var(--ink-on-dark);margin-bottom:var(--s-2)}
.rail-cta__b{display:block;font-family:var(--font-display);font-weight:800;font-size:var(--fs-lg);color:var(--accent-text);letter-spacing:-.02em}

/* ======================================================= B. EDITORIAL (area) */
.ed-intro{padding-block:var(--pad-major) var(--s-7)}
.ed-intro .prose{max-width:72ch}
.ed-intro .prose .standfirst{font-family:var(--font-body);font-size:var(--fs-lg);line-height:1.55;color:var(--ink-muted-text)}

.ed-chap{padding-block:var(--pad-major)}
.ed-chap__grid{display:grid;grid-template-columns:1fr;gap:var(--s-3)}
.ed-chap__num{
  display:block;font-family:var(--font-display);font-weight:800;font-size:clamp(52px,11vw,96px);
  line-height:.8;letter-spacing:-.04em;color:var(--accent-text);opacity:.24;
}
.ed-chap__main h2{font-size:var(--fs-3xl);max-width:22ch;margin-top:var(--s-2)}
.ed-chap__body{margin-top:var(--s-4)}

/* editorial band grounds */
.ed-chap.on-chalk{background:var(--surface);color:var(--ink)}
.ed-chap.on-paper{background:var(--white);color:var(--ink)}
.ed-chap.on-ink{background:var(--brand-deep);color:var(--ink-on-dark)}
.ed-chap.on-ink h2{color:#fff}
.ed-chap.on-ink .ed-chap__num{opacity:.36}
.ed-chap.on-ink .prose{color:var(--ink-on-dark)}
.ed-chap.on-ink .prose a{color:var(--accent-text);text-decoration-color:var(--accent-text)}
.ed-chap.on-ink .prose tbody td{background:var(--brand-primary);color:var(--ink-on-dark);border-bottom-color:var(--hairline-dark)}
.ed-chap.on-ink .prose tbody tr.hi td{background:rgba(233,195,63,.16);color:#fff}
.ed-chap.on-ink .prose blockquote{border-left-color:var(--accent-text);color:var(--ink-on-dark)}
.ed-chap.on-ink .media figcaption{color:var(--ink-muted-text)}

/* wide screens: ghost numeral in a sticky left margin column */
@media (min-width:900px){
  .ed-chap__grid{grid-template-columns:160px minmax(0,1fr);gap:var(--s-8);align-items:start}
  .ed-chap__num{position:sticky;top:calc(var(--head-h) + var(--s-6));font-size:clamp(72px,7vw,104px)}
  .ed-chap__main h2{margin-top:0}
}

/* ============================================================ C. FLOW (guide) */
.flow{max-width:74ch;margin:0 auto}
.flow__intro{max-width:none}
.flow__intro > p:first-of-type::first-letter,
.flow__intro > .standfirst + p::first-letter{
  float:left;font-family:var(--font-display);font-weight:800;font-size:4.6em;line-height:.72;
  padding:6px 12px 0 0;color:var(--ink);
}
.flow__intro .standfirst{font-family:var(--font-body);font-size:var(--fs-lg);line-height:1.55;color:var(--ink-muted-text);margin-bottom:var(--s-5)}
.flow__mark{display:flex;align-items:center;gap:var(--s-4);margin:var(--s-9) 0 var(--s-3)}
.flow__mark::before,.flow__mark::after{content:"";height:1px;background:var(--hairline);flex:1}
.flow__mark span{
  font-family:var(--font-display);font-weight:800;font-size:var(--fs-xl);color:var(--accent-deep);
  letter-spacing:-.02em;flex:none;
}
.flow__h{font-size:var(--fs-3xl);text-align:center;max-width:26ch;margin:0 auto var(--s-5);scroll-margin-top:calc(var(--head-h) + var(--s-4))}
.flow__body{max-width:none}
/* every third chapter body gets a subtle sun-wash inset panel for rhythm */
.flow__body table{margin-left:auto;margin-right:auto}

/* ========================================================== D. ANSWER (answer) */
.ans-lead{
  background:var(--brand-deep);color:#fff;padding:var(--s-7);border-left:4px solid var(--accent);
  margin-bottom:var(--s-8);max-width:78ch;
}
.ans-lead .eyebrow{color:var(--accent-text);margin-bottom:var(--s-4)}
.ans-lead__a{font-family:var(--font-display);font-weight:700;font-size:var(--fs-xl);line-height:1.35;color:#fff;margin:0}
.ans-lead__a a{color:var(--accent-text)}
.ans{max-width:var(--w-prose)}
.ans__h{font-size:var(--fs-2xl);margin-top:var(--s-8);padding-top:var(--s-5);border-top:1px solid var(--hairline);scroll-margin-top:calc(var(--head-h) + var(--s-4))}
.ans .prose{max-width:none}

/* ================================================= shared FAQ + chapter block */
.faq-block{margin-top:var(--s-9)}
.faq-block__h{font-size:var(--fs-2xl);margin-bottom:var(--s-4);padding-top:var(--s-5);border-top:1px solid var(--hairline)}
.ed-chap + .sec .faq-block{margin-top:0}

/* keep the legacy .longread chapter styling for the rail treatment only */

/* ==========================================================================
   ARTICLE treatment (core informational + legal) + HUB supporting copy
   Centred, designed, never a bare left column.
   ========================================================================== */
.article{max-width:76ch;margin:0 auto}
.article__intro{max-width:none;margin-bottom:var(--s-6)}
.article__intro .standfirst{font-family:var(--font-body);font-size:var(--fs-lg);line-height:1.55;color:var(--ink-muted-text)}
.article__intro > p:first-of-type{font-size:var(--fs-lg);line-height:1.55;color:var(--ink)}
.article__sec{margin-top:var(--s-8)}
.article__h{position:relative;font-size:var(--fs-2xl);margin-bottom:var(--s-4);padding-top:var(--s-5)}
.article__kick{position:absolute;top:0;left:0;width:44px;height:3px;background:var(--accent);border-radius:2px}
.article__body{max-width:none}
.article .prose table{margin-left:0;margin-right:0}

/* hub supporting copy sits below the cards; collapsed a touch by width so it
   reads as a footnote to the navigation, not the main event */
.hub-copy{max-width:74ch}
.hub-copy .eyebrow{color:var(--ink-muted-text);margin-bottom:var(--s-5)}

/* ==========================================================================
   FOOTER full-width fix
   ========================================================================== */
.site-foot__cols{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:var(--s-6) var(--s-7);padding-block:var(--s-7);width:100%;
}
.site-foot__col{min-width:0}
.site-foot__col ul{margin:0;padding:0}
.site-foot__col li{margin-bottom:var(--s-2)}

/* ==========================================================================
   OpenStreetMap embed (contact)
   ========================================================================== */
.osm{margin-top:var(--s-6)}
.osm__frame{border:1px solid var(--hairline);background:var(--brand-primary);aspect-ratio:3/2;width:100%}
#sos-map{z-index:0}
.leaflet-container{font-family:var(--font-body)}
.osm__note{font-size:var(--fs-sm);color:var(--ink-muted-text);margin:var(--s-3) 0 0;line-height:1.6}
.osm__note a{color:var(--ink);font-family:var(--font-display);font-weight:700;text-decoration:underline;text-decoration-color:var(--accent-deep)}

/* ==========================================================================
   MOBILE OVERFLOW HARDENING
   overflow-x:hidden on body masks; these stop the actual overflow sources.
   ========================================================================== */
*{min-width:0}
img,figure,table,pre,iframe,svg{max-width:100%}
.prose table,.longread__body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
.ed-chap__num,.flow__mark span,.hero h1{overflow-wrap:break-word}

@media (max-width:640px){
  :root{ --pad-hero:56px; }
  html,body{overflow-x:clip}
  .wrap{padding-inline:var(--s-4)}
  .hero h1{font-size:clamp(34px,10vw,44px);word-break:break-word}
  .ed-chap__num{font-size:clamp(44px,16vw,64px)}
  .ed-chap{padding-block:var(--pad-minor)}
  .article,.flow,.hub-copy,.ans{max-width:100%}
  .proof-strip{grid-template-columns:1fr 1fr}
  .osm__frame{aspect-ratio:4/3}
}

/* ==================================================== FOUNDATION OVERRIDES ==
 *
 * Laid ONCE, at Stage 2, before any page is generated. Everything below is a
 * defect this cohort has already paid for on a previous build and which this
 * lane still carries. Fixing them here costs one file; finding them at QA costs
 * four hundred pages.
 */

/* 1. TABLES FIT. THEY DO NOT SCROLL.  (operator ruling)
 *
 * The lane ships `.prose table { display:block; overflow-x:auto }` — a table of
 * prose in a scroll box. On a 390px phone a three-column comparison gives about
 * ninety pixels a column: squeezed to read AND dragged sideways to finish a row.
 *
 * Two mechanisms, because one is not enough. Removing the scroll alone does not
 * work: with `table-layout:auto` a prose cell reports a min-content width and
 * the table grows past its column however small the min-width is set.
 *
 *   WIDE    table-layout: fixed — columns share the width, prose wraps.
 *   NARROW  the table stacks: each row a block, each cell a labelled line.
 *           The label comes from data-label, which the content generator emits
 *           from the column heading at build time.
 */
.prose table, .longread__body table, .tablewrap table, table {
  display: table;
  width: 100%;
  table-layout: fixed;
  min-width: 0;
  overflow-x: visible;
  border-collapse: collapse;
}
.table-scroll, .tablewrap { overflow-x: visible; }
th, td { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
thead th, tbody th[scope="row"] { white-space: normal; }
table th[scope="row"] { width: 26%; }

@media (max-width: 820px) {
  .prose table:not([data-cols="2"]), .longread__body table:not([data-cols="2"]),
  .tablewrap:not([data-cols="2"]) table { display: block; }
  .prose table:not([data-cols="2"]) thead, .longread__body table:not([data-cols="2"]) thead,
  .tablewrap:not([data-cols="2"]) thead {
    /* Clipped, not display:none — a screen reader keeps the column headings. */
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .prose table:not([data-cols="2"]) tbody, .tablewrap:not([data-cols="2"]) tbody { display: block; }
  .prose table:not([data-cols="2"]) tbody tr, .tablewrap:not([data-cols="2"]) tbody tr {
    display: block; padding: 4px 0 8px; border-bottom: 1px solid var(--hairline);
  }
  .prose table:not([data-cols="2"]) tbody th[scope="row"],
  .prose table:not([data-cols="2"]) tbody td,
  .tablewrap:not([data-cols="2"]) tbody th[scope="row"],
  .tablewrap:not([data-cols="2"]) tbody td {
    display: block; width: auto; border-bottom: 0;
  }
  tbody td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-muted);
  }
  tbody td:not([data-label])::before, tbody td[data-label=""]::before { content: none; }
}

/* 2. FORM FIELDS ARE 16px OR iOS SAFARI ZOOMS THE PAGE.
 *
 * Focus a field under 16px on an iPhone and Safari zooms the whole viewport to
 * meet it; the visitor fills in the enquiry pinched in. This lands on the form
 * that takes the lead, so it is the most consequential mobile rule on the site.
 * The lane sets no input font-size at all, which means it inherits whatever the
 * browser or a component decides. */
input, textarea, select, button { font-size: 16px; font-family: inherit; }
#mortaro-form input, #mortaro-form textarea, #mortaro-form select { font-size: 16px; }
@media (min-width: 1000px) { input, textarea, select, button { font-size: inherit; } }

/* 3. OVERFLOW IS FIXED AT THE SOURCE, NOT MASKED AT THE BODY.
 *
 * `overflow-x: hidden` on body hides the symptom and makes the real culprit
 * unfindable — the page still overflows, you just cannot see which element did
 * it. These are the actual sources. */
.prose, .longread__body, .wrap, [class*="grid"], [class*="col"] { min-width: 0; }
img, video, iframe, svg { max-width: 100%; height: auto; }
[class*="grid"] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
}

/* 4. TAP TARGETS — WCAG 2.2 AA minimum is 24x24 CSS px. */
@media (max-width: 999px) {
  .site-foot a, .site-foot__bottom a, .sidebar-links a, .related a {
    display: inline-block; min-height: 24px; padding-block: 5px;
  }
}

/* 5. The fixed bottom bar must reserve its own height plus the safe area, or it
 *    permanently covers the last lines of every page on a phone with a home
 *    indicator. */
@media (max-width: 999px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ===================================== .fact and .steps — the missing devices ==
 *
 * Both classes are used across the whole content set and NEITHER had a single
 * rule in this stylesheet. They satisfied the merge gate's "visual break" check
 * — which looks for the class name — while rendering as ordinary paragraphs.
 *
 * That is a gate measuring a proxy instead of the thing: a page could pass the
 * no-wall-of-text rule and still be a wall of text. Caught by an agent reading
 * the CSS rather than trusting the gate, which is the only way this class of
 * defect gets found.
 */

/* A place-specific fact. Deliberately quiet — it is an aside, not a shout. */
.fact {
  margin: var(--s-6, 28px) 0;
  padding: 16px 20px;
  background: var(--surface-alt, #EDE8DD);
  border-left: 3px solid var(--accent, #C4602F);
  border-radius: 0 var(--radius, 6px) var(--radius, 6px) 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.fact > :first-child { margin-top: 0; }
.fact > :last-child { margin-bottom: 0; }
.fact strong, .fact b { color: var(--brand-primary, #1B3A34); }

/* A sequence. Numbered, because the order is the content. */
ol.steps {
  margin: var(--s-6, 28px) 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
  margin: 0;
  line-height: 1.65;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary, #1B3A34);
  color: #fff;
  font-family: var(--font-display, system-ui);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* The connecting rule, so a sequence reads as one run rather than a list. */
ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--hairline, #DCD5C7);
}
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li > strong:first-child,
ol.steps > li > b:first-child {
  display: block;
  color: var(--brand-primary, #1B3A34);
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .fact { padding: 14px 16px; }
  ol.steps > li { padding-left: 42px; }
  ol.steps > li::before { width: 26px; height: 26px; font-size: 0.8125rem; }
  ol.steps > li:not(:last-child)::after { left: 12px; top: 30px; }
}

/* ============================================== diagrams and image placeholders ==
 *
 * The build shipped 410 pages with no images, which is the failure that got a
 * sibling build rejected. Photographs need an image-generation tool this
 * environment does not have; drawings do not, and for a technical subject a
 * section through a kerb tells the reader more than a photograph of a bright
 * kitchen ever would.
 */
.diagram {
  margin: var(--s-7, 40px) auto;
  padding: 20px 20px 4px;
  background: var(--white, #fff);
  border: 1px solid var(--hairline, #DCD5C7);
  border-radius: var(--radius, 6px);
  max-width: 100%;
}
.diagram svg { max-width: 100%; height: auto; }
.diagram figcaption {
  margin: 14px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline, #DCD5C7);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-muted, #5A665F);
}
@media (max-width: 600px) { .diagram { padding: 12px 12px 2px; } }

/* A photo slot with no photograph yet. Dimensioned so nothing shifts when the
 * image arrives, and deliberately quiet — an honest empty frame rather than a
 * broken-image icon or a stretched grey box pretending to be a picture. */
.img-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg,
      var(--surface-alt, #EDE8DD) 0 10px,
      var(--surface, #F4F0E8) 10px 20px);
  border: 1px dashed var(--hairline, #DCD5C7);
  border-radius: var(--radius, 6px);
  color: var(--ink-muted, #5A665F);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media--inset .img-placeholder { aspect-ratio: 3 / 2; }


/* ===================================================================
   SERVICE BANDS
   Replaces the 'rail' long-read (sticky 01..11 index + one column).

   Two things went wrong in the first cut of this and both are fixed
   here rather than tuned around:

   1. The rotation included on-ink. A comparison table on a dark band
      inherited light body text while its cells kept their white fill,
      so the table rendered white-on-white and could not be read.
      Grounds are light only now; dark stays in the header, hero and
      quote band, where the components were designed for it.

   2. Photographs sat inside .prose, which clamps to the text measure,
      so each one was a square stranded against the left edge of a much
      wider band. They now take the full standard measure, crop to 16:9
      and carry the caption written with them.
   =================================================================== */
.svc-open{padding-block:var(--pad-major)}
.svc-band{padding-block:var(--pad-major)}
.svc-band__h{font-size:var(--fs-3xl);max-width:24ch;margin:0}
.svc-band__body{margin-top:var(--s-4)}

/* The picture is a change of pace, so it spans the band rather than the
   column of text above it. */
.svc-open > .wrap > .media,
.svc-band > .wrap > .media{width:100%;max-width:100%;margin:var(--s-7) 0 0}
.svc-open > .wrap > .media img,
.svc-band > .wrap > .media img{aspect-ratio:16/9;object-fit:cover;width:100%}

/* A caption is what stops a photograph reading as decoration. */
.svc-open figcaption,
.svc-band figcaption{
  margin-top:var(--s-3);
  font-family:var(--font-display,system-ui);
  font-size:var(--fs-sm);
  line-height:1.5;
  color:var(--ink-muted-text);
  max-width:60ch;
  padding-left:var(--s-3);
  border-left:2px solid var(--accent-deep);
}

.svc-band.on-chalk{background:var(--surface);color:var(--ink)}
.svc-band.on-paper{background:var(--white);color:var(--ink)}

.svc-band .tablewrap{margin-top:var(--s-5)}

@media (min-width:900px){
  .svc-band__h{font-size:var(--fs-4xl)}
}

/* One centred column per band.
   With the left rail gone nothing held the right-hand side of the page: a 68ch
   column sat hard left inside an 1140px wrap, leaving ~440px of empty gutter
   down the whole page. Centring the column turns that space into margin.
   Heading, prose and picture share ONE container so they align to the same
   edges — centring each separately did not, because 68ch of the display face
   is much wider than 68ch of body text. */
.svc-band__col{max-width:var(--w-prose);margin-inline:auto}
.svc-band__col > .media{width:100%;max-width:100%;margin:var(--s-7) 0 0}
.svc-band__col > .media img{aspect-ratio:16/9;object-fit:cover;width:100%}
.svc-band__col .prose{max-width:100%}
.svc-band__h{max-width:100%}

/* TEXT IN A TABLE READS LEFT.
   `.prose td:nth-child(n+2){text-align:right}` is a numbers convention that was
   applied to every table on the site. On a three-column comparison table it
   right-aligned the middle column of prose while `td:last-child` reset the last
   to left, so two columns of ordinary sentences faced each other across a
   ragged edge.

   These selectors carry :nth-child deliberately: a plain `.prose td` is a lower
   specificity than the rule being corrected and silently loses to it. */
.prose td:nth-child(n+2),
.tablewrap td:nth-child(n+2),
.longread__body td:nth-child(n+2){text-align:left}
.prose th[scope="row"],
.tablewrap th[scope="row"],
.longread__body th[scope="row"]{text-align:left}
/* Numbers still rank right, but only when asked. */
.prose td.num:nth-child(n+1),
.tablewrap td.num:nth-child(n+1),
.longread__body td.num:nth-child(n+1),
.tbl td.num:nth-child(n+1){text-align:right}
/* The band caption ranges left against its rule. `.media figcaption` is centred
   site-wide, which left the text floating in the middle of a 60ch box with the
   accent rule stranded at the far left, reading as two unrelated marks. */
.svc-band__col figcaption{text-align:left}

/* ===================================================================
   GROUND-AWARE TEXT COLOUR (WCAG 2.2 AA)
   Measured with build/qa-browser.mjs, which reads the ratios Chrome
   actually computes. The numbers in STYLE-GUIDE.md were taken against
   white only, so they did not describe the site:

     --accent      #C4602F  surface 3.65  brandPrimary 2.97   FAIL
     --accent-deep #A44D22  surface 5.04  brandPrimary 2.15   light only
     --ink-muted   #5A665F  surface 5.28  brandDeep    2.66   light only
     --ink-muted-light #8B968F surface 2.69                   dark only

   No single value works on both grounds, which is why one colour used
   everywhere produced 520 failures — including FAQ answers at 1.18:1 on
   area pages, dark text on a dark band, effectively invisible.

   So the TEXT tokens are redefined per ground and every `color:` rule
   reads them. Decorative uses of --accent (rules, borders, fills) are
   untouched: they carry no text and 3:1 is the right bar for them.
   =================================================================== */
:root{
  --accent-text:#A44D22;     /* on light: 5.04 surface / 5.73 white */
  --ink-muted-text:#5A665F;  /* on light: 5.28 surface / 6.00 white */
}
.hero,.site-head,.site-foot,.on-ink,.on-water,.quote-card,.quote-band,
.ed-chap.on-ink,.svc-band.on-ink,.intro-band,.sticky-bar,.ans-lead,
.on-ink .card,.on-water .card,.card--ink{
  --accent-text:#E8915C;     /* on dark: 6.55 brandDeep / 5.08 brandPrimary */
  --ink-muted-text:#9AA49D;  /* on dark: 6.20 brandDeep / 4.80 brandPrimary */
}

/* The primary CTA could not be fixed by changing its text colour: against
   #C4602F even pure black reaches only 4.14:1. The background had to move to
   the deep accent, which is what STYLE-GUIDE.md always specified for buttons. */
.btn--primary{background:var(--accent-deep);color:#fff}
.btn--primary:hover{background:#8C411D}

/* A LIGHT PANEL CARRIES LIGHT-GROUND TEXT, WHEREVER IT LANDS.
   .fact paints its own pale background but inherited its colour from the band
   around it. Dropped into a dark editorial band on an area page it rendered
   pale-grey text on cream — 1.18:1, which is text you cannot see at all. The
   same trap caught a comparison table earlier, in the other direction.
   A component that paints its own background must also own its text colour and
   its text tokens, or it is only correct until someone moves it. */
.fact,
.quote-band__panel{
  color:var(--ink);
  --accent-text:#A44D22;
  --ink-muted-text:#5A665F;
}
.fact strong,.fact b{color:var(--brand-primary)}

/* The skip link is painted before any ground applies, so it needs its own
   accessible pair rather than inheriting the accent. */
.skip{background:var(--brand-deep);color:#fff}

/* A STEP'S LABEL IS A HEADING, AND HEADINGS FLIP WITH THE GROUND.
   ol.steps > li > strong hardcoded --brand-primary, which is a dark ink. The
   steps list is transparent, so on a dark editorial band the label rendered
   dark-on-dark at 1.29:1 while the step text beside it was perfectly legible.
   --ink-heading resolves per ground like the other text tokens. */
:root{--ink-heading:var(--brand-primary)}
.hero,.site-head,.site-foot,.on-ink,.on-water,.quote-card,.quote-band,
.ed-chap.on-ink,.svc-band.on-ink,.intro-band,.sticky-bar,.ans-lead,
.on-ink .card,.on-water .card,.card--ink{--ink-heading:#fff}
.fact,.quote-band__panel{--ink-heading:var(--brand-primary)}

ol.steps > li > strong:first-child,
ol.steps > li > b:first-child{color:var(--ink-heading)}
.fact strong,.fact b{color:var(--ink-heading)}

/* ===================================================================
   SERVICE BAND — FIGURE COMPOSITION
   A section that has a photograph runs as two columns: the prose and
   the picture side by side, so the image belongs to the passage it
   illustrates instead of interrupting it. The figure is sticky, so it
   holds beside the text for as long as that section lasts and then
   releases — the reading and the looking stay in step.
   =================================================================== */
.svc-band__grid{display:grid;gap:var(--s-6);grid-template-columns:1fr}
.svc-band--fig .svc-band__aside{margin:0}
.svc-band--fig .svc-band__aside .media{width:100%;max-width:100%;margin:0}
.svc-band--fig .svc-band__aside .media img{aspect-ratio:4/5;object-fit:cover;width:100%}
.svc-band--fig figcaption{text-align:left}

@media (min-width:1000px){
  .svc-band--fig .svc-band__grid{
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
    gap:var(--s-8);
    align-items:start;
  }
  .svc-band--fig .svc-band__h{grid-column:1 / -1;max-width:26ch}
  .svc-band--fig .svc-band__body{grid-column:1;max-width:none}
  .svc-band--fig .svc-band__aside{
    grid-column:2;
    position:sticky;
    top:calc(var(--head-h) + var(--s-6));
  }
  /* Portrait beside a column of text reads better than a letterbox, and it
     gives the band a vertical axis the prose alone does not have. */
  .svc-band--fig .svc-band__aside .media img{aspect-ratio:3/4}
}

/* A table inside a figure band has less room, so it keeps its own full
   measure by stepping out of the prose column. */
@media (min-width:1000px){
  .svc-band--fig .svc-band__body .tablewrap{margin-inline:0}
}

/* A guide whose sections are facets rather than steps gets a rule, not a
   numeral. The numerals were decoration on 119 of 120 guides — they told the
   reader the sections had an order they do not have. The mark still separates
   the sections; it just stops making a false claim about them. */
.flow__rule{
  width:56px;height:2px;margin:var(--s-8) auto var(--s-5);
  background:var(--accent-deep);opacity:.6;
}

/* ===================================================================
   BAND RHYTHM
   Measured gaps between the last element of a band and the band's
   bottom edge were 137 / 121 / 105 / 89 px depending on what the
   section happened to end with — a table, a paragraph, a panel. The
   band padding is constant, so every one of those differences was a
   trailing margin leaking out of the content. Uneven bottoms read as
   sloppy even when nobody can say why.
   =================================================================== */
.svc-band__col > *:last-child,
.svc-band__grid > *:last-child,
.svc-band__body > *:last-child,
.svc-band__body > *:last-child > *:last-child,
.svc-band__aside > *:last-child{margin-bottom:0}

/* The opening band leads on prose, so its first paragraph should not be
   pushed down by a top margin either. */
.svc-open .svc-band__body > *:first-child{margin-top:0}

/* The drawing sits under the photograph in the aside column. Both are
   evidence for the same passage, so they read as one stack rather than two
   unrelated blocks. */
.svc-band__aside .diagram{margin:var(--s-5) 0 0;width:100%}
.svc-band__aside .diagram svg{width:100%;height:auto;display:block}

/* A shorter crop keeps the picture column nearer the height of the prose
   beside it. At 3/4 a short section left the left-hand column ending far
   above the right and the band closing on a ragged edge. */
@media (min-width:1000px){
  .svc-band--fig .svc-band__aside .media img{aspect-ratio:4/5}
  .svc-open .svc-band__aside .media img{aspect-ratio:1/1}
}

/* ROW HEADERS GET THE SAME PADDING AS THE CELLS BESIDE THEM.
   `.prose tbody td` sets padding; tbody th[scope="row"] never did. On a
   four-column table the header text ran to the very edge of its cell and
   butted straight against the white fill of the next column — two different
   backgrounds meeting with no gutter, which reads as a collision. */
.prose tbody th[scope="row"],
.tablewrap tbody th[scope="row"],
.longread__body tbody th[scope="row"]{
  padding:var(--s-3) var(--s-4);
  vertical-align:top;
}
.prose tbody td,
.tablewrap tbody td,
.longread__body tbody td{vertical-align:top}

/* A table that has stepped out of the figure grid.
   It sits under the two-column composition, inside the same band, and takes
   the full standard measure rather than the narrowed prose column — which is
   the whole reason it left the grid. */
.svc-band__wide{margin-top:var(--s-7)}
@media (min-width:1000px){
  .svc-band--fig .svc-band__wide{max-width:var(--w-standard)}
}
/* The stepped-out table must actually get the extra width.
   Widening the container alone did nothing: `.prose > *` clamps every child to
   the 68ch text measure, so the table stayed exactly as narrow as it was in the
   grid — the step-out was structural only, and invisible. */
.svc-band__wide > *{max-width:none}
.svc-band__wide .tablewrap{max-width:none;width:100%}
/* The jump-nav count badge, same trap as the primary button: dark text on
   #C4602F is 3.84:1 and no text colour rescues that background (pure black
   tops out at 4.14:1). The deep accent with white carries 5.73:1. It only
   surfaced now because the answers index started using this component. */
.jump a span{background:var(--accent-deep);color:#fff}
