/* Steeplejack: Survey Grid.
   An architect's elevation drawing for a website. White paper, heavy Hanken Grotesk headlines, IBM Plex Mono for check IDs,
   scores and labels, square frames, no shadows. Blueprint blue annotates,
   signal orange is the climber dot and the main action, and the condition
   colours (sound, wear, risk, unknown) only ever mean a verdict.
   Tokens match the Steeplejack design system (tokens.json). */

:root {
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f6f8fa;
  --surface-inverse: #111111;
  --rule: #111111;
  --rule-soft: #b8c2ce;
  --ink: #111111;
  --ink-muted: #4a5260;
  --ink-inverse: #ffffff;
  --blueprint: #1e4fd8;
  /* Dark enough for white text: 4.9:1 */
  --signal: #c8430f;
  --on-signal: #ffffff;
  --sound: #13804f;
  --wear: #d98a00;
  --wear-text: #9a5a00;
  --risk: #c42f24;
  --unknown: #8a94a3;

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --stroke-hair: 1px;
  --stroke-frame: 2px;
  --stroke-heavy: 3px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1013;
    --surface-raised: #16191e;
    --surface-sunken: #1a1e24;
    --surface-inverse: #f2f4f7;
    --rule: #f2f4f7;
    --rule-soft: #3a414c;
    --ink: #f2f4f7;
    --ink-muted: #a3acb9;
    --ink-inverse: #0e1013;
    --blueprint: #7ea2ff;
    /* The same orange: a lighter one can't carry white text */
    --signal: #c8430f;
    --sound: #3dbb82;
    --wear: #f0a72a;
    --wear-text: #f0a72a;
    --risk: #ff6b5e;
    --unknown: #6b7480;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--blueprint); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 2px;
  border-radius: 2px;
}
[hidden] { display: none !important; }

/* mono label: eyebrows, IDs, metadata */
.label, .masthead-note, .field-label, .scope dt, .progress-site, .finding-id, .passed .pid, .sources, .hero-facts {
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------- frame */
.masthead, #app, .footer { width: min(100% - 32px, 1200px); margin-inline: auto; }
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap;
  margin-top: 4rem; padding: 1.25rem 0 2.5rem; border-top: var(--stroke-frame) solid var(--rule);
  color: var(--ink-muted); font-size: 0.875rem;
}
.footer p { margin: 0; }
.footer-copy { white-space: nowrap; }
.footer-copy a { color: inherit; }
.footer-mark { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.04em; }
.footer-mark .wordmark-mark { width: 13px; height: 20px; }
.footer-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.footer-nav a { display: inline-block; min-height: 1.5rem; line-height: 1.5rem; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0 1rem; border-bottom: var(--stroke-frame) solid var(--rule);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -0.05em;
}
.wordmark-mark { width: 20px; height: 31px; }
.wordmark-mark .outline { fill: none; stroke: var(--ink); stroke-width: 4; }
.wordmark-mark .base { fill: var(--ink); }
.wordmark-mark .climber { fill: var(--signal); }
.masthead-note { margin: 0; color: var(--ink-muted); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- start */
.start { max-width: 42rem; padding: 4rem 0 1rem; }
.start-layout { display: grid; grid-template-columns: minmax(0, 42rem) 1fr; gap: 3rem; }
.start-layout .start { grid-column: 1; grid-row: 1; }
.start-spire { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; width: 100%; max-width: 320px; padding-top: 5rem; }
@media (max-width: 860px) { .start-layout { display: block; } .start-spire { display: none; } }
.start-title, .progress-title {
  margin: 0 0 1.25rem; font-weight: 800; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 0.92;
  letter-spacing: -0.055em;
}
.start-title em, .progress-title em { font-style: normal; color: var(--blueprint); }
.lede { margin: 0 0 2rem; font-size: 1.25rem; color: var(--ink); max-width: 36em; }
.scan-form { display: grid; gap: 0.6rem; margin-bottom: 1rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.scan-row { display: flex; flex-wrap: wrap; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); }
.field input {
  flex: 1 1 16rem; min-width: 0; height: 3.5rem; padding: 0 1rem;
  font-family: var(--font-mono); font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-radius: 0;
}
.email-saved { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
.email-saved span { color: var(--ink); font-family: var(--font-mono); }
.email-change { padding: 0; color: var(--blueprint); font: inherit; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.trap { position: absolute; left: -9999px; }
.form-note { margin: 0 0 0.5rem; max-width: 40rem; color: var(--ink-muted); font-size: 0.875rem; }
.form-error {
  margin: 0; padding: 0.7rem 0.9rem; background: var(--surface-raised);
  border: var(--stroke-frame) solid var(--risk); color: var(--ink);
}
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 3.5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.0625rem;
  padding: 0 1.5rem; color: var(--on-signal); background: var(--signal); border: 0;
  border-radius: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--ink); color: var(--ink-inverse); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-quiet { height: 3rem; background: transparent; color: var(--ink); border: var(--stroke-frame) solid var(--rule); }
.button-quiet:hover { background: var(--surface-inverse); color: var(--ink-inverse); }
.form-meta { margin: 0 0 2.5rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.scope {
  margin: 0; display: grid; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised);
}
.scope div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.9rem 1.25rem; border-top: var(--stroke-hair) solid var(--rule); }
.scope div:first-child { border-top: 0; }
.scope dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blueprint); padding-top: 0.2rem; }
.scope dd { margin: 0; color: var(--ink); }
.scope dt code { text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.scope dd p, .scope dd ul { margin: 0 0 0.75rem; }
.scope dd ul { padding-left: 1.25rem; }
.scope dd > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- progress */
.progress { max-width: 42rem; padding: 4rem 0 1rem; }
.progress-site { margin: 0 0 0.75rem; color: var(--blueprint); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.progress-time { margin: 0 0 2rem; color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.climb { list-style: none; margin: 0 0 2rem; padding: 0; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); }
.climb li {
  position: relative; display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 1rem 0.6rem 2.25rem; color: var(--ink-muted); border-top: var(--stroke-hair) solid var(--rule-soft);
}
.climb li:first-child { border-top: 0; }
.climb li::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 10px; height: 10px;
  background: transparent; border: var(--stroke-frame) solid var(--rule-soft);
}
.climb li[data-state="running"] { color: var(--ink); font-weight: 700; }
.climb li[data-state="running"]::before { border-color: var(--signal); background: var(--signal); border-radius: 50%; animation: pulse 1.2s ease-in-out infinite; }
.climb li[data-state="done"] { color: var(--ink); }
.climb li[data-state="done"]::before { background: var(--sound); border-color: var(--sound); }
.climb li[data-state="failed"]::before { background: var(--risk); border-color: var(--risk); }
.climb .ms { font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 400; }
.progress-note { color: var(--ink-muted); font-size: 0.9375rem; }
.progress-stuck { margin: 0.5rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.progress-stuck.is-slow { padding: 0.75rem 1rem; border: var(--stroke-frame) solid var(--wear); color: var(--ink); background: var(--surface-raised); }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .climb li[data-state="running"]::before { animation: none; } }

/* ---------------------------------------------------------------- report hero */
.report { padding-top: 3rem; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: end;
  padding-bottom: 2rem; border-bottom: var(--stroke-heavy) solid var(--rule);
}
.hero-site {
  margin: 0 0 0.75rem; font-weight: 800; font-size: clamp(2.25rem, 6.6vw, 4.5rem); line-height: 0.95;
  letter-spacing: -0.05em; overflow-wrap: anywhere;
}
.hero-site-long { font-size: clamp(1.9rem, 4.8vw, 3.4rem); }
.hero-facts { margin: 0 0 1.75rem; color: var(--ink-muted); font-size: 0.8125rem; letter-spacing: 0.04em; }
.overall { display: flex; align-items: flex-end; align-items: last baseline; gap: 0.5rem 1.25rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.overall-score {
  font-weight: 800; font-size: clamp(4.5rem, 10vw, 6.5rem); line-height: 0.85; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.overall-label { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.overall-label span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.9375rem; letter-spacing: 0; }
.mode-note {
  max-width: 40em; margin: 0; padding: 0.85rem 1rem; background: var(--surface-sunken);
  border: var(--stroke-hair) solid var(--rule); font-size: 0.9375rem;
}

/* The spire: one tier per area, colour = condition, hatched = withheld */
.spire { width: 100%; height: auto; display: block; }
.spire .tier { stroke: none; }
.spire .tier-good { fill: var(--sound); }
.spire .tier-attention { fill: var(--wear); }
.spire .tier-urgent { fill: var(--risk); }
.spire .tier-none { fill: url(#hatch); }
.spire .tier-full { fill: none; stroke: var(--unknown); stroke-width: 1; stroke-dasharray: 3 3; }
/* An unsound tower sways from its base, more the worse the overall score. CSS only. */
.spire .tower { transform-origin: 54px 384px; }
.spire .rock-1 { --rock: 0.35deg; animation: rock 7s ease-in-out infinite alternate; }
.spire .rock-2 { --rock: 0.8deg; animation: rock 5.5s ease-in-out infinite alternate; }
.spire .rock-3 { --rock: 1.5deg; animation: rock 4s ease-in-out infinite alternate; }
.spire .rock-4 { --rock: 2.5deg; animation: rock 3s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(calc(var(--rock) * -1)); } to { transform: rotate(var(--rock)); } }
@media (prefers-reduced-motion: reduce) { .spire .tower { animation: none; } }
@media print { .spire .tower { animation: none; } }
.spire .roof { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: miter; }
.spire .tier-paid { fill: none; stroke: var(--ink); stroke-width: 2; }
.spire .finial { stroke: var(--ink); stroke-width: 3; }
.spire .climber { fill: var(--signal); }
.spire .hatch-line { stroke: var(--unknown); stroke-width: 2; }
.spire .hatch-bg { fill: var(--surface); }
.spire .leader { stroke: var(--rule-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.spire .tier-name { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.spire .tier-score { fill: var(--ink); font-family: var(--font-sans); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.spire .tier-withheld { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; }
.spire .ground { stroke: var(--rule); stroke-width: 3; }
.spire .dimension { stroke: var(--blueprint); stroke-width: 1.5; }

/* ---------------------------------------------------------------- sections */
.section { padding: 3rem 0 0.5rem; }
.section-title, .area-title {
  margin: 0 0 1.25rem; font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1;
  letter-spacing: -0.045em;
}
/* condition colours as text */
.c-good { color: var(--sound); }
.c-attention { color: var(--wear-text); }
.c-urgent { color: var(--risk); }
.c-none { color: var(--ink-muted); }

/* ---------------------------------------------------------------- areas */
.area { padding: 3.25rem 0 0.5rem; }
.area-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-bottom: var(--stroke-frame) solid var(--rule); padding-bottom: 0.75rem; margin-bottom: 0.25rem;
}
.area-title { margin: 0; }
.area-score { margin: 0; font-weight: 800; font-size: 2rem; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.area-score small { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-left: 0.5rem; }
.area-empty { color: var(--ink-muted); padding: 1rem 0; margin: 0; }

.finding { border-bottom: var(--stroke-hair) solid var(--rule); }
.finding > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto auto; gap: 0.25rem 1.25rem;
  padding: 1rem 0; align-items: baseline;
}
.finding > summary::-webkit-details-marker { display: none; }
.finding-status {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.finding-status::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 0.5rem;
  background: currentColor; vertical-align: -0.05em;
}
.finding-main { min-width: 0; }
.finding-title { display: block; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; }
.finding-summary { display: block; color: var(--ink-muted); margin-top: 0.15rem; max-width: 46em; overflow-wrap: anywhere; }
.finding-id { color: var(--ink-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.finding > summary:hover .finding-title { color: var(--blueprint); }

.finding-body { padding: 0 0 1.5rem 11.25rem; max-width: 60rem; }
.fix { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0 0 1rem; }
.fix dt { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 0.2rem; }
.fix dd { margin: 0; max-width: 42em; }
.fix pre, .evidence pre {
  margin: 0.5rem 0 0; padding: 0.85rem 1rem; background: var(--surface-sunken); border: var(--stroke-hair) solid var(--rule);
  font: 0.8125rem/1.55 var(--font-mono); overflow-x: auto; white-space: pre;
}
.evidence > summary { cursor: pointer; color: var(--blueprint); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0; }
.evidence pre { max-height: 26rem; }
.sources { color: var(--ink-muted); font-size: 0.8125rem; margin: 0.5rem 0 0; overflow-wrap: anywhere; }

.passed { margin-top: 0.75rem; }
.passed > summary { cursor: pointer; padding: 0.75rem 0; color: var(--blueprint); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.passed ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.passed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.5rem 0; border-top: 1px dashed var(--rule-soft); }
.passed li span:first-child { overflow-wrap: anywhere; }
.passed .pid { color: var(--ink-muted); font-size: 0.8125rem; white-space: nowrap; }

/* ---------------------------------------------------------------- not inspected + details */
.noaccess { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-frame) solid var(--rule); }
.noaccess li { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: var(--stroke-hair) solid var(--rule); }
.noaccess .what { font-weight: 700; }
.noaccess .why { color: var(--ink-muted); overflow-wrap: anywhere; }

.tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tech li {
  padding: 0.35rem 0.7rem; background: var(--surface-raised); border: var(--stroke-hair) solid var(--rule);
  font-family: var(--font-mono); font-size: 0.8125rem;
}
.tech li.eol { border: var(--stroke-frame) solid var(--risk); color: var(--risk); }

.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2.5rem;
  padding: 1.5rem; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised);
}
.details-grid h3 { margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blueprint); }
.details-grid dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 1rem; font-size: 0.9375rem; }
.details-grid dt { color: var(--ink-muted); }
.details-grid dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.details-grid ul { margin: 0; padding-left: 1.1rem; font-size: 0.9375rem; }
.span-all { grid-column: 1 / -1; }
.small { font-size: 0.9375rem; color: var(--ink-muted); max-width: 40em; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-spire { max-width: 320px; }
  .finding > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .finding-status { grid-column: 1 / -1; }
  .finding-quad { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .quads { grid-template-columns: 1fr; }
  .quads-frame { padding-left: 0; }
  .axis { display: none; }
  .finding-body { padding-left: 0; }
  .fix { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .fix dd { margin-bottom: 0.6rem; }
  .noaccess li { grid-template-columns: 1fr; gap: 0.2rem; }
  .scope div { grid-template-columns: 1fr; gap: 0.2rem; }
  .button { flex: 1 1 100%; }
}

@media print {
  body { background: #fff; }
  .masthead-note, .footer, .evidence, .closing, .rescan, .area-title::after, .finding-id::after, .passed > summary::before, .nice > summary::before { display: none; }
  .finding-body { display: block; }
}
code {
  font: 0.875em/1.4 var(--font-mono); background: var(--surface-sunken); padding: 0.05em 0.3em;
  border: var(--stroke-hair) solid var(--rule-soft); overflow-wrap: anywhere;
}
.area-note { margin: 0.75rem 0 0; color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; max-width: 60em; }
/* nice to haves: own block, folded when the area has more important fixes */
.nice { margin-top: 0.75rem; }
.nice > summary, .nice-title {
  margin: 0; padding: 0.75rem 0; color: var(--blueprint); font-family: var(--font-mono); font-size: 0.8125rem;
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.nice > summary { cursor: pointer; }
.nice-list { border-top: var(--stroke-hair) solid var(--rule); }
.nice-open { margin-top: 1.25rem; }

/* ---------------------------------------------------------------- survey again + changes */
.again { margin-top: 1.25rem; }
.again .button { height: 2.75rem; padding: 0 1rem; }
.score-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; max-width: 52rem; }
.score-table { width: 100%; border-collapse: collapse; border-top: var(--stroke-frame) solid var(--rule); font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 0.55rem 0.75rem; text-align: right; border-bottom: var(--stroke-hair) solid var(--rule-soft); vertical-align: bottom; }
.score-table th:first-child { padding-left: 0; text-align: left; font-weight: 400; }
.score-table th:last-child, .score-table td:last-child { padding-right: 0; }
.score-table thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; line-height: 1.35; letter-spacing: 0.04em; color: var(--ink-muted); border-bottom: var(--stroke-hair) solid var(--rule); }
.score-table td { font-family: var(--font-mono); font-weight: 500; }
.score-overall th:first-child, .score-overall td { font-weight: 700; }
.change-group h3 { margin: 1.25rem 0 0.25rem; font-size: 1rem; }
.change-group ul { margin: 0; padding: 0; list-style: none; }
.change-group li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1rem; padding: 0.5rem 0; border-top: 1px dashed var(--rule-soft); align-items: baseline; }
.change-group li > span:nth-child(2) { overflow-wrap: anywhere; }
.change-group .pid { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.change-status { display: block; }
.change-was { display: block; margin-top: 0.1rem; padding-left: calc(10px + 0.5rem); color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.75rem; }
.change-fold { margin-top: 1.25rem; }
.change-fold > summary { cursor: pointer; padding: 0.25rem 0; font-size: 1rem; font-weight: 700; }
.change-fold[open] > summary { margin-bottom: 0.25rem; }
@media (max-width: 40rem) {
  .change-group li { grid-template-columns: minmax(0, 1fr) auto; }
  .change-group li .change-status { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- hosting signifier */
.hero-host { display: flex; align-items: center; gap: 0.4rem 0.75rem; flex-wrap: wrap; margin: 0.25rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.host-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.6rem; border: var(--stroke-hair) solid var(--rule);
  background: var(--surface-raised); color: var(--ink); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.host-chip::before { content: ""; width: 8px; height: 8px; background: var(--blueprint); }

/* ---------------------------------------------------------------- closing: survey again + hosted note */
.closing { margin-top: 3rem; padding-top: 2rem; border-top: var(--stroke-heavy) solid var(--rule); }
.closing .again { margin-top: 0; }
.closing .mode-note { margin: 1rem 0 0; padding: 0; background: none; border: 0; max-width: 46em; color: var(--ink-muted); font-size: 0.8125rem; line-height: 1.55; }

/* ---------------------------------------------------------------- collapsible areas (details) */
.area { scroll-margin-top: 1rem; }
.area > summary { list-style: none; cursor: pointer; }
.area > summary::-webkit-details-marker { display: none; }
.area-title { display: inline-flex; align-items: center; gap: 0.75rem; }
.finding { scroll-margin-top: 1rem; }

/* ---------------------------------------------------------------- spire: tiers jump to their area */
.spire .tier-hit { fill: transparent; }
.spire .tier-link { cursor: pointer; }
.spire .tier-link:hover .tier-name, .spire .tier-link:focus-visible .tier-name { fill: var(--blueprint); text-decoration: underline; }
.spire .tier-link:focus-visible { outline: 2px solid var(--blueprint); }

/* ---------------------------------------------------------------- finding extras */
.finding-quad {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  padding: 0.1rem 0.45rem; border: var(--stroke-hair) solid var(--rule-soft); color: var(--ink-muted);
}
.quad-chip-first { border-color: var(--signal); color: var(--ink); background: color-mix(in srgb, var(--signal) 14%, transparent); }
.quad-chip-plan { border-color: var(--rule); color: var(--ink); }
.links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.links a { display: inline-block; min-height: 1.5rem; overflow-wrap: anywhere; }
.links code { color: inherit; }
.chains { margin: 0.6rem 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--rule-soft); }
.chains li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--rule-soft); align-items: baseline; }
.chain-verdict { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.chain-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem; }
.chain-arrow { color: var(--ink-muted); }
.elements { margin: 0.6rem 0 0; padding: 0; list-style: none; border-top: 1px dashed var(--rule-soft); }
.elements li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--rule-soft); overflow-wrap: anywhere; }
.element-label { font-weight: 500; }
.element-note { color: var(--ink-muted); font-size: 0.875rem; }
.fix .header-value {
  margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; background: var(--surface-sunken); border: var(--stroke-hair) solid var(--rule-soft);
  font: 0.8125rem/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 10rem; overflow-y: auto;
}
.fix dd code { font-size: 0.85em; }

/* ---------------------------------------------------------------- carbon */
.carbon { margin: 1.5rem 0 0.5rem; padding: 1.25rem; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); max-width: 46rem; }
.carbon-title { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blueprint); }
.carbon-figure { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 0.75rem; }
.carbon-g { font-weight: 800; font-size: 2.75rem; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.carbon-unit { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-muted); }
.carbon-rating { margin-left: auto; padding: 0.15rem 0.6rem; border: var(--stroke-frame) solid var(--rule); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.carbon-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 0 0.85rem; padding: 0; list-style: none; border: var(--stroke-hair) solid var(--rule); }
.carbon-scale li { padding: 0.3rem 0; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); border-left: var(--stroke-hair) solid var(--rule-soft); }
.carbon-scale li:first-child { border-left: 0; }
.carbon-scale li.is-current { background: var(--ink); color: var(--ink-inverse); font-weight: 500; }
.carbon-text { margin: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.carbon-docs { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------- what to do first (impact × effort) */
.quads-frame { position: relative; padding: 0 0 1.75rem 1.75rem; }
.quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); }
.quad { padding: 1.1rem 1.25rem 1.25rem; border-right: var(--stroke-hair) solid var(--rule); border-bottom: var(--stroke-hair) solid var(--rule); margin: 0 -1px -1px 0; min-height: 9rem; }
.quad-title { display: flex; flex-direction: column; gap: 0.1rem; margin: 0 0 0.75rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.quad-title small { font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.quad-first { background: color-mix(in srgb, var(--signal) 9%, var(--surface-raised)); }
.quad-first .quad-title span::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--signal); margin-right: 0.4em; vertical-align: 0.1em; }
.quad-list { margin: 0; padding-left: 1.25rem; }
.quad-list li { margin: 0.3rem 0; padding-left: 0.2rem; }
.quad-list a { font-weight: 700; }
.quad-area { display: inline-block; margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.quad-empty { margin: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.axis { position: absolute; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blueprint); }
.axis-y { left: 0; top: 50%; transform: translate(-35%, -50%) rotate(-90deg); white-space: nowrap; }
.axis-x { right: 0; bottom: 0.25rem; }

/* ---------------------------------------------------------------- handing the report to an AI tool */
.ai-share { padding: 1.25rem 0; border-bottom: var(--stroke-hair) solid var(--rule); }
.ai-share p { margin: 0 0 0.75rem; }
.ai-share-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-family: var(--font-mono); font-size: 0.875rem; }
.ai-share-actions a { display: inline-block; min-height: 1.5rem; line-height: 1.5rem; }
.ai-share .button { flex: 0 1 auto; height: 2.75rem; padding: 0 1rem; font-size: 1rem; }
.ai-share-status { color: var(--ink-muted); font-family: var(--font-sans); }
@media print { .ai-share { display: none; } }
.machine-note { margin: 2.5rem 0 0; color: var(--ink-muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
@media print { .machine-note { display: none; } }

/* The grid on narrow screens. Down here because the rules above would override it. */
@media (max-width: 760px) {
  .quads-frame { padding: 0; }
  .quads { grid-template-columns: minmax(0, 1fr); }
  .quad { min-height: 0; margin: 0; border-right: 0; }
  .quad:last-child { border-bottom: 0; }
  .quad-list { padding-left: 1.5rem; }
  .quad-list li { margin: 0.6rem 0; padding-left: 0; }
  .quad-area { display: block; margin: 0.1rem 0 0; }
}

/* AI crawler choices: visible, but not problems */
.area-notes { margin-top: 1.25rem; }
.area-notes ul { margin: 0; padding: 0; list-style: none; }
.area-notes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.5rem 0; border-top: 1px dashed var(--rule-soft); }
.area-notes li span:first-child { overflow-wrap: anywhere; }
.area-notes .pid { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }

/* ---------------------------------------------------------------- rescan link under the site name */
.rescan { margin: -0.25rem 0 1rem; }
.link-button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; background: none; border: 0; cursor: pointer;
  color: var(--blueprint); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 0.25em;
}
.link-button::before { content: "↻"; font-size: 1rem; line-height: 1; text-decoration: none; }
.link-button:hover { color: var(--ink); }
.link-button:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }

/* ---------------------------------------------------------------- toggles: a boxed +/− on everything that opens */
.area-title::after, .finding-id::after, .passed > summary::before, .nice > summary::before, .change-fold > summary::before, .evidence > summary::before {
  content: "+"; display: inline-grid; place-items: center; flex: none; box-sizing: border-box;
  width: 1.5rem; height: 1.5rem; border: var(--stroke-frame) solid currentColor;
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.area[open] > summary .area-title::after, .finding[open] > summary .finding-id::after,
.passed[open] > summary::before, .nice[open] > summary::before, .change-fold[open] > summary::before, .evidence[open] > summary::before { content: "−"; }

.area-title::after { width: 1.75rem; height: 1.75rem; font-size: 1.25rem; color: var(--ink); }
.area > summary:hover .area-title, .area > summary:hover .area-title::after { color: var(--blueprint); }

.finding-id::after { margin-left: 0.75rem; color: var(--ink); vertical-align: middle; }
.finding > summary { margin: 0 -0.75rem; padding-left: 0.75rem; padding-right: 0.75rem; }
.finding > summary:hover { background: var(--surface-sunken); }
.finding > summary:hover .finding-id::after { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }

.passed > summary, .nice > summary, .change-fold > summary, .evidence > summary { list-style: none; display: flex; align-items: center; gap: 0.6rem; width: fit-content; }
.passed > summary::-webkit-details-marker, .nice > summary::-webkit-details-marker, .change-fold > summary::-webkit-details-marker, .evidence > summary::-webkit-details-marker { display: none; }
.passed > summary:hover, .nice > summary:hover, .change-fold > summary:hover, .evidence > summary:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.passed > summary:hover::before, .nice > summary:hover::before, .change-fold > summary:hover::before, .evidence > summary:hover::before { background: var(--blueprint); color: var(--surface); border-color: var(--blueprint); }
.evidence > summary::before { width: 1.25rem; height: 1.25rem; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .area-title::after, .finding-id::after, .passed > summary::before, .nice > summary::before, .change-fold > summary::before, .evidence > summary::before { transition: none; } }

.score-table thead a { color: inherit; text-decoration-color: var(--rule-soft); }
.score-table thead a:hover { color: var(--blueprint); }
.score-table th.score-this { color: var(--ink); }
.score-table .score-this { background: var(--surface-sunken); box-shadow: inset 0 3px 0 var(--blueprint); }
.score-table tbody .score-this { box-shadow: none; }
.score-this-label { display: block; margin-bottom: 0.15rem; color: var(--blueprint); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.newer-survey { margin: 0 0 1.25rem; padding: 0.75rem 1rem; border: var(--stroke-frame) solid var(--blueprint); background: var(--surface-raised); max-width: 46em; }
/* On narrow screens the table scrolls sideways; keep the row names in view */
.score-table tbody th:first-child, .score-table thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* A folded list of fixes would be lost on paper */
@media print {
  .change-fold > summary { list-style: none; }
  .change-fold > summary::before { display: none; }
  .change-fold::details-content { display: block; content-visibility: visible; height: auto; }
}

/* ---------------------------------------------------------------- marketing pages */
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-family: var(--font-mono); font-size: 0.8125rem; }
.site-nav a { display: inline-block; min-height: 1.5rem; line-height: 1.5rem; }
.mk-page { max-width: 48rem; padding: 3rem 0 1rem; }
.mk-crumb { margin: 0 0 1rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.mk-crumb a { display: inline-block; min-height: 1.5rem; }
.mk-title { margin: 0 0 1.25rem; font-weight: 800; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.mk-page h2, .mk-section h2 { margin: 2.5rem 0 0.75rem; font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; }
.mk-page h3, .mk-section h3 { margin: 1.25rem 0 0.25rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.mk-page p, .mk-section p { max-width: 42rem; }
.mk-page ul, .mk-section > ul { padding-left: 1.25rem; max-width: 42rem; }
.mk-page li, .mk-section > ul li { margin-bottom: 0.4rem; }
.mk-home { margin-top: 2rem; border-top: var(--stroke-frame) solid var(--rule); }
.mk-section { padding: 0.5rem 0 2rem; }
.mk-sub { margin: 0 0 1rem; }
.mk-note { color: var(--ink-muted); font-size: 0.875rem; }
.mk-cta { margin: 2rem 0; }
.mk-page ul.mk-cards, .mk-section ul.mk-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); border-top: var(--stroke-hair) solid var(--rule); border-left: var(--stroke-hair) solid var(--rule); }
.mk-cards li { margin: 0; padding: 1.25rem; border-right: var(--stroke-hair) solid var(--rule); border-bottom: var(--stroke-hair) solid var(--rule); background: var(--surface-raised); }
.mk-page .mk-cards h2, .mk-section .mk-cards h3 { margin: 0 0 0.4rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mk-cards p { margin: 0; }
.mk-page ul.mk-checks { list-style: none; padding: 0; border-top: var(--stroke-hair) solid var(--rule); }
.mk-checks li { margin: 0; padding: 0.9rem 0; border-bottom: var(--stroke-hair) solid var(--rule-soft); }
.mk-page .mk-checks h3 { margin: 0 0 0.25rem; }
.mk-checks p { margin: 0; }
.mk-checks .mk-note { margin-top: 0.35rem; }
.mk-page ul.mk-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.mk-links li { margin: 0; }
.mk-table { overflow-x: auto; margin: 2rem 0; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); }
.mk-table table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.mk-table th, .mk-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: var(--stroke-hair) solid var(--rule-soft); }
.mk-table tbody tr:last-child th, .mk-table tbody tr:last-child td { border-bottom: 0; }
.mk-table thead th { font-weight: 700; border-bottom: var(--stroke-frame) solid var(--rule); }
.mk-table tbody th { font-weight: 500; color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media print { .site-nav { display: none; } }

/* Laravel app: masthead account links, forms, dashboard and teaser */
.link-plain::before { content: none; }
.account-nav { background: var(--surface-sunken); color: var(--ink); border-block-end: var(--stroke-hair) solid var(--rule-soft); font-family: var(--font-mono); font-size: 0.8125rem; }
.account-nav-inner { width: min(100% - 32px, 1200px); margin-inline: auto; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-block: 0.4rem; }
.account-nav a, .account-nav .link-button { color: inherit; font: inherit; text-transform: none; letter-spacing: normal; }
.account-nav a:hover, .account-nav .link-button:hover { color: inherit; text-decoration-thickness: 2px; }
.account-nav a:focus-visible, .account-nav .link-button:focus-visible { outline-color: currentColor; }
.account-nav form { display: inline; margin: 0; }
.site-nav { flex-wrap: wrap; }
.auth { max-width: 30rem; }
.account-links { list-style: none; margin: 0; padding: 0; border-block-start: var(--stroke-frame) solid var(--rule); }
.account-links li { padding-block: 1.25rem; border-block-end: var(--stroke-hair) solid var(--rule-soft); }
.account-links a { font-size: 1.25rem; font-weight: 700; }
.account-links p { margin: 0.35rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.back-link { margin: 0 0 1rem; font-family: var(--font-mono); font-size: 0.8125rem; }
.usage-heading { margin: 2rem 0 0.5rem; font-size: 1.125rem; }
.usage-count { margin: 0 0 0.5rem; font-size: 1.25rem; }
.usage-sites { list-style: none; margin: 1rem 0 0; padding: 0; border-block-start: var(--stroke-frame) solid var(--rule); }
.usage-sites li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.75rem; border-block-end: var(--stroke-hair) solid var(--rule-soft); }
.usage-sites span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.usage-sites .usage-host { font-family: inherit; font-size: inherit; color: inherit; }
.auth .field { margin-block-end: 1rem; }
.auth .scan-row input { width: 100%; }
.auth .form-note { margin-block-start: 1rem; }
.auth .checkbox { display: flex; gap: 0.5rem; align-items: center; margin-block-end: 1rem; }
.notice { border: var(--stroke-frame) solid var(--rule); padding: 0.75rem 1rem; margin-block-end: 1.5rem; }
.dash-add { margin-block: 1.5rem 2.5rem; max-width: 40rem; }
.dashboard { padding: 3rem 0 1rem; }
.sites { list-style: none; margin: 0 0 1rem; padding: 0; border-block-start: var(--stroke-frame) solid var(--rule); }
.site-row { display: grid; grid-template-columns: minmax(14rem, 1fr) 5rem minmax(25rem, 1.4fr) auto; gap: 1.5rem; align-items: center; padding-block: 1.5rem; border-block-end: var(--stroke-hair) solid var(--rule-soft); }
.site-name { min-width: 0; }
.site-name h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.site-name h2 a { color: inherit; }
.site-meta { margin: 0.35rem 0 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-muted); }
.site-overall { margin: 0; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-align: center; }
.site-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.site-scores dt { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.site-scores dd { margin: 0.2rem 0 0; font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; }
.site-removed { grid-column: 2 / 4; margin: 0; }
.site-actions { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.site-actions form { margin: 0; }
/* ---------------------------------------------------------------- score change since the last survey */
.trend { position: relative; margin-inline-start: 0.2em; font-size: 0.55em; vertical-align: 0.3em; letter-spacing: 0; }
.site-overall .trend { font-size: 0.3em; vertical-align: 1.2em; }
.trend-up { color: var(--sound); }
.trend-down { color: var(--risk); }
/* Shown on hovering the score or its arrow, straight away rather than after the browser's title delay */
.trend-tip {
  position: absolute; inset-block-end: calc(100% + 0.5rem); inset-inline-start: 50%; translate: -50% 0; z-index: 20;
  padding: 0.35rem 0.55rem; white-space: nowrap; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; line-height: 1.3; letter-spacing: 0; text-align: center;
  color: var(--ink-inverse); background: var(--surface-inverse);
  opacity: 0; visibility: hidden; transition: opacity 0.12s, visibility 0.12s;
}
.trend-tip::after { content: ""; position: absolute; inset-block-start: 100%; inset-inline-start: 50%; translate: -50% 0; border: 0.3rem solid transparent; border-block-start-color: var(--surface-inverse); }
.trend-tip strong { font-weight: 700; }
.site-scores dd:hover .trend-tip, .site-overall:hover .trend-tip { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .trend-tip { transition: none; } }
/* ---------------------------------------------------------------- per-row actions menu (three dots) */
.row-menu { position: relative; }
.row-menu > summary { list-style: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; cursor: pointer; color: var(--ink); border: var(--stroke-hair) solid transparent; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu > summary:hover, .row-menu[open] > summary { border-color: var(--rule-soft); background: var(--surface-sunken); }
.row-menu > summary:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 2px; }
.row-menu > summary svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.row-menu-list { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 0.25rem); z-index: 10; min-width: 13rem; padding: 0.25rem; background: var(--surface-raised); border: var(--stroke-frame) solid var(--rule); box-shadow: 0 6px 18px rgb(0 0 0 / 0.12); }
.row-menu-list button, .row-menu-list a { display: block; box-sizing: border-box; text-decoration: none; width: 100%; padding: 0.55rem 0.75rem; text-align: start; font: inherit; font-size: 0.9375rem; color: var(--ink); background: none; border: 0; cursor: pointer; }
.row-menu-list button:hover, .row-menu-list button:focus-visible, .row-menu-list a:hover, .row-menu-list a:focus-visible { background: var(--surface-sunken); outline: none; }
.row-menu-list .row-menu-danger { color: var(--risk); }
@media (max-width: 62rem) {
  .site-row { grid-template-columns: 1fr auto; gap: 1rem 1.5rem; }
  .site-scores, .site-actions, .site-removed { grid-column: 1 / -1; }
  .site-overall { grid-column: 2; grid-row: 1; }
}
@media (max-width: 30rem) {
  .site-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.teaser-basis { max-width: 42rem; }
.teaser-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-block: 1.5rem; }
.teaser-cta form { display: inline; }
.teaser-signin { border: var(--stroke-frame) dashed var(--rule-soft); padding: 0.75rem 1rem; margin-block: 1rem; }
.teaser-dots { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }
.teaser-dots li { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ink); }

/* ---------------------------------------------------------------- admin sign-in */
.qr { display: inline-block; padding: 0.75rem; margin: 0 0 1rem; background: #fff; border: var(--stroke-hair) solid var(--rule); }
.qr svg { display: block; width: 192px; height: 192px; }
.secret-key, .recovery-codes code { font-family: var(--font-mono); overflow-wrap: anywhere; }
.recovery-codes { columns: 2; padding-left: 1.25rem; margin: 0 0 2rem; }
.field textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: 0.75rem; border: var(--stroke-frame) solid var(--rule); background: var(--surface-raised); color: var(--ink); resize: vertical; }
