/* ==========================================================================
   Spotless Margin — shared styles
   Plain CSS, mobile-first, no build step. System fonts only (works offline).
   Sections: tokens · base · layout · header · buttons · components ·
             home · calculator · kit · legal · footer · utilities
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0e2a35;        /* headings, footer background */
  --teal: #0f5e63;        /* primary brand color */
  --teal-dark: #0a4649;   /* hover / active */
  --teal-tint: #e4efee;   /* soft teal panels */
  --accent: #f0b445;      /* single warm accent (always paired with dark text) */
  --accent-dark: #dc9d26;
  --bg: #f8f6f1;          /* off-white page background */
  --surface: #ffffff;
  --ink: #1b2a30;         /* body text */
  --muted: #4d5f67;       /* secondary text (AA on --bg and white) */
  --line: #dcd8ce;
  --error: #a4262c;
  --error-tint: #fbeceb;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(14, 42, 53, 0.06), 0 8px 24px rgba(14, 42, 53, 0.07);
  --container: 1120px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }

img, svg { max-width: 100%; }

/* Visible focus for every interactive element */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

.grid { display: grid; gap: 1.25rem; }

@media (min-width: 720px) {
  .section { padding: 5rem 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) and (max-width: 959px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4rem;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand strong { font-weight: 800; }

.nav-toggle {
  display: none; /* shown only when JS is available (see .js rule below) */
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:not(.btn):hover { background: var(--teal-tint); }
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--teal-dark);
  box-shadow: inset 0 -2px 0 var(--teal);
  border-radius: 0;
}

/* Small screens with JS: collapse nav behind the Menu button.
   Without JS the nav simply wraps and stays visible. */
@media (max-width: 719px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 0.5rem; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav .btn { margin-top: 0.4rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
.btn-block { display: block; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Components ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  color: var(--teal);
}

.note {
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.97rem;
}
.note p:last-child { margin-bottom: 0; }
.note-warn { background: #fdf3dc; border-left-color: var(--accent-dark); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}
.cross-list { list-style: none; padding: 0; }
.cross-list li { position: relative; padding-left: 1.7rem; }
.cross-list li::before {
  content: "×";
  position: absolute;
  left: 0.2rem;
  top: -0.05em;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--muted);
}

/* Forms */
label, legend { font-weight: 600; color: var(--navy); }
label { display: block; margin-bottom: 0.3rem; }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="number"],
select {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8d9aa0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  min-height: 2.9rem;
}
input:focus-visible, select:focus-visible { box-shadow: none; border-color: var(--teal); }
input[aria-invalid="true"] { border-color: var(--error); background: var(--error-tint); }

.hint { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0; }
.field-error { font-size: 0.9rem; font-weight: 600; color: var(--error); margin: 0.3rem 0 0; }
.field-error:empty { display: none; }

/* Email signup block */
.signup {
  background: var(--navy);
  color: #e6eef0;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.signup h2 { color: #fff; }
.signup p { color: #cfdde0; }
.signup a { color: #fff; }
.signup label { color: #fff; }
.signup .optional { color: #cfdde0; }
.signup-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.signup-form input { border-color: transparent; }
.signup .privacy-note { font-size: 0.88rem; margin: 1rem 0 0; }
.form-status {
  margin-top: 1rem;
  background: #fdf3dc;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.97rem;
}
.form-status[hidden] { display: none; }
@media (min-width: 720px) {
  .signup { padding: 3rem; }
  .signup-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

/* ---------- Home ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero .slogan {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.markets { font-size: 0.92rem; color: var(--muted); margin-top: 1.25rem; }
@media (min-width: 900px) {
  .hero { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

/* Example estimate card in the hero (static illustration) */
.estimate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-left: 5px solid var(--accent); /* the "margin" line */
}
.estimate-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.estimate-card .job { font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.estimate-card dl { margin: 0; }
.estimate-card .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.estimate-card dt { color: var(--muted); }
.estimate-card dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.estimate-card .row-total dd { font-size: 1.5rem; color: var(--teal-dark); }
.estimate-card .fine { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; margin: 0; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.cta-band { background: var(--teal); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcebea; max-width: 38rem; }
.cta-band-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) {
  .cta-band-inner { grid-template-columns: 1fr auto; }
}

.kit-teaser { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .kit-teaser { grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; }
}
.price-card { text-align: left; box-shadow: var(--shadow); }
.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card .fine { font-size: 0.88rem; color: var(--muted); }

/* ---------- Page headers (inner pages) ---------- */
.page-head { padding: 2.75rem 0 1.5rem; }
.page-head .lead { margin-bottom: 0; }
@media (min-width: 720px) { .page-head { padding: 4rem 0 2rem; } }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 960px) {
  .calc-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; }
  .calc-results { position: sticky; top: 1rem; }
}

.calc-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.calc-form legend { font-size: 1.1rem; font-weight: 700; padding: 0 0.4rem; }
.field-grid { display: grid; gap: 1rem; }
@media (min-width: 520px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}

/* Input with a currency / unit adornment */
.input-affix { display: flex; align-items: stretch; }
.input-affix .affix {
  display: grid;
  place-items: center;
  min-width: 2.9rem;
  padding: 0 0.6rem;
  background: var(--teal-tint);
  border: 1px solid #8d9aa0;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.input-affix .affix:first-child { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-affix .affix:last-child { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-affix .affix:first-child + input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-affix input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-affix input { min-width: 0; }

/* Segmented radio (sq ft / m²) and choice pills (type, frequency, extras) */
.segmented { display: inline-flex; border: 1px solid #8d9aa0; border-radius: var(--radius-sm); overflow: hidden; }
.segmented label { margin: 0; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; padding: 0.3rem 0.75rem; font-size: 0.9rem; cursor: pointer; background: #fff; color: var(--ink); }
.segmented input:checked + span { background: var(--teal); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.label-row label:first-child { margin: 0; }

.choices { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #8d9aa0;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}
.choices input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--teal); }
.choices label:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); }
.choices small { display: block; color: var(--muted); font-size: 0.82rem; }
@media (min-width: 520px) { .choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choices label > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.group-label { font-weight: 600; color: var(--navy); margin: 0 0 0.4rem; }
.field-group + .field-group { margin-top: 1.1rem; }
.field-group fieldset { border: 0; padding: 0; margin: 0; background: none; }
.field-group legend { font-size: 1.0625rem; font-weight: 600; padding: 0; margin-bottom: 0.4rem; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.calc-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.calc-results h2 { font-size: 1.3rem; }
.result-main { margin: 0 0 1rem; }
.result-main .label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.result-main .value {
  display: block;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1rem; }
.result-tile { background: var(--bg); border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; }
.result-tile dt { font-size: 0.85rem; color: var(--muted); }
.result-tile dd { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.result-tile-wide { grid-column: 1 / -1; }
.result-tile .sub { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }

.breakdown { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 1rem; }
.breakdown caption { text-align: left; font-weight: 700; color: var(--navy); padding-bottom: 0.3rem; }
.breakdown th, .breakdown td { padding: 0.4rem 0; border-top: 1px solid var(--line); }
.breakdown th { text-align: left; font-weight: 400; color: var(--muted); }
.breakdown td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .total th, .breakdown .total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--navy); }

.result-status { font-size: 0.95rem; color: var(--muted); }
.result-status.is-error { color: var(--error); font-weight: 600; }

/* Mobile-only sticky summary so the live price stays visible while editing */
.price-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
}
.price-bar strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.price-bar a { color: #fff; font-weight: 600; }
.has-price-bar { padding-bottom: 3.5rem; }
@media (min-width: 960px) {
  .price-bar { display: none; }
  .has-price-bar { padding-bottom: 0; }
}

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--surface); }
.data-table th, .data-table td { text-align: left; padding: 0.6rem 0.8rem; border: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--teal-tint); color: var(--navy); }

.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}

/* ---------- Kit ---------- */
.kit-hero { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .kit-hero { grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; } }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1rem 1.15rem;
  list-style-position: outside;
  margin-left: 1.15rem;
  padding-left: 0.3rem;
}
.faq details > div { padding: 0 1.15rem 1rem; }
.faq details p:last-child { margin-bottom: 0; }
.faq { max-width: 46rem; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.placeholder {
  background: #fdf3dc;
  border: 1px dashed var(--accent-dark);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-size: 0.95em;
}
.updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfdde0;
  padding: 3rem 0 2rem;
  font-size: 0.97rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.3rem; }
.footer-slogan { color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb6bb;
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #b4c7cb;
}
.footer-bottom p { margin-bottom: 0.4rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-muted { color: var(--muted); }
.small { font-size: 0.9rem; }

@media print {
  .site-header, .site-footer, .price-bar, .signup, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ---------- Guides / blog ---------- */
.breadcrumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.article-head h1 { max-width: 22ch; font-size: clamp(1.9rem, 4.6vw, 2.75rem); }
.article-head .lead { max-width: 44rem; }
.article-meta { color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0; }
.article-body.prose { max-width: 44rem; font-size: 1.0625rem; }
.article-body h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.article-body blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .table-wrap { margin: 1.2rem 0 1.6rem; }
.article-body .data-table td:last-child, .article-body .data-table th:last-child { white-space: normal; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.tier {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}
.tier-s { background: var(--teal-tint); color: var(--teal-dark); border: 1px solid var(--teal); }
.tier-d { background: #fdf3dc; color: var(--navy); border: 1px solid var(--accent-dark); }
.article-cta {
  margin: 2.4rem 0 1.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
}
.article-cta p:last-child { margin-bottom: 0; }
.article-disclaimer { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.related { margin-top: 3rem; }
.blog-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; }
.post-card h2, .post-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.post-card h2 a, .post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.post-card .post-kw { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.post-card p { color: var(--muted); }
.post-card .read-more { margin-top: auto; font-weight: 600; }
