/* ============================================================
   INSTALLMENTLOANONLINE.NET — COMPONENTS  v1.0  "KEYSTONE"
   Requires tokens.css. Self-contained, no framework.
   ============================================================ */

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

body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background-color: var(--stone);
  /* Signature: faint blueprint grid over the stone */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--clay-deep); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

.display { font-size: var(--text-hero); font-weight: var(--weight-black); line-height: var(--leading-tight); letter-spacing: -0.025em; }
.lead    { font-size: var(--text-body-lg); color: var(--ink-soft); line-height: 1.55; }
.muted   { color: var(--ink-faint); }
.measure { max-width: 62ch; }
.center  { text-align: center; }
.figure  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Mono eyebrow / kicker — signature label style */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--clay-deep); font-weight: var(--weight-medium);
}
.eyebrow__num { color: var(--brass-deep); }
.eyebrow--center { justify-content: center; }
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--clay); display: inline-block;
}
.eyebrow--center::before { display: none; }

/* Marker underline — terracotta hand-drawn stroke under a keyword */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .02em; height: .34em;
  background: var(--clay); opacity: .9; z-index: -1; border-radius: 2px;
  transform: rotate(-.4deg);
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--stone { background: var(--stone-deep); }
.section--petrol { background: var(--petrol-deep); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- BUTTONS ---------- */
.btn {
  --_bg: var(--paper); --_fg: var(--ink); --_bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-ui); font-size: var(--text-body); font-weight: var(--weight-semibold);
  line-height: 1; padding: 0.875rem 1.5rem; min-height: 48px;
  border: 2px solid var(--_bd); border-radius: var(--radius-md);
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  text-decoration: none; transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Primary — terracotta with hard petrol offset shadow (physical click) */
.btn--cta {
  --_bg: var(--clay); --_fg: #fff; --_bd: var(--petrol);
  box-shadow: var(--shadow-offset);
}
.btn--cta:hover { background: var(--clay-deep); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 var(--petrol); color:#fff; }
.btn--cta:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--petrol); }

.btn--dark { --_bg: var(--petrol); --_fg: #fff; --_bd: var(--petrol); }
.btn--dark:hover { background: var(--petrol-deep); color:#fff; }
.btn--ghost { --_bg: transparent; --_fg: var(--petrol); --_bd: var(--line-strong); }
.btn--ghost:hover { --_bd: var(--petrol); background: var(--petrol-tint); }
.btn--lg { padding: 1.0625rem 1.875rem; font-size: var(--text-body-lg); min-height: 56px; }
.btn--block { width: 100%; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--stone) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: var(--sp-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand__glyph { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.nav a { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--ink-soft); text-decoration: none; padding: .5rem .75rem; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--ink); background: var(--petrol-tint); }
.nav a[aria-current="page"] { color: var(--petrol); background: var(--petrol-tint); }
.nav__cta { margin-left: var(--sp-3); }
.nav-toggle { display: none; }
/* CSS-only mobile menu (no JS): a hidden checkbox toggled by the burger label */
.nav-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
@media (max-width: 940px) {
  .site-header__bar { gap: var(--sp-3); }
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-burger {
    display: inline-flex; order: 3; flex: none; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px; width: 46px; height: 46px; cursor: pointer;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper);
  }
  .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
  .nav-cb:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-cb:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-cb:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-dropdown);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop); padding: var(--sp-3) var(--gutter) var(--sp-5);
  }
  .nav-cb:checked ~ .nav { display: flex; }
  .nav a { padding: var(--sp-4) var(--sp-2); font-size: var(--text-body); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { background: transparent; }
  .nav a.btn, .nav__cta { border-bottom: none; justify-content: center; text-align: center; margin: var(--sp-4) 0 0; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__kicker { margin-bottom: var(--sp-4); }
.hero h1 { margin-bottom: var(--sp-4); }
.hero__lead { margin-bottom: var(--sp-6); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hero__note { margin-top: var(--sp-5); font-size: var(--text-sm); color: var(--ink-faint); display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero__note span { display: inline-flex; align-items: center; gap: .4rem; }

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .85rem; font-size: var(--text-sm); color: var(--ink-soft); box-shadow: var(--shadow-card);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }

/* ---------- KEYSTONE ARCH (signature shape) ---------- */
.arch { border-radius: var(--radius-arch); }
.arch-panel {
  background: var(--paper); border: var(--border-card); border-radius: var(--radius-arch);
  box-shadow: var(--shadow-card); overflow: hidden;
}
/* Decorative keystone divider */
.keystone {
  width: 56px; height: 30px; background: var(--brass);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); margin: 0 auto;
}

/* ---------- LOAN CALCULATOR (signature hero widget) ---------- */
.calc {
  background: var(--paper); border: var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); position: relative;
}
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.calc__title { font-family: var(--font-display); font-size: var(--text-h4); }
.calc__amount { font-family: var(--font-mono); font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--petrol); }
.calc__row { margin-bottom: var(--sp-5); }
.calc__label { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--sp-2); }
.calc__label b { font-family: var(--font-mono); color: var(--ink); }

/* Range slider — themed */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--clay); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--clay-deep), var(--shadow-card); cursor: pointer; transition: transform var(--dur-fast); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.08); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--clay); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px var(--clay-deep); cursor: pointer; }

/* Calc summary — installment breakdown */
.calc__summary { border-top: 1.5px dashed var(--line-strong); margin-top: var(--sp-5); padding-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.calc__line { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); }
.calc__line b { font-family: var(--font-mono); color: var(--ink); }
.calc__line--total { font-size: var(--text-body); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.calc__line--total b { color: var(--clay-deep); font-size: var(--text-body-lg); }
.calc__fine { margin-top: var(--sp-4); font-size: var(--text-xs); color: var(--ink-faint); line-height: var(--leading-legal); }

/* ---------- INSTALLMENT LADDER (signature component) ---------- */
/* Visualizes equal payments over time — unique to installment loans */
.ladder { display: grid; gap: 6px; }
.ladder__step {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3);
  background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .85rem;
}
.ladder__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); }
.ladder__bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--petrol-mid), var(--petrol)); }
.ladder__amt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink); }

/* ---------- TRUST BAR ---------- */
.trustbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 800px) { .trustbar { grid-template-columns: repeat(2, 1fr); } }
.trust { display: flex; gap: var(--sp-3); align-items: flex-start; }
.trust__ico { flex: none; width: 28px; height: 28px; color: var(--petrol); stroke-width: 1.75; }
.trust__t { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.trust__d { font-size: var(--text-sm); color: var(--ink-faint); }

/* ---------- CARDS ---------- */
.card { background: var(--paper); border: var(--border-card); border-radius: var(--radius-md); padding: var(--sp-6); box-shadow: var(--shadow-card); }
.card--lift { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card--petrol { background: var(--petrol); color: #EDF1EF; border-color: var(--petrol-deep); }
.card--petrol h3, .card--petrol h4 { color: #fff; }
.card__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--petrol-tint); color: var(--petrol); margin-bottom: var(--sp-4); }
.card--petrol .card__ico { background: rgba(255,255,255,.12); color: #fff; }

/* Feature tile with icon */
.tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--petrol-tint); color: var(--petrol); margin-bottom: var(--sp-4); }
.tile--clay { background: var(--clay-tint); color: var(--clay-deep); }
.tile--brass { background: var(--brass-tint); color: var(--brass-deep); }
.tile svg { width: 26px; height: 26px; stroke-width: 1.75; }

/* ---------- STEPS (numbered, architectural) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-size: 3.25rem; font-weight: 800; line-height: 1;
  color: var(--petrol); -webkit-text-stroke: 0; position: relative; display: inline-block; margin-bottom: var(--sp-3);
}
.step__num::after { content: ""; position: absolute; left: 0; bottom: .12em; width: .55em; height: .14em; background: var(--clay); border-radius: 2px; }
.step__eta { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--clay-deep); background: var(--clay-tint); padding: .25rem .55rem; border-radius: 999px; margin-bottom: var(--sp-3); }
.step h3 { font-size: var(--text-h4); margin-bottom: var(--sp-2); }

/* ---------- LEDGER / RATE TABLE ---------- */
.table-wrap { overflow-x: auto; border: var(--border-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); -webkit-overflow-scrolling: touch; }
table.ledger { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--paper); }
.ledger thead th { background: var(--petrol); color: #EAF1F0; font-family: var(--font-ui); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-align: left; padding: .85rem 1rem; letter-spacing: .01em; }
.ledger th:first-child, .ledger td:first-child { padding-left: 1.25rem; }
.ledger tbody td { padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.ledger tbody tr:nth-child(even) { background: var(--stone-deep); }
.ledger .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.ledger caption { caption-side: bottom; text-align: left; padding: .75rem 1.25rem; font-size: var(--text-xs); color: var(--ink-faint); }

/* ---------- NOTES / DISCLOSURE ---------- */
.notice { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--petrol-tint); font-size: var(--text-sm); line-height: var(--leading-legal); }
.notice svg { flex: none; width: 22px; height: 22px; stroke-width: 1.75; margin-top: 2px; }
.notice--warn { background: var(--warn-tint); border-color: #ECC893; color: #6E4310; }
.notice--clay { background: var(--clay-tint); border-color: #E6C4B4; }
.disclosure { border-left: 3px solid var(--brass); background: var(--stone-deep); padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--text-xs); color: var(--ink-soft); line-height: var(--leading-legal); }
.disclosure b { color: var(--ink); }

/* ---------- BADGES / STAMPS ---------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: .3rem .7rem; border-radius: 999px; background: var(--petrol-tint); color: var(--petrol); }
.badge--clay { background: var(--clay-tint); color: var(--clay-deep); }
.badge--brass { background: var(--brass-tint); color: var(--brass-deep); }
.badge--line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }
/* Rotated round stamp */
.stamp {
  display: inline-grid; place-items: center; text-align: center; width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid var(--brass); color: var(--brass-deep); font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; transform: rotate(-7deg); padding: .5rem;
}

/* ---------- FORMS ---------- */
.field { display: block; margin-bottom: var(--sp-4); }
.field__label { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: var(--sp-2); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-ui); font-size: var(--text-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .8rem 1rem; min-height: 48px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.field__hint { font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--sp-2); }
.field--error .input { border-color: var(--danger); background: var(--danger-tint); }
.field__error { font-size: var(--text-xs); color: var(--danger); margin-top: var(--sp-2); }

/* ---------- FAQ (native details, no JS) ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); cursor: pointer; padding: var(--sp-5) 0; font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-h4); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { flex: none; width: 22px; height: 22px; color: var(--clay); transition: transform var(--dur-base) var(--ease-out); }
.faq[open] .faq__chev { transform: rotate(45deg); }
.faq__body { padding-bottom: var(--sp-5); color: var(--ink-soft); max-width: 70ch; }

/* ---------- BLOG CARDS ---------- */
.post { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: var(--border-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.post__media { aspect-ratio: 16/9; background: var(--stone-deep); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.post__cat { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--clay-deep); }
.post__title { font-size: var(--text-h4); }
.post__title a { color: var(--ink); text-decoration: none; }
.post__title a:hover { color: var(--petrol); }
.post__meta { margin-top: auto; padding-top: var(--sp-3); border-top: 1px dashed var(--line-strong); font-size: var(--text-xs); color: var(--ink-faint); font-family: var(--font-mono); display: flex; gap: var(--sp-3); }

/* ---------- ARTICLE ---------- */
.article { font-size: var(--text-body-lg); line-height: var(--leading-body); }
.article > * + * { margin-top: var(--sp-5); }
.article h2 { margin-top: var(--sp-8); }
.article h3 { margin-top: var(--sp-6); }
.byline { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-sm); color: var(--ink-soft); }
.byline__av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line); }
.byline__check { color: var(--ok); font-weight: var(--weight-semibold); }
.takeaways { background: var(--clay-tint); border: 1px solid #E6C4B4; border-radius: var(--radius-md); padding: var(--sp-6); }
.takeaways h4 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--clay-deep); margin-bottom: var(--sp-3); }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin-top: var(--sp-2); }
.pullquote { font-family: var(--font-display); font-size: var(--text-h3); line-height: 1.3; color: var(--petrol); border-left: 3px solid var(--clay); padding-left: var(--sp-5); font-weight: var(--weight-semibold); }

/* ---------- CHIPS (states / cities / tags) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-sm); color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; text-decoration: none; transition: all var(--dur-fast); }
.chip:hover { border-color: var(--petrol); color: var(--petrol); background: var(--petrol-tint); }
.chip--active { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.chip svg { width: 15px; height: 15px; }

/* ---------- STATS ---------- */
.stat { text-align: center; }
.stat__value { font-family: var(--font-mono); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 600; color: var(--petrol); line-height: 1; letter-spacing: -.02em; }
.stat__value em { color: var(--clay); font-style: normal; }
.stat__label { font-size: var(--text-sm); color: var(--ink-faint); margin-top: var(--sp-2); }

/* ---------- DARK BAND (pre-footer CTA) ---------- */
.band { background: var(--petrol-deep); color: #EDF1EF; border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band__grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.band > * { position: relative; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--petrol-deep); color: #C6D6D4; padding-block: var(--sp-8) var(--sp-6); }
.site-footer a { color: #C6D6D4; text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-7); border-bottom: 1px solid #1F4E58; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col h4 { color: #fff; font-family: var(--font-ui); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-4); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.footer__brand { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.footer__disclosure { margin-top: var(--sp-6); font-size: var(--text-xs); color: #87A09D; line-height: var(--leading-legal); }
.footer__bottom { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid #1F4E58; font-size: var(--text-xs); color: #87A09D; display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; }

/* ---------- BREADCRUMBS ---------- */
.crumbs { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--petrol); }

/* ---------- UTILITIES ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 3px; }
.mt-0{margin-top:0}.mb-4{margin-bottom:var(--sp-4)}.mb-6{margin-bottom:var(--sp-6)}.mb-7{margin-bottom:var(--sp-7)}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--clay); color: #fff; padding: .6rem 1rem; z-index: var(--z-toast); }
.skip-link:focus { left: 0; }
