/* Self-hosted. No third-party font request: removes a dependency, the flash of
   unstyled text, and the EU question about Google Fonts receiving visitor IPs. */
@font-face{font-family:"Newsreader";src:url("fonts/Newsreader.woff2")format("woff2");
  font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"Public Sans";src:url("fonts/PublicSans.woff2")format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/IBMPlexMono-Regular.woff2")format("woff2");
  font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/IBMPlexMono-Medium.woff2")format("woff2");
  font-weight:500;font-style:normal;font-display:swap}

/* ==========================================================================
   Vesta Risk Partners — design system
   Palette locked per brief §2. Sage/Clay corrected for AA body contrast and
   matched lightness. Chalk added as an elevated surface. Never pure white.
   Type: Newsreader (display/long-form) · Public Sans (UI) · IBM Plex Mono (codes)
   ========================================================================== */

:root{
  /* surfaces */
  --parchment:#F5F1EA;
  --chalk:#FCFAF6;
  --stone:#D9D2C7;
  --sand:#EBE4D7;   /* secondary-control fill: reads as a surface on both
                       Parchment (dE 5.6) and Chalk (dE 9.1) */

  /* ink */
  --ash:#1F1D1A;
  --charcoal:#3D4A52;
  --rust:#B4552F;      /* accent: figures, rules, the mark's flame */
  --rust-btn:#964324;  /* button fill only — 6.45:1 with the Chalk label.
                          Rusty Spice at 4.71:1 passed AA by 0.21 and read weak. */

  /* functional — data only, never decoration */
  --sage:#2F5537;
  --clay:#78312B;

  /* derived */
  --ash-72:color-mix(in srgb, var(--ash) 72%, var(--parchment));
  --ash-58:color-mix(in srgb, var(--ash) 58%, var(--parchment));
  --on-dark:#EDE8E0;
  --on-dark-70:#B4BAB9;   /* 4.64:1 on Charcoal Blue — was a 70% mix at 4.10, failed AA body */
  --dark-rule:color-mix(in srgb, #EDE8E0 22%, var(--charcoal));

  --serif:"Newsreader",Georgia,"Times New Roman",serif;
  --sans:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace;

  --measure:36rem;
  --page:74rem;
  --pad:clamp(1.25rem,5vw,3rem);
  --band:clamp(3.5rem,8vw,6.5rem);
  --r:2px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

body{
  margin:0;
  background:var(--parchment);
  color:var(--ash);
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.6;
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--charcoal);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--rust)}
:focus-visible{outline:2px solid var(--rust);outline-offset:3px}

.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:1rem;z-index:100;background:var(--ash);color:var(--parchment);padding:.6rem 1rem}

/* ---------- layout ---------- */
.wrap{max-width:var(--page);margin:0 auto;padding-inline:var(--pad)}
.narrow{max-width:52rem}
.section{padding-block:var(--band)}
.section+.section{border-top:1px solid var(--stone)}

.band{background:var(--charcoal);color:var(--on-dark);padding-block:var(--band)}
.band a:not(.btn){color:var(--on-dark)}
.band .eyebrow{color:var(--on-dark-70)}
.band h2,.band h3{color:var(--on-dark)}
.band p{color:var(--on-dark-70)}
.band hr,.band .rule{border-color:var(--dark-rule)}
.section+.band,.band+.section{border-top:0}

/* ---------- type ---------- */
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;letter-spacing:-.014em;line-height:1.12;margin:0 0 .6em}
h1{font-size:clamp(2.1rem,5.2vw,3.4rem)}
h2{font-size:clamp(1.6rem,3.4vw,2.35rem)}
h3{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.25}
h4{font-family:var(--sans);font-weight:600;font-size:1rem;letter-spacing:0;margin-bottom:.4em}

p{margin:0 0 1.1em;max-width:var(--measure)}
.lede{font-family:var(--serif);font-size:clamp(1.15rem,2.1vw,1.4rem);line-height:1.5;color:var(--ash-72);max-width:40rem}
.band .lede{color:var(--on-dark-70)}
.prose{max-width:var(--measure)}
.prose p,.prose li{font-family:var(--serif);font-size:1.0625rem;line-height:1.68}
.prose h2{margin-top:2.2em}
.prose h3{margin-top:1.8em}
.prose ul,.prose ol{padding-left:1.2em}
.prose li{margin-bottom:.5em}

.eyebrow{
  font-family:var(--mono);font-size:.6875rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--charcoal);margin:0 0 1rem;display:block
}
.small{font-size:.875rem;color:var(--ash-72)}
.tiny{font-size:.75rem;color:var(--ash-58);line-height:1.5}

/* classification codes — always mono, everywhere. The one invariant. */
.code{font-family:var(--mono);font-size:.92em;letter-spacing:.01em;font-weight:500}
.code-chip{
  display:inline-block;font-family:var(--mono);font-size:.75rem;
  border:1px solid var(--stone);padding:.15rem .45rem;border-radius:var(--r);
  color:var(--charcoal);background:var(--chalk);white-space:nowrap
}
.band .code-chip{border-color:var(--dark-rule);background:transparent;color:var(--on-dark)}

.up{color:var(--clay);font-weight:600}
.down{color:var(--sage);font-weight:600}
.band .up{color:#EFAE9E}   /* 4.88:1 on Charcoal Blue */
.band .down{color:#9BC9A7} /* 4.92:1 on Charcoal Blue */

/* ---------- header ---------- */
.masthead{position:sticky;top:0;z-index:50;background:var(--parchment);border-bottom:1px solid var(--stone)}
.masthead-in{display:flex;align-items:center;gap:1.5rem;min-height:4.25rem}
/* Logo — the hearth, single-line lockup.
   The mark sits in an inline-flex with align-items:baseline, so its bottom edge
   lands exactly on the text baseline. Height is set in em against the wordmark,
   so mark and type scale together and can never drift apart. */
.logo{display:inline-flex;align-items:baseline;gap:.4em;text-decoration:none;
  color:var(--charcoal);flex:0 0 auto;font-size:1.45rem;font-family:var(--serif)}
/* The mark is exactly cap height — the same height as the V and the R, never
   taller. The `cap` unit resolves against Newsreader (set on .logo above), so
   this stays correct at any size and survives a future type change. The em
   values are the fallback for browsers without `cap`; 0.67em is Newsreader's measured
   cap height, and 0.72 is the mark's own width-to-height ratio. */
.logo svg{display:block;flex:0 0 auto;width:.482em;height:.67em}
@supports (height:1cap){.logo svg{width:calc(1cap * 0.72);height:1cap}}
.logo-mark{font-family:var(--serif);font-size:1em;font-weight:600;
  letter-spacing:-.022em;line-height:1;color:var(--ash);white-space:nowrap}
.logo-mark .logo-risk{font-weight:300}
.foot .logo{color:var(--on-dark);font-size:1.35rem}
.foot .logo .logo-mark{color:var(--on-dark)}

.nav{margin-left:auto;display:flex;align-items:center;gap:1.5rem}
.nav a:not(.btn){font-size:.875rem;text-decoration:none;color:var(--ash-72)}
.nav a:not(.btn):hover,.nav a[aria-current]:not(.btn){color:var(--ash)}
.nav a[aria-current]:not(.btn){box-shadow:inset 0 -2px 0 var(--rust)}
.nav-toggle{display:none;background:var(--sand);border:1px solid var(--ash);border-radius:var(--r);padding:.45rem .7rem;font:inherit;font-size:.8125rem;margin-left:auto;cursor:pointer;color:var(--ash)}
@media(max-width:60rem){
  .nav-toggle{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:flex-start;gap:0;background:var(--parchment);border-bottom:1px solid var(--stone);padding:.5rem var(--pad) 1rem}
  .nav[data-open]{display:flex}
  .nav a{padding:.6rem 0;width:100%;border-bottom:1px solid var(--stone)}
  .nav .btn{margin-top:.75rem;border-bottom:0}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;font-family:var(--sans);font-weight:600;font-size:.9375rem;
  padding:.7rem 1.35rem;border-radius:var(--r);text-decoration:none;
  border:1px solid var(--rust-btn);background:var(--rust-btn);color:var(--chalk);cursor:pointer
}
.btn:hover{background:#7D3A1E;border-color:#7D3A1E;color:var(--chalk)}
/* Secondary controls carry their own fill. A transparent background inherits
   whatever surface is behind it, so the button becomes the page and only a
   hairline says it is pressable — which is why these were hard to see. */
.btn-ghost{background:var(--sand);color:var(--ash);border-color:var(--ash)}
.btn-ghost:hover{background:var(--stone);color:var(--ash);border-color:var(--ash)}
.band .btn-ghost{background:#576267;color:var(--on-dark);border-color:var(--on-dark)}
.band .btn-ghost:hover{background:#667278;color:var(--on-dark);border-color:var(--on-dark)}
/* On Charcoal Blue the rust fill is only 1.86:1 against the band, which fails
   non-text contrast (WCAG 1.4.11). A light hairline gives the control a 7.5:1
   boundary while keeping Rusty Spice as the single CTA colour sitewide. */
.band .btn{box-shadow:0 0 0 1px var(--on-dark)}
.band .btn:hover{box-shadow:0 0 0 1px var(--on-dark)}

/* Higher specificity than any scoped link rule (.nav a, .band a, .foot a),
   so a button's label colour can never be overridden by its container. */
a.btn,button.btn{color:var(--chalk)}
a.btn:hover,button.btn:hover{color:var(--chalk)}
a.btn-ghost,button.btn-ghost{color:var(--ash)}
a.btn-ghost:hover,button.btn-ghost:hover{color:var(--ash)}
.band a.btn-ghost,.band button.btn-ghost{color:var(--on-dark)}
.band a.btn-ghost:hover{color:var(--on-dark)}

.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1.5rem}

/* ---------- worksheet: the signature element ---------- */
.worksheet{
  background:var(--chalk);border:1px solid var(--stone);border-radius:var(--r);
  padding:clamp(1.25rem,3vw,2rem);font-variant-numeric:tabular-nums
}
.ws-head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  border-bottom:1px solid var(--ash);padding-bottom:.6rem;margin-bottom:.9rem}
.ws-title{font-family:var(--mono);font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--charcoal)}
.ws-row{display:grid;grid-template-columns:1fr auto;gap:1rem;padding:.35rem 0;border-bottom:1px solid var(--stone);font-size:.875rem}
.ws-row:last-of-type{border-bottom:0}
.ws-row dt{color:var(--ash-72);margin:0}
.ws-row dd{margin:0;font-family:var(--mono);font-weight:500}
.ws-total{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  border-top:1px solid var(--ash);margin-top:.9rem;padding-top:.9rem}
.ws-total-label{font-family:var(--mono);font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--charcoal)}
.ws-total-value{font-family:var(--serif);font-size:clamp(2.6rem,7vw,3.8rem);line-height:.85;font-weight:600;color:var(--rust);letter-spacing:-.03em}

/* ---------- grids & cards ---------- */
/* min() stops the track demanding 15rem on a 320px screen; min-width:0 on the
   children stops grid's default min-width:auto pushing wide content out of the
   track instead of wrapping it. */
.grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr))}
.grid>*,.grid-2>*,.person>*{min-width:0}
.grid-2{display:grid;gap:clamp(1.5rem,4vw,3.5rem);grid-template-columns:minmax(0,1fr)}
@media(min-width:56rem){.grid-2{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:start}}
.card{position:relative;background:var(--chalk);border:1px solid var(--stone);
  border-radius:var(--r);padding:1.35rem}

/* A featured card carries its label on the top edge rather than inside the
   content, so every card's heading still starts on the same line. */
.card--lead{border-top:2px solid var(--rust);padding-top:calc(1.35rem - 1px)}
.card--lead .tag{position:absolute;top:-.62rem;left:1.2rem;background:var(--chalk);
  padding:.1rem .45rem;margin:0}
.band .card--lead .tag{background:var(--charcoal)}
.card h3{margin-bottom:.4em}
.card p{margin-bottom:0;font-size:.9375rem;color:var(--ash-72)}
.band .card{background:transparent;border-color:var(--dark-rule)}

/* numbered sequence — used only where order is real (the six findings) */
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;border-top:1px solid var(--stone);padding:1.25rem 0 1.25rem 3rem;position:relative;max-width:var(--measure)}
.steps li::before{
  content:counter(s,decimal-leading-zero);position:absolute;left:0;top:1.3rem;
  font-family:var(--mono);font-size:.75rem;color:var(--rust);letter-spacing:.06em
}
.steps h3{font-family:var(--sans);font-weight:600;font-size:1rem;letter-spacing:0;margin-bottom:.3em}
.steps p{margin-bottom:0;font-size:.9375rem;color:var(--ash-72)}
.band .steps li{border-color:var(--dark-rule)}
.band .steps p{color:var(--on-dark-70)}

/* ---------- tables ---------- */
.table-wrap{overflow-x:auto;max-width:100%;margin:0 0 1.5rem;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;min-width:30rem}
caption{text-align:left;font-family:var(--mono);font-size:.6875rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--charcoal);padding-bottom:.7rem}
th,td{text-align:right;padding:.5rem .65rem;border-bottom:1px solid var(--stone);font-size:.875rem}
th:first-child,td:first-child{text-align:left;padding-left:0}
th:last-child,td:last-child{padding-right:0}
thead th{font-family:var(--sans);font-size:.625rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--charcoal);font-weight:600;border-bottom:1px solid var(--ash)}
tbody tr:nth-child(odd){background:var(--chalk)}
.band table tbody tr:nth-child(odd){background:rgba(237,232,224,.05)}
.band th,.band td{border-color:var(--dark-rule)}
.band thead th{color:var(--on-dark-70);border-bottom-color:var(--on-dark-70)}

/* ---------- callout / note ---------- */
.note{border-left:2px solid var(--rust);padding:.2rem 0 .2rem 1.1rem;margin:1.75rem 0;max-width:var(--measure)}
.note p{margin-bottom:0;font-size:.9375rem}
.note .eyebrow{margin-bottom:.4rem}

.disclaimer{background:var(--chalk);border:1px solid var(--stone);border-radius:var(--r);padding:1.1rem 1.25rem;max-width:var(--measure)}
.disclaimer p{margin-bottom:0;font-size:.8125rem;color:var(--ash-72);line-height:1.55}

/* ---------- interactive demo ---------- */
.demo{background:var(--chalk);border:1px solid var(--stone);border-radius:var(--r);padding:clamp(1.25rem,3vw,2rem)}
.demo-claims{margin:0 0 1.25rem;padding:0;list-style:none}
.demo-claim{display:grid;grid-template-columns:auto 1fr auto;gap:.9rem;align-items:center;padding:.65rem 0;border-bottom:1px solid var(--stone)}
.demo-claim label{font-size:.8125rem;color:var(--ash-72);white-space:nowrap}
.demo-claim output{font-family:var(--mono);font-size:.875rem;font-weight:500;text-align:right;min-width:5.5rem}
input[type=range]{width:100%;accent-color:var(--rust);height:1.5rem}
.demo-out{display:flex;flex-wrap:wrap;gap:2rem;align-items:baseline;border-top:1px solid var(--ash);padding-top:1.1rem}
.demo-out>*{min-width:0}
.demo-figure{font-family:var(--serif);font-size:clamp(2.4rem,6vw,3.2rem);line-height:.9;font-weight:600;color:var(--rust);letter-spacing:-.03em}
.demo-note{font-size:.875rem;color:var(--ash-72);max-width:22rem;margin:0}

/* ---------- forms ---------- */
.field{margin-bottom:1.1rem;max-width:28rem}
.field label{display:block;font-size:.8125rem;font-weight:600;margin-bottom:.3rem}
.field .hint{font-size:.75rem;color:var(--ash-58);margin:.3rem 0 0}
input[type=text],input[type=email],input[type=tel],select,textarea{
  width:100%;font:inherit;font-size:.9375rem;padding:.6rem .75rem;
  background:var(--chalk);border:1px solid var(--charcoal);border-radius:var(--r);color:var(--ash)
}
textarea{min-height:7rem;resize:vertical}
/* Browsers give fieldset an implicit min-width:min-content, which stops an
   overflow-x container inside it from shrinking — the table pushes the page
   wide on mobile instead of scrolling. */
fieldset{border:0;padding:0;margin:0 0 1.75rem;min-width:0}
legend{font-family:var(--mono);font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--charcoal);padding:0;margin-bottom:1rem}
.progress{display:flex;gap:.4rem;margin-bottom:2rem;list-style:none;padding:0;flex-wrap:wrap}
.progress li{font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--ash-58);border-top:2px solid var(--stone);padding-top:.4rem;flex:1 1 6rem}
.progress li[aria-current]{color:var(--rust);border-top-color:var(--rust)}

/* ---------- article list ---------- */
.list{list-style:none;margin:0;padding:0}
.list li{border-top:1px solid var(--stone)}
.list li:last-child{border-bottom:1px solid var(--stone)}
.list a{display:grid;grid-template-columns:1fr;gap:.3rem;padding:1.35rem 0;text-decoration:none;color:var(--ash)}
@media(min-width:48rem){.list a{grid-template-columns:8rem 1fr;gap:2rem;align-items:baseline}}
.list a:hover .list-title{color:var(--rust)}
.list-meta{font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--charcoal)}
.list-title{font-family:var(--serif);font-size:1.25rem;line-height:1.25;margin:0 0 .25rem;font-weight:500}
.list-desc{font-size:.9375rem;color:var(--ash-72);margin:0;max-width:38rem}
.list li[data-soon] a{cursor:default;color:var(--ash-58)}
.list li[data-soon] .list-title{color:var(--ash-58)}

/* ---------- people ---------- */
.person{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
@media(min-width:40rem){.person{grid-template-columns:9rem minmax(0,1fr);gap:1.75rem;align-items:start}}
.person-photo{aspect-ratio:1;max-width:9rem;background:var(--stone);border-radius:var(--r);display:flex;
  align-items:center;justify-content:center;text-align:center;font-family:var(--mono);
  font-size:.625rem;letter-spacing:.1em;text-transform:uppercase;color:var(--charcoal);padding:.5rem}
.person-cred{font-family:var(--mono);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--charcoal);margin:0 0 .5rem}

/* ---------- footer ---------- */
.foot{background:var(--ash);color:var(--on-dark);padding-block:clamp(2.5rem,6vw,4rem) 2rem;font-size:.875rem}
.foot a:not(.btn){color:var(--on-dark);text-decoration:none}
.foot a:hover{color:#EFAE9E;text-decoration:underline}
.foot h4{color:var(--on-dark);font-size:.6875rem;font-family:var(--mono);letter-spacing:.14em;
  text-transform:uppercase;opacity:.65;margin-bottom:.9rem}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:.45rem}
.foot-grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));margin-bottom:2.5rem}
.foot-legal{border-top:1px solid rgba(237,232,224,.18);padding-top:1.5rem;display:flex;
  flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between;align-items:flex-start}
.foot-legal p{font-size:.75rem;opacity:.7;max-width:40rem;margin:0;line-height:1.55}
.endorsement{font-family:var(--serif);font-size:1rem;opacity:.9;margin:0 0 .75rem;max-width:34rem}

/* ---------- utility ---------- */
.rule{border:0;border-top:1px solid var(--stone);margin:2.5rem 0}
.stack>*+*{margin-top:1.5rem}
.tag{display:inline-block;font-family:var(--mono);font-size:.625rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--rust);border:1px solid var(--rust);
  padding:.1rem .4rem;border-radius:var(--r)}

/* PLACEHOLDER marker — must be zero on launch. See BUILD-NOTES.md */
.todo{background:repeating-linear-gradient(45deg,#F0E6D8,#F0E6D8 6px,#E8DCC9 6px,#E8DCC9 12px);
  border:1px dashed var(--rust);border-radius:var(--r);padding:1rem 1.15rem;margin:1.25rem 0;max-width:var(--measure)}
.todo p{margin:0;font-size:.8125rem;color:var(--ash);line-height:1.5}
.todo strong{font-family:var(--mono);font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--rust);display:block;margin-bottom:.3rem}

/* PRINT ONLY. The brief locks "never pure white" for the brand; this block is a
   deliberate, scoped exception. Screen output never uses pure white. Printed and
   PDF output does, because these documents get photocopied, scanned and attached
   to carrier submissions, where a Parchment ground greys out. Flagged for sign-off
   in BUILD-NOTES.md — revert this block if compliance wants the lock absolute. */
@media print{
  .masthead,.nav,.btn,.todo{display:none}
  body{background:#fff}
  .band{background:#fff;color:#000}
}

/* ==========================================================================
   Tools — shared chrome for the Hearth calculators
   ========================================================================== */
.tool{background:var(--chalk);border:1px solid var(--stone);border-radius:var(--r);
  padding:clamp(1.25rem,3vw,2rem);margin:0 0 1.5rem}
.tool legend{margin-bottom:.75rem}
.tool-note{font-size:.8125rem;color:var(--ash-58);margin:.35rem 0 0;line-height:1.5}

.rates{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}
.rates .field{margin-bottom:0;max-width:none}

table.staff{min-width:44rem}
table.staff th{vertical-align:bottom}
table.staff td{vertical-align:middle;padding:.4rem .5rem}
table.staff input[type=text],table.staff input[type=number],table.staff select{
  padding:.4rem .5rem;font-size:.875rem;width:100%;min-width:5rem}
table.staff td:first-child{padding-left:0}
table.staff td.num{text-align:right}
.rm{background:var(--sand);border:1px solid var(--stone);cursor:pointer;color:var(--ash-58);font:inherit;
  font-size:1.1rem;line-height:1;padding:.2rem .35rem;border-radius:var(--r)}
.rm:hover{color:var(--clay);background:var(--parchment)}

.verdict{font-family:var(--mono);font-size:.6875rem;letter-spacing:.06em;
  text-transform:uppercase;white-space:nowrap}
.verdict.ok{color:var(--sage)}
.verdict.no{color:var(--clay)}

.result{border-top:1px solid var(--ash);padding-top:1.25rem;margin-top:1.5rem}
.result-figure{font-family:var(--serif);font-size:clamp(2.4rem,6vw,3.4rem);
  line-height:.9;font-weight:600;color:var(--rust);letter-spacing:-.03em}
.result-grid{display:flex;flex-wrap:wrap;gap:2rem;align-items:baseline;margin-bottom:1.25rem}
.result-grid>*{min-width:0}
.result-note{font-size:.9375rem;color:var(--ash-72);max-width:24rem;margin:0}

.flags{margin:1.25rem 0 0;padding:0;list-style:none}
.flags li{border-left:2px solid var(--clay);padding:.15rem 0 .15rem .9rem;
  margin-bottom:.6rem;font-size:.875rem}
.flags li.ok{border-left-color:var(--sage)}
.flags li b{display:block;font-weight:600}
.flags li span{color:var(--ash-72)}

/* ==========================================================================
   Document specimens — constructed, never a real client's paperwork
   ========================================================================== */
.specimen{background:#FFFDFA;border:1px solid var(--stone);border-radius:var(--r);
  padding:1.1rem 1.25rem;font-variant-numeric:tabular-nums;position:relative}
.specimen-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  border-bottom:1px solid var(--ash);padding-bottom:.5rem;margin-bottom:.75rem}
.specimen-org{font-family:var(--sans);font-weight:700;font-size:.8125rem;letter-spacing:.01em}
.specimen-meta{font-family:var(--mono);font-size:.625rem;letter-spacing:.08em;color:var(--charcoal)}
.specimen table{min-width:0;margin:0;font-size:.8125rem}
.specimen th,.specimen td{padding:.3rem .4rem;border-bottom:1px solid var(--stone)}
.specimen thead th{font-size:.5625rem;letter-spacing:.08em}
.specimen tbody tr:nth-child(odd) td{background:transparent}
.specimen .hl{background:#F7E3C8;box-shadow:0 0 0 2px #F7E3C8;border-radius:1px;font-weight:600}
.specimen dl.rows>div{border-color:var(--stone)}
.specimen-note{display:flex;gap:.55rem;align-items:flex-start;margin:.7rem 0 0;
  font-size:.8125rem;line-height:1.45}
.specimen-note::before{content:"";flex:0 0 auto;width:.9rem;height:.9rem;margin-top:.18rem;
  border-left:2px solid var(--rust);border-bottom:2px solid var(--rust);border-bottom-left-radius:3px}
.specimen-note b{font-weight:600}
.specimen-stamp{position:absolute;top:.55rem;right:.7rem;font-family:var(--mono);
  font-size:.5rem;letter-spacing:.12em;text-transform:uppercase;color:var(--charcoal);
  border:1px solid var(--stone);padding:.1rem .3rem;border-radius:1px}
figure{margin:0}
figure figcaption{margin-top:.6rem}

/* ==========================================================================
   Document specimens — annotated facsimiles of the documents we work from.
   Constructed, never a real client's paperwork. Built in HTML rather than
   photographed so they stay crisp, themeable and screen-reader accessible.
   ========================================================================== */
.specimen{margin:2rem 0;max-width:38rem}
.specimen-doc{background:#FFFDFA;border:1px solid var(--charcoal);border-radius:var(--r);
  padding:1.1rem 1.25rem;font-variant-numeric:tabular-nums;position:relative}
.specimen-doc::before{content:"SPECIMEN";position:absolute;top:.5rem;right:.75rem;
  font-family:var(--mono);font-size:.5625rem;letter-spacing:.18em;color:var(--stone)}
.specimen-head{display:block;border-bottom:1.5px solid var(--ash);
  padding:0 5.5rem .5rem 0;margin-bottom:.7rem}
.specimen-title{font-family:var(--sans);font-weight:700;font-size:.8125rem;
  letter-spacing:.02em;margin:0;max-width:none}
.specimen-sub{font-family:var(--mono);font-size:.625rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--charcoal);margin:.2rem 0 0;max-width:none}

/* Key–value rows inside a specimen. The report template has its own `.rows`;
   this is the site's copy, which the specimens need. */
.specimen dl.rows{margin:0}
.specimen dl.rows>div{display:flex;justify-content:space-between;align-items:baseline;
  gap:1rem;padding:.3rem 0;border-bottom:1px solid var(--stone);font-size:.8125rem}
.specimen dl.rows>div:last-of-type{border-bottom:0}
.specimen dl.rows dt{margin:0;color:var(--ash-72)}
.specimen dl.rows dd{margin:0;font-family:var(--mono);font-weight:500;
  white-space:nowrap;text-align:right}
.specimen dl.rows dt b{color:var(--ash);font-weight:600}
.specimen table{margin:0;min-width:0;font-size:.8125rem}
.specimen th{font-size:.5625rem}
.specimen td,.specimen th{padding:.3rem .45rem}
.specimen tbody tr:nth-child(odd) td{background:#F7F4EE}

/* the annotation is the point of the whole thing */
.marked{position:relative;display:inline-block;font-weight:600}
.marked::after{content:"";position:absolute;inset:-.18rem -.35rem;border:1.5px solid var(--rust);
  border-radius:1rem;pointer-events:none}
.annot{display:flex;gap:.6rem;align-items:flex-start;margin:.9rem 0 0;
  padding-top:.75rem;border-top:1px dashed var(--stone)}
.annot-num{flex:0 0 auto;font-family:var(--mono);font-size:.625rem;letter-spacing:.08em;
  color:var(--rust);border:1.5px solid var(--rust);border-radius:50%;
  width:1.3rem;height:1.3rem;display:grid;place-items:center;margin-top:.1rem}
.annot p{margin:0;font-size:.875rem;color:var(--ash-72);max-width:none}
.annot p b{color:var(--ash);font-weight:600}
.specimen figcaption{font-size:.75rem;color:var(--ash-58);line-height:1.5;margin-top:.75rem}

.form-note{margin-top:1rem}
.cf-turnstile{min-height:65px}

/* The Mod Analysis is the flagship offer, so it leads the nav and carries a
   marker. Not a button — that would compete with the primary CTA. */
.nav a.nav-feature{position:relative;font-weight:600;color:var(--ash);padding-left:.85rem}
.nav a.nav-feature::before{content:"";position:absolute;left:0;top:50%;
  width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--rust)}
.nav a.nav-feature:hover{color:var(--rust)}
@media(max-width:60rem){
  .nav a.nav-feature{padding-left:0}
  .nav a.nav-feature::before{display:none}
}

/* ==========================================================================
   Spacing utilities. These replace ~60 inline style attributes that had drifted
   into four different values for the same job. One place to change them now.
   ========================================================================== */
.mt-0{margin-top:0}
.mt-1{margin-top:.75rem}
.mt-2{margin-top:1rem}
.mt-3{margin-top:1.5rem}
.mt-4{margin-top:2rem}
.mt-5{margin-top:2.5rem}
.m-0{margin:0}
.measure{max-width:var(--measure)}
.wide{max-width:38rem}

/* Field labels used inside worksheets and specimens, previously repeated
   inline five times. */
.field-label{font-family:var(--mono);font-size:.625rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--charcoal)}

/* Every button row gets the same rhythm. Three different margins were in use. */
.btn-row{margin-top:1.5rem}
.btn-row.btn-row-tight{margin-top:1rem}

/* A blocked required field should be obvious, not a native bubble that can
   render off-screen on a long form. */
form[data-vesta] :invalid:not(:placeholder-shown),
form[data-vesta] input:invalid:focus,
form[data-vesta] select:invalid:focus{border-color:var(--clay);box-shadow:0 0 0 2px rgba(120,49,43,.15)}
form[data-vesta] [aria-invalid="true"]{border-color:var(--clay);
  box-shadow:0 0 0 2px rgba(120,49,43,.18)}

/* ==========================================================================
   Spot illustrations. Inline SVG on an arch vocabulary drawn from the logo.
   Tokens are declared here so a single change restyles every illustration.
   ========================================================================== */
:root{
  --illustration-line:#3D4A52;
  --illustration-neutral:#EBE4D7;
  --illustration-paper:#FCFAF6;
  --illustration-ground:#F5F1EA;
  --illustration-risk:#B4552F;
  --illustration-safe:#2F5537;
}
.spot{margin:0 0 1.25rem;max-width:22rem}
.spot svg{width:100%;height:auto;display:block}
.spot-inline{max-width:19rem;margin:0 0 1rem}
.spot-wide{max-width:30rem;margin:1.5rem 0}
.card .spot{max-width:none;margin-bottom:1rem}

/* On the Charcoal band the linework needs to invert. */
.band .spot{--illustration-line:#EDE8E0;--illustration-neutral:#576267;
  --illustration-paper:#4A565C;--illustration-ground:#3D4A52}

/* Article headers carry their pillar's illustration, so the same image always
   means the same category. Repetition is what makes a sparse set read as a
   system rather than as decoration. */
/* The opening figure sits after the lede, centred in the reading column, with
   a hairline above it so it reads as a deliberate break rather than a float. */
.spot-opener{max-width:20rem;margin:2rem auto 0;padding-top:1.75rem;
  border-top:1px solid var(--stone)}
.card .spot{max-width:none;margin:0 0 .9rem}
.card .spot svg{border-bottom:1px solid var(--stone);padding-bottom:.75rem}

/* --------------------------------------------------------------------------
   FIX: cards inside a Charcoal band inherited --ash-72, which is mixed against
   Parchment and renders near-black on dark (1.06:1 — invisible). Everything
   inside a band must draw from the on-dark ramp.
   -------------------------------------------------------------------------- */
.band .card p,
.band .card .small,
.band .card .tiny,
.band .list-desc,
.band .cal .what span,
.band dl.rows dt{color:var(--on-dark-70)}
.band .card h3,.band .card h4,.band .list-title{color:var(--on-dark)}
.band .tag{color:#EFAE9E;border-color:#EFAE9E}
.band .code-chip{color:var(--on-dark);border-color:var(--dark-rule)}
.band .card .code{color:var(--on-dark)}

/* --------------------------------------------------------------------------
   FIX: figures sat at inconsistent left edges — some flush to the page
   gutter, some to the text column. Every figure now centres within its
   container and shares one rhythm.
   -------------------------------------------------------------------------- */
figure.specimen,
.spot-wide,
.table-wrap{margin-left:auto;margin-right:auto}

.spot{margin-left:auto;margin-right:auto}
.card .spot{margin-left:0;margin-right:0}      /* cards align to their own box */
.spot-opener{margin-left:auto;margin-right:auto}

figure.specimen{display:block}
figure.specimen svg,
figure svg{margin-left:auto;margin-right:auto}
figure figcaption{max-width:var(--measure);margin-left:auto;margin-right:auto}

/* Long unbroken strings — URLs, regulation citations, long compound terms —
   forced horizontal scroll on narrow screens. Prose may break them. */
.prose p,.prose li,.prose h2,.prose h3,
.list-desc,.card p{overflow-wrap:break-word;word-break:break-word;hyphens:auto}
.prose a{overflow-wrap:anywhere}

/* --------------------------------------------------------------------------
   VERTICAL RHYTHM
   Adjacent sections each carried full padding, stacking to ~204px of empty
   space between content blocks. Halve the join so the page reads as a
   continuous document rather than a stack of separated panels. The first and
   last sections keep their full breathing room.
   -------------------------------------------------------------------------- */
.section + .section{padding-top:calc(var(--band) * 0.55)}
.section + .band,
.band + .section{padding-top:calc(var(--band) * 0.7)}
.section:first-of-type{padding-bottom:calc(var(--band) * 0.6)}

/* An article's opening block sits closer to the body it introduces. */
.section.narrow-intro{padding-bottom:calc(var(--band) * 0.4)}

/* Headings already carry space above them; a section's first heading does not
   need it twice. */
.section > .wrap > :first-child,
.section > .wrap > .prose > :first-child,
.section .grid-2 > div > :first-child{margin-top:0}

/* Trailing margins on a section's last child stacked on top of the section's
   own padding, producing gaps of 300–600px in places. Collapse them so the
   padding alone controls the rhythm. */
.section > .wrap > :last-child,
.section > .wrap > .prose > :last-child,
.section > .wrap > .narrow > :last-child,
.band > .wrap > :last-child{margin-bottom:0}
.section .list:last-child,
.section .grid:last-child,
.section .table-wrap:last-child,
.section .btn-row:last-child{margin-bottom:0}
.prose > :last-child{margin-bottom:0}
