/* TrustedMCP stylesheet, part 1 (public site), design v2.
   Visual system: research/ui-mock/design-ref-labsmedia.md. Token contract pasted verbatim below
   from research/ui-mock/v2/tokens.css; rules use only those names.
   Fonts (Rubik, Archivo) load via a Google Fonts <link> in the head; no @font-face here.
   No left accent borders; letter grades only; light + dark; safe at 375px. */

/* ---------- Design v2 tokens (shared contract) ----------
   Source: research/ui-mock/design-ref-labsmedia.md. Every rule in public/css/app.css
   uses ONLY these names. Palette constants are --c-*; everything else is semantic.
   Rules: no left accent borders (full 4-side borders only); letter grades only;
   motion only on state change; light + dark; safe at 375px. */
:root {
  /* palette */
  --c-ink: #0a1727;
  --c-white: #ffffff;
  --c-mist: #f3f5fa;
  --c-sky: #e4e9ff;
  --c-cream: #fff4d6;
  --c-rule: #dde2ec;
  --c-fog: #c9d1de;
  --c-muted: #5a6476;
  --c-slate: #33425a;
  --c-grass: #9fe870;
  --c-forest: #163300;
  --c-periwinkle: #8da2ff;
  --c-focus: #2b45e0;
  --c-coin: #ffd27a;
  --c-berry: #fe8ec2;
  --c-poke: #ff3ea5;
  --c-error: #b42318;

  /* semantic (light) */
  --bg: var(--c-mist);
  --surface: var(--c-white);
  --surface-soft: var(--c-sky);
  --callout: var(--c-cream);
  --warn-soft: #ffe1ef;
  --text: var(--c-ink);
  --text-soft: var(--c-muted);
  --line: var(--c-ink);          /* 2px card/button borders */
  --hair: var(--c-rule);         /* 1px dividers inside cards */
  --dot: var(--c-fog);           /* dotted/dashed patterns */
  --link: var(--c-focus);
  --focus-ring: var(--c-focus);  /* focus outlines/box-shadows; periwinkle in dark (#2b45e0 is too dark on ink) */
  --shadow-c: var(--c-ink);
  --cta: var(--c-grass);
  --cta-ink: var(--c-forest);
  --seg-empty: var(--c-rule);
  --error: var(--c-error);
  --star: #f5b301;

  --grade-a: var(--c-grass);
  --grade-b: var(--c-periwinkle);
  --grade-c: var(--c-coin);
  --grade-d: var(--c-berry);
  --grade-ink: var(--c-ink);     /* text on grade chips, always dark */

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 12px;
  --sh-sm: 3px 3px 0 var(--shadow-c);
  --sh: 4px 4px 0 var(--shadow-c);
  --sh-lg: 6px 6px 0 var(--shadow-c);
  --max: 1160px;

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Archivo", "Rubik", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--c-ink);
    --surface: var(--c-slate);
    --surface-soft: #22304a;
    --callout: #3a3420;
    --warn-soft: #4a2838;
    --text: var(--c-white);
    --text-soft: #b8c2d4;
    --line: #8796b0;
    --hair: #2a3850;
    --dot: #22304a;
    --link: var(--c-periwinkle);
    --focus-ring: var(--c-periwinkle);
    --shadow-c: #000000;
    --seg-empty: #2a3850;
    --error: #ff9b91;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--c-ink);
  --surface: var(--c-slate);
  --surface-soft: #22304a;
  --callout: #3a3420;
  --warn-soft: #4a2838;
  --text: var(--c-white);
  --text-soft: #b8c2d4;
  --line: #8796b0;
  --hair: #2a3850;
  --dot: #22304a;
  --link: var(--c-periwinkle);
  --focus-ring: var(--c-periwinkle);
  --shadow-c: #000000;
  --seg-empty: #2a3850;
  --error: #ff9b91;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
/* components that never underline: keep keyboard focus matching hover */
.btn:focus-visible, .logo:focus-visible, .site-nav a:focus-visible, .card:focus-visible, .post-card:focus-visible { text-decoration: none; }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
/* always-dark bands: the light-mode ring (#2b45e0) is too dark on ink there too */
.site-footer, .stat-band, .cta-band { --focus-ring: var(--c-periwinkle); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--c-grass); color: var(--c-ink); }
.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; }

code, pre, kbd, samp { font-family: var(--font-mono); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
/* heading look for sidebar titles that aren't part of the outline */
.aside-heading { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--text); overflow-wrap: break-word; }
h4 { font-size: 1rem; }

p { margin: 0 0 16px; }
.lede { color: var(--text-soft); font-size: 1.12rem; line-height: 1.55; }

.crumb { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 12px; }
.crumb a { color: var(--text-soft); text-decoration: underline; text-decoration-color: var(--dot); text-underline-offset: 3px; }
.crumb a:hover, .crumb a:focus-visible { color: var(--text); text-decoration-color: currentColor; }
.guide-byline { margin: -4px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.meta { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Patterns (dots, dashed strip, eyebrow, HUD, chips) ---------- */
.dots {
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
}
.dash-rule {
  display: block;
  height: 8px;
  border: 0;
  margin: 40px 0;
  background: linear-gradient(90deg, var(--line) 0 28px, transparent 28px 44px) 0 2px / 44px 4px repeat-x;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.78rem/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c-grass);
  border: 2px solid var(--line);
}
.hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.85rem/1 var(--font-mono);
  background: var(--c-coin);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--shadow-c);
  white-space: nowrap;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.875rem/1 var(--font);
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.chip:hover { background: var(--surface-soft); }
.chip:active { transform: translate(2px, 2px); }
.chip[aria-pressed="true"] { background: var(--c-grass); color: var(--c-forest); border-color: var(--c-ink); box-shadow: 2px 2px 0 var(--shadow-c); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 12px 20px;
  border-radius: var(--r);
  font: 700 0.95rem/1 var(--font);
  border: 2px solid var(--c-ink);
  box-shadow: var(--sh);
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  cursor: pointer;
}
.btn:hover { color: var(--cta-ink); text-decoration: none; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-c); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-ghost, .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); } /* one secondary style */
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-soft); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); text-decoration: none; }
.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--c-grass);
  color: var(--c-forest);
  border: 2px solid var(--c-ink);
  box-shadow: 2px 2px 0 var(--shadow-c);
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo-mark svg { width: 18px; height: 18px; stroke-width: 2.2; }
.logo-text { font: 800 1.15rem/1 var(--font-head); letter-spacing: -0.01em; }
.logo-text strong { font-weight: 800; color: var(--link); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
}
.site-nav a:hover { background: var(--surface-soft); border-color: var(--line); color: var(--text); text-decoration: none; }
.site-nav a.is-current { color: var(--text); background: var(--surface-soft); border-color: var(--line); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: 10px 14px; box-shadow: var(--sh-sm); }
.header-actions .btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.site-nav .site-nav-cta { display: none; } /* full-width copy of the header CTA, mobile menu only */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  flex: none;
}
.nav-toggle:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Section rhythm ---------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-soft); }
.note { color: var(--text-soft); margin-top: 24px; font-size: 0.95rem; }
.note a { text-decoration: underline; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  flex: none;
}
.icon-badge svg { width: 20px; height: 20px; stroke-width: 2; }
.icon-badge.gold { background: var(--c-coin); color: var(--c-ink); border-color: var(--c-ink); }

/* ---------- Home: hero + picker ---------- */
.hero { padding: 56px 0 64px; border-bottom: 2px solid var(--line); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.8rem); max-width: 16ch; }
.hero .lede { font-size: 1.2rem; max-width: 50ch; margin-bottom: 24px; }

.picker { box-shadow: var(--sh); border-radius: var(--r); gap: 0; min-width: 0; }
.picker .picker-title { font-size: 1.25rem; margin: 0 0 6px; }
.picker .picker-hint { color: var(--text-soft); font-size: 0.92rem; margin: 0 0 14px; flex: none; }
.picker .picker-verdict { font: 800 1.1rem/1.3 var(--font-head); color: var(--text); margin: 16px 0 0; flex: none; }
.picker .picker-build { margin: 6px 0 0; font-weight: 700; font-size: 0.95rem; flex: none; }
.picker .picker-build[hidden] { display: none; }
.picker .picker-build a { text-decoration: underline; text-underline-offset: 3px; }
.picker-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.picker-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}
.picker-list .picker-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.picker-list .picker-server { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.picker-list .picker-server:hover { text-decoration-color: currentColor; }
.picker-list .grade-chip { flex: none; }
/* per-server meter + the one thing to fix */
.picker-meter { display: inline-flex; align-items: center; }
.picker-fix { font-size: 0.86rem; line-height: 1.4; color: var(--text-soft); overflow-wrap: anywhere; }
.picker-fix strong { color: var(--text); font-weight: 700; }
.picker-fix.is-clear { color: var(--text); }
/* footer: no-JS fallback link + share */
.picker-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; font-size: 0.92rem; }
.picker-foot .picker-all { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.picker-share {
  font: 700 0.9rem/1.2 var(--font);
  padding: 6px 10px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.picker-share:hover { background: var(--surface-soft); }
.picker-share:focus-visible, .picker-remove:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.picker-share[hidden] { display: none; }
.picker-share-status { color: var(--text-soft); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.picker-share-status:empty { display: none; }
.picker-remove {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font: 700 1.1rem/1 var(--font);
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.picker-remove:hover { background: var(--surface-soft); }

/* search box + match list (JS reveals .picker-search) */
.picker-search { position: relative; margin: 0 0 4px; }
.picker-search[hidden] { display: none; }
.picker-input {
  display: block;
  width: 100%;
  font: 500 1rem/1.2 var(--font);
  padding: 11px 14px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
}
.picker-input::placeholder { color: var(--text-soft); opacity: 1; }
.picker-input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.picker-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh);
}
.picker-options[hidden] { display: none; }
.picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.picker-option:hover, .picker-option.is-active { background: var(--surface-soft); }
.picker-option.is-active { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.picker-option .grade-chip { box-shadow: none; flex: none; }
.picker-option-name { min-width: 0; overflow-wrap: anywhere; }
.picker-empty { padding: 8px 10px; color: var(--text-soft); font-size: 0.92rem; }
.picker .picker-sub { font: 700 0.74rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin: 14px 0 8px; flex: none; }
.picker-popular .chip { font-size: 0.82rem; padding: 7px 11px; }

/* hero stats line: each stat is its own unbreakable item */
.hero-stats { margin: 22px 0 0; color: var(--text-soft); font-size: 0.95rem; font-weight: 600; }
.hero-stats .hero-stat { display: inline-block; white-space: nowrap; }
.hero-stats strong { color: var(--text); font-family: var(--font-mono); }

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: flex; flex-direction: column; gap: 4px; }
  .hero-stats .hero-stat-sep { display: none; }
  .picker-list li { flex-wrap: wrap; gap: 10px; }
}

/* "full stack check" link on the home card (href follows the pick) */
.picker-foot .picker-full { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- /check: the standalone stack check (same picker partial) ---------- */
.check-tool { padding-top: 8px; }
.picker-page { max-width: 760px; }
.picker-page .picker-label { display: block; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.picker-page .picker-verdict { font-size: 1.25rem; }
.picker-alts { margin: 4px 0 0; width: 100%; font-size: 0.88rem; }
.picker .picker-alts .picker-alts-lead { margin: 0 0 6px; font-weight: 700; color: var(--text); font-size: 0.88rem; flex: none; }
.picker-alts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.picker-alts li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.picker-alts .grade-chip { flex: none; box-shadow: none; }
.picker-alt-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.picker-alt-text a { font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.picker-alt-sum { color: var(--text-soft); line-height: 1.4; overflow-wrap: anywhere; }
.check-note { max-width: 760px; margin: 16px 0 0; color: var(--text-soft); font-size: 0.92rem; }
.check-note a { font-weight: 600; }
.page-header-link { margin: 10px 0 0; font-weight: 700; }

/* ---------- Home: steps (Find, Check, Run) ---------- */
.steps-band { border-bottom: 2px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: flex; }
.steps li .card { flex: 1; }
.steps .card .card-arrow + .card-arrow { margin-top: 6px; }
.steps li .card::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  font: 800 1.1rem/1 var(--font-head);
  background: var(--c-coin);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--shadow-c);
}

/* ---------- Home: one-column statement ---------- */
.home-intro { padding: 56px 0 40px; border-bottom: 2px solid var(--line); }
.home-intro h1 { max-width: 760px; margin-bottom: 16px; }
.home-intro .lede { max-width: 620px; margin-bottom: 20px; }
.home-intro .aggregate { color: var(--text-soft); font-size: 0.95rem; font-weight: 600; margin-bottom: 24px; }
.home-intro .aggregate strong { color: var(--text); font-family: var(--font-mono); }

/* ---------- Stat band ---------- */
.stat-band { background: var(--c-ink); color: var(--c-white); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.stat-band h2 { color: var(--c-white); }
.stat-band .section-head p { color: var(--c-fog); }
.stat-band .note { color: var(--c-fog); }
.stat-band .note a { color: var(--c-periwinkle); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  background: transparent;
  border: 2px solid var(--c-white);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--c-slate);
  padding: 20px;
}
.stat strong { display: block; font: 800 2rem/1 var(--font-head); color: var(--c-grass); margin-bottom: 10px; }
.stat span { font-size: 0.9rem; color: var(--c-fog); line-height: 1.45; }

/* ---------- Category cards ---------- */
.services-grid {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
  border-bottom: 2px solid var(--line);
}
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  color: var(--text);
  box-shadow: var(--sh);
  min-width: 0;
}
.card:hover { color: var(--text); text-decoration: none; }
a.card { transition: transform 0.08s ease, box-shadow 0.08s ease; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
a.card:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.card .icon-badge { margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-soft); font-size: 0.94rem; margin: 0; flex: 1; }
.card .card-arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--link); }
.card .card-arrow svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.filter-bar input[type="search"] { flex: 1 1 220px; }
.filter-bar select { flex: 0 1 auto; }
.filter-bar input, .filter-bar select {
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 12px;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--focus-ring); box-shadow: 3px 3px 0 var(--focus-ring); outline: none; }
.filter-bar button { align-self: stretch; }
.filter-bar .btn { box-shadow: var(--sh-sm); padding: 10px 18px; }
@media (max-width: 640px) {
  .filter-bar { flex-direction: column; gap: 12px; padding: 14px; }
  .filter-bar input, .filter-bar input[type="search"], .filter-bar select, .filter-bar .btn { flex: none; width: 100%; font-size: 1rem; }
  .filter-bar .btn { padding: 12px 18px; }
}
.filter-empty { color: var(--text-soft); padding: 24px 0; }

/* ---------- Directory table ---------- */
.dir-table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); }
.dir-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
.dir-table th, .dir-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.dir-table thead th {
  font: 700 0.74rem/1.2 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-white);
  background: var(--c-ink);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.dir-table thead th a { color: var(--c-white); display: inline-flex; align-items: center; gap: 5px; }
.dir-table thead th a:hover, .dir-table thead th a:focus-visible { color: var(--c-grass); text-decoration: none; }
.dir-table thead th[aria-sort] a { color: var(--c-grass); }
.dir-table thead th .sort-caret { font-size: 0.7rem; }
.dir-table tbody tr:last-child td { border-bottom: 0; }
.dir-table tbody tr:hover td { background: var(--surface-soft); }
.dir-table .cell-server { font-weight: 700; color: var(--text); }
.dir-table .cell-server small { display: block; margin-top: 2px; color: var(--text-soft); font-weight: 400; font-size: 0.84rem; }
.dir-table .cell-server a { color: var(--text); }
.dir-table .cell-server a:hover { color: var(--link); }
.dir-table td.cell-num { white-space: nowrap; font-family: var(--font-mono); font-size: 0.85rem; }
.dir-table td.cell-num .stars-sm, .dir-table td.cell-num .meta { font-family: var(--font); }
.dir-table .cell-cat a { color: var(--text-soft); text-decoration: none; }
.dir-table .cell-cat a:hover { color: var(--text); }
.dir-table .cell-vendor { display: none; }
.dir-table td.cell-grade { width: 1%; }
/* links inside tables: underline only on hover / keyboard focus (prose links in .content stay underlined) */
.dir-table tbody a:hover,
.dir-table tbody a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.dir-table a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
.dir-table thead th a:focus-visible { outline-color: var(--c-grass); }

/* ---------- Pills / tags ---------- */
.tag {
  display: inline-block;
  font: 700 0.74rem/1 var(--font);
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  color: var(--text);
  border: 2px solid var(--line);
  white-space: nowrap;
}
.tag-auth-yes { background: var(--grade-a); color: var(--grade-ink); border-color: var(--c-ink); }
.tag-auth-optional { background: var(--grade-c); color: var(--grade-ink); border-color: var(--c-ink); }
.tag-auth-no { background: var(--grade-d); color: var(--grade-ink); border-color: var(--c-ink); }
.tag-cve { background: var(--grade-d); color: var(--grade-ink); border-color: var(--c-ink); }

/* ---------- Trust badge / grade chip ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--sh-sm);
  flex: none;
}
.trust-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 2px solid var(--c-ink);
  font: 800 1rem/1 var(--font-head);
  color: var(--grade-ink);
  background: var(--seg-empty);
  flex: none;
}
.trust-label { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.grade-a .trust-grade, .trust-grade.grade-a { background: var(--grade-a); }
.grade-b .trust-grade, .trust-grade.grade-b { background: var(--grade-b); }
.grade-c .trust-grade, .trust-grade.grade-c { background: var(--grade-c); }
.grade-d .trust-grade, .trust-grade.grade-d { background: var(--grade-d); }
.grade-none .trust-grade, .trust-grade.grade-none { background: var(--seg-empty); color: var(--text); border-color: var(--line); }
/* the badge wrapper itself stays a neutral surface; colour lives on the letter */
.trust-badge.grade-a, .trust-badge.grade-b, .trust-badge.grade-c, .trust-badge.grade-d, .trust-badge.grade-none { background: var(--surface); border-color: var(--line); }
/* bare letter chip (in table cells) */
.grade-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* same letter size as .trust-grade */
  height: 32px;
  border-radius: var(--r-sm);
  border: 2px solid var(--c-ink);
  box-shadow: 2px 2px 0 var(--shadow-c);
  font: 800 1rem/1 var(--font-head);
  color: var(--grade-ink);
}
.grade-chip.grade-a { background: var(--grade-a); }
.grade-chip.grade-b { background: var(--grade-b); }
.grade-chip.grade-c { background: var(--grade-c); }
.grade-chip.grade-d { background: var(--grade-d); }
.grade-chip.grade-none { background: var(--seg-empty); color: var(--text); border-color: var(--line); box-shadow: none; }

/* ---------- Trust meter (4 checks) ---------- */
/* segment colours match the signal rows: full = grass, part = coin, empty = berry; ink border always */
.meter { display: inline-flex; gap: 4px; vertical-align: middle; flex: none; }
.meter .meter-seg {
  position: relative;
  display: block;
  width: 20px;
  height: 12px;
  border: 2px solid var(--c-ink);
  border-radius: 3px;
  background: var(--seg-empty);
  overflow: hidden;
}
.meter .meter-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
}
.meter .meter-seg.full::after { background: var(--c-grass); }
.meter .meter-seg.part::after { background: var(--c-coin); }
.meter .meter-seg.empty::after { background: var(--c-berry); }
/* fill animation only when JS is running (html.js); without JS the state shows at once */
html.js .meter .meter-seg::after { transform: scaleX(0); transition: transform 0.3s ease-out; }
html.js .meter.filled .meter-seg::after { transform: scaleX(1); }
html.js .meter.filled > :nth-child(2)::after, html.js .meter.filled > :nth-child(2) .meter-seg::after { transition-delay: 0.08s; }
html.js .meter.filled > :nth-child(3)::after, html.js .meter.filled > :nth-child(3) .meter-seg::after { transition-delay: 0.16s; }
html.js .meter.filled > :nth-child(4)::after, html.js .meter.filled > :nth-child(4) .meter-seg::after { transition-delay: 0.24s; }
/* large meter (server page): each segment labelled underneath */
.meter.meter-lg { display: inline-grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.meter-lg .meter-item { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; cursor: help; }
.meter-lg .meter-seg { width: 100%; min-width: 56px; height: 16px; border-radius: 4px; }
.meter-lg .meter-lab { font-size: 0.72rem; font-weight: 700; line-height: 1.2; color: var(--text-soft); text-align: center; }
.meter-count { display: inline-block; vertical-align: middle; font: 700 0.82rem/1 var(--font-mono); color: var(--text); margin-left: 8px; }
/* platform-terms cap label under the meter (TRUST-RUBRIC "Platform terms"): plain tag, no accent edge */
.tag-risk { background: var(--grade-c); color: var(--grade-ink); border-color: var(--c-ink); }
.meter-risk { display: block; margin-top: 6px; line-height: 1; }
.server-grade .meter-risk { margin-top: 0; }
.picker-meter { flex-wrap: wrap; row-gap: 6px; }
.picker-meter .meter-risk { flex-basis: 100%; margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .meter .meter-seg::after, html.js .meter.filled .meter-seg::after { transition: none; transform: none; }
}

/* ---------- Stars ---------- */
.stars, .stars-sm { display: inline-flex; align-items: center; gap: 2px; line-height: 1; vertical-align: middle; }
.stars svg, .stars-sm svg { fill: transparent; stroke: var(--star); stroke-width: 1.8; stroke-linejoin: round; }
.stars svg { width: 18px; height: 18px; }
.stars-sm svg { width: 14px; height: 14px; }
.stars svg.is-on, .stars-sm svg.is-on { fill: var(--star); }
.stars-value { margin-left: 6px; font: 700 0.88rem/1 var(--font-mono); color: var(--text); }
.stars-count { margin-left: 4px; color: var(--text-soft); font-weight: 600; font-size: 0.85rem; }

/* ---------- Server page header ---------- */
.server-header .server-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.server-header .server-head-row > div { min-width: 0; }
.server-header .lede { max-width: 620px; }
/* one-paragraph verdict under the lede (M8.3): plain bordered card, no accent edge */
.server-header .server-verdict { max-width: 620px; margin: 16px 0 0; padding: 12px 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); color: var(--text); font-size: 0.98rem; line-height: 1.6; overflow-wrap: break-word; }
.server-header .server-verdict strong { font-weight: 700; }
.server-header .trust-badge { padding: 6px 16px 6px 6px; box-shadow: var(--sh); }
.server-header .server-grade { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.meter-caption { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.meter-caption .meter-caption-count { font: 700 0.9rem/1 var(--font-mono); color: var(--text); }
.meter-caption a { color: var(--link); text-decoration: underline; }
.meter-caption a:hover { color: var(--link); }
.cell-meter { white-space: nowrap; }
@media (max-width: 860px) { .server-header .server-grade { align-items: flex-start; } }
.server-header .trust-badge .trust-grade { width: 48px; height: 48px; font-size: 1.5rem; border-radius: var(--r-sm); }
.server-header .trust-badge .trust-label { font-size: 1rem; }
.server-header .meter-lg { margin-top: 4px; }
.server-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.server-actions .btn svg { width: 16px; height: 16px; }

/* ---------- Spec grid ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.spec {
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  min-width: 0;
}
.spec-k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.spec-v { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.spec-v.tag-auth-yes, .spec-v.tag-auth-no, .spec-v.tag-auth-optional { display: inline-block; align-self: flex-start; padding: 2px 10px; border: 2px solid var(--c-ink); border-radius: var(--r-sm); }
.spec-warn { color: var(--error); }

/* ---------- Two panels: editorial + community ---------- */
.server-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; margin: 8px 0 32px; }
.trust-panel, .community-panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 22px;
  min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-head .trust-badge { box-shadow: none; padding: 0; border: 0; background: transparent; }
.panel-note { font-size: 0.85rem; color: var(--text-soft); margin: 16px 0 0; }
.panel-note a { text-decoration: underline; }
.risk-note { margin: 14px 0 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--callout); color: var(--text); font-size: 0.9rem; line-height: 1.5; overflow-wrap: break-word; }
.risk-note .tag { margin-right: 6px; vertical-align: 1px; }
.risk-note a { color: var(--link); text-decoration: underline; }

/* signal rows: no left accent border; state colour on the icon tile + value */
.signal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.signal-row:last-of-type { border-bottom: 0; }
.signal-row .signal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  color: var(--text);
  flex: none;
}
.signal-row .signal-icon svg { width: 18px; height: 18px; stroke-width: 2; }
/* same three colours as the meter segments: good = grass, part = coin, warn = berry */
.signal-row.is-good .signal-icon { background: var(--c-grass); color: var(--grade-ink); border-color: var(--c-ink); }
.signal-row.is-part .signal-icon { background: var(--c-coin); color: var(--grade-ink); border-color: var(--c-ink); }
.signal-row.is-warn .signal-icon { background: var(--c-berry); color: var(--grade-ink); border-color: var(--c-ink); }
.signal-row .signal-body { min-width: 0; display: flex; flex-direction: column; }
.signal-row .signal-k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.signal-row .signal-v { font-weight: 700; font-size: 0.95rem; color: var(--text); overflow-wrap: anywhere; }
.signal-row.is-warn .signal-v { color: var(--error); }

/* ---------- Community summary ---------- */
.community-panel .community-headline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.community-panel .community-average { font: 800 2.4rem/1 var(--font-head); letter-spacing: -0.02em; color: var(--text); }
.community-panel .community-outof { color: var(--text-soft); font: 700 0.9rem/1 var(--font-mono); }
.community-panel .community-count { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }
.community-empty { color: var(--text-soft); font-size: 0.95rem; }

.dist-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dist-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font: 600 0.82rem/1.2 var(--font-mono); color: var(--text-soft); }
.dist-bar { position: relative; display: block; height: 12px; border-radius: 3px; border: 2px solid var(--line); background: var(--seg-empty); overflow: hidden; }
.dist-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--c-coin); }

.subrating-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.subrating-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.subrating-row .dist-bar > span { background: var(--c-periwinkle); }

.trust-split { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 0.8rem; font-weight: 700; }
.trust-split span { padding: 4px 10px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--surface-soft); color: var(--text); }
.trust-split .ts-yes { background: var(--grade-a); color: var(--grade-ink); border-color: var(--c-ink); }
.trust-split .ts-caveats { background: var(--grade-c); color: var(--grade-ink); border-color: var(--c-ink); }
.trust-split .ts-no { background: var(--grade-d); color: var(--grade-ink); border-color: var(--c-ink); }

/* ---------- How to connect: tabs ---------- */
.connect-section { margin: 8px 0 32px; min-width: 0; }
.connect-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.connect-tab {
  font: 700 0.88rem/1 var(--font);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.connect-tab:hover { background: var(--surface-soft); }
.connect-tab:active { transform: translate(2px, 2px); }
.connect-tab.is-active {
  color: var(--c-white);
  background: var(--c-ink);
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--shadow-c);
}
.connect-panel {
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  background: var(--c-ink);
}
.connect-panel pre {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-sky);
  padding: 16px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
}
.connect-panel code { font-family: var(--font-mono); background: none; border: 0; padding: 0; color: inherit; }

/* ---------- Install block ---------- */
.install-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; min-width: 0; }
.install-block code {
  display: block;
  background: var(--c-ink);
  color: var(--c-sky);
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  font-size: 0.86rem;
  overflow-x: auto;
  font-family: var(--font-mono);
}
.score-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-top: 18px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--line) 0 18px, transparent 18px 28px) 0 0 / 28px 2px repeat-x;
}

/* ---------- Reviews ---------- */
.reviews-section { margin-top: 8px; }
.reviews-section > h2 { margin-bottom: 8px; }
.review-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.review-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px;
  min-width: 0;
}
.review-card .review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.review-card .review-title { font: 800 1.05rem/1.3 var(--font-head); margin: 6px 0 4px; }
.review-card .review-meta { font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.review-card .review-meta strong { color: var(--text); }
.review-card .review-body { color: var(--text); font-size: 0.95rem; margin: 8px 0 0; overflow-wrap: anywhere; }
.review-card .review-usedfor { font-size: 0.85rem; color: var(--text-soft); margin-top: 10px; }
.review-card .review-subratings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.review-card .review-subratings span { font-size: 0.76rem; font-weight: 700; padding: 4px 9px; border-radius: var(--r-sm); border: 2px solid var(--line); background: var(--surface-soft); color: var(--text); }

.review-form {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 24px;
  margin-top: 20px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.review-form h3 { margin: 0; }
.review-form .form-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.88rem; }
.review-form input, .review-form select, .review-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 3px 3px 0 var(--focus-ring); }
.review-form input[type="radio"], .review-form input[type="checkbox"] { width: auto; accent-color: var(--c-focus); box-shadow: none; }
.review-form textarea { min-height: 120px; resize: vertical; }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-form button { justify-self: start; }
.review-form .form-error { color: var(--error); font-size: 0.85rem; font-weight: 600; }
.reviews-closed-note {
  color: var(--text);
  font-size: 0.95rem;
  background: var(--callout);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  padding: 16px 18px;
  margin-top: 16px;
}

/* ---------- Post row (guides) ---------- */
.post-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.post-card:hover { color: var(--text); text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.post-card:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.post-card .post-eyebrow { font: 700 0.74rem/1.2 var(--font-mono); color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { margin: 0; font-size: 1.08rem; color: var(--text); }
.post-card p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.post-row-list { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.post-card .card-arrow { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--link); }
.post-card .card-arrow svg { width: 14px; height: 14px; stroke-width: 2.2; }
/* Rendered image across the top of a guide/category card, flush with the card border */
.card-thumb { display: block; margin: -20px -20px 6px; }
.card-thumb img { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--line); border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; background: var(--surface); }
.card.has-thumb .card-thumb { margin-bottom: 14px; }

.latest.alt { background: var(--surface-soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.latest .section-head { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; }
.latest .section-head .lede { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; color: var(--link); }
.link-arrow svg { width: 15px; height: 15px; stroke-width: 2.2; }

/* ---------- Newsletter ---------- */
.newsletter {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
  border-top: 2px solid var(--line);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 28px 48px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--sh);
}
.newsletter-copy { min-width: 0; }
.newsletter-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 0.78rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.newsletter-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--c-sky); color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: var(--r-sm); box-shadow: 2px 2px 0 var(--shadow-c); }
.newsletter-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.newsletter-inner h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); margin-bottom: 6px; }
.newsletter-inner p { color: var(--text-soft); margin: 0; }
.newsletter-topics { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-topics li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; font-weight: 600; font-size: 0.85rem; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); }
.newsletter-topics .dot { width: 10px; height: 10px; border: 2px solid var(--c-ink); border-radius: 50%; }
.dot-berry { background: var(--c-berry); } .dot-coin { background: var(--c-coin); } .dot-grass { background: var(--c-grass); }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.newsletter-label { font-weight: 700; font-size: 0.88rem; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row .btn { flex: none; }
.newsletter-form input {
  font: inherit;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}
.newsletter-form input:focus { outline: none; border-color: var(--line); box-shadow: 3px 3px 0 var(--focus-ring); }
.newsletter-inner .newsletter-note { font-size: 0.8rem; }
.newsletter-inner .newsletter-eyebrow { color: var(--text); }
@media (max-width: 860px) {
  .newsletter-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { justify-content: center; }
}
.newsletter-done { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); margin: 0; }
.newsletter-done svg { width: 22px; height: 22px; padding: 2px; flex: none; background: var(--c-grass); color: var(--c-forest); border: 2px solid var(--c-ink); border-radius: 50%; stroke-width: 2.6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--c-ink);
  color: var(--c-white);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 6px 6px 0 var(--c-grass);
  margin: 0 24px;
  padding: 48px 40px;
}
.cta-band .wrap { max-width: var(--max); padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--c-white); margin-bottom: 8px; }
.cta-band p { color: var(--c-fog); margin: 0; max-width: 460px; }
.cta-band .btn { background: var(--c-grass); color: var(--c-forest); border-color: var(--c-white); box-shadow: 4px 4px 0 var(--c-periwinkle); }
.cta-band .btn:hover { color: var(--c-forest); box-shadow: 5px 5px 0 var(--c-periwinkle); }
.cta-band .btn:active { box-shadow: 0 0 0 var(--c-periwinkle); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-fog); border-top: 2px solid var(--line); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand .logo { margin-bottom: 14px; color: var(--c-white); }
.footer-brand .logo-text strong { color: var(--c-grass); }
.footer-brand p { color: var(--c-fog); font-size: 0.92rem; max-width: 280px; }
.footer-col h2 { font: 700 0.8rem/1.2 var(--font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-grass); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--c-white); font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--c-white); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  background: linear-gradient(90deg, var(--c-slate) 0 20px, transparent 20px 32px) 0 0 / 32px 2px repeat-x;
  color: var(--c-fog);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--c-periwinkle); }
.footer-bottom a:hover { color: var(--c-periwinkle); }

/* ---------- Page header / listing / single ---------- */
.page-header {
  padding: 48px 0 32px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 12px 12px;
  border-bottom: 2px solid var(--line);
}
.page-header h1 { max-width: 760px; }
.page-header--guide h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); max-width: 24ch; line-height: 1.15; }
.page-header .content { color: var(--text-soft); max-width: 680px; }
.page-header .content a { text-decoration: underline; }
.guide-hero { display: block; max-width: 760px; margin-top: 24px; }
.guide-hero img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 2px solid var(--line); box-shadow: var(--sh); background: var(--surface); }
/* guide pages: hero opens the content column, beside the aside */
.guide-layout > .content > .guide-hero { max-width: none; margin: 0 0 28px; }
.listing { padding-top: 32px; padding-bottom: 64px; }

.single { padding: 40px 0 64px; }
.single .content { max-width: 720px; font-size: 1.04rem; overflow-wrap: break-word; }
.single .content a { text-decoration: underline; }
.single .content h2 {
  margin-top: 40px;
  padding-top: 18px;
  background: linear-gradient(90deg, var(--line) 0 18px, transparent 18px 28px) 0 0 / 28px 3px repeat-x;
}
.single .content h2[id] { scroll-margin-top: 96px; }
.single .content > :first-child { margin-top: 0; }
.single .content h3 { margin-top: 28px; }
.single .content ul, .single .content ol { padding-left: 22px; color: var(--text); }
.single .content li { margin-bottom: 8px; }
.single .content li::marker { color: var(--text-soft); font-weight: 700; }
.single .content strong { color: var(--text); }
.single .content blockquote { margin: 24px 0; padding: 16px 20px; background: var(--callout); border: 2px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.single .content blockquote p:last-child { margin-bottom: 0; }
.single .content hr { height: 8px; border: 0; margin: 36px 0; background: linear-gradient(90deg, var(--line) 0 28px, transparent 28px 44px) 0 2px / 44px 4px repeat-x; }
.single .content img { border: 2px solid var(--line); border-radius: var(--r); }
.single .content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; border: 2px solid var(--line); background: var(--surface); }
.single .content th, .single .content td { text-align: left; padding: 10px 12px; border: 1px solid var(--hair); vertical-align: top; }
.single .content th { background: var(--surface-soft); font-weight: 700; }
.single .content pre {
  background: var(--c-ink);
  color: var(--c-sky);
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}
.single .content pre code { background: none; border: 0; padding: 0; color: inherit; }

/* Copy button on code blocks (added by app.js to every <pre> in main) */
.code-wrap { position: relative; }
.single .content .code-wrap { margin: 0 0 16px; }
.single .content .code-wrap pre { margin: 0; }
.code-wrap pre, .single .content .code-wrap pre { padding-right: 88px; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font: 700 0.75rem/1 var(--font); padding: 7px 10px; cursor: pointer;
  background: var(--c-white); color: var(--c-ink); border: 2px solid var(--c-ink); border-radius: var(--r-sm);
  box-shadow: 2px 2px 0 var(--c-sky); opacity: 0.92;
}
.copy-btn:hover { opacity: 1; background: var(--c-sky); }
.copy-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; opacity: 1; }
.copy-btn.is-done { background: var(--c-grass); color: var(--c-forest); }
/* narrow screens: long lines scroll under the button, so start the code below it */
@media (max-width: 640px) { .code-wrap pre, .single .content .code-wrap pre { padding-top: 46px; } }
.single .content code { font-size: 0.9em; font-family: var(--font-mono); }
.single .content :not(pre) > code { background: var(--surface-soft); border: 1px solid var(--hair); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

.related-listing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.related-listing-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.related-listing-head .grade-chip { flex: none; }
.related-listing .aside-heading { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.related-listing p { color: var(--text-soft); margin: 0; font-size: 0.9rem; }
.related-listing .post-eyebrow { font: 700 0.74rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }

.cta-box {
  margin-top: 40px;
  padding: 28px;
  background: var(--callout);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  max-width: 720px;
}
.cta-box h3 { margin-top: 0; }
.cta-box p { color: var(--text-soft); }

/* Guide show: content + aside (related listing and compact CTA in normal flow, then a sticky TOC).
   <=960px: collapsible TOC above the article, listing + CTA after it. */
.guide-layout { display: grid; grid-template-columns: minmax(0, 72ch) 280px; justify-content: space-between; gap: 48px; align-items: start; }
.guide-layout > .content { max-width: 72ch; min-width: 0; }
.guide-aside {
  align-self: stretch; /* full row height so the sticky TOC can travel with the article */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.guide-aside-title { margin: 0 0 10px; font: 700 0.74rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.guide-toc { position: sticky; top: 96px; padding: 16px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
/* list capped at roughly 8 entries; longer TOCs scroll inside the list, the card stays put */
.guide-toc ol, .guide-toc-mobile ol { list-style: none; margin: 0; padding: 3px; display: flex; flex-direction: column; gap: 2px; }
.guide-toc ol { max-height: min(17.5rem, calc(100vh - 180px)); overflow-y: auto; overscroll-behavior: contain; }
.guide-toc li, .guide-toc-mobile li { margin: 0; }
.guide-toc a, .guide-toc-mobile a { display: block; padding: 6px 8px; border-radius: var(--r-sm); color: var(--text); font-size: 0.9rem; line-height: 1.35; text-decoration: none; }
.guide-toc a:hover, .guide-toc a:focus-visible,
.guide-toc-mobile a:hover, .guide-toc-mobile a:focus-visible { background: var(--surface-soft); color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.guide-toc-mobile { display: none; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm); max-width: 720px; }
.guide-toc-mobile summary { cursor: pointer; padding: 12px 16px; font: 700 0.8rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.guide-toc-mobile summary:hover, .guide-toc-mobile summary:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.guide-toc-mobile[open] summary { border-bottom: 1px solid var(--hair); }
.guide-toc-mobile nav { padding: 8px 10px 12px; }
.guide-aside .cta-box { margin-top: 0; padding: 18px; max-width: none; }
.guide-aside .cta-box .aside-heading { margin: 0 0 8px; font-size: 1.05rem; }
.guide-aside .cta-box p { font-size: 0.9rem; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .guide-aside { align-self: start; max-width: 720px; }
  .guide-toc { display: none; } /* the <details> copy above the article takes over */
  .guide-toc-mobile { display: block; }
}

/* ---------- Lead form (contact / submit) ---------- */
.lead-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-top: 28px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.88rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 14px;
  width: 100%;
  min-width: 0;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--focus-ring); box-shadow: 3px 3px 0 var(--focus-ring); }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form button { align-self: flex-start; margin-top: 6px; }

/* ---------- Build inquiry (/contact) ---------- */
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.inquiry-form { max-width: 680px; margin-top: 0; gap: 22px; }
.inquiry-step { border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh); padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inquiry-step legend { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; font: 800 1.05rem/1.2 var(--font-head); color: var(--text); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--c-ink); border-radius: 50%; background: var(--c-coin); color: var(--c-ink); font: 800 0.9rem/1 var(--font-head); }
.inquiry-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form .hint { font-weight: 400; font-size: 0.85rem; color: var(--text-soft); }
.inquiry-form .optional { font-weight: 500; font-size: 0.78rem; color: var(--text-soft); text-transform: lowercase; }
.inquiry-form textarea::placeholder, .inquiry-form input::placeholder { color: var(--text-soft); opacity: 0.8; }
/* Inline validation: native constraints, shown only after the user has interacted. */
.inquiry-form input:user-invalid, .inquiry-form textarea:user-invalid { border-color: var(--error); box-shadow: 3px 3px 0 var(--error); }
.inquiry-form .has-error input, .inquiry-form .has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; font-size: 0.85rem; }
.inquiry-errors { border: 2px solid var(--line); border-radius: var(--r); background: var(--warn-soft); color: var(--text); padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--sh-sm); }
.chip-group { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chip-legend { margin: 0 0 8px; padding: 0; font-weight: 700; font-size: 0.88rem; }
.lead-form .chip-radio { display: inline-flex; flex-direction: row; gap: 0; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.lead-form .chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; box-shadow: none; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); }
.chip-radio:hover span { background: var(--surface-soft); }
.chip-radio:has(input:checked) span, .chip-radio input:checked + span { background: var(--c-grass); color: var(--c-forest); border-color: var(--c-ink); box-shadow: 2px 2px 0 var(--shadow-c); }
.chip-radio:has(input:focus-visible) span, .chip-radio input:focus-visible + span { outline: 3px solid var(--focus-ring, var(--c-focus)); outline-offset: 2px; }
.inquiry-form > .btn { align-self: flex-start; }
.inquiry-done h2 { margin-bottom: 8px; }
.inquiry-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.inquiry-aside-title { font-size: 1.15rem; }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: nxt; }
.next-steps li { counter-increment: nxt; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; }
.next-steps li::before { content: counter(nxt); display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--c-ink); border-radius: 50%; background: var(--c-grass); color: var(--c-forest); font: 800 0.95rem/1 var(--font-head); }
.next-steps strong { display: block; }
.inquiry-email p { margin: 0; font-size: 0.92rem; }
.submit-faq p { margin: 0 0 0.75rem; font-size: 0.92rem; }
.submit-faq p:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .inquiry-layout { grid-template-columns: 1fr; }
  .inquiry-aside { position: static; }
}
@media (max-width: 640px) {
  .inquiry-form .field-row { grid-template-columns: 1fr; }
  .inquiry-step { padding: 16px; }
  .inquiry-form > .btn { align-self: stretch; justify-content: center; }
}

/* ---------- Error pages ---------- */
.error-page { padding: 72px 0 80px; text-align: center; }
.error-page .wrap { max-width: 640px; }
.error-page .big-code { margin: 0 0 8px; }
.error-page h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.error-page .lede { margin-left: auto; margin-right: auto; max-width: 48ch; }
.error-page .btn-row { justify-content: center; margin-top: 24px; }
.big-code {
  display: block;
  font: 800 clamp(5rem, 22vw, 9rem)/1 var(--font-head);
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 6px 6px 0 var(--cta);
}

/* ---------- Admin (plain) ----------
   Rules for .admin-shell / .admin-nav / .admin-table / .admin-status are maintained
   in the admin section of public/css/app.css by a separate pass. */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .server-panels { grid-template-columns: minmax(0, 1fr); }
  .post-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-row-list { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 2px solid var(--line);
    padding: 12px 24px 20px;
    gap: 6px;
    box-shadow: 0 4px 0 var(--shadow-c);
  }
  body.nav-open .site-nav a { padding: 12px; }
  body.nav-open .site-nav .site-nav-cta { display: inline-flex; margin-top: 6px; padding: 14px 20px; color: var(--cta-ink); border: 2px solid var(--c-ink); }
  body.nav-open .site-nav .site-nav-cta:hover { background: var(--cta); color: var(--cta-ink); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .post-row { grid-template-columns: 1fr; }
  .latest .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band { margin: 0 16px; padding: 36px 24px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .server-header .server-head-row { flex-direction: column; }
  .review-form .form-row { grid-template-columns: 1fr; }
}

/* directory table becomes stacked cards */
@media (max-width: 680px) {
  .dir-table-wrap { overflow-x: visible; }
  .dir-table { min-width: 0; }
  .dir-table, .dir-table tbody { display: block; }
  .dir-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dir-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  .dir-table tbody tr:last-child { border-bottom: 0; }
  .dir-table th, .dir-table td { padding: 0; border: 0; }
  .dir-table td.cell-server { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
  .dir-table td.cell-num { white-space: normal; }
  .dir-table tbody tr:hover { background: var(--surface-soft); }
  .dir-table tbody tr:hover td { background: transparent; }
  .dir-table td.cell-server small { font-size: 0.82rem; }

  /* server directory (x-directory-table): fixed card grid, identical for every row
     row 1 name + grade · row 2 vendor · category · row 3 meter · reviews · updated */
  .dir-table-servers tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "name    name    grade"
      "meta    meta    meta"
      "meter   reviews updated";
    align-items: center;
    gap: 6px 12px;
  }
  .dir-table-servers td.cell-server { grid-area: name; align-self: start; position: relative; min-width: 0; font-size: 1rem; line-height: 1.3; }
  .dir-table-servers td.cell-server small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dir-table-servers td.cell-grade { grid-area: grade; align-self: start; justify-self: end; width: auto; }
  .dir-table-servers td.cell-cat { grid-area: meta; min-width: 0; font-size: 0.84rem; line-height: 1.35; color: var(--text-soft); overflow-wrap: anywhere; }
  .dir-table-servers .cell-vendor { display: inline; }
  .dir-table-servers .cell-vendor + .meta { display: none; }
  .dir-table-servers td.cell-auth { display: none; }
  .dir-table-servers td.cell-meter { grid-area: meter; display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
  .dir-table-servers td.cell-meter .meter-risk { flex-basis: 100%; margin-top: 0; }
  .dir-table-servers td.cell-reviews { grid-area: reviews; min-width: 0; font-size: 0.82rem; }
  .dir-table-servers td.cell-reviews .stars-sm { flex-wrap: wrap; row-gap: 4px; }
  .dir-table-servers td.cell-updated { grid-area: updated; justify-self: end; font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; }
}

/* narrow phones: date gets its own labelled line so row 3 never overflows */
@media (max-width: 480px) {
  .dir-table-servers tr {
    grid-template-areas:
      "name    name    grade"
      "meta    meta    meta"
      "meter   reviews reviews"
      "updated updated updated";
  }
  .dir-table-servers td.cell-updated { justify-self: start; }
  .dir-table-servers td.cell-updated::before { content: "Updated "; font-family: var(--font); }
}

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .bento { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: span 2; }
  .newsletter-inner { padding: 22px; }
  /* icon-only header CTA: label stays for screen readers; the full button is in the open menu */
  .header-actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.nav-open .site-nav { padding: 12px 16px 20px; }
  .cta-band { margin: 0 16px; padding: 28px 20px; }
  .trust-panel, .community-panel, .review-form, .cta-box { padding: 18px; }
  .meter-lg .meter-seg { min-width: 48px; }
  .single .content table { display: block; overflow-x: auto; }
}

@media (min-width: 1208px) {
  .cta-band { max-width: calc(var(--max) - 48px); margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active,
  a.card, a.card:hover, a.card:active,
  .post-card, .post-card:hover, .post-card:active,
  .chip, .chip:active, .connect-tab:active, .nav-toggle:active { transition: none; transform: none; }
}

/* ---------- Admin (plain - Agent B) ---------- */
/* Legacy admin shell classes. Kept for compatibility; current admin pages use .adm-* below. */
.admin-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  color: var(--text);
}
.admin-shell h1 { font-size: 1.5rem; }
.admin-shell .admin-nav { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-shell .admin-nav a {
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.admin-shell .admin-nav a:hover { background: var(--surface-soft); }
.admin-shell .admin-nav a.is-current { background: var(--c-sky); color: var(--c-ink); }
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.admin-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--surface-soft);
  border-bottom: 2px solid var(--line);
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table .row-actions button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.admin-table .row-actions button:hover { background: var(--surface-soft); }
.admin-status {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
}
.admin-status.is-pending { background: var(--c-coin); color: var(--grade-ink); }
.admin-status.is-approved { background: var(--c-grass); color: var(--grade-ink); }
.admin-status.is-rejected { background: var(--c-berry); color: var(--grade-ink); }


/* ---------- Reviews & admin (Agent B) ---------- */
/* Backs resources/views/partials/{reviews,community-summary,stars}.blade.php,
   resources/views/{auth/login,reviews/verify}.blade.php, resources/views/admin/**
   and resources/views/registry/*. Where Agent A also ships a class named here
   (.dist-bar, .review-card, .review-form, .community-panel) these rules layer on top. */


/* ---------- Stars (display) ---------- */
/* Self-contained; does not depend on Agent A's .stars/.stars-sm rules. */
.rv-stars { display: inline-flex; align-items: center; gap: 2px; line-height: 0; vertical-align: middle; }
.rv-star { position: relative; display: inline-block; line-height: 0; }
.rv-stars .rv-star svg { display: block; width: 15px; height: 15px; }
.rv-stars-lg .rv-star svg { width: 22px; height: 22px; }
.rv-stars-sm .rv-star svg { width: 15px; height: 15px; }
.rv-stars .rv-star .rv-star-bg { fill: transparent; stroke: var(--star); stroke-width: 1.8; stroke-linejoin: round; }
.rv-stars .rv-star .rv-star-fg { position: absolute; inset: 0; fill: var(--star); stroke: var(--star); stroke-width: 1.8; stroke-linejoin: round; }


/* ---------- Community summary ---------- */
.rv-community { display: flex; flex-direction: column; gap: 20px; color: var(--text); }
.rv-community-h { font-size: 1.15rem; margin: 0; }
.rv-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0; }
.rv-empty-mark { font: 800 2.4rem/1 var(--font-head); color: var(--text-soft); margin: 0; }
.rv-empty-title { font-weight: 700; margin: 0; }
.rv-empty-text { color: var(--text-soft); font-size: 0.92rem; margin: 0 0 10px; }

.rv-cs-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.rv-cs-score { display: flex; flex-direction: column; gap: 6px; }
.rv-cs-avg { font: 800 2.6rem/1 var(--font-head); letter-spacing: -0.03em; color: var(--text); }
.rv-cs-count { color: var(--text-soft); font-size: 0.86rem; font-weight: 600; }
.rv-cs-trustbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
}
.rv-cs-trustpct { font: 800 1.5rem/1.1 var(--font-head); color: var(--text); }
.rv-cs-trustlabel { color: var(--text-soft); font-size: 0.82rem; font-weight: 600; max-width: 140px; }

/* rating distribution (5..1) */
.rv-dist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-dist-row { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-soft); }
.rv-dist-label { font-weight: 700; text-align: center; color: var(--text); }
.rv-dist-n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ink-bordered track; fill colour is never the only signal (counts / values sit beside it) */
.dist-bar {
  display: block;
  position: relative;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--seg-empty);
  overflow: hidden;
}
.dist-bar .dist-bar-fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 0; background: var(--c-coin); }
.rv-subs .dist-bar .dist-bar-fill { background: var(--c-periwinkle); }

/* trust-in-production split */
.rv-split-block { display: flex; flex-direction: column; gap: 8px; }
.rv-split-caption, .rv-subs-caption {
  font: 700 0.78rem/1.2 var(--font);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.rv-split {
  display: flex;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--seg-empty);
}
.rv-split-seg { height: 100%; box-sizing: border-box; }
.rv-split-seg:not(:last-child) { border-right: 2px solid var(--line); }
.rv-seg-yes { background: var(--c-grass); }
.rv-seg-caveats { background: var(--c-coin); }
.rv-seg-no { background: var(--c-berry); }
.rv-split-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--text-soft); }
.rv-split-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rv-dot { display: inline-block; width: 14px; height: 10px; border: 2px solid var(--line); border-radius: 3px; flex: none; }
.rv-dot-yes { background: var(--c-grass); }
.rv-dot-caveats { background: var(--c-coin); }
.rv-dot-no { background: var(--c-berry); }
.rv-recommend { font-size: 0.88rem; color: var(--text-soft); margin: 4px 0 0; }

/* sub-ratings */
.rv-subs { display: flex; flex-direction: column; gap: 8px; }
.rv-subs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-subs-row { display: grid; grid-template-columns: 1fr 90px 30px; align-items: center; gap: 12px; font-size: 0.84rem; color: var(--text-soft); }
.rv-subs-label { min-width: 0; }
.rv-subs-v { text-align: right; font-weight: 700; color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }


/* ---------- Review list ---------- */
.rv-section { display: flex; flex-direction: column; gap: 20px; }
.rv-flash {
  background: var(--c-grass);
  color: var(--c-forest);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  padding: 12px 16px;
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.rv-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rv-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.rv-card-who { display: flex; flex-direction: column; min-width: 0; }
.rv-card-name { font-weight: 700; }
.rv-card-role { color: var(--text-soft); font-size: 0.84rem; }
.rv-card-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-badge {
  display: inline-block;
  font: 600 0.75rem/1 var(--font);
  padding: 5px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
}
.rv-badge-yes { background: var(--c-grass); color: var(--grade-ink); }
.rv-badge-caveats { background: var(--c-coin); color: var(--grade-ink); }
.rv-badge-no { background: var(--c-berry); color: var(--grade-ink); }
.rv-badge-rec { background: var(--c-periwinkle); color: var(--grade-ink); }
.rv-card-title { font-size: 1.05rem; margin: 2px 0 0; }
.rv-card-body { color: var(--text); font-size: 0.95rem; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-card-usedfor { font-size: 0.86rem; color: var(--text-soft); margin: 0; }
.rv-card-usedfor span { font-weight: 700; color: var(--text); }
.rv-card-subs {
  list-style: none;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-soft);
}
.rv-card-subs span { font-family: var(--font); color: var(--text); font-weight: 600; }
.rv-none { color: var(--text-soft); font-size: 0.92rem; margin: 0; }


/* ---------- Review form ---------- */
.rv-form-wrap { border-top: 2px solid var(--line); padding-top: 24px; }
.rv-form-intro { color: var(--text-soft); font-size: 0.92rem; max-width: 560px; }
.rv-errors {
  background: var(--warn-soft);
  color: var(--error);
  border: 2px solid var(--error);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.rv-errors li { margin-left: 18px; }
.rv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* text inputs, selects, textareas */
.review-form input:not([type="radio"]):not([type="checkbox"]),
.review-form select,
.review-form textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  box-shadow: none;
}
.review-form textarea { min-height: 140px; resize: vertical; }
.review-form input:not([type="radio"]):not([type="checkbox"]):focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--line);
  box-shadow: 3px 3px 0 var(--focus-ring);
}
.review-form input:not([type="radio"]):not([type="checkbox"]):user-invalid,
.review-form select:user-invalid,
.review-form textarea:user-invalid { border-color: var(--error); }
.review-form ::placeholder { color: var(--text-soft); opacity: 1; }

.review-form .rv-fieldset {
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 12px 16px 14px;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.review-form .rv-fieldset legend { font-weight: 700; font-size: 0.9rem; padding: 0 6px; color: var(--text); }

/* radio / checkbox choice pills (also used on auth/login for "Keep me signed in") */
.rv-choice,
.lead-form .rv-choice {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.review-form .rv-choice {
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  background: var(--surface);
}
.review-form .rv-choice:has(input:checked) { background: var(--surface-soft); }
.review-form .rv-choice:has(input:focus-visible) { box-shadow: 3px 3px 0 var(--focus-ring); }
.lead-form .rv-choice { align-self: flex-start; }
.rv-choice input,
.lead-form .rv-choice input {
  width: auto;
  margin: 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--c-focus);
}

.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-grid > * { min-width: 0; }
.rv-opt { font-weight: 500; color: var(--text-soft); font-size: 0.8rem; }

/* ---------- Review form: steps ----------
   Without JS every step shows (one long form). With JS (html.js) only the current step
   shows; .is-start covers the moment before app.js runs, then [hidden] takes over. */
html:not(.js) .js-only { display: none !important; }
html.js form[data-steps]:not(.is-ready) .rv-step:not(.is-start) { display: none; }
form[data-steps] .rv-step[hidden] { display: none; }
form[data-steps] .rv-step { display: flex; flex-direction: column; gap: 16px; }
html:not(.js) form[data-steps] .rv-step + .rv-step { padding-top: 18px; border-top: 1px solid var(--hair); }
.rv-step-title { margin: 0; font-size: 1.15rem; }
.rv-step-title:focus { outline: none; }

.rv-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rv-progress li { margin: 0; min-width: 0; }
.rv-progress button { all: unset; display: flex; flex-direction: column; gap: 6px; width: 100%; cursor: default; }
.rv-progress li.is-done button { cursor: pointer; }
.rv-progress-bar { display: block; height: 10px; border: 2px solid var(--line); border-radius: 4px; background: var(--seg-empty); }
.rv-progress li.is-done .rv-progress-bar { background: var(--c-grass); }
.rv-progress li.is-current .rv-progress-bar { background: var(--c-periwinkle); }
.rv-progress-label { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-progress li.is-current .rv-progress-label { color: var(--text); font-weight: 700; }
.rv-progress li.is-done button:hover .rv-progress-label { color: var(--text); text-decoration: underline; }

.rv-step-nav { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.rv-step-count { margin-right: auto; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.rv-step-nav [data-back] { order: -1; }
html.js form[data-steps] .rv-step-nav [hidden] { display: none; }

/* questions inside a step */
.review-form .rv-q { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.review-form .rv-q legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.92rem; color: var(--text); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* big tappable answer cards (trust in production) */
.rv-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.review-form .rv-option {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.review-form .rv-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rv-option-label { font-weight: 700; font-size: 0.95rem; }
.rv-option-hint { font-weight: 500; font-size: 0.8rem; color: var(--text-soft); }
.review-form .rv-option:hover { background: var(--surface-soft); }
.review-form .rv-option:has(input:checked) { box-shadow: var(--sh-sm); transform: translate(-1px, -1px); color: var(--grade-ink); }
.review-form .rv-option:has(input:checked) .rv-option-hint { color: var(--c-slate); }
.review-form .rv-option-yes:has(input:checked) { background: var(--c-grass); }
.review-form .rv-option-caveats:has(input:checked) { background: var(--c-coin); }
.review-form .rv-option-no:has(input:checked) { background: var(--c-berry); }
.review-form .rv-option:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* sub-scores: label + small stars per row */
.rv-scores { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.rv-score-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.rv-score-row + .rv-score-row { border-top: 1px solid var(--hair); }
.rv-score-label { font-weight: 600; font-size: 0.92rem; }

/* star rating input: inputs 1..5 in DOM order; a star fills when it or a later star is
   checked (or hovered). Yellow outline always, yellow fill when on. */
.star-input { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.review-form .star-input label { display: inline-flex; flex-direction: row; padding: 2px; border-radius: 6px; cursor: pointer; line-height: 0; }
.star-input label svg { width: 26px; height: 26px; fill: transparent; stroke: var(--star); stroke-width: 1.8; stroke-linejoin: round; transition: fill 0.1s ease, transform 0.1s ease; }
.star-input-lg label svg { width: 40px; height: 40px; stroke-width: 1.6; }
.star-input label:has(~ input:checked) svg,
.star-input input:checked + label svg { fill: var(--star); }
.star-input:hover label svg { fill: transparent; }
.star-input:hover label:has(~ label:hover) svg,
.star-input:hover label:hover svg { fill: var(--star); }
.star-input label:hover svg { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.star-cap { margin-left: 10px; min-width: 5.5em; font-weight: 700; font-size: 0.9rem; color: var(--text); }
.star-input-lg .star-cap { font-size: 1.05rem; }
.star-input:has(input[value="1"]:checked) .star-cap::after { content: "Poor"; }
.star-input:has(input[value="2"]:checked) .star-cap::after { content: "Fair"; }
.star-input:has(input[value="3"]:checked) .star-cap::after { content: "OK"; }
.star-input:has(input[value="4"]:checked) .star-cap::after { content: "Good"; }
.star-input:has(input[value="5"]:checked) .star-cap::after { content: "Excellent"; }

@media (max-width: 640px) {
  .rv-options { grid-template-columns: 1fr; }
  .rv-score-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rv-progress-label { font-size: 0.72rem; }
}


/* ---------- Admin ---------- */
.adm-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
}
.adm-body a { color: var(--link); }
.adm-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.adm-topbar { background: var(--surface); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 40; }
.adm-topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 24px; }
.adm-body .adm-brand { font: 800 1.05rem/1 var(--font-head); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.adm-brand span { color: var(--text-soft); font-weight: 600; }
.adm-nav { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; }
.adm-body .adm-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 10px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.adm-body .adm-nav a:hover { background: var(--surface-soft); border-color: var(--line); }
.adm-body .adm-nav a.is-active { background: var(--c-sky); color: var(--c-ink); border-color: var(--line); }
.adm-logout-form { margin: 0; }
.adm-logout {
  font: 600 0.86rem/1 var(--font);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.adm-logout:hover { background: var(--surface-soft); }

.adm-main { padding: 32px 24px 72px; }
.adm-main h1 { font-size: 1.6rem; margin-bottom: 24px; }
.adm-maintenance { margin: 0 0 18px; }
.adm-flash {
  background: var(--c-grass);
  color: var(--c-forest);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.92rem;
}

.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 36px; }
.adm-tile {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-tile-n { font: 800 1.8rem/1.1 var(--font-head); letter-spacing: -0.02em; color: var(--text); }
.adm-tile-n.adm-accent { color: var(--link); }
.adm-tile-label { font-weight: 600; font-size: 0.86rem; color: var(--text); }
.adm-tile-sub { font-size: 0.78rem; color: var(--text-soft); }

.adm-section { margin-bottom: 40px; }
.adm-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.adm-section-head h2 { font-size: 1.15rem; margin: 0; }
.adm-empty { color: var(--text-soft); font-size: 0.92rem; }

.adm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.adm-table th, .adm-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.adm-table th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line);
}
.adm-table tr:last-child td { border-bottom: 0; }

.adm-badge {
  display: inline-block;
  font: 600 0.72rem/1.2 var(--font);
  padding: 3px 7px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
  white-space: nowrap;
}
.adm-badge-ok { background: var(--c-grass); color: var(--grade-ink); }
.adm-badge-wait { background: var(--c-coin); color: var(--grade-ink); }
.adm-badge-no { background: var(--c-berry); color: var(--grade-ink); }

.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.adm-body .adm-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.adm-body .adm-tabs a:hover { background: var(--surface-soft); }
.adm-tabs a span { font: 700 0.78rem/1 var(--font-mono); color: var(--text-soft); }
.adm-body .adm-tabs a.is-active { background: var(--cta); color: var(--cta-ink); }
.adm-tabs a.is-active span { color: var(--cta-ink); }

.adm-review-list { display: flex; flex-direction: column; gap: 18px; }
.adm-review {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
}
.adm-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.adm-review-head > div { min-width: 0; }
.adm-review-head h2 { font-size: 1.05rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.adm-q { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 22px; margin: 0 0 16px; }
.adm-q > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-q .adm-q-wide { grid-column: 1 / -1; }
.adm-q dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); font-weight: 700; }
.adm-q dd { margin: 0; font-size: 0.9rem; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }

.adm-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; border-top: 1px solid var(--hair); padding-top: 14px; }
.adm-actions form { margin: 0; }
.adm-actions label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.8rem; color: var(--text); }
.adm-actions select {
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.adm-actions select:focus { outline: none; box-shadow: 3px 3px 0 var(--focus-ring); }
.adm-btn-approve { background: var(--cta); color: var(--cta-ink); }
.adm-btn-approve:hover { background: var(--cta); color: var(--cta-ink); }
.adm-btn-reject { color: var(--error); }
.adm-btn-reject:hover { color: var(--error); background: var(--warn-soft); }
.adm-note { color: var(--text-soft); font-size: 0.82rem; margin: 0; align-self: center; }
.adm-hint { color: var(--text-soft); font-size: 0.78rem; font-weight: 400; }
.adm-actions input[type="text"] { padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; min-width: 180px; }
.adm-actions input[type="text"]:focus { outline: none; box-shadow: 3px 3px 0 var(--focus-ring); }
.adm-actions label.adm-check { flex-direction: row; align-items: center; gap: 6px; min-height: 40px; }
.adm-error { color: var(--error); font-size: 0.85rem; margin: 8px 0 0; }
.adm-mail-note { margin: 8px 0 0; }
.adm-pagination { margin-top: 24px; }


/* ---------- Reviews & admin: small screens ---------- */
@media (max-width: 600px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-cs-top { align-items: flex-start; }
  .rv-cs-trustbox { align-items: flex-start; text-align: left; }
  .rv-cs-trustlabel { max-width: none; }
  .rv-subs-row { grid-template-columns: 1fr 72px 30px; gap: 10px; }
  .review-card { padding: 16px; }
  .adm-wrap { padding: 0 16px; }
  .adm-topbar-inner { padding: 10px 16px; }
  .adm-main { padding: 24px 16px 56px; }
  .adm-q { grid-template-columns: 1fr; }
  .adm-review { padding: 16px; }
  .adm-review-head { flex-direction: column; gap: 8px; }
  .adm-table, .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .rv-stars-input label { transition: none; }
}


/* ---------- Registry watch (/registry) ---------- */
.reg-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.reg-stats > div {
  flex: 1 1 160px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  padding: 14px 16px;
}
.reg-stats strong { display: block; font: 800 1.6rem/1.1 var(--font-head); color: var(--text); overflow-wrap: anywhere; }
.reg-stats span { color: var(--text-soft); font-size: 0.88rem; }

/* "runs as" kind tags */
.reg-chip {
  display: inline-block;
  font: 600 0.75rem/1 var(--font);
  padding: 5px 8px;
  margin: 0 4px 4px 0;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text);
}
.reg-sub { display: block; color: var(--text-soft); font-size: 0.8rem; }

/* "Graded X →" link to the graded listing */
.reg-graded,
.dir-table .cell-server a.reg-graded {
  display: inline-block;
  margin-top: 6px;
  font: 700 0.75rem/1 var(--font);
  padding: 5px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--c-grass);
  color: var(--c-forest);
  text-decoration: none;
}
.reg-graded:hover, .reg-graded:focus-visible,
.dir-table .cell-server a.reg-graded:hover, .dir-table .cell-server a.reg-graded:focus-visible { color: var(--c-forest); text-decoration: underline; }

/* issue / severity flags: critical+high = berry (.is-bad), medium = coin (.is-warn),
   low = sky (.is-low), unrated / none = neutral. Text label always carries the meaning. */
.reg-flag {
  display: inline-block;
  font: 700 0.75rem/1.2 var(--font);
  padding: 4px 8px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  text-transform: none;
}
.reg-flag.is-warn { background: var(--c-coin); color: var(--grade-ink); }
.reg-flag.is-bad { background: var(--c-berry); color: var(--grade-ink); }
.reg-flag.is-low { background: var(--c-sky); color: var(--grade-ink); }

.reg-verdict {
  margin-top: 20px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  background: var(--surface);
  color: var(--text);
}
.reg-verdict.is-warn { background: var(--callout); }
.reg-verdict.is-bad { background: var(--warn-soft); }
.reg-h2 { margin-top: 40px; }
.reg-pagination { margin-top: 24px; }

/* ---------- Pagination (resources/views/vendor/pagination/site.blade.php) ---------- */
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pager-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.pager-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.pager-btn, .pager-num {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding: 0 12px;
  font: 600 0.9rem/1 var(--font); white-space: nowrap;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.pager-btn svg { width: 14px; height: 14px; flex: none; }
a.pager-btn, a.pager-num { box-shadow: var(--sh-sm); }
a.pager-btn:hover, a.pager-num:hover, a.pager-btn:focus-visible, a.pager-num:focus-visible { background: var(--surface-soft); color: var(--text); text-decoration: none; }
a.pager-btn:focus-visible, a.pager-num:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
a.pager-btn:active, a.pager-num:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow-c); }
.pager-num.is-current { background: var(--cta); color: var(--cta-ink); border-color: var(--c-ink); box-shadow: 2px 2px 0 var(--shadow-c); }
.pager-btn.is-disabled { color: var(--text-soft); border-color: var(--hair); background: transparent; cursor: default; }
.pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 40px; color: var(--text-soft); font-weight: 700; }
.pager-compact { display: none; font: 600 0.9rem/1 var(--font); color: var(--text-soft); padding: 0 4px; white-space: nowrap; }
.pager-summary { margin: 0; font-size: 0.85rem; color: var(--text-soft); }
@media (max-width: 600px) {
  .pager-pages { display: none; }
  .pager-compact { display: inline; }
  .pager-btn { padding: 0 10px; }
}

@media (max-width: 600px) {
  .reg-stats > div { flex-basis: 100%; }
  .reg-stats strong { font-size: 1.4rem; }
}

/* ---------- Guides index: finder, groups, cards ---------- */
.guide-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.guide-search { position: relative; flex: 1 1 340px; max-width: 520px; display: flex; align-items: center; }
.guide-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-soft); pointer-events: none; }
.guide-search input {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px 12px 42px; box-shadow: var(--sh-sm);
}
.guide-search input:focus { outline: none; box-shadow: 3px 3px 0 var(--focus-ring); }
.guide-search input::placeholder { color: var(--text-soft); opacity: 1; }
.guide-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-filter {
  font: 600 0.9rem/1 var(--font); color: var(--text); background: var(--surface); cursor: pointer;
  border: 2px solid var(--line); border-radius: 999px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 6px;
}
.guide-filter span { font: 700 0.75rem/1 var(--font-mono); color: var(--text-soft); }
.guide-filter:hover { background: var(--surface-soft); }
.guide-filter.is-active { background: var(--c-grass); color: var(--c-forest); box-shadow: 2px 2px 0 var(--shadow-c); }
.guide-filter.is-active span { color: var(--c-forest); }
.guide-filter:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.guide-group { padding: 0; } /* not the global section padding */
.guide-group + .guide-group { margin-top: 56px; }
.guide-group[hidden], .guide-card[hidden] { display: none; }
.guide-group-head { margin-bottom: 20px; }
.guide-group-head h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
.guide-group-sub { font: 600 0.8rem/1 var(--font-mono); color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 8px; vertical-align: middle; }
.guide-group-head p { margin: 0; color: var(--text-soft); }
.guide-row-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card.is-featured { background: var(--surface-soft); }

.guide-card-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.guide-card-meta .grade-chip { width: 26px; height: 26px; font-size: 0.85rem; box-shadow: none; }
.guide-card-server { font-weight: 700; font-size: 0.85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-card-time { font: 600 0.78rem/1 var(--font-mono); color: var(--text-soft); }
.guide-card .card-arrow { margin-top: 0; padding-top: 0; }
.guide-empty { margin: 8px 0 0; padding: 18px 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--text-soft); }

@media (max-width: 960px) {
  .guide-row-featured { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
}

/* ---------- Step forms: card shell for forms that use [data-steps] outside the review form ---------- */
.step-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 24px; }
.rv-progress-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inquiry-form.step-card { max-width: 680px; gap: 18px; }
.inquiry-form .rv-step-title .optional { margin-left: 6px; }
.inquiry-form .rv-step > .meta { margin: 0; }
@media (max-width: 640px) { .step-card { padding: 18px; } }

/* ---------- CTA banner ("we'll build it"; copy from App\Services\BuildCta) ----------
   Ink panel so it reads as an offer, not page content; slate in dark mode, where the page is ink. */
.cta-banner {
  --cta-bg: var(--c-ink);
  --cta-text: var(--c-white);
  --cta-soft: #b8c2d4;
  margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px;
  padding: 32px 36px; position: relative; overflow: hidden;
  background: var(--cta-bg); color: var(--cta-text);
  border: 2px solid var(--c-ink); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--c-grass);
}
@media (prefers-color-scheme: dark) {
  .cta-banner { --cta-bg: var(--c-slate); border-color: var(--c-fog); }
}
/* faint shield mark in the corner */
.cta-banner::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; pointer-events: none; opacity: 0.07;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe870' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 19 6.5v5.3c0 4.6-3 7.6-7 8.7-4-1.1-7-4.1-7-8.7V6.5L12 3.5Z'/%3E%3Cpath d='M9 12l2 2 4-4.5'/%3E%3C/svg%3E");
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner-eyebrow { margin: 0 0 10px; font: 700 0.78rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-grass); }
.cta-banner h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem); max-width: 30ch; color: var(--cta-text); }
.cta-banner-text { color: var(--cta-soft); margin: 0 0 16px; max-width: 58ch; }
.cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--cta-text); }
.cta-points svg {
  flex: none; width: 30px; height: 30px; padding: 6px; stroke-width: 2.2;
  background: var(--c-grass); color: var(--c-forest); border: 2px solid var(--c-grass); border-radius: var(--r-sm);
}
.cta-banner-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-big { padding: 16px 26px; font-size: 1.05rem; }
.cta-banner .btn { border-color: var(--c-grass); box-shadow: 4px 4px 0 var(--c-white); }
.cta-banner .btn:hover { box-shadow: 6px 6px 0 var(--c-white); }
.cta-banner-alt { margin: 0; font-size: 0.85rem; color: var(--cta-soft); }
.cta-banner-alt a { color: var(--cta-text); text-decoration: underline; text-underline-offset: 3px; }

/* compact: guide sidebar (280px) */
.cta-banner.is-compact { margin-top: 0; grid-template-columns: 1fr; gap: 18px; padding: 20px; box-shadow: 4px 4px 0 var(--c-grass); }
.cta-banner.is-compact h2 { font-size: 1.1rem; }
.cta-banner.is-compact .cta-banner-text { font-size: 0.88rem; margin-bottom: 12px; }
.cta-banner.is-compact .cta-points li { font-size: 0.84rem; align-items: flex-start; }
.cta-banner.is-compact .cta-points svg { width: 24px; height: 24px; padding: 4px; }
.cta-banner.is-compact .cta-banner-action { align-items: stretch; }
.cta-banner.is-compact .btn-big { padding: 12px 16px; font-size: 0.95rem; justify-content: center; white-space: normal; text-align: center; }
.cta-banner.is-compact::after { width: 160px; height: 160px; right: -30px; bottom: -40px; }

@media (max-width: 860px) {
  .cta-banner { grid-template-columns: 1fr; padding: 24px; }
  .cta-banner-action { align-items: stretch; }
  .cta-banner-action .btn { justify-content: center; white-space: normal; text-align: center; }
  .cta-banner-alt { text-align: center; }
}

/* ---------- Category page: breadcrumb trail, copy sections, FAQ ---------- */
.crumb-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.crumb-trail > span[aria-hidden] { color: var(--dot); }
.crumb-trail [aria-current] { color: var(--text); }
.cat-section { max-width: 760px; margin: 0 0 28px; }
.dir-table-wrap + .cat-section { margin-top: 48px; }
.cat-section h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); margin-bottom: 12px; }
.cat-section p { color: var(--text-soft); }
.cat-choose { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cat-choose li { position: relative; padding-left: 26px; color: var(--text-soft); }
.cat-choose li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border: 2px solid var(--line); border-radius: 3px; background: var(--c-grass); }
.cat-choose strong { color: var(--text); }
/* registry flag legend: bullets match the .reg-flag chips in the table */
.cat-choose li.is-bad::before { background: var(--c-berry); }
.cat-choose li.is-warn::before { background: var(--c-coin); }
.cat-choose li.is-none::before { background: var(--surface); }
.cat-faq { display: flex; flex-direction: column; gap: 10px; }
.cat-faq details { border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-sm); }
.cat-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq summary::after { content: "+"; font: 800 1.2rem/1 var(--font-head); color: var(--text-soft); }
.cat-faq details[open] summary::after { content: "−"; }
.cat-faq details[open] summary { border-bottom: 1px solid var(--hair); }
.cat-faq details p { margin: 0; padding: 12px 16px 16px; color: var(--text-soft); }
.cat-faq summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Home H1 kicker (keyword line inside the H1, above the hook) ---------- */
.h1-kicker { display: block; margin-bottom: 10px; font: 700 clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem)/1.3 var(--font); letter-spacing: 0; color: var(--text-soft); }

/* ---------- Server page: alternatives in the same category ---------- */
.server-safe, .server-alts { margin-top: 40px; }
.alt-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alt-list a { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); text-decoration: none; transition: transform 0.08s ease, box-shadow 0.08s ease; }
.alt-list a:hover { transform: translate(-1px, -1px); box-shadow: var(--sh); }
.alt-list .grade-chip { flex: none; }
.alt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alt-name { font-weight: 700; }
.alt-sum { font-size: 0.88rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Server page: "Embed this badge" (README snippets, M1.2) ---------- */
.badge-embed { margin-top: 40px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-sm); min-width: 0; }
.badge-embed summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.badge-embed summary::-webkit-details-marker { display: none; }
.badge-embed summary::after { content: "+"; font: 800 1.2rem/1 var(--font-head); color: var(--text-soft); }
.badge-embed[open] summary::after { content: "−"; }
.badge-embed[open] summary { border-bottom: 1px solid var(--hair); }
.badge-embed summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.badge-embed-body { padding: 12px 16px 16px; min-width: 0; }
.badge-embed-note { margin: 0 0 12px; color: var(--text-soft); }
.badge-embed-preview { margin: 0 0 14px; line-height: 0; }
.badge-embed-preview img { display: inline-block; max-width: 100%; height: auto; }
.badge-embed-label { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.badge-embed .code-wrap { margin: 0 0 14px; }
.badge-embed .code-wrap:last-child { margin-bottom: 0; }
/* Snippets wrap inside the box (long URLs break anywhere) so 375px never scrolls the page. */
.badge-embed pre {
  margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--c-ink); color: var(--c-sky); font-size: 0.84rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all;
}
.badge-embed .code-wrap pre { margin: 0; padding-right: 88px; }
.badge-embed code { font-family: var(--font-mono); background: none; border: 0; padding: 0; color: inherit; }

/* ---------- Directory: category chips ---------- */
.cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.cat-chips a:hover { background: var(--surface-soft); }
.cat-chips span { font: 700 0.75rem/1 var(--font-mono); color: var(--text-soft); }
.dir-table-wrap + .cat-section, .reg-pagination + .cat-section { margin-top: 48px; }

/* ---------- Guides: tickable checklist (GuideChecklist + app.js; opt-in via front matter) ---------- */
/* Without JS the progress bar stays [hidden] and items read as plain headings / list items. */
.checklist-progress {
  position: sticky; top: 76px; z-index: 5; /* just under the sticky site header */
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 16px 0 8px; padding: 10px 14px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sm);
}
.checklist-progress[hidden] { display: none; }
.single .content .checklist-count { margin: 0; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.checklist-count strong { font: 800 1.05rem/1 var(--font-head); }
.checklist.is-complete .checklist-count strong { background: var(--c-grass); color: var(--c-ink); padding: 2px 6px; border-radius: 4px; }
.checklist-bar { flex: 1 1 120px; height: 12px; min-width: 80px; border: 2px solid var(--line); border-radius: 999px; background: var(--seg-empty); overflow: hidden; }
.checklist-bar > span { display: block; height: 100%; width: 0; background: var(--c-grass); transition: width 0.3s ease-out; }
.checklist-reset {
  font: 600 0.85rem/1 var(--font); padding: 7px 12px; cursor: pointer;
  color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-sm);
}
.checklist-reset:hover:not(:disabled) { background: var(--surface-soft); }
.checklist-reset:disabled { opacity: 0.5; cursor: default; }
.checklist-reset:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.check-item .check-label { cursor: pointer; }
.check-box {
  -webkit-appearance: none; appearance: none;
  flex: none; display: inline-block; vertical-align: -0.2em;
  width: 22px; height: 22px; margin: 0 10px 0 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 5px; background: var(--surface);
}
.check-box:checked {
  background: var(--c-grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%230a1727' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--c-ink);
}
.check-box:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.check-box.just-changed { animation: check-pop 0.18s ease-out; }
@keyframes check-pop { 50% { transform: scale(1.18); } }
/* headings: box + text on one line, text wraps beside the box */
h3.check-item { display: flex; align-items: flex-start; }
h3.check-item .check-box { margin-top: 0.1em; }
.single .content li.check-item.is-done > .check-label { color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) {
  .checklist-bar > span { transition: none; }
  .check-box.just-changed { animation: none; }
}
@media (max-width: 480px) {
  .checklist-progress { padding: 8px 10px; }
}

/* reCAPTCHA v2 checkbox: Google's widget is a fixed 304x78; scale it down on narrow phones. */
.recaptcha { margin: 14px 0 4px; min-height: 78px; }
.recaptcha .field-error { display: block; margin-top: 6px; }
@media (max-width: 360px) {
    .recaptcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* ---------- State of MCP server security report ----------
   Chart palette checked with the dataviz validator: light on #fff, dark on #22304a (--viz-surface). */
.report {
  --viz-surface: var(--surface);
  --viz-1: #2b45e0; --viz-1-ink: #ffffff;
  --viz-2: #d4570f; --viz-2-ink: #ffffff;
  --viz-3: #0f8f62; --viz-3-ink: #ffffff;
  --viz-4: #b56a00; --viz-4-ink: #ffffff;
  --viz-track: var(--c-sky);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .report {
    --viz-surface: var(--surface-soft);
    --viz-1: #7388f0; --viz-1-ink: var(--c-ink);
    --viz-2: #d96a36; --viz-2-ink: var(--c-ink);
    --viz-3: #2aa478; --viz-3-ink: var(--c-ink);
    --viz-4: #b08b1c; --viz-4-ink: var(--c-ink);
    --viz-track: #33425a;
  }
}
:root[data-theme="dark"] .report {
  --viz-surface: var(--surface-soft);
  --viz-1: #7388f0; --viz-1-ink: var(--c-ink);
  --viz-2: #d96a36; --viz-2-ink: var(--c-ink);
  --viz-3: #2aa478; --viz-3-ink: var(--c-ink);
  --viz-4: #b08b1c; --viz-4-ink: var(--c-ink);
  --viz-track: #33425a;
}
.report-disclosure {
  max-width: 680px;
  margin: 18px 0 0;
  padding: 14px 16px;
  font-size: 0.94rem;
  background: var(--callout);
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.report-flash { display: flex; align-items: center; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-weight: 600; }
.report-flash svg { width: 18px; height: 18px; flex: none; }
.report-section { max-width: 760px; margin: 0 0 44px; padding: 0; }
.report-section > h2 { margin-top: 0; }
.report-fig {
  margin: 0 0 22px;
  padding: 20px;
  background: var(--viz-surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.report-fig figcaption { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 14px; }
.report-hero { margin: 0 0 4px; font: 700 clamp(3rem, 2.4rem + 3vw, 4.5rem)/1 var(--font); color: var(--text); }
.report-bar { display: flex; gap: 2px; height: 8px; margin-bottom: 14px; }
.report-bar--tall { height: 28px; }
.report-seg { display: block; flex-basis: 0; min-width: 3px; border-radius: 2px; }
.report-bar .report-seg:first-child { border-radius: 4px 2px 2px 4px; }
.report-bar .report-seg:last-child { border-radius: 2px 4px 4px 2px; }
.report-bar--tall .report-seg { padding-left: 8px; font: 700 0.82rem/28px var(--font); overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.report-bar--tall .report-seg:empty { padding-left: 0; }
.report-seg--1 { background: var(--viz-1); color: var(--viz-1-ink); }
.report-seg--2 { background: var(--viz-2); color: var(--viz-2-ink); }
.report-seg--3 { background: var(--viz-3); color: var(--viz-3-ink); }
.report-seg--4 { background: var(--viz-4); color: var(--viz-4-ink); }
.report-legend, .report-rows { list-style: none; margin: 0; padding: 0; }
.report-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 0.92rem;
  border-top: 1px solid var(--hair);
}
.report-swatch { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.report-legend-num { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.report-legend-num span { display: inline-block; min-width: 3.4em; font-weight: 400; color: var(--text-soft); }
.report-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 11px 0;
  font-size: 0.92rem;
  border-top: 1px solid var(--hair);
}
.report-row-value { color: var(--text-soft); font-variant-numeric: tabular-nums; text-align: right; }
.report-row-value strong { color: var(--text); }
.report-track { grid-column: 1 / -1; display: block; height: 10px; background: var(--viz-track); border-radius: 0 4px 4px 0; }
.report-fill { display: block; min-width: 2px; height: 100%; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.report-placeholder { padding: 16px 18px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--r); }
.report-placeholder p { margin: 0; }
@media (max-width: 480px) {
  .report-fig { padding: 16px 14px; }
  .report-rows li { grid-template-columns: minmax(0, 1fr); }
  .report-row-value { text-align: left; }
  .report-legend li { grid-template-columns: 12px minmax(0, 1fr); }
  .report-legend-num { grid-column: 2; text-align: left; }
}
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.report-list-card { display: grid; gap: 6px; padding: 20px; background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.report-list-card:hover { color: var(--text); text-decoration: none; background: var(--surface-soft); }
.report-list-month { font: 700 1.25rem/1.2 var(--font-head); }
.report-list-lead strong { font-size: 1.1rem; }
.report-list-date { color: var(--text-soft); font-size: 0.88rem; }
