/* geotool — shared stylesheet for the landing page and server-rendered reports.
 *
 * Design premise: this is an instrument, not a marketing site. That yields one
 * hard rule the whole palette follows — COLOUR MEANS SEVERITY, nothing else.
 * The brand itself is monochrome, so red/amber/green never compete with a
 * decorative accent for the reader's attention. It also makes the page legible
 * to anyone reading it in grayscale or with a colour-vision deficiency, since
 * every coloured element is redundantly labelled in text.
 *
 * Layout uses logical properties throughout (inline-start/end, not left/right)
 * so Arabic RTL needs no separate stylesheet.
 */

:root {
  --bg:#faf9f7; --surface:#fff; --fg:#17171a; --muted:#6e6e76; --faint:#9b9ba3;
  --line:#e6e4e0; --line-soft:#f0eeea;
  --high:#b5342a; --high-bg:#fdf3f2;
  --med:#8a6212;  --med-bg:#fdf8ec;
  --low:#5b5b63;  --low-bg:#f6f6f4;
  --info:#3f6b8a; --info-bg:#f1f6f9;
  --ok:#26694a;   --ok-bg:#f0f7f3;
  --ink:#17171a;
  --radius:12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#131316; --surface:#1b1b1f; --fg:#eeedea; --muted:#9b9ba3; --faint:#6e6e76;
    --line:#2b2b31; --line-soft:#232328;
    --high:#f0857a; --high-bg:#2a1a1a;
    --med:#e0b25a;  --med-bg:#282116;
    --low:#a9a9b2;  --low-bg:#212126;
    --info:#7cb4d6; --info-bg:#17242c;
    --ok:#5fbb8d;   --ok-bg:#16241d;
    --ink:#eeedea;
  }
}
:root[data-theme="light"]{--bg:#faf9f7;--surface:#fff;--fg:#17171a;--muted:#6e6e76;--faint:#9b9ba3;--line:#e6e4e0;--line-soft:#f0eeea;--high:#b5342a;--high-bg:#fdf3f2;--med:#8a6212;--med-bg:#fdf8ec;--low:#5b5b63;--low-bg:#f6f6f4;--info:#3f6b8a;--info-bg:#f1f6f9;--ok:#26694a;--ok-bg:#f0f7f3;--ink:#17171a}
:root[data-theme="dark"]{--bg:#131316;--surface:#1b1b1f;--fg:#eeedea;--muted:#9b9ba3;--faint:#6e6e76;--line:#2b2b31;--line-soft:#232328;--high:#f0857a;--high-bg:#2a1a1a;--med:#e0b25a;--med-bg:#282116;--low:#a9a9b2;--low-bg:#212126;--info:#7cb4d6;--info-bg:#17242c;--ok:#5fbb8d;--ok-bg:#16241d;--ink:#eeedea}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font:400 16px/1.65 ui-sans-serif,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Arabic","Noto Sans Devanagari","Noto Sans Bengali",sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
.wrap{max-width:880px;margin:0 auto;padding:2.5rem 1.25rem 6rem}
a{color:var(--fg)}

/* ── brand lockup ───────────────────────────────────────────────────
 * The descriptor is load-bearing, not ornamental: "geotool" alone reads as a
 * geography tool. It sits on the baseline of the wordmark at small caps so the
 * lockup stays one optical unit.
 */
.logo{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--fg)}
.logo .mark{width:27px;height:27px;flex-shrink:0;color:var(--fg)}
.logo-text{display:flex;flex-direction:column;gap:.14rem;min-width:0}
.wordmark{
  font-size:1.42rem;font-weight:600;letter-spacing:-.04em;line-height:1;
  font-variant-ligatures:none;
}
/* Stacked under the wordmark and optically aligned to its left edge — the
   letter-spacing below is what keeps the descriptor the same visual width. */
.descriptor{
  font-size:.58rem;font-weight:600;text-transform:uppercase;letter-spacing:.185em;
  color:var(--faint);line-height:1;white-space:nowrap;
}
@media (max-width:520px){ .descriptor{letter-spacing:.14em} }

header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
header .brand{margin:0;font-size:inherit;font-weight:inherit}
.controls{display:flex;gap:.4rem;align-items:center;flex-shrink:0}
select{
  font:inherit;font-size:.85rem;padding:.35rem 1.6rem .35rem .6rem;color:var(--fg);
  background:var(--surface);border:1px solid var(--line);border-radius:8px;cursor:pointer;appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 14px) 52%,calc(100% - 9px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;
}
[dir="rtl"] select{padding:.35rem .6rem .35rem 1.6rem;background-position:9px 52%,14px 52%}

.tagline{color:var(--muted);font-size:1rem;margin:0 0 1.75rem;max-width:62ch;line-height:1.6}

/* ── form ───────────────────────────────────────────────────────── */
form{display:flex;gap:.5rem;margin-bottom:.6rem}
input[type=url]{
  flex:1;min-width:0;padding:.8rem .95rem;font:inherit;font-size:.98rem;
  border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--fg);transition:border-color .15s;
}
input[type=url]:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 10%,transparent)}
button{
  padding:.8rem 1.5rem;font:inherit;font-size:.98rem;font-weight:500;white-space:nowrap;
  border:0;border-radius:10px;background:var(--ink);color:var(--bg);cursor:pointer;transition:opacity .15s;
}
button:hover:not(:disabled){opacity:.85}
button:disabled{opacity:.45;cursor:default}
.opts{display:flex;align-items:center;gap:.45rem;margin-bottom:.5rem;font-size:.85rem;color:var(--muted)}
.opts input{accent-color:var(--ink);margin:0}
.note{color:var(--faint);font-size:.82rem;margin:0 0 2.25rem}

/* ── cards & sections ───────────────────────────────────────────────
 * A card is a box, and boxes are expensive attention: the previous report put
 * every block in one, so eight stacked panels competed for emphasis and none
 * won. Now a card marks only what is genuinely a standalone object — the score
 * result, and the assistant hand-off. Everything else is a `.section`: the same
 * heading, separated by a hairline rule and whitespace instead of a border, so
 * the page reads as one document with a clear hierarchy rather than a stack of
 * identical panels.
 */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem 1.4rem;margin-bottom:.9rem}
.section{padding-top:1.75rem;margin-top:1.75rem;border-top:1px solid var(--line-soft)}
.card h2,.section h2{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--faint);margin:0 0 1rem;font-weight:600}
.card h2 .count,.section h2 .count{color:var(--ok);margin-inline-start:.3rem}
ul.plain{list-style:none;margin:0;padding:0}

/* ── report header ──────────────────────────────────────────────── */
.report-h1{font-size:1.15rem;font-weight:600;margin:0 0 .6rem;letter-spacing:-.01em;line-height:1.4;word-break:break-all}
.report-h1 a{color:var(--fg);text-decoration-color:var(--line)}
.lead{font-size:1rem;margin:0 0 .5rem;color:var(--fg);max-width:70ch}
.meta-line{font-size:.82rem;color:var(--faint);margin:0 0 1.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* ── score ──────────────────────────────────────────────────────── */
.score-top{display:flex;gap:1.5rem;align-items:flex-start;flex-wrap:wrap}
.grade{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;
  min-width:120px;padding:1rem 1.1rem;border-radius:10px;background:var(--low-bg);border:1px solid var(--line-soft);
}
.grade b{font-size:2.6rem;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.grade span{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;text-align:center}
.g-A{background:var(--ok-bg)} .g-A b{color:var(--ok)}
.g-B{background:var(--ok-bg)} .g-B b{color:var(--ok)}
.g-C{background:var(--med-bg)} .g-C b{color:var(--med)}
.g-D{background:var(--high-bg)} .g-D b{color:var(--high)}
.g-F{background:var(--high-bg)} .g-F b{color:var(--high)}
.cats{flex:1;min-width:240px;display:grid;gap:.7rem}
.cat-h{display:flex;justify-content:space-between;align-items:baseline;font-size:.85rem;margin-bottom:.25rem}
.cat-h b{font-variant-numeric:tabular-nums;font-weight:600}
.cat-h b.ok{color:var(--ok)} .cat-h b.warn{color:var(--med)} .cat-h b.bad{color:var(--high)}
.bar{height:5px;border-radius:3px;background:var(--line-soft);overflow:hidden}
.bar i{display:block;height:100%;border-radius:3px;background:var(--low)}
.bar i.ok{background:var(--ok)} .bar i.warn{background:var(--med)} .bar i.bad{background:var(--high)}
.cat-f{font-size:.72rem;color:var(--faint);margin-top:.2rem}
.cap{
  margin:1.1rem 0 0;padding:.7rem .85rem;font-size:.85rem;line-height:1.55;
  background:var(--high-bg);border-inline-start:3px solid var(--high);border-radius:8px;color:var(--fg);
}
.disclaimer{font-size:.82rem;color:var(--muted);line-height:1.55;margin:1rem 0 0}
.ver{font-size:.76rem;color:var(--faint);margin:.6rem 0 0}
.ver a{color:var(--muted)}

/* ── report meta actions ────────────────────────────────────────── */
.recheck{color:var(--muted);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:2px}
.recheck:hover{text-decoration-color:var(--muted)}

/* ── feedback ("was this helpful?") ─────────────────────────────── */
.feedback{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem .9rem;margin:.85rem 0 0}
.fb-q{font-size:.9rem;color:var(--muted)}
.fb-actions{display:inline-flex;gap:.5rem}
.fb-btn{
  font:inherit;font-size:.85rem;line-height:1;padding:.4rem .85rem;cursor:pointer;
  border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--fg);
}
.fb-btn:hover{border-color:var(--muted)}
.fb-thanks{font-size:.88rem;color:var(--ok)}

/* ── findings ───────────────────────────────────────────────────── */
/* A finding is a list entry, not a coloured panel. Severity is carried by a thin
 * rule on the leading edge and the coloured label — the same information as the
 * old filled block, without the visual weight that made findings clash with the
 * lighter sections around them. */
.finding{padding:.1rem 0 .1rem .95rem;margin:0 0 1.05rem;border-inline-start:2px solid var(--low);background:none;border-radius:0}
.finding:last-child{margin-bottom:0}
.finding.high{border-inline-start-width:3px;border-inline-start-color:var(--high)}
.finding.medium{border-inline-start-color:var(--med)}
.finding.info{border-inline-start-color:var(--info)}
.sev{display:inline-block;font-size:.65rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-inline-end:.55rem;vertical-align:.5px}
.finding.high .sev{color:var(--high)} .finding.medium .sev{color:var(--med)}
.finding.low .sev{color:var(--low)} .finding.info .sev{color:var(--info)}
.msg{font-size:.94rem}
.fix{color:var(--muted);font-size:.86rem;margin-top:.4rem;padding-inline-start:.9rem;position:relative}
.fix::before{content:"→";position:absolute;inset-inline-start:0;color:var(--faint)}
[dir="rtl"] .fix::before{content:"←"}
.ok-msg{color:var(--ok);margin:0;font-size:.94rem}

/* ── passing checks ─────────────────────────────────────────────────
 * Collapsed by default. A flat wall of twenty "this is fine" lines competes
 * with the findings for attention and wins, which is the opposite of the point.
 * The tallies carry the reassurance; the list is one click away.
 */
.tallies{display:flex;flex-wrap:wrap;gap:.4rem .5rem;margin-bottom:.25rem}
.tally{
  font-size:.8rem;color:var(--muted);padding:.3rem .6rem;border-radius:6px;
  background:var(--ok-bg);border:1px solid var(--line-soft);white-space:nowrap;
}
.tally b{color:var(--ok);font-weight:600;font-variant-numeric:tabular-nums;margin-inline-end:.2rem}
.pass-details{margin-top:.9rem}
.pass-details > summary{
  cursor:pointer;font-size:.82rem;color:var(--muted);list-style:none;
  display:inline-flex;align-items:center;gap:.35rem;padding:.25rem 0;
}
.pass-details > summary::-webkit-details-marker{display:none}
.pass-details > summary::before{
  content:"";width:0;height:0;border-inline-start:4px solid currentColor;
  border-top:4px solid transparent;border-bottom:4px solid transparent;
  transition:transform .15s;color:var(--faint);
}
[dir="rtl"] .pass-details > summary::before{transform:scaleX(-1)}
.pass-details[open] > summary::before{transform:rotate(90deg)}
[dir="rtl"] .pass-details[open] > summary::before{transform:rotate(90deg) scaleX(-1)}
.pass-details > summary:hover{color:var(--fg)}
.pass-details > summary .count{color:var(--ok);font-weight:600;font-variant-numeric:tabular-nums}
/* Two columns keeps the uneven category sizes from orphaning a lone group on a
   third row, which the auto-fit grid did at three columns. */
.pass-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.1rem 1.6rem;margin-top:1rem;
}
@media (min-width:700px){ .pass-grid{grid-template-columns:1fr 1fr} }
.pass-group h3{font-size:.75rem;font-weight:600;color:var(--muted);margin:0 0 .5rem;letter-spacing:.02em}
li.passed{font-size:.86rem;color:var(--muted);padding-inline-start:1.3rem;position:relative;margin-bottom:.35rem;line-height:1.5}
li.passed::before{
  content:"";position:absolute;inset-inline-start:0;top:.42em;width:9px;height:5px;
  border-inline-start:1.8px solid var(--ok);border-bottom:1.8px solid var(--ok);transform:rotate(-45deg);
}
[dir="rtl"] li.passed::before{transform:rotate(-45deg) scaleX(-1)}

/* ── tables ─────────────────────────────────────────────────────── */
.scroll{overflow-x:auto;margin:0 -.35rem;padding:0 .35rem}
table{width:100%;border-collapse:collapse;font-size:.88rem}
th,td{text-align:start;padding:.45rem .8rem .45rem 0;border-bottom:1px solid var(--line-soft);vertical-align:top}
[dir="rtl"] th,[dir="rtl"] td{padding:.45rem 0 .45rem .8rem}
tr:last-child th,tr:last-child td{border-bottom:0}
th{color:var(--muted);font-weight:500;font-size:.78rem;white-space:nowrap}
thead th{color:var(--faint);text-transform:uppercase;letter-spacing:.06em;font-size:.68rem}
code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,"Cascadia Mono",monospace;font-size:.86em;direction:ltr;unicode-bidi:embed;display:inline-block}
code{background:color-mix(in srgb,var(--fg) 6%,transparent);padding:.1em .38em;border-radius:4px}
.yes{color:var(--ok);font-weight:500}
.no{color:var(--high);font-weight:600}
.dim{color:var(--faint)}
.pill{font-size:.7rem;padding:.1rem .45rem;border-radius:4px;border:1px solid currentColor;white-space:nowrap}
.pill.search,.pill.browse{color:var(--info)} .pill.train{color:var(--faint)}

.method,.rnote{font-size:.8rem;color:var(--muted);line-height:1.55;margin:.9rem 0 0}
.method{padding:.7rem .85rem;background:var(--info-bg);border-radius:8px;border-inline-start:2px solid var(--info)}

/* ── scope ──────────────────────────────────────────────────────── */
.scope p{font-size:.86rem;color:var(--muted);line-height:1.6;margin:0 0 .8rem}
.bullets li{font-size:.86rem;color:var(--muted);padding-inline-start:1.1rem;position:relative;margin-bottom:.35rem;line-height:1.55}
.bullets li::before{content:"·";position:absolute;inset-inline-start:.25rem;color:var(--faint);font-weight:700}
.assistant-note{
  margin:1rem 0 0!important;padding:.8rem .9rem;background:var(--info-bg);border-radius:8px;
  border-inline-start:2px solid var(--info);font-size:.82rem!important;
}

/* ── assistant hand-off ─────────────────────────────────────────── */
.ai{border-color:color-mix(in srgb,var(--info) 30%,var(--line))}
.ai h2{color:var(--info)}
.ai p{font-size:.88rem;color:var(--muted);margin:0 0 1rem;line-height:1.6}
.mdurl{
  display:flex;align-items:center;gap:.5rem;padding:.65rem .8rem;margin-bottom:.75rem;
  background:var(--low-bg);border:1px solid var(--line);border-radius:8px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.83rem;
  direction:ltr;unicode-bidi:embed;overflow-x:auto;white-space:nowrap;
}
.btns{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.btn-s{
  font:inherit;font-size:.82rem;font-weight:500;padding:.45rem .85rem;cursor:pointer;
  border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--fg);
  transition:border-color .15s,color .15s;text-decoration:none;display:inline-block;white-space:nowrap;
}
.btn-s:hover{border-color:var(--info);color:var(--info)}
.btn-s.done{color:var(--ok);border-color:var(--ok)}
.btns .sep{font-size:.8rem;color:var(--faint);margin-inline-start:.3rem}

.err{border-inline-start:3px solid var(--high);background:var(--high-bg)}
.err strong{color:var(--high);display:block;margin-bottom:.25rem;font-family:ui-monospace,monospace;font-size:.9rem}
.loading{color:var(--muted);display:flex;align-items:center;gap:.6rem}
.pulse{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:p 1.2s ease-in-out infinite}
@keyframes p{0%,100%{opacity:.25}50%{opacity:1}}

/* ── footer ─────────────────────────────────────────────────────────
 * Brand + positioning on one row, provenance on the next. The methodology
 * version and check count are not decoration: a published score is only citable
 * if a reader can see which ruleset produced it.
 */
footer{margin-top:4rem;padding-top:1.5rem;border-top:1px solid var(--line);color:var(--faint);font-size:.82rem;line-height:1.6}
footer strong{color:var(--muted)}
.foot-top{display:flex;gap:1.75rem;align-items:flex-start;flex-wrap:wrap}
.foot-top .logo{flex-shrink:0;opacity:.85}
.foot-top .wordmark{font-size:1.15rem}
.foot-top .mark{width:23px;height:23px}
.foot-claim{margin:0;flex:1;min-width:260px;max-width:58ch;color:var(--muted);font-size:.84rem;line-height:1.65}
.foot-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;
  margin-top:1.4rem;padding-top:1rem;border-top:1px solid var(--line-soft);font-size:.78rem;
}
.foot-meta code{font-size:.9em}
.foot-meta a{color:var(--muted);text-decoration-color:var(--line);text-underline-offset:2px}
.foot-meta a:hover{color:var(--fg)}
.foot-meta .dot{color:var(--line);user-select:none}
@media (max-width:560px){ .foot-top{gap:1.1rem} }

@media (max-width:560px){
  .wrap{padding:1.75rem 1rem 4rem}
  form{flex-direction:column}
  button{width:100%}
  .wordmark{font-size:1.25rem}
  .score-top{gap:1rem}
  .grade{min-width:100%}
}

/* ── skipped checks ─────────────────────────────────────────────────
 * Shown rather than silently dropped: a check excluded without explanation
 * moves the denominator invisibly, so two pages can be scored out of different
 * totals with nothing saying so.
 */
.skipped{margin-top:1.4rem;padding-top:1.1rem;border-top:1px solid var(--line-soft)}
.skipped h3{font-size:.75rem;font-weight:600;color:var(--muted);margin:0 0 .6rem}
.count-dim{color:var(--faint);font-weight:600}
li.skip{
  display:flex;flex-wrap:wrap;gap:.15rem .6rem;font-size:.82rem;
  color:var(--faint);margin-bottom:.4rem;line-height:1.5;
}
li.skip > span{color:var(--muted)}
li.skip > em{font-style:normal;color:var(--faint)}
li.skip > em::before{content:"— "}

/* ── document pages (methodology, about) ────────────────────────────
 * Wider than a report: spec tables need room, and a reference document is read
 * rather than scanned.
 */
.wrap.wide{max-width:1000px}
.doc-h1{font-size:2rem;font-weight:600;letter-spacing:-.025em;margin:0 0 .35rem;line-height:1.15}
.doc-version{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;color:var(--faint);margin:0 0 1.5rem}
.doc-version code{background:none;padding:0;color:var(--muted);font-weight:600}
.doc-note{font-size:.87rem;color:var(--muted);line-height:1.65;margin:1rem 0 0;max-width:72ch}

.toc{
  display:flex;flex-wrap:wrap;gap:.35rem .5rem;margin:2rem 0 2.5rem;
  padding:.9rem 1rem;background:var(--surface);border:1px solid var(--line);border-radius:10px;
}
.toc a{
  font-size:.8rem;color:var(--muted);text-decoration:none;padding:.2rem .55rem;
  border-radius:6px;border:1px solid transparent;
}
.toc a:hover{color:var(--fg);border-color:var(--line);background:var(--low-bg)}

.doc{margin-bottom:3rem;scroll-margin-top:1.5rem}
.doc h2{
  font-size:1.25rem;font-weight:600;letter-spacing:-.015em;margin:0 0 .9rem;
  padding-bottom:.5rem;border-bottom:1px solid var(--line);text-transform:none;color:var(--fg);
}
.doc > p{font-size:.94rem;line-height:1.7;color:var(--fg);max-width:74ch;margin:0 0 1rem}
.cat-h3{
  font-size:.95rem;font-weight:600;margin:1.8rem 0 .6rem;
  display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;
}
.cat-meta{font-size:.75rem;color:var(--faint);font-weight:400}

ol.numbered{margin:0;padding-inline-start:1.3rem}
ol.numbered li{font-size:.92rem;line-height:1.7;color:var(--muted);margin-bottom:.85rem;max-width:74ch}
ol.numbered strong{color:var(--fg)}

/* weight distribution bar */
.wbar{display:flex;gap:3px;margin:0 0 1.4rem;height:auto}
.wseg{
  display:flex;flex-direction:column;gap:.2rem;justify-content:center;
  padding:.7rem .75rem;border-radius:8px;background:var(--low-bg);
  border:1px solid var(--line-soft);min-width:0;overflow:hidden;
}
.wseg em{font-style:normal;font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wseg b{font-size:1.05rem;font-variant-numeric:tabular-nums;color:var(--fg)}
.wseg-access{background:var(--info-bg)}
.wseg-freshness{background:var(--med-bg)}
.wseg-structured{background:var(--ok-bg)}
@media (max-width:560px){ .wbar{flex-wrap:wrap} .wseg{flex:1 1 45%!important} }

table.spec{font-size:.88rem;margin-top:.4rem}
table.spec thead th{
  font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:var(--faint);
  padding-bottom:.5rem;border-bottom:1px solid var(--line);
}
table.spec td{padding:.6rem .9rem .6rem 0;vertical-align:top;line-height:1.55}
[dir="rtl"] table.spec td{padding:.6rem 0 .6rem .9rem}
table.spec td:last-child{padding-inline-end:0}
table.checks .wcell{
  width:3.5rem;color:var(--muted);font-variant-numeric:tabular-nums;
  font-weight:600;padding-top:.72rem;
}
.check-pass{color:var(--fg);font-size:.9rem}
.check-ids{margin-top:.28rem;display:flex;gap:.3rem;flex-wrap:wrap}
.check-ids code{font-size:.74rem;color:var(--muted);background:var(--low-bg)}
.skip-note{font-size:.76rem;color:var(--faint);margin-top:.28rem}
.gate-tag{
  font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;
  color:var(--high);border:1px solid currentColor;border-radius:4px;
  padding:.05rem .3rem;margin-inline-start:.4rem;vertical-align:1.5px;
}
.gate-list li{
  font-size:.88rem;color:var(--muted);margin-bottom:.45rem;
  padding-inline-start:.9rem;border-inline-start:2px solid var(--high);line-height:1.55;
}
.gband{
  display:inline-block;width:1.5rem;text-align:center;font-weight:700;font-size:.82rem;
  border-radius:4px;padding:.08rem 0;
}
.gband.g-A,.gband.g-B{background:var(--ok-bg);color:var(--ok)}
.gband.g-C{background:var(--med-bg);color:var(--med)}
.gband.g-D,.gband.g-F{background:var(--high-bg);color:var(--high)}

/* Compact category summary on the landing page: enough for a machine to know
   what the tool measures, without the manual that used to sit here. */
.card.compact{padding-bottom:1.1rem}
.cat-summary{display:grid;gap:.6rem}
.cat-summary > div{display:flex;gap:.7rem;align-items:baseline;flex-wrap:wrap;font-size:.88rem;line-height:1.6}
.cat-summary b{min-width:8.5rem;font-weight:600;color:var(--fg);flex-shrink:0}
.cat-summary span{color:var(--muted);flex:1;min-width:200px}
.cat-summary em{font-style:italic;color:var(--fg)}
@media (max-width:520px){ .cat-summary b{min-width:100%} }
.basis{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:.1rem .4rem;border-radius:4px;white-space:nowrap}
.basis-experiment{color:var(--ok);background:var(--ok-bg)}
.basis-mechanism{color:var(--info);background:var(--info-bg)}
.basis-judgement{color:var(--med);background:var(--med-bg)}
/* Provenance line under the footer nav — quieter than the links above it. */
.foot-sub{margin-top:.5rem;font-size:.74rem;color:var(--faint)}
.foot-sub code{color:var(--muted)}
