/* iheadlined.com — shared styles */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --brand: #3730a3;
  --brand-2: #4f46e5;
  --brand-soft: #eef2ff;
  --good: #047857;   --good-bg: #ecfdf5;
  --mixed: #92400e;  --mixed-bg: #fffbeb;
  --bad: #b91c1c;    --bad-bg: #fef2f2;
  --info: #0e7490;   --info-bg: #ecfeff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.brand-name { font-weight: 800; font-size: 18px; display: block; }
.brand-tag {
  display: inline-block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #c7d2fe; padding: 1px 8px; border-radius: 999px;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  padding: 9px 14px; border-radius: 10px;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-links a[aria-current="page"] { background: var(--brand); color: #fff; }

/* Hero */
.hero { padding: 56px 0 32px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 820px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 720px; margin-top: 14px; }

.page-head { padding: 44px 0 20px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 28px 0; }

/* URL checker */
.checker { padding: 24px; margin-top: 28px; }
.checker form { display: flex; gap: 10px; flex-wrap: wrap; }
.checker label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.url-input {
  flex: 1 1 420px; min-width: 0; font: inherit; font-size: 16px; padding: 14px 16px;
  border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink);
}
.url-input:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 4px #e0e7ff; }
.btn {
  border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 700; font-size: 15px;
  background: var(--brand); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: #312e81; color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid #c7d2fe; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }

.samples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.samples-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.chip {
  border: 1px solid var(--line); background: #f8fafc; color: var(--ink-2); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.chip:hover { border-color: #a5b4fc; background: var(--brand-soft); color: var(--brand); }

.notice {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px;
  background: var(--mixed-bg); border: 1px solid #fde68a; color: #78350f;
}
.notice.info { background: var(--info-bg); border-color: #a5f3fc; color: #155e75; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Report */
.report { margin-top: 24px; }
.report-head { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.report-head h2 { font-size: 28px; font-weight: 800; }
.report-head .detected { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.report-head .arch { color: var(--ink-2); margin-top: 8px; max-width: 760px; }
.level {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.level::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.level.high { color: var(--good); background: var(--good-bg); border-color: #a7f3d0; }
.level.mixed { color: var(--mixed); background: var(--mixed-bg); border-color: #fde68a; }
.level.low { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.level.opaque { color: var(--bad); background: var(--bad-bg); border-color: #fecaca; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 16px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-weight: 700; margin-top: 4px; font-size: 15px; }
.stat-value.good { color: var(--good); }
.stat-value.mixed { color: var(--mixed); }
.stat-value.bad { color: var(--bad); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid; }
.badge.verified { color: var(--good); background: var(--good-bg); border-color: #a7f3d0; }
.badge.subproc { color: var(--info); background: var(--info-bg); border-color: #a5f3fc; }
.badge.opaque { color: var(--bad); background: var(--bad-bg); border-color: #fecaca; }
.badge.warn { color: var(--mixed); background: var(--mixed-bg); border-color: #fde68a; }

.report-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
}
.tab:hover { background: #f1f5f9; }
.tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); }
.panel { padding: 22px 24px 26px; }
.panel[hidden] { display: none; }
.item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.item p { color: var(--ink-2); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.view { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); }
.view h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.view.you { background: #f8fafc; }
.view.them { background: var(--brand-soft); border-color: #c7d2fe; }
.view ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.view li + li { margin-top: 6px; }
.sub-h { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; }

.aside { padding: 20px; position: sticky; top: 92px; }
.aside h3 { font-size: 17px; font-weight: 800; }
.aside .hint { font-size: 13px; color: var(--muted); margin-top: 2px; }
.checklist { list-style: none; padding: 0; margin: 14px 0 16px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--ink-2); }
.checklist input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }
.progress { font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.aside-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.docs li:last-child { border-bottom: 0; }
.docs a { text-decoration: none; font-weight: 600; }
.docs a::after { content: " \2197"; font-size: 12px; }
.toast { font-size: 13px; color: var(--good); margin-top: 8px; min-height: 18px; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Matrix */
.matrix-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
}
.filter:hover { border-color: #a5b4fc; }
.filter[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 1320px; font-size: 14px; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { width: 16%; min-width: 180px; }
.matrix th {
  text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding: 16px; background: #f8fafc; border-bottom: 1px solid var(--line); vertical-align: bottom;
}
.matrix td { padding: 18px 16px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix tbody tr { cursor: pointer; }
.matrix tbody tr:hover td { background: #fafaff; }
.matrix td:first-child { min-width: 170px; }
.matrix .name { font-weight: 800; font-size: 17px; color: var(--ink); display: block; margin-bottom: 6px; }
.matrix .open { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: none; font-size: 13.5px; }
.matrix tr[hidden] { display: none; }

.leaderboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.lb { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-decoration: none; color: inherit; }
.lb:hover { border-color: #a5b4fc; }
.lb-rank { font-size: 28px; font-weight: 800; color: #c7d2fe; grid-row: span 3; line-height: 1; }
.lb-name { font-weight: 800; font-size: 17px; }
.lb-why { font-size: 13.5px; color: var(--ink-2); grid-column: 2; }

/* Knowledgebase */
.kb { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.kb-nav { padding: 12px; position: sticky; top: 92px; }
.kb-nav h3 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.kb-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 10px; border-radius: 8px;
}
.kb-nav a:hover { background: #f1f5f9; }
.kb-nav a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); }
.kb-nav .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.high { background: var(--good); } .dot.mixed { background: #d97706; } .dot.low { background: #ea580c; } .dot.opaque { background: var(--bad); }
.kb-article .report { margin-top: 0; }
.prose-card { padding: 24px; }
.prose-card h2 { font-size: 26px; font-weight: 800; }
.prose-card .tagline { color: var(--brand); font-weight: 700; margin-top: 4px; }
.prose-card .lead { color: var(--ink-2); margin-top: 12px; }
.callout { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--mixed-bg); border: 1px solid #fde68a; color: #78350f; font-size: 15px; }
.callout strong { display: block; margin-bottom: 2px; }
.bullets { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); }
.bullets li + li { margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* Roadmap band */
.next { padding: 28px; margin: 32px 0 8px; background: var(--ink); color: #e2e8f0; border: 0; }
.next h2 { color: #fff; font-size: 22px; font-weight: 800; }
.next .eyebrow { color: #a5b4fc; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.next-grid div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 16px; }
.next-grid h3 { color: #fff; font-size: 15.5px; margin-bottom: 6px; }
.next-grid p { font-size: 14px; color: #cbd5e1; }
.soon { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a5b4fc; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; text-decoration: none; color: inherit; display: block; }
.feature:hover { border-color: #a5b4fc; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.feature .go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--brand-2); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 40px; font-size: 13.5px; color: var(--muted); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner strong { color: var(--ink); }
.footer-inner p { max-width: 640px; margin-top: 4px; }

@media (max-width: 980px) {
  .report-body, .kb { grid-template-columns: minmax(0, 1fr); }
  .aside, .kb-nav { position: static; }
  .leaderboard, .features, .next-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .two-col, .leaderboard, .features, .next-grid { grid-template-columns: 1fr; }
  .report-head { grid-template-columns: 1fr; }
  .nav-inner { padding: 10px 0; }
  .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Rejection Detective */
.features { grid-template-columns: repeat(2, 1fr); }
.det-row { padding: 18px 20px 16px; margin: 0 0 14px; border: 1px solid var(--line); position: relative; min-width: 0; }
.det-legend { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); padding: 0 6px; }
.det-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.det-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.det-url { grid-column: 1 / -1; }
.det-url .url-input { width: 100%; padding: 11px 14px; font-size: 15px; }
.det-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.det-select {
  width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1.5px solid #cbd5e1;
  border-radius: 10px; background: #fff; color: var(--ink);
}
.det-select:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 4px #e0e7ff; }
.det-ats { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 6px; min-height: 18px; }
.det-ats.bad { color: var(--bad); }
.det-remove {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
}
.det-remove:hover { background: var(--bad-bg); color: var(--bad); }
.det-result { margin-top: 28px; }
.report-intro h2 { font-size: 26px; font-weight: 800; margin-top: 2px; }
.det-block { margin-top: 18px; }
.det-block > .card, section.card.det-block { padding: 20px 24px; }
.det-cause { padding: 20px 24px; margin-top: 12px; }
.det-cause-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.det-cause-head h3 { font-size: 18px; font-weight: 800; margin-right: 4px; }
.det-cause p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.det-evidence { font-size: 14px; }
.det-counter { background: var(--mixed-bg); border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; }
.det-action { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; color: var(--ink) !important; }
.det-notes { font-size: 14px; }
.item h4 .level { margin-left: 8px; vertical-align: middle; }
.det-danger { color: var(--bad); border-color: #fecaca; }
.det-danger:hover { background: var(--bad-bg); color: var(--bad); }
table.det-log-table { min-width: 640px; }
.det-log-table tbody tr { cursor: default; }
@media (max-width: 860px) {
  .det-grid, .det-grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .det-grid, .det-grid-3, .features { grid-template-columns: minmax(0, 1fr); }
}

/* Evidence library */
.det-causes { margin-top: 40px; }
.causes-title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.causes-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.causes-jump .chip { font-family: var(--font); text-decoration: none; }
.stage-group { margin-top: 28px; scroll-margin-top: 90px; }
.stage-title { font-size: 19px; font-weight: 800; }
.stage-signal { margin: 2px 0 10px; font-weight: 500; }
.cause-card { margin-top: 10px; padding: 0; scroll-margin-top: 90px; }
.cause-card summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  display: flex; flex-direction: column; gap: 4px;
}
.cause-card summary::-webkit-details-marker { display: none; }
.cause-card summary::after {
  content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; font-weight: 700; color: var(--brand);
}
.cause-card[open] summary::after { content: "\2212"; }
.cause-card summary:hover { background: #fafaff; border-radius: var(--radius); }
.cause-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cause-name { font-weight: 800; font-size: 16.5px; }
.cause-signal { font-size: 14px; color: var(--ink-2); }
.cause-confirmed { font-size: 13px; font-weight: 600; color: var(--good); }
.cause-body { padding: 0 20px 18px; border-top: 1px solid var(--line); }
.ats-list { list-style: none; padding: 0; margin: 6px 0 0; }
.ats-row { padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.ats-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; border: 1px solid; margin-right: 6px; }
.ats-chip.yes { color: var(--good); background: var(--good-bg); border-color: #a7f3d0; }
.ats-chip.partial { color: var(--mixed); background: var(--mixed-bg); border-color: #fde68a; }
.ats-chip.no { color: var(--muted); background: #f1f5f9; border-color: var(--line); }
.cause-sources li { font-size: 13.5px; }
.det-evidence-link { font-size: 14px; }
.cause-head .level { white-space: normal; max-width: 100%; }

/* Knockout questions topic + unscored systems */
.level.unscored { color: var(--ink-2); background: #f1f5f9; border-color: var(--line); }
.dot.unscored { background: #cbd5e1; }
.prose-card .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.prose-card .items .item { margin: 0; }
table.ko-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; margin-top: 4px; }
.ko-table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.ko-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ko-table tr:last-child td { border-bottom: 0; }
.prose-card p + p, .prose-card .table-wrap + p { margin-top: 12px; }
.muted { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .prose-card .items { grid-template-columns: minmax(0, 1fr); } }

/* Detective: one link, verdict, possible causes, questions */
.det-step { padding: 22px 24px; margin-top: 16px; }
.det-step:first-child { margin-top: 0; }
.det-step[hidden] { display: none; }
.det-step-h { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.det-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; flex: none; }
.det-step .url-input { width: 100%; margin-top: 10px; }
.det-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 12px; }
.det-req { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.det-select[aria-invalid="true"], .url-input[aria-invalid="true"] { border-color: var(--bad); }
.det-verdict { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; }
.det-verdict p { margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }
.det-verdict-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; flex: none; background: #e2e8f0; color: var(--ink-2); }
.det-verdict.verified { background: var(--good-bg); border-color: #a7f3d0; }
.det-verdict.verified .det-verdict-icon { background: var(--good); color: #fff; }
.det-verdict.identified { background: var(--info-bg); border-color: #a5f3fc; }
.det-verdict.identified .det-verdict-icon { background: var(--info); color: #fff; }
.det-verdict.board, .det-verdict.unknown { background: var(--mixed-bg); border-color: #fde68a; }
.det-verdict.invalid { background: var(--bad-bg); border-color: #fecaca; }
.det-verdict.invalid .det-verdict-icon { background: var(--bad); color: #fff; }
.det-pgroup { margin-top: 16px; }
.det-pgroup h3, .det-pgroup summary { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.det-pgroup h3 span { color: var(--muted); font-weight: 600; }
.det-pgroup.yes h3 { color: var(--good); }
.det-pgroup summary { cursor: pointer; }
.det-possible-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.det-possible-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.det-pgroup.yes .det-possible-list li { border-color: #a7f3d0; }
.det-possible-list a { font-weight: 700; text-decoration: none; }
.det-stage { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.det-pnote { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 720px) {
  .det-grid-2, .det-possible-list { grid-template-columns: minmax(0, 1fr); }
  .det-step { padding: 18px; }
}

/* Live job check */
.live-wrap { margin-top: 12px; }
.live-wrap .btn { margin-right: 10px; }
.live-note { font-size: 13px; color: var(--muted); }
.live-out:empty { display: none; }
.live-card { margin-top: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.live-card p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.live-card.open { border-color: #a7f3d0; }
.live-card.closed { border-color: #fecaca; background: var(--bad-bg); }
.live-card.warn { border-color: #fde68a; background: var(--mixed-bg); }
.live-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; }
.live-card.closed .live-dot { background: var(--bad); }
.live-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.live-facts dt { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.live-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.live-signals { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.live-signals li + li { margin-top: 6px; }
.live-q { margin-top: 14px; }
.live-q h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.live-q ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.live-q li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.live-q li.ko { border-color: #fde68a; background: #fffbeb; }
.ko-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; padding: 1px 7px; border-radius: 999px; margin-right: 6px; }
.live-opts { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.live-src { font-size: 12.5px !important; color: var(--muted) !important; margin-top: 10px !important; }
@media (max-width: 720px) { .live-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Fact files */
.factfile { margin-top: 18px; }
.ff-title { font-size: 20px; font-weight: 800; margin-top: 4px; }
.ff-controls { margin-top: 14px; }
.ff-row { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ff-search { flex: 1; min-width: 200px; }
.ff-check, .ff-pick { font-size: 14px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.ff-list { display: grid; gap: 10px; margin-top: 14px; }
.ff-fact { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ff-head { display: flex; gap: 8px; align-items: center; }
.ff-topic { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ff-claim { margin-top: 8px; color: var(--ink); }
.ff-meaning { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.ff-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; align-items: flex-end; flex-wrap: wrap; }
.ff-src { font-size: 12.5px; color: var(--muted); }
.ff-request { margin-top: 18px; }
.ff-text { width: 100%; margin-top: 8px; font: inherit; font-size: 14px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; }
.ff-vendor { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

/* Rejection email decoder */
.dec-text { width: 100%; margin-top: 10px; min-height: 160px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.5; }
input.det-select { width: 100%; }

/* Home page */
.home-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.home-h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 6px 0 18px; }
.issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.issue { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.issue-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.issue h3 { font-size: 20px; font-weight: 800; }
.issue-stat { color: var(--ink-2); font-size: 15px; }
.issue-stat strong { color: var(--ink); }
.issue-stat sup a { text-decoration: none; font-size: 11px; }
.issue-truth { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.issue-truth span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.issue-help { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: 14.5px; }
.issue-help a { text-decoration: none; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles div { border-left: 3px solid var(--brand-2); padding: 4px 0 4px 16px; }
.principles h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.principles p { color: var(--ink-2); font-size: 14.5px; }
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.journey-when { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.home-sources { margin: 20px 0 0; padding-left: 20px; font-size: 12.5px; color: var(--muted); }
.home-sources li + li { margin-top: 2px; }
@media (max-width: 960px) { .issues, .principles { grid-template-columns: minmax(0, 1fr); } .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .journey { grid-template-columns: minmax(0, 1fr); } }
