:root {
  --ink: #16181d;
  --muted: #6b6f78;
  --rule: #d9dbe0;
  --paper: #fbfbf9;
  --accent: #1f4e8c;
  --fact: #1d6b3a;
  --warn-bg: #fff6e0;
  --warn-ink: #7a4b00;
  --warn-rule: #e9c46a;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Masthead */
.masthead { border-bottom: 3px double var(--ink); text-align: center; padding: 10px 20px 0; background: #fff; }
.topbar { display: flex; justify-content: space-between; font-size: 13px; max-width: 1120px; margin: 0 auto; color: var(--muted); }
.brand { display: block; font-family: var(--serif); font-size: clamp(36px, 6vw, 60px); font-weight: 700; text-decoration: none; letter-spacing: -0.5px; margin: 6px 0 0; }
.tagline { margin: 2px 0 10px; font-size: 14px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.sections { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; border-top: 1px solid var(--rule); padding: 8px 0; font-size: 14px; }
.sections a { text-decoration: none; color: var(--ink); }
.sections a.active, .sections a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Front page */
.front { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 24px 0; }
.lead h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 6px 0 10px; }
.lead p.dek { font-size: 18px; }
.sidebar { border-left: 1px solid var(--rule); padding-left: 24px; }
.sidebar .card + .card { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 28px; border-top: 2px solid var(--ink); padding: 20px 0 40px; }
.card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 4px 0 6px; }
.card a { text-decoration: none; }
.card a:hover h2, .card a:hover h3 { color: var(--accent); }
.card p.dek { margin: 0 0 6px; color: #33363d; }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.meta { font-size: 12.5px; color: var(--muted); }
.pending-tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: #eceef2; color: var(--muted); padding: 1px 6px; border-radius: 3px; }
.section-title { font-family: var(--serif); font-size: 30px; margin: 24px 0 0; }

/* Story page */
.story { max-width: 760px; margin: 0 auto; padding: 28px 0 60px; }
.story h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 8px 0 12px; }
.story .dek { font-size: 20px; font-family: var(--serif); color: #33363d; margin: 0 0 14px; }
.story .byline { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.story .body p { font-family: var(--serif); font-size: 19px; line-height: 1.65; margin: 0 0 1em; }
.story h2 { font-family: var(--sans); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 36px 0 10px; padding-top: 10px; border-top: 2px solid var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 8px 0 8px 0; border-bottom: 1px solid var(--rule); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; white-space: nowrap; }
.b-confirmed { background: #dff3e6; color: var(--fact); }
.b-corroborated { background: #e3ecf8; color: var(--accent); }
.b-single_source { background: #eeeeee; color: #555; }
.b-unverified, .b-prediction, .b-opinion { background: #f2ecdf; color: #6b5420; }
.b-disputed { background: #fde7d3; color: #8a3b00; }
.b-contradicted { background: #fbdada; color: #8c1d1d; }
.b-possible_propaganda { background: #2a2a2a; color: #fff; }
.cite { font-size: 12px; vertical-align: super; color: var(--accent); text-decoration: none; margin-left: 1px; }
.claims-box { background: var(--warn-bg); border: 1px solid var(--warn-rule); border-left: 5px solid var(--warn-rule); padding: 14px 18px; margin-top: 14px; }
.claims-box .warning { color: var(--warn-ink); font-weight: 600; margin: 0 0 10px; }
.claim { padding: 10px 0; border-top: 1px dashed var(--warn-rule); }
.claim:first-of-type { border-top: 0; }
.claim .who { font-size: 13px; color: var(--muted); }
.claim .why { font-size: 14.5px; margin-top: 4px; }
.coverage-group { margin: 0 0 14px; }
.coverage-group strong { display: block; }
table.loaded { width: 100%; border-collapse: collapse; font-size: 15px; }
table.loaded td, table.loaded th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sources-list { list-style: none; padding: 0; counter-reset: none; }
.sources-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.sources-list .n { display: inline-block; min-width: 28px; color: var(--accent); font-weight: 600; }
.sources-list .orig { display: block; font-size: 13px; color: var(--muted); font-style: italic; }
.note { background: #eef2f8; border-left: 4px solid var(--accent); padding: 10px 14px; font-size: 15px; }
.pending-box { background: #f1f2f4; padding: 14px 18px; border-left: 4px solid var(--muted); }
:target { background: #fff3b0; transition: background 1s; }

table.srcs { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 40px; }
table.srcs th, table.srcs td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.prose { max-width: 720px; margin: 0 auto; padding: 24px 0 60px; font-size: 17px; }
.prose h1 { font-family: var(--serif); }
.footer { border-top: 1px solid var(--rule); padding: 20px; font-size: 14px; text-align: center; }

@media (max-width: 820px) {
  .front { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
}
.story h3.subhead { font-family: var(--serif); font-size: 22px; margin: 28px 0 8px; }
details summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }

/* Ratings */
.rating { background: #fff; border: 1px solid var(--rule); padding: 4px 18px 16px; margin-top: 30px; }
.rating h2 { border-top: 0; margin-top: 10px; }
.stars .star { font-size: 30px; background: none; border: 0; cursor: pointer; color: #c9ccd2; padding: 0 2px; }
.stars .star.on { color: #e0a100; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { border: 1px solid var(--rule); background: #f6f7f9; border-radius: 14px; padding: 3px 10px; font-size: 13px; cursor: pointer; }
.tag.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rating textarea { width: 100%; min-height: 56px; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--rule); margin-bottom: 8px; }
.rating .save { background: var(--accent); color: #fff; border: 0; padding: 6px 14px; cursor: pointer; }
.rating .save:disabled { opacity: .4; cursor: default; }
.rating .clear { background: none; border: 1px solid var(--rule); padding: 5px 10px; cursor: pointer; }
.my-rating { color: #e0a100; font-size: 12px; }

/* In review */
.review-list { list-style: none; padding: 0; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.review-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.review-head a { font-family: var(--serif); font-size: 18px; text-decoration: none; }
.bar { height: 8px; background: #eceef2; border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); transition: width .6s; }
#pipeline-status a { color: var(--accent); }
