/* ==========================================================================
   Tx Doctor — diagnostics console theme
   ========================================================================== */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #263044;
  --muted: #5b6779;
  --faint: #8792a4;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;

  --brand: #2f5cf6;
  --brand-deep: #1d3fd0;
  --brand-soft: #ecf1ff;

  --bad: #d92d20;
  --bad-deep: #8f1d14;
  --bad-soft: #fef3f2;
  --bad-line: #fbd5d0;

  --good: #067647;
  --good-soft: #ecfdf3;
  --good-line: #b7e8cd;

  --warn: #a15c00;
  --warn-soft: #fffaeb;
  --warn-line: #f2d999;

  --night: #070b15;
  --night-2: #0c1322;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
  --shadow-md: 0 10px 26px -16px rgba(11, 18, 32, .28), 0 2px 6px rgba(11, 18, 32, .04);
  --shadow-lg: 0 32px 64px -32px rgba(11, 18, 32, .38), 0 8px 20px -12px rgba(11, 18, 32, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: clamp(900px, 70vw, 1280px); margin: 0 auto; padding: 0 22px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono); font-size: .87em; background: #f2f5fa; color: #1e293b;
  padding: 1.5px 6px; border-radius: 5px; border: 1px solid #e2e8f2;
  overflow-wrap: anywhere;
}
.verdict-title, .stat-v { overflow-wrap: anywhere; }
::selection { background: #cfdcff; }

/* ---------- nav ---------- */
.nav {
  background: rgba(7, 11, 21, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 650; color: #fff; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: #fff; }
.pill {
  font-size: 15px; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 9px; background: linear-gradient(150deg, #2f5cf6, #7c3aed);
  box-shadow: 0 4px 12px -4px rgba(47, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nav-links { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.lang-select {
  background: rgba(255, 255, 255, .06); color: #dbe4f3; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px; padding: 4px 8px; font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.lang-select option { color: #1a2437; }
.nav-links a { color: #94a3bb; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-diag { color: #dbe4f3 !important; font-weight: 600 !important; }
.lang-switch {
  display: flex; gap: 7px; align-items: center;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255, 255, 255, .14);
}
.lang-switch .lang-link { font-size: 11.5px; color: #6f7f99; letter-spacing: .01em; }
.lang-switch .lang-link.on { color: #fff; font-weight: 650; }
.lang-switch .lang-link:hover { color: #cbd8ef; text-decoration: none; }

/* Error-library dropdown — the nav must not look like a network switch */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none; cursor: pointer; color: #94a3bb; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::marker { content: ""; }
.nav-drop > summary:hover, .nav-drop[open] > summary { color: #fff; text-decoration: none; }
.nav-drop .caret { font-size: 10px; color: #6f7f99; transition: transform .15s ease; }
.nav-drop[open] .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 40;
  min-width: 232px; padding: 7px;
  background: #0e1628; border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px;
  box-shadow: 0 24px 55px -14px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column;
}
.nav-drop-menu::before {
  content: ""; position: absolute; left: 22px; top: -6px; width: 10px; height: 10px;
  background: #0e1628; border-left: 1px solid rgba(255, 255, 255, .13);
  border-top: 1px solid rgba(255, 255, 255, .13); transform: rotate(45deg);
}
.nav-drop-menu a {
  color: #cbd8ef; font-size: 13px; font-weight: 500; white-space: nowrap;
  padding: 9px 11px; border-radius: 8px;
}
.nav-drop-menu a:hover { color: #fff; background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav-drop-note {
  margin: 5px 0 1px; padding: 9px 11px 2px; max-width: 246px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f90ad; font-size: 11.5px; line-height: 1.5; white-space: normal;
}

/* ---------- hero (dark) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 30px 0 54px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(47, 92, 246, .38), transparent 70%),
    radial-gradient(600px 320px at 88% 12%, rgba(124, 58, 237, .22), transparent 72%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px; background-position: center;
  -webkit-mask-image: radial-gradient(110% 78% at 50% 0%, #000 26%, transparent 76%);
  mask-image: radial-gradient(110% 78% at 50% 0%, #000 26%, transparent 76%);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: #93a7c9; margin: 0 0 10px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }
.hero h1 {
  font-size: clamp(31px, 4vw, 52px); line-height: 1.1; letter-spacing: -.032em;
  margin: 0 0 10px; font-weight: 700; color: #fff; max-width: 100%; text-wrap: balance;
}
.hero .lede { font-size: clamp(17.5px, 1.05vw, 19px); color: #a7b5cc; margin: 0 0 16px; max-width: 660px; }

.lookup { display: flex; gap: 10px; max-width: 860px; }
#sig-input {
  flex: 1; min-width: 0; padding: 15px 16px; font-size: 15px; font-family: var(--mono);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#sig-input::placeholder { color: #74839c; }
#sig-input:focus {
  outline: none; border-color: #5b81ff; background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(47, 92, 246, .22);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 24px; font-size: 15px; font-weight: 620; border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #4d78ff, var(--brand)); color: #fff; cursor: pointer;
  white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(47, 92, 246, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: #fff; color: #33405a; border-color: var(--line-strong);
  box-shadow: var(--shadow-sm); font-weight: 600;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fbfcff; }
.btn.small { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }

.under-form { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: #77869e; flex-wrap: wrap; }
.linklike { background: none; border: none; padding: 0; color: #9db4e6; font: inherit; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }
.sep { color: rgba(255, 255, 255, .18); }

.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #9eafc9;
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
}
.chip b { color: #dbe4f3; font-weight: 650; }

/* ---------- status + result zone ---------- */
.result-zone { padding: 30px 0 0; position: relative; z-index: 2; }
.result-zone:has(.result:not([hidden])) { margin-top: -28px; padding-top: 0; }
.status {
  margin: 0 0 14px; font-size: 14px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow-sm);
}
.status.bad { color: var(--bad-deep); background: var(--bad-soft); border-color: var(--bad-line); }

/* ---------- report card ---------- */
.result { margin: 0; }
.result[hidden] { display: none; }

.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise .38s cubic-bezier(.16, .84, .44, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.report-head { position: relative; padding: 26px 30px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.report-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line-strong); }
.report.bad .report-head { background: linear-gradient(180deg, #fff8f7 0%, #ffffff 78%); }
.report.bad .report-head::before { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.report.good .report-head { background: linear-gradient(180deg, #f6fef9 0%, #ffffff 78%); }
.report.good .report-head::before { background: linear-gradient(180deg, #22c55e, #067647); }
.report.warn .report-head { background: linear-gradient(180deg, #fffcf2 0%, #ffffff 78%); }
.report.warn .report-head::before { background: linear-gradient(180deg, #f59e0b, #a15c00); }

.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
}
.verdict .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.verdict.bad { color: var(--bad-deep); background: var(--bad-soft); border-color: var(--bad-line); }
.verdict.good { color: var(--good); background: var(--good-soft); border-color: var(--good-line); }
.verdict.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }

.verdict-title { font-size: 27px; line-height: 1.18; margin: 15px 0 8px; letter-spacing: -.025em; font-weight: 700; }
.verdict-sum { color: var(--muted); margin: 0; font-size: 15.5px; max-width: 700px; }
.verdict-sum strong { color: var(--ink-2); }

/* key facts strip */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px; background: var(--line); border-bottom: 1px solid var(--line);
}
.stat { background: #fcfdff; padding: 15px 18px 16px; }
.stat-k {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 6px;
}
.stat-v { display: block; font-size: 19px; font-weight: 680; letter-spacing: -.02em; color: var(--ink); line-height: 1.24; }
.stat-v.mono { font-family: var(--mono); font-size: 20px; letter-spacing: -.03em; }
.stat-v small { display: block; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-top: 3px; font-family: var(--mono); }
.stat.is-key { background: #fff6f5; }
.stat.is-key .stat-v { color: var(--bad); }
.stat.is-prog .stat-v { font-size: 16px; }

.report-body { padding: 22px 30px 26px; }
.report-body > h3 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); margin: 26px 0 10px;
}
.report-body > h3:first-child { margin-top: 0; }

/* why / fix cards */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols > div {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; background: #fbfcfe;
}
.cols > div:first-child { border-left: 3px solid #f0b429; }
.cols > div:last-child { border-left: 3px solid #12b76a; }
.cols h3 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: #48566b; margin: 0 0 9px;
}
.cols ul, .cols ol { margin: 0; padding-left: 17px; font-size: 14.5px; color: #2b3547; }
.cols li { margin-bottom: 7px; }
.cols li:last-child { margin-bottom: 0; }

/* panels + key/value table */
.panel {
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 4px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
}
.panel-head h3 {
  margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #43516a;
}
.panel-head .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); background: #fff; padding: 3px 8px; border-radius: 5px;
}
.copybtn {
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 5px 10px; cursor: pointer; transition: .15s;
}
.copybtn:hover { color: var(--brand); border-color: var(--brand); }

table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kv thead th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); padding: 9px 18px; background: #fff; border-bottom: 1px solid var(--line);
}
table.kv thead th:first-child { width: 208px; }
table.kv tbody th {
  width: 208px; text-align: left; vertical-align: top; padding: 12px 18px;
  font-weight: 620; color: #3a475c; font-size: 13.5px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  background: #fafbfd;
}
table.kv tbody td {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.8px; color: #0f172a; word-break: break-all; line-height: 1.6;
}
table.kv tbody tr:last-child th, table.kv tbody tr:last-child td { border-bottom: none; }
table.kv tbody tr:hover td { background: #f8faff; }
table.kv tbody tr.key th { background: #fff6f5; color: var(--bad-deep); box-shadow: inset 3px 0 0 var(--bad); }
table.kv tbody tr.key td { background: #fff8f7; color: var(--bad-deep); font-weight: 620; }
table.kv tbody tr.key:hover td { background: #fff3f1; }

/* logs */
.logs {
  font-family: var(--mono); font-size: 12px; line-height: 1.72;
  background: #0a0f1c; color: #c3cfe2; padding: 15px 18px; border-radius: 12px;
  overflow-x: auto; margin: 0; border: 1px solid #0a0f1c;
  white-space: pre-wrap; word-break: break-word;
}
.log-bad { color: #ff9d90; font-weight: 600; }
.panel .logs { border-radius: 0; border: none; }

/* actions + fineprint */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.fineprint { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }
.note {
  font-size: 14px; color: #3f4c63; margin: 16px 0 0; padding: 12px 16px;
  border-left: 3px solid #c7d2e5; background: #f7f9fc; border-radius: 0 8px 8px 0;
}
.note code { background: #fff; }
.plain { padding-left: 18px; font-size: 15px; color: #2b3547; }
.plain li { margin-bottom: 6px; }

/* ---------- generic sections ---------- */
.band { padding: 52px 0; border-top: 1px solid var(--line); }
.band h2, .prose h2 {
  font-size: 26px; margin: 0 0 10px; letter-spacing: -.025em; font-weight: 700;
}
.section-lede { color: var(--muted); margin: 0 0 26px; max-width: 700px; font-size: 15.5px; }
.chain-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.chain-tag {
  display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: #33405a;
  padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-sm);
}
.chain-tag b { color: var(--ink); font-weight: 650; }
.chain-tag small { color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
.band-eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.step .num {
  display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 750; border: 1px solid #d8e2ff;
}
.step h3 { font-size: 15.5px; margin: 11px 0 6px; letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* home "five failures" table */
.table-panel {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-md);
}
table.lib { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lib thead th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); padding: 13px 20px; background: #f8fafd; border-bottom: 1px solid var(--line);
}
table.lib tbody td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: #2b3547; }
table.lib tbody tr:last-child td { border-bottom: none; }
table.lib tbody tr:hover td { background: #f8faff; }
table.lib td:first-child { width: 250px; font-weight: 600; }
table.lib td:first-child a { color: var(--ink); }
table.lib td:first-child a:hover { color: var(--brand); }
table.lib td:first-child code {
  display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 500;
  background: #f4f6fa; color: #64718a; border-color: #e4e9f2;
}
.more { margin: 18px 0 0; font-size: 15px; font-weight: 550; }

/* prose + faq */
.prose { max-width: 980px; }
.prose h3 { font-size: 18.5px; margin: 30px 0 8px; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 16px; color: #2b3547; }
.prose li { margin-bottom: 9px; }
/* FAQ accordions only — the nav dropdown is a different <details> (see .nav-drop) */
details:not(.nav-drop) {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 18px; background: #fff;
  margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: border-color .15s;
}
details:not(.nav-drop):hover { border-color: var(--line-strong); }
details:not(.nav-drop)[open] { border-color: #c9d6f2; }
details:not(.nav-drop) > summary { cursor: pointer; font-weight: 620; font-size: 15.5px; list-style: none; position: relative; padding-right: 24px; }
details:not(.nav-drop) > summary::-webkit-details-marker { display: none; }
details:not(.nav-drop) > summary::after {
  content: "+"; position: absolute; right: 0; top: -1px; font-size: 19px; color: var(--faint); font-weight: 400;
}
details:not(.nav-drop)[open] > summary::after { content: "–"; }
details:not(.nav-drop) > p { margin: 10px 0 2px; color: var(--muted); font-size: 15px; }

/* footer */
.footer { background: var(--night); color: #7b8aa3; padding: 30px 0; font-size: 13px; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer a { color: #9fb2d4; }
.foot-langs { flex-basis: 100%; margin-top: 2px; font-size: 12.5px; color: #6f7f99; }

/* ---------- error library pages ---------- */
main.wrap { padding-top: 0; }
.crumb { font-size: 12.5px; color: var(--faint); margin: 26px 0 8px; }
.crumb a { color: var(--muted); }
.err-hero { padding: 6px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.err-hero h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.18; letter-spacing: -.026em; margin: 6px 0 12px; font-weight: 700; }
.lede { font-size: 17px; color: var(--muted); margin: 0 0 20px; max-width: 680px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: #f3f6fb; border: 1px solid #e0e7f1; border-radius: 6px; padding: 4px 9px; color: #5b6b85;
  margin-bottom: 12px;
}
.err-hero .btn { margin-top: 4px; }

.card {
  border: 1px solid var(--line); border-radius: 13px; padding: 20px 22px; margin: 16px 0;
  background: #fff; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: -.01em; }
.card ul, .card ol { margin: 0; padding-left: 19px; }
.card li { margin-bottom: 8px; color: #2b3547; font-size: 15px; }
.card .logs { border-radius: 10px; margin-top: 4px; }
.grid-errors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.err-card {
  display: block; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px;
  background: #fff; box-shadow: var(--shadow-sm); transition: .16s; color: inherit;
}
.err-card:hover { text-decoration: none; border-color: #c6d4f2; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.err-card h3 { font-size: 14.5px; margin: 0 0 5px; color: var(--ink); letter-spacing: -.01em; }
.err-card p { font-size: 12.8px; color: var(--faint); margin: 0; font-family: var(--mono); }
.cta {
  background: linear-gradient(135deg, #eef3ff, #f6f2ff);
  border: 1px solid #dbe4fb; border-radius: 13px; padding: 20px 22px; margin: 24px 0;
}
.cta p { margin: 0 0 12px; color: #2b3547; }
.cta .btn { padding: 11px 18px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 20px 0 44px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; margin-bottom: 22px; }
  .lookup { flex-direction: column; }
  .lookup .btn { width: 100%; }
  .result-zone:has(.result:not([hidden])) { margin-top: -24px; }
  .report-head { padding: 20px 18px 18px; }
  .report-body { padding: 18px 18px 22px; }
  .verdict-title { font-size: 21px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid-errors { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-inner { height: auto; padding: 9px 0; flex-wrap: wrap; gap: 8px; }
  .nav-links { flex-wrap: wrap; row-gap: 8px; }
  .nav-diag { display: none; }
  .lang-switch { border-left: none; padding-left: 0; margin-left: 0; }
  /* on phones the dropdown flows inline instead of overlaying the wrapped nav */
  .nav-drop { flex-basis: 100%; }
  .nav-drop-menu {
    position: static; min-width: 0; width: 100%; margin-top: 6px;
    box-shadow: none; box-sizing: border-box;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop-note { max-width: none; }
  .band { padding: 38px 0; }
  .band h2, .prose h2 { font-size: 22px; }

  /* stacked key/value table on phones */
  table.kv thead { display: none; }
  table.kv tbody th, table.kv tbody td { display: block; width: auto; }
  table.kv tbody th {
    border-right: none; border-bottom: none; padding: 10px 16px 0;
    font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  }
  table.kv tbody td { border-bottom: 1px solid var(--line); padding: 4px 16px 12px; }
  table.kv tbody tr:last-child td { border-bottom: none; }
  table.kv tbody tr.key th { box-shadow: inset 3px 0 0 var(--bad); }
  .table-panel { overflow-x: auto; }
  table.lib { min-width: 560px; }
  .actions .btn { flex: 1 1 100%; white-space: normal; }
}
