:root {
  --paper: #f5f0e6;
  --paper-2: #ece5d6;
  --card: #fffdf8;
  --ink: #1c1d1a;
  --ink-2: #4a4a42;
  --ink-3: #807a6c;
  --line: #ddd4c2;
  --green: #1e4a35;
  --green-2: #2c6a4c;
  --red: #a3221b;
  --gold: #c39a3c;
  --affirm: #b8322a;
  --affirm-bg: #f7e1dd;
  --deny: #2a7356;
  --deny-bg: #dcefe5;
  --ambig: #9b8f74;
  --ambig-bg: #eee8da;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 6px 24px rgba(40, 30, 10, 0.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans);
  background-image: radial-gradient(rgba(120, 100, 60, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
a { color: var(--green-2); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
kbd { font: 11px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--card); color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--card); padding: 6px 10px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 10px 22px; background: var(--green); color: #f3ead5; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .01em; }
.brand em { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .32em; color: var(--gold); margin-top: 3px; }
.ball { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d4483f, var(--red) 55%, #6b130f); position: relative; display: inline-block; flex: none; box-shadow: inset -2px -3px 5px rgba(0,0,0,.3); }
.ball::before, .ball::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 8px; border: 1.5px dashed rgba(255,240,220,.75); border-radius: 50%; }
.ball::before { left: 2px; border-left: none; border-top: none; border-bottom: none; }
.ball::after { right: 2px; border-right: none; border-top: none; border-bottom: none; }
.brand-icon { width: 30px; height: 30px; flex: none; display: block; color: #f3ead5; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; display: inline-block; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs a { color: #d9cfb7; text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: .9rem; white-space: nowrap; }
.tabs a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tabs a.active { color: var(--green); background: #f3ead5; font-weight: 600; }
.search-btn { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.15); color: #e9dfc6; border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.search-btn kbd { background: transparent; color: inherit; border-color: rgba(255,255,255,.3); }
@media (max-width: 1100px) { .search-btn span { display: none; } }
@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 14px; }
  .brand { flex: 1; }
  .tabs { order: 3; flex-basis: 100%; margin: 0 -14px; padding: 0 14px 2px; }
  .feed-month { top: 92px; }
}
@media (max-width: 760px) {
  main { padding: 20px 14px 50px; }
}

main { max-width: 1320px; margin: 0 auto; padding: 28px 22px 60px; min-height: 70vh; outline: none; }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 120px 0; color: var(--ink-3); font-family: var(--serif); font-size: 1.2rem; }
.footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; text-align: center; padding: 22px; }

/* generic */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.lede { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); max-width: 780px; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 520px) { .g2 { grid-template-columns: 1fr; } }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; color: var(--ink); font-size: .87rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--green-2); color: var(--green); }
.btn.primary { background: var(--green); color: #f3ead5; border-color: var(--green); }
.btn.primary:hover { background: var(--green-2); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 10px 2px 3px; font-size: .8rem; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip.plain { padding: 2px 10px; }
.chip:hover { border-color: var(--green-2); }
.chip.on { background: var(--green); border-color: var(--green); color: #f3ead5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pol { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.pol.affirms { background: var(--affirm-bg); color: var(--affirm); }
.pol.denies { background: var(--deny-bg); color: var(--deny); }
.pol.ambiguous { background: var(--ambig-bg); color: #6f6550; }
.tag { display: inline-block; font-size: .72rem; color: var(--ink-2); background: var(--paper-2); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.verified { color: var(--deny); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.unverified { color: var(--ink-3); font-size: .72rem; white-space: nowrap; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; font-family: var(--serif); }
.avatar.md { width: 36px; height: 36px; font-size: .8rem; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.controls label { font-size: .8rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
select, input[type="search"], input[type="text"] { font: inherit; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
input[type="search"] { min-width: 240px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: .84rem; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--green); color: #f3ead5; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); font-family: var(--serif); }

/* hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--red); }
.official { border-left: 4px solid var(--green); padding: 14px 18px; background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.official .eyebrow { color: var(--green); }
.official blockquote { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--green); }
.stat span { font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

/* scoreboard */
.scoreboard { display: flex; flex-direction: column; gap: 4px; }
.score-row { display: grid; grid-template-columns: 250px 1fr 1fr 90px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.score-row:hover { background: var(--paper-2); }
.score-row .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-row .who small { font-weight: 400; color: var(--ink-3); }
.bar-l, .bar-r { height: 18px; display: flex; }
.bar-l { justify-content: flex-end; border-right: 2px solid var(--ink); }
.bar-l i, .bar-r i { display: block; height: 100%; }
.bar-l .d { background: var(--deny); } .bar-l .i { background: repeating-linear-gradient(45deg, var(--deny), var(--deny) 3px, #8fc3ad 3px, #8fc3ad 6px); }
.bar-r .d { background: var(--affirm); } .bar-r .i { background: repeating-linear-gradient(45deg, var(--affirm), var(--affirm) 3px, #e4a39c 3px, #e4a39c 6px); }
.score-head { display: grid; grid-template-columns: 250px 1fr 1fr 90px; gap: 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 0 8px 6px; }
.score-head .l { text-align: right; color: var(--deny); } .score-head .r { color: var(--affirm); }
.score-row .verdict { font-size: .72rem; text-align: right; }
@media (max-width: 700px) { .score-row, .score-head { grid-template-columns: 120px 1fr 1fr 0; } .score-row .who small { display: none; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

/* claim card */
.claim { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ambig); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.claim:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.claim.affirms { border-left-color: var(--affirm); }
.claim.denies { border-left-color: var(--deny); }
.claim-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.claim-top .name { color: var(--ink); font-weight: 600; font-size: .9rem; }
.claim q, .quote { display: block; font-family: var(--serif); font-size: 1.02rem; margin: 8px 0 6px; quotes: "“" "”"; color: var(--ink); }
.claim .para { margin: 8px 0 6px; color: var(--ink-2); }
.claim-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--ink-3); }
.claim-list { display: flex; flex-direction: column; gap: 10px; }
.src-link { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.src-link:hover { color: var(--red); }
.subjects { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* timeline */
.tl-chart svg { display: block; width: 100%; }
.tl-chart .brush .selection { fill: var(--gold); fill-opacity: .18; stroke: var(--gold); }
.axis text { font: 11px var(--sans); fill: var(--ink-3); }
.axis path, .axis line { stroke: var(--line); }
.lanes { margin-top: 12px; }
.feed { position: relative; margin-top: 18px; padding-left: 28px; }
.feed::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.feed-month { position: sticky; top: 56px; z-index: 2; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; background: var(--paper); padding: 8px 0 6px; margin: 18px 0 8px -28px; padding-left: 28px; }
.feed-item { position: relative; margin-bottom: 10px; }
.feed-item::before { content: ""; position: absolute; left: -24px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--ambig); border: 2px solid var(--paper); }
.feed-item.affirms::before { background: var(--affirm); } .feed-item.denies::before { background: var(--deny); }
.feed-item.event::before { width: 16px; height: 16px; left: -27px; top: 12px; background: var(--gold); border-radius: 3px; transform: rotate(45deg); }
.event-card { background: linear-gradient(90deg, #f6ebcd, var(--card)); border: 1px solid #e3cf98; border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.event-card .date { font-size: .78rem; color: #8a6a1c; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-card h4 { margin: 2px 0 4px; font-size: 1.05rem; }
.event-card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.tl-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
@media (max-width: 900px) { .tl-layout { grid-template-columns: 1fr; } .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px 18px; align-items: flex-start; } .filters > div { min-width: 0; } .filters > div:first-child { flex-basis: 100%; } }
.filters { position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.filters h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }

/* matrix */
.matrix-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 78vh; }
.matrix-wrap svg text { font: 12px var(--sans); fill: var(--ink-2); }
.matrix-wrap .cell { cursor: pointer; }
.matrix-wrap .cell:hover rect.bg { stroke: var(--ink); stroke-width: 1.5; }
.matrix-wrap .rowlabel:hover, .matrix-wrap .collabel:hover { fill: var(--red); cursor: pointer; text-decoration: underline; }

/* contradictions */
.vs { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 0; align-items: stretch; }
.vs .side { padding: 14px; }
.vs .mid { display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 1.1rem; position: relative; }
.vs .mid::before { content: ""; position: absolute; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.vs .mid span { background: var(--card); padding: 6px 0; position: relative; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } .vs .mid { height: 30px; } .vs .mid::before { display: none; } }
.contra { padding: 0; overflow: hidden; }
.contra-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbf6ea, var(--card)); }
.contra-head h3 { margin: 4px 0; }
.contra-foot { padding: 10px 16px 14px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-2); }
.tug { height: 12px; display: flex; border-radius: 999px; overflow: hidden; background: var(--ambig-bg); margin: 8px 0; }
.tug i { display: block; height: 100%; }
.question { cursor: pointer; }
.question h4 { font-family: var(--serif); font-size: 1.05rem; margin: 0; }
.q-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 760px) { .q-cols { grid-template-columns: 1fr; } }
.q-cols h5 { margin: 0 0 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.q-cols .aff h5 { color: var(--affirm); } .q-cols .den h5 { color: var(--deny); }
.via { font-size: .7rem; color: var(--ink-3); font-style: italic; }

/* network */
.net-wrap { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 72vh; overflow: hidden; }
.net-wrap svg { width: 100%; height: 100%; display: block; cursor: grab; }
.net-wrap text { font: 11px var(--sans); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: var(--card); stroke-width: 3px; }
.net-legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

/* people */
.person-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.person-card:hover { border-color: var(--green-2); color: inherit; }
.person-card .meta { flex: 1; min-width: 0; }
.person-card .meta b { display: block; }
.person-card .meta small { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--paper-2); margin-top: 6px; }
.mini-bar i { display: block; }
.person-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }

/* sources table */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); background: #faf6ec; position: sticky; top: 0; cursor: pointer; user-select: none; white-space: nowrap; }
th.sorted::after { content: " ▾"; } th.sorted.asc::after { content: " ▴"; }
tr:hover td { background: #fbf7ee; }
td.date { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
td .title { font-weight: 600; color: var(--ink); text-decoration: none; }
td .title:hover { color: var(--red); }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0,0,0,.15); z-index: 50; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer-title { flex: 1; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.icon-btn { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 4px 10px; font-size: .85rem; color: var(--ink-2); }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.drawer-body { overflow-y: auto; padding: 18px; flex: 1; }
.drawer-body .bigquote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--red); }
.drawer-body dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .88rem; margin: 14px 0; }
.drawer-body dt { color: var(--ink-3); }
.drawer-body dd { margin: 0; }
.src-item { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.src-item:hover { border-color: var(--red); color: var(--ink); }
.src-item .o { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green-2); }
.src-item .t { font-weight: 600; display: block; margin: 2px 0; }
.src-item .u { font-size: .75rem; color: var(--ink-3); word-break: break-all; }
.scrim { position: fixed; inset: 0; background: rgba(20, 20, 10, .25); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* palette */
.palette { position: fixed; inset: 0; background: rgba(20,20,10,.35); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding-top: 10vh; }
.palette[hidden] { display: none; }
.palette-box { width: min(680px, 94vw); background: var(--card); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 1.05rem; outline: none; }
.palette-results { max-height: 56vh; overflow-y: auto; }
.pr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f1ebdd; }
.pr.sel, .pr:hover { background: #f6efdd; }
.pr .k { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); width: 58px; flex: none; padding-top: 3px; }
.pr .txt { flex: 1; min-width: 0; }
.pr .txt b { display: block; font-weight: 600; }
.pr .txt small { color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr mark { background: #f3dc9a; color: inherit; }
.palette-foot { padding: 8px 14px; font-size: .75rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; background: #faf6ec; }

.tooltip { position: fixed; pointer-events: none; z-index: 70; background: var(--ink); color: #f4ecd8; padding: 8px 10px; border-radius: 7px; font-size: .8rem; max-width: 320px; opacity: 0; transition: opacity .1s; line-height: 1.4; }
.tooltip.show { opacity: 1; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--green); color: #f3ead5; padding: 10px 18px; border-radius: 8px; z-index: 80; transition: transform .25s, opacity .25s; font-size: .9rem; opacity: 0; visibility: hidden; }
.toast.show { transform: translateX(-50%); opacity: 1; visibility: visible; }

.prose { max-width: 780px; }
.prose p, .prose li { color: var(--ink-2); }
.prose code { font: 13px var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--ink); color: #eadfc4; padding: 14px; border-radius: 8px; overflow-x: auto; font: 13px/1.5 var(--mono); }
.notice { background: #fbf1d8; border: 1px solid #ead39a; border-radius: 8px; padding: 10px 14px; font-size: .88rem; color: #5d4a17; }

.pfilter summary { cursor: pointer; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; list-style: none; }
.pfilter summary::-webkit-details-marker { display: none; }
.pfilter summary::after { content: " ▾"; } .pfilter:not([open]) summary::after { content: " ▸"; }

/* ---------- Adelaide Oval–style scoreboard ---------- */
.aob { --aob-green: #1d4a39; --aob-green-2: #173d2f; --aob-trim: #f4f0e4; --aob-black: #121412;
  max-width: 980px; margin: 0 auto; font-family: "Rockwell", "Clarendon", "Roboto Slab", "Iowan Old Style", Georgia, serif; color: var(--aob-trim); }
.aob-roof { position: relative; height: 92px; margin: 0 auto -2px; width: 62%; min-width: 300px;
  background: var(--aob-trim); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.aob-roof::before { content: ""; position: absolute; inset: 6px 10px 0; background: repeating-linear-gradient(0deg, var(--aob-green) 0 7px, var(--aob-green-2) 7px 8px); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.aob-clock { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; background: var(--aob-trim); padding: 3px; box-shadow: 0 0 0 3px var(--aob-green-2); }
.aob-clock svg { width: 100%; height: 100%; display: block; }
.aob-board { background: var(--aob-green); border: 6px solid var(--aob-trim); outline: 3px solid var(--aob-green-2); border-radius: 3px; padding: 16px 18px 14px;
  box-shadow: inset 0 0 0 2px var(--aob-green-2), 0 10px 30px rgba(0,0,0,.25);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px); }
.aob-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: .16em; font-weight: 700; line-height: 1; }
.aob-sub { text-align: center; font-size: .78rem; letter-spacing: .22em; margin: 6px 0 14px; opacity: .9; border-top: 2px solid var(--aob-trim); border-bottom: 2px solid var(--aob-trim); padding: 5px 0; }
.aob-grid { display: grid; grid-template-columns: 34px minmax(0, 1fr) 100px 150px 150px; align-items: center; gap: 10px; }
.aob-colhead { font-size: .66rem; letter-spacing: .16em; padding: 0 4px 6px; text-align: center; }
.aob-colhead span:nth-child(2) { text-align: left; padding-left: 72px; }
.aob-ca-inline { display: none; }
.aob-row { padding: 5px 4px; border-top: 1px solid rgba(244,240,228,.18); cursor: pointer; transition: background .12s; }
.aob-row:hover, .aob-row:focus-visible { background: rgba(244,240,228,.08); outline: none; }
.aob-no { font-size: .9rem; text-align: center; opacity: .85; }
.aob-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aob-head { width: 68px; height: 68px; flex: none; object-fit: contain; margin: -12px -4px -10px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.aob-initials { display: grid; place-items: center; border-radius: 50%; background: var(--aob-trim); color: var(--aob-green); font-weight: 700; font-size: 1rem; border: 3px solid #fff; width: 44px; height: 44px; margin: 0 5px; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.aob-name { background: var(--aob-black); padding: 5px 10px 4px; font-size: 1rem; letter-spacing: .1em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; box-shadow: inset 0 0 0 1px #2a2d2a; }
.aob-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .14em; font-weight: 600; opacity: .7; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.aob-ca { text-align: center; }
.aob-ca b { display: inline-block; background: var(--aob-black); font-size: .7rem; letter-spacing: .12em; padding: 4px 7px; box-shadow: inset 0 0 0 1px #2a2d2a; }
.aob-ca b.knew { color: #f2c94c; }
.aob-num { display: flex; align-items: center; justify-content: center; gap: 6px; }
.aob-num em { font-style: normal; font-family: var(--sans); font-size: .78rem; font-weight: 700; min-width: 30px; opacity: .85; }
.tiles { display: inline-flex; gap: 2px; }
.tiles i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 32px; background: var(--aob-black); color: #fff; font-family: "DIN Condensed", "Oswald", "Arial Narrow", var(--sans); font-weight: 700; font-size: 1.35rem; line-height: 1; box-shadow: inset 0 0 0 1px #2c2f2c, inset 0 -14px 0 rgba(255,255,255,.03); border-radius: 1px; }
.aob-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--aob-trim); font-size: .72rem; letter-spacing: .16em; align-items: center; }
.aob-totals > span { display: inline-flex; align-items: center; gap: 8px; }
.aob-totals .tiles i { width: 20px; height: 26px; font-size: 1.1rem; }
.aob-totals b { background: var(--aob-black); padding: 4px 8px; letter-spacing: .1em; }
@media (max-width: 760px) {
  .aob-grid { grid-template-columns: 16px minmax(0, 1fr) 50px 50px; gap: 6px; }
  .aob-ca, .aob-colhead span:nth-child(3) { display: none; }
  .aob-ca-inline { display: block; width: fit-content; font-style: normal; font-size: .5rem; letter-spacing: .1em; background: #2a2d2a; padding: 1px 4px; margin-top: 2px; }
  .aob-ca-inline.knew { color: #f2c94c; }
  .aob-colhead span:nth-child(2) { padding-left: 0; }
  .aob-colhead { font-size: .52rem; letter-spacing: .06em; }
  .aob-head { width: 46px; height: 46px; margin: -8px -4px; } .aob-initials { width: 32px; height: 32px; font-size: .75rem; margin: 0 3px; }
  .aob-name { font-size: .78rem; padding: 4px 6px; letter-spacing: .05em; } .aob-name small { display: none; }
  .aob-num em { display: none; } .aob-row .tiles i { width: 16px; height: 24px; font-size: .95rem; }
  .aob-colhead span:nth-child(4), .aob-colhead span:nth-child(5) { font-size: .48rem; line-height: 1.2; }
  .aob-ca b { font-size: .55rem; padding: 3px 4px; }
  .aob-board { padding: 12px 8px; border-width: 4px; }
}

/* ---------- v2: assertions, replies, disputes ---------- */
.as-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.as { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; border-radius: 5px; padding: 2px 7px; background: var(--ambig-bg); color: #5d5440; border: 1px solid rgba(0,0,0,.04); }
.as.affirms { background: var(--affirm-bg); color: var(--affirm); }
.as.denies { background: var(--deny-bg); color: var(--deny); }
.as em { font-style: normal; font-weight: 700; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; opacity: .8; }
.tag.opinion { background: #efe4c4; color: #6b5414; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .64rem; }
.reply { margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid var(--green-2); background: #eef4ef; border-radius: 0 6px 6px 0; font-size: .8rem; color: var(--ink-2); cursor: pointer; }
.reply.none { border-left-color: var(--ambig); background: #f4f0e5; cursor: default; }
.as-detail { border: 1px solid var(--line); border-left: 4px solid var(--ambig); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--card); font-size: .9rem; }
.as-detail.affirms { border-left-color: var(--affirm); } .as-detail.denies { border-left-color: var(--deny); }
.as-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ambig); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.as-card.affirms { border-left-color: var(--affirm); } .as-card.denies { border-left-color: var(--deny); }
.as-card q { display: block; font-family: var(--serif); font-size: .98rem; margin: 6px 0; }
.dispute-card { display: block; text-decoration: none; color: inherit; }
.dispute-card:hover { border-color: var(--green-2); color: inherit; }
.dispute-card h3 { margin: 8px 0 4px; }
.dc-counts { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; font-size: .85rem; }
.dc-counts b { font-family: var(--serif); font-size: 1.3rem; margin-right: 2px; }
.dc-counts .yes b, h3.yes { color: var(--affirm); } .dc-counts .no b, h3.no { color: var(--deny); } .dc-counts .part b, h3.part { color: #8a7a4f; }
.dispute-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 10px; }
.dispute-cols h3 small { font-family: var(--sans); font-size: .75rem; color: var(--ink-3); font-weight: 400; }
@media (max-width: 1000px) { .dispute-cols { grid-template-columns: 1fr; } }
.aob-own { text-align: center; }
.aob-own b { display: inline-block; background: var(--aob-black); font-size: .7rem; letter-spacing: .1em; padding: 4px 7px; box-shadow: inset 0 0 0 1px #2a2d2a; }
.aob-own b.knew { color: #f2c94c; } .aob-own b.denies { color: #9fe0bf; }
.aob-own small { display: block; font-family: var(--sans); font-size: .55rem; letter-spacing: .1em; opacity: .7; margin-top: 2px; }
.aob-num[data-named] { cursor: pointer; } .aob-num[data-named]:hover .tiles i { box-shadow: inset 0 0 0 1px #f2c94c; }
.aob-groups { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--aob-trim); }
.aob-gh { font-size: .66rem; letter-spacing: .16em; margin-bottom: 6px; } .aob-gh small { font-family: var(--sans); letter-spacing: .04em; opacity: .7; }
.aob-grow { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 5px 4px; color: var(--aob-trim); text-decoration: none; font-size: .78rem; letter-spacing: .12em; border-top: 1px solid rgba(244,240,228,.15); }
.aob-grow:hover { background: rgba(244,240,228,.08); color: #fff; }
.aob-grow > span { display: inline-flex; align-items: center; gap: 8px; }
.aob-grow .tiles i { width: 20px; height: 26px; font-size: 1.05rem; }
.aob-name .aob-ca-inline { display: none; }
@media (max-width: 760px) {
  .aob-grid { grid-template-columns: 16px minmax(0, 1fr) 74px 44px; }
  .aob-name .aob-ca-inline { display: block; }
  .aob-colhead span:nth-child(4), .aob-colhead span:nth-child(5) { font-size: .48rem; }
  .aob-own b { font-size: .5rem; padding: 3px 4px; } .aob-own small { display: none; }
  .aob-grow { grid-template-columns: 1fr; gap: 4px; font-size: .62rem; }
}
.reported { font-size: .92rem; color: var(--ink-2); margin: 6px 0; font-style: italic; }
.reported span { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-right: 4px; }
.reply.earlier { border-left-color: var(--gold); background: #f7f1e1; }

/* ---------- scoreboard v3: positions × questions ---------- */
.aob-wide { max-width: 1180px; }
.sb-scroll { overflow-x: auto; }
.sb-grid { display: grid; grid-template-columns: 30px minmax(220px, 1fr) 92px repeat(4, minmax(150px, 170px)); align-items: center; gap: 8px; min-width: 980px; }
.sb-grid.aob-colhead span:nth-child(n+3) { text-align: center; }
.sb-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-start; padding: 4px 6px; border-radius: 3px; cursor: pointer; min-height: 40px; background: rgba(0,0,0,.14); box-shadow: inset 0 0 0 1px rgba(244,240,228,.08); }
.sb-cell:hover { background: rgba(244,240,228,.12); }
.own { display: inline-grid; place-items: center; width: 26px; height: 32px; flex: none; background: var(--aob-black, #121412); font-family: "DIN Condensed", "Oswald", "Arial Narrow", var(--sans); font-size: 1.35rem; font-weight: 700; box-shadow: inset 0 0 0 1px #2c2f2c; color: #fff; }
.own.k-A { color: #f2c94c; } .own.k-D { color: #9fe0bf; } .own.k-Q { color: #e6d3a0; } .own.k-X { color: #b9b2a2; } .own.k-none { color: transparent; opacity: .55; }
.plates { display: flex; flex-wrap: wrap; gap: 3px; }
.plate { font-style: normal; display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 4px; background: var(--aob-trim, #f4f0e4); color: #121412; font-family: var(--sans); font-weight: 800; font-size: .68rem; letter-spacing: .04em; border-radius: 2px; }
.plate.q { background: transparent; color: var(--aob-trim, #f4f0e4); box-shadow: inset 0 0 0 1.5px var(--aob-trim, #f4f0e4); border-radius: 2px; }
.plate.more { background: transparent; color: var(--aob-trim, #f4f0e4); font-weight: 600; }
.sb-gcell { gap: 4px; flex-wrap: wrap; }
.sb-gcell .gy, .sb-gcell .gn { font-family: var(--sans); font-size: .55rem; letter-spacing: .1em; font-weight: 800; margin-right: 1px; }
.sb-gcell .gy { color: #f2c94c; } .sb-gcell .gn { color: #9fe0bf; margin-left: 4px; } .gnone { opacity: .4; }
.sb-grow .aob-name { background: transparent; box-shadow: none; padding-left: 0; font-size: .82rem; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-family: var(--sans); font-size: .7rem; letter-spacing: .04em; color: var(--aob-trim, #f4f0e4); opacity: .9; align-items: center; }
.sb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sb-legend .own { width: 20px; height: 24px; font-size: 1rem; }
@media (max-width: 760px) { .sb-grid { min-width: 860px; } .aob-row .aob-name small { display: none; } }
.sb-swipe { display: none; }
@media (max-width: 760px) {
  .sb-grid { grid-template-columns: 16px 132px repeat(4, 116px); min-width: 0; width: max-content; gap: 6px; }
  .sb-grid .aob-ca, .sb-grid.aob-colhead span:nth-child(3), .sb-grid > span:nth-child(3):empty { display: none; }
  .sb-grid .aob-who { position: sticky; left: 0; z-index: 2; background: var(--aob-green); }
  .sb-grid .aob-head { width: 34px; height: 34px; margin: -4px -2px; }
  .sb-grid .aob-initials { width: 28px; height: 28px; font-size: .65rem; margin: 0 2px; }
  .sb-grid .aob-name { font-size: .68rem; padding: 4px 5px; letter-spacing: .03em; }
  .sb-grid.aob-colhead span { font-size: .5rem; }
  .sb-grow .aob-name { font-size: .6rem; white-space: normal; }
  .sb-swipe { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .1em; text-align: right; opacity: .75; margin: -6px 0 6px; }
}

/* ---------- v3 news tracker ---------- */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; transition: box-shadow .15s; }
.news:hover { box-shadow: var(--shadow); }
.news-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--ink-3); }
.news-top b { color: var(--green-2); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.news h3 { font-size: 1.12rem; margin: 6px 0 4px; } .news h3 a { color: var(--ink); text-decoration: none; } .news h3 a:hover { color: var(--red); }
.news p { margin: 0 0 6px; color: var(--ink-2); font-size: .92rem; }
.pchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px 1px 4px; color: var(--ink); text-decoration: none; background: #fff; }
.pchip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pchip small { color: var(--ink-3); }
.tone-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tone-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 4px; }
.avatar-img { width: 24px; height: 24px; object-fit: contain; } .avatar-img.md { width: 40px; height: 40px; } .avatar-img.lg { width: 84px; height: 84px; }
.axis-note { font: 10px var(--sans); fill: #8a7a4f; letter-spacing: .04em; }
.line-label { font: 600 11px var(--sans); }
/* board */
.sbm-grid { display: grid; grid-template-columns: 30px minmax(230px, 1fr) 96px 96px 120px 120px 130px; align-items: center; gap: 10px; min-width: 900px; }
.sbm-grid .c { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sbm-grid.aob-colhead span:nth-child(n+3) { text-align: center; }
.sortable { cursor: pointer; } .sortable:hover, .sortable.on { color: #f2c94c; }
.vel { font-family: "DIN Condensed", "Oswald", "Arial Narrow", var(--sans); font-weight: 700; font-size: 1.15rem; background: #121412; padding: 3px 8px; box-shadow: inset 0 0 0 1px #2c2f2c; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; min-width: 64px; }
.vel small { font-family: var(--sans); font-size: .55rem; letter-spacing: .06em; opacity: .8; }
.vel.up { color: #ff9a8a; } .vel.down { color: #9fe0bf; } .vel.flat { color: #b9b2a2; }
.tone-tile { font-family: "DIN Condensed", "Oswald", "Arial Narrow", var(--sans); font-weight: 700; font-size: 1.2rem; min-width: 52px; text-align: center; padding: 4px 6px; background: #121412; color: #fff; box-shadow: inset 0 -4px 0 var(--tc, #555), inset 0 0 0 1px #2c2f2c; }
.tone-tile.none { color: #6d6a60; }
.shift { font-family: var(--sans); font-size: .62rem; font-weight: 800; min-width: 30px; } .shift.up { color: #9fe0bf; } .shift.down { color: #ff9a8a; }
.spark { width: 120px; height: 26px; display: block; }
.sb-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
@media (max-width: 760px) {
  .sbm-grid { grid-template-columns: 16px 132px 72px 72px 96px 100px 110px; min-width: 0; width: max-content; gap: 6px; }
  .sbm-grid .aob-who { position: sticky; left: 0; z-index: 2; background: var(--aob-green); }
  .sbm-grid .aob-head { width: 34px; height: 34px; margin: -4px -2px; } .sbm-grid .aob-initials { width: 28px; height: 28px; font-size: .65rem; margin: 0 2px; }
  .sbm-grid .aob-name { font-size: .68rem; padding: 4px 5px; letter-spacing: .03em; } .sbm-grid .aob-name small { display: none; }
  .sbm-grid.aob-colhead span { font-size: .5rem; }
}

/* ---------------------------------------------------------------- share & embed */
.section-head .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: flex-end; }
.share-btn { font-weight: 600; }
.share-preview { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; margin: 4px 0 6px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.share-code { width: 100%; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: var(--paper); color: var(--ink); resize: vertical; }
.aob-more { text-align: center; font-size: .72rem; letter-spacing: .18em; padding: 8px 0 2px; border-top: 1px solid rgba(244,240,228,.18); opacity: .85; }

body.embed { background: transparent; min-height: 0; }
body.embed #main { max-width: 1000px; margin: 0 auto; padding: 6px 4px 4px; }
body.embed .loading { padding: 60px 0; }
.embed-foot { max-width: 980px; margin: 8px auto 0; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; align-items: baseline; font-size: .74rem; color: var(--ink-3); }
.embed-foot a { color: var(--green); }

/* social preview snapshot: exactly 1200×630 */
body.og { width: 1200px; height: 630px; overflow: hidden; background: #e9e2cf; }
body.og #main { max-width: none; width: 1200px; height: 630px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
body.og .aob { width: 1130px; max-width: none; margin-top: -8px; }
body.og .aob-roof { height: 46px; width: 40%; }
body.og .aob-clock { width: 40px; height: 40px; bottom: 3px; }
body.og .aob-gh, body.og .aob-gh + .aob-row, body.og .aob-totals { display: none; }
body.og .sb-swipe { display: none; }
body.og .sb-scroll { overflow: visible; }
body.og .aob-row { cursor: default; }
body.og .embed-foot { width: 1130px; max-width: none; margin: auto 0 0; padding: 0 6px 14px; font-size: 16px; color: #2f2e28; font-weight: 600; }

/* small screens: segmented button groups wrap into pills instead of being clipped */
@media (max-width: 760px) {
  .seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: none; overflow: visible; border-radius: 0; max-width: 100%; }
  .seg button { border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 6px 11px; white-space: nowrap; }
  .seg button:last-child { border-right: 1px solid var(--line); }
  .seg button.on { border-color: var(--green); }
}

/* ---------------------------------------------------------------- phones (after the base rules so these win) */
.chips-more { display: none; }
@media (max-width: 760px) {
  main { padding: 18px 12px 50px; }
  .card { padding: 14px; }
  /* nav scrolls sideways: fade the edge so it's obvious there's more */
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs a { padding: 7px 9px; font-size: .86rem; }
  /* filters: full-width fields instead of overflowing the card */
  .controls input[type="search"], .controls select { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
  .controls .seg { flex: 1 1 100%; }
  /* people chips: compact, top six + any selected, with a toggle for the rest */
  .chip { font-size: .76rem; padding: 2px 8px 2px 3px; }
  .chips.collapsible:not(.open) .chip:not(.on):nth-child(n + 7) { display: none; }
  .chips-more { display: inline-block; margin-top: 8px; border: 0; background: none; padding: 2px 0; color: var(--green); font-size: .8rem; font-weight: 600; text-decoration: underline; }
  .chips-more::after { content: "Show all people"; }
  .chips.open + .chips-more::after { content: "Show fewer"; }
  /* sources table → stacked list; the header row becomes sort pills */
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: #faf6ec; }
  .table-wrap th { position: static; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--card); }
  .table-wrap tbody tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table-wrap td { border: 0; padding: 0; }
  .table-wrap td:nth-child(2) { font-weight: 600; color: var(--green); }
  .table-wrap td:nth-child(3), .table-wrap td:nth-child(5) { grid-column: 1 / -1; }
  .table-wrap td:nth-child(4) { display: none; }
  .seg button { font-size: .78rem; padding: 5px 10px; }
  .person-card .meta small { white-space: normal; }
  .aob-sub { letter-spacing: .12em; }
}
@media (max-width: 400px) {
  .aob-title { font-size: 1.3rem; letter-spacing: .1em; }
  .aob-roof { min-width: 0; height: 70px; }
  .aob-clock { width: 48px; height: 48px; }
  .aob-board { padding: 12px 10px 10px; }
  .tabs a { padding: 6px 7px; font-size: .82rem; }
}

/* article cards: edge colour = coverage tone (green favourable … red critical; grey not scored) */
.news { border-left: 4px solid var(--tone, var(--line)); }
.news .unverified { font-style: italic; margin-top: -2px; }
.made-by { margin: 6px 0 0; font-size: .82rem; }
.made-by a { color: var(--green); font-weight: 600; }
