/* ============================================================
   re | vision — site stylesheet
   Flat static site. No build step. Edit this file directly.
   Design tokens live in :root — change a value once, it
   propagates everywhere.
   ============================================================ */

:root {
  /* Brand — carried over from the original site */
  --brand:        #1B95D1;   /* primary blue — the "re" mark, accents, rules */
  --brand-deep:   #0484AA;   /* deeper accent                  */
  /* Button fill. NOT --brand: white on #1B95D1 is only 3.35:1, which fails
     WCAG AA for 17px text. #0F7BAF is the same hue a few steps darker and
     measures 4.70:1. Keep --brand for identity, this for anything that
     carries white text. */
  --brand-btn:    #0F7BAF;
  --brand-btn-hi: #0B6E93;   /* hover, 5.73:1                  */
  /* Small brand-coloured TEXT (eyebrow, card numbers, links on light).
     --brand at 12-13px measures 3.35:1 on white and fails AA. Measured:
     #0B6E93 = 5.73:1 on white, 5.32:1 on --paper-warm. */
  --brand-text:   #0B6E93;
  /* Accent text on the dark bands. --teal-400 is 4.74:1 there, which passes,
     but the eyebrow renders at 12.5px so this gives it headroom (6.98:1). */
  --accent-on-dark: #5FB3C4;
  --teal-900:     #0B2027;   /* near-black surgical ground     */
  --teal-800:     #102E37;
  --teal-700:     #16414D;
  --teal-600:     #25545E;   /* deep teal from original        */
  --teal-400:     #3F93A5;   /* mid teal from original         */

  --ink:          #0D1B21;   /* body text on light             */
  --ink-soft:     #4A5C64;
  --ink-faint:    #5F7077;   /* 5.16:1 on white, 4.79:1 on --paper-warm.
                                Was #7C8E96 (3.41) — failed AA on the duration
                                chips and the wordmark pipe. */
  --paper:        #FFFFFF;
  --paper-warm:   #F4F7F8;
  --line:         #DDE6E9;
  --line-dark:    rgba(255,255,255,.14);

  --on-dark:      #EAF2F5;
  --on-dark-soft: #9DB3BC;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tight: "Inter Tight", var(--sans);

  /* Rhythm */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 9vw, 128px);
  --r: 14px;

  --shadow-sm: 0 1px 2px rgba(11,32,39,.06), 0 4px 12px rgba(11,32,39,.05);
  --shadow-md: 0 2px 6px rgba(11,32,39,.07), 0 18px 40px rgba(11,32,39,.10);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--tight); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-btn); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- brand wordmark ---------- */
/* The pipe is the brand device: re | vision, re | cordings, re | search … */
.mark { font-family: var(--tight); font-weight: 500; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: .38em; white-space: nowrap; }
/* The header logotype keeps the true brand blue — WCAG exempts logotypes.
   Everywhere else the wordmark is read as text, so it uses the AA-safe tone. */
.mark .m-re  { color: var(--brand-text); }
.brand .m-re { color: var(--brand); }
.on-dark .mark .m-re, .hero .mark .m-re, .page-head .mark .m-re,
.site-foot .mark .m-re { color: var(--accent-on-dark); }
.mark .m-bar { color: var(--ink-faint); font-weight: 400; transform: translateY(.02em); }
.mark .m-rest{ color: inherit; }
/* .hero and .page-head are dark but don't carry .on-dark — same trap as the
   eyebrow. The pipe needs the light tone on all of them. */
.on-dark .mark .m-bar, .site-foot .mark .m-bar,
.hero .mark .m-bar, .page-head .mark .m-bar { color: rgba(255,255,255,.66); }
/* MISsion Possible: the club name hides MIS (minimally invasive surgery) inside
   the word, so the rest of the word is de-emphasised to let 'MIS' read. */
.m-hi { font-weight: 400; opacity: .62; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { font-size: 1.45rem; color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--tight); font-size: .95rem; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-soft); text-decoration: none; padding: 9px 13px; border-radius: 9px;
  white-space: nowrap; transition: background .16s, color .16s;
}
.nav a:hover { background: var(--paper-warm); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-text); background: rgba(27,149,209,.09); }

.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-family: var(--tight); font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
}
.has-sub > button:hover { background: var(--paper-warm); color: var(--ink); }
.has-sub > button::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 216px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 6px; display: none;
}
.has-sub[data-open="true"] .sub, .has-sub:hover .sub { display: block; }
.sub a { display: block; padding: 9px 12px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.6px; background: var(--ink); margin-inline: auto; content: "";
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4.4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg) translateY(0); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1.6px); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gut) 24px;
    max-height: calc(100dvh - 72px); overflow: auto; display: none; box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a, .has-sub > button { font-size: 1.05rem; padding: 12px 10px; width: 100%; text-align: left; }
  .has-sub { position: static; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; border-left: 2px solid var(--line); margin: 2px 0 8px 10px; }
  .has-sub > button::after { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--tight); font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .14s, background .16s, border-color .16s, color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-btn); color: #fff; }
.btn-primary:hover { background: var(--brand-btn-hi); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-on-dark { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-on-dark:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ---------- eyebrow / section head ---------- */
.eyebrow {
  font-family: var(--tight); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-text);
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--brand); flex: none; }
/* .hero and .page-head are dark bands too, but they don't carry .on-dark —
   so they need the same accent, or the eyebrow sits at 2.93:1 on them. */
.on-dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--accent-on-dark); }
.on-dark .eyebrow::before, .hero .eyebrow::before, .page-head .eyebrow::before { background: var(--accent-on-dark); }

.lede { font-size: clamp(1.06rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.on-dark .lede { color: var(--on-dark-soft); }

section { padding-block: var(--sec); }
.sec-tight { padding-block: clamp(44px, 6vw, 80px); }
/* the first band after a page banner sits closer to it */
.page-head + section { padding-top: clamp(40px, 6vw, 72px); }
.on-dark { background: var(--teal-900); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a { color: var(--teal-400); }
/* ...but a BUTTON inside a dark band must keep its own colour. `.on-dark a`
   (0,2,0) outranks `.btn-primary` (0,1,0), which silently painted every
   dark-section CTA teal-on-blue — about 1.3:1 contrast, i.e. invisible.
   These put it back; keep them if you add new button variants. */
.on-dark a.btn-primary { color: #fff; }
.on-dark a.btn-primary:hover { color: #fff; }
.on-dark a.btn-on-dark, .on-dark a.btn-on-dark:hover { color: #fff; }
.on-dark a.btn-ghost { color: var(--ink); }
.tint { background: var(--paper-warm); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(84vh, 760px); display: grid; align-items: center; overflow: hidden; background: var(--teal-900); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,32,39,.94) 0%, rgba(11,32,39,.76) 42%, rgba(11,32,39,.35) 100%);
}
.hero-in { position: relative; padding-block: clamp(72px, 12vw, 140px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero .lede { color: var(--on-dark-soft); margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.page-head { position: relative; background: var(--teal-900); color: var(--on-dark); padding-block: clamp(56px, 9vw, 104px); overflow: hidden; }
.page-head h1 { color: #fff; }
.page-head .lede { color: var(--on-dark-soft); margin-top: 14px; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head-media { position: absolute; inset: 0; z-index: 0; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-head-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,32,39,.95) 0%, rgba(11,32,39,.78) 48%, rgba(11,32,39,.42) 100%);
}

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split.rev > :first-child { order: 2; } }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--tight); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--brand-text); display: block; margin-bottom: 14px; }

.on-dark .card { background: rgba(255,255,255,.045); border-color: var(--line-dark); box-shadow: none; }
.on-dark a.card:hover { border-color: var(--teal-400); background: rgba(255,255,255,.075); }

/* ---------- video cards ----------
   The source clips are shot on a phone in the OR: 9:16 portrait.
   The frame matches that so nothing is letterboxed.
   Playback uses a click-to-play facade — the Vimeo player is only
   injected after a click, so the page stays fast. */
.vid-grid { display: grid; gap: clamp(20px, 3vw, 30px); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vid { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.vid-frame { position: relative; aspect-ratio: 9 / 16; background: #05161C; overflow: hidden; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.vid-play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(5,22,28,.05) 0%, rgba(5,22,28,.55) 100%);
  display: grid; place-items: center;
  transition: background .2s;
}
.vid-play:hover { background: linear-gradient(180deg, rgba(5,22,28,.12) 0%, rgba(5,22,28,.65) 100%); }
.vid-play::after {
  content: ""; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.94) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230B2027'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center/26px no-repeat;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform .18s;
}
.vid-play:hover::after { transform: scale(1.08); }
.vid-body { flex: 1; }
.vid-body { padding: 18px 20px 22px; }
.vid-body h3 { font-size: 1.12rem; margin-bottom: .3em; }
.vid-body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .9em; }
.vid-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  font-family: var(--tight); font-size: .73rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-600); background: rgba(63,147,165,.13); border-radius: 999px; padding: 5px 11px;
}
.tag-dur { color: var(--ink-faint); background: var(--paper-warm); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.vid-credit { font-size: .82rem; color: var(--ink-faint); margin: 12px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filters button {
  font-family: var(--tight); font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: all .16s;
}
.filters button:hover { border-color: var(--brand); color: var(--brand-text); }
.filters button[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }

/* ---------- filmstrip gallery ----------
   Carries over the OR photo carousel from the old /video/ page.
   The nine source photos are a mix of 16:9, 4:3 and 3:4, so slides keep
   their natural aspect at a shared height — like a contact strip — rather
   than being cropped to a common box. CSS scroll-snap, no library. */
.strip-wrap { position: relative; }
.strip {
  --strip-h: clamp(240px, 38vw, 430px);
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--teal-400) transparent;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--teal-400); border-radius: 99px; }
.strip::-webkit-scrollbar-track { background: transparent; }
/* Each figure carries an inline --ar (real width/height of its image), so its
   width is computed deterministically from --strip-h. Do NOT switch this to
   `aspect-ratio` + `width:auto`: on a flex item that resolves against the
   container, every slide comes out the full container width and the strip
   stops scrolling. And do not let the image drive the width — with
   loading="lazy" the figure would be 0px, never intersect the viewport, and
   the image would never load at all. Both were live bugs here. */
.strip figure {
  margin: 0; flex: 0 0 auto; scroll-snap-align: start;
  height: var(--strip-h);
  width: calc(var(--ar, 1.5) * var(--strip-h));
  border-radius: var(--r); overflow: hidden; background: var(--teal-800);
}
.strip img { height: 100%; width: 100%; max-width: none; display: block; object-fit: cover; }

.strip-nav { display: flex; gap: 10px; margin-top: 18px; }
.strip-nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: all .16s;
}
.strip-nav button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-text); }
.strip-nav button:disabled { opacity: .35; cursor: default; }
.strip-nav button::before {
  content: ""; width: 9px; height: 9px;
  border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
}
.strip-nav button[data-dir="1"]::before { transform: rotate(-135deg); margin-right: 3px; }
.strip-nav button[data-dir="-1"]::before { transform: rotate(45deg); margin-left: 3px; }
.on-dark .strip-nav button { background: transparent; border-color: var(--line-dark); color: #fff; }
.on-dark .strip-nav button:hover:not(:disabled) { border-color: var(--teal-400); color: var(--teal-400); }

/* ---------- people ---------- */
.person { text-align: left; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); margin-bottom: 16px; background: var(--paper-warm); }
.person h3 { font-size: 1.15rem; margin-bottom: .15em; }
.person .role { font-family: var(--tight); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 .7em; }
.person p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- prose (research / resources) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: 1.2rem; }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--ink-faint); margin-top: 10px; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--brand);
  color: var(--ink-soft); font-size: 1.06rem;
}
.refs { font-size: .89rem; color: var(--ink-soft); }
.refs li { margin-bottom: .8em; }
.disclaimer { font-size: .85rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }

.authors { font-size: .95rem; color: var(--ink-soft); margin-bottom: .3em; }
.affil { font-size: .85rem; color: var(--ink-faint); }

/* Definition-style panel used on resources */
.panel { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.panel h3 { margin-top: 0; }
.panel + .panel { margin-top: 22px; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.stat .n { font-family: var(--tight); font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 600; color: var(--teal-400); line-height: 1; letter-spacing: -.03em; }
.stat .l { font-size: .93rem; color: var(--on-dark-soft); margin-top: 8px; }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-family: var(--tight); font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 7px; color: var(--on-dark); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px; padding: 13px 15px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { border-color: var(--teal-400); background: rgba(255,255,255,.1); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--on-dark-soft); margin: 0; }
.form-status { font-size: .95rem; margin: 0; min-height: 1.4em; }
.form-status[data-state="ok"]  { color: #7BD8A8; }
.form-status[data-state="err"] { color: #FF9E9E; }

/* ---------- technique chips (forum comparison cards) ---------- */
/* A chip list of the competing techniques inside a procedure card. Reuses .tag
   sizing but stays neutral, because none of these is the "right" answer. */
.vs { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.vs li {
  font-family: var(--tight); font-size: .78rem; font-weight: 500;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px;
}
.on-dark .vs li { color: var(--on-dark-soft); background: transparent; border-color: rgba(255,255,255,.22); }
.vs-note { font-size: .84rem; color: var(--ink-faint); margin: 14px 0 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding-left: 46px; margin-bottom: 26px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--tight); font-size: .85rem; font-weight: 600;
  color: var(--brand-text); background: rgba(63,147,165,.13);
}
.steps h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--paper-warm); border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px; margin: 2em 0;
}
.callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--teal-900); color: var(--on-dark-soft); padding-block: clamp(48px, 7vw, 80px) 32px; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot .brand { color: #fff; font-size: 1.5rem; }
.site-foot h4 { font-family: var(--tight); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: var(--on-dark-soft); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: .85rem; color: #8CA3AB;   /* 6.35:1 on --teal-900 (was #6E8790 = 4.42) */
}

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 18px; }
.muted { color: var(--ink-faint); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
