/* OhDonald — shared stylesheet. Fonts are loaded with <link> in each page head. */
:root {
  --bg: #111a16;
  --panel: #1b2721;
  --line: #35453e;
  --text: #e7e9e1;
  --muted: #a3afa6;
  --orange: #ff744e;
  --yellow: #f3c34b;
  --green: #72c19b;
  --blue: #7fb4e8;
  --violet: #b9a2e6;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 var(--serif); }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Keyboard focus that is actually visible */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--yellow);
  color: #111; padding: 10px 16px; font: 700 14px var(--ui); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site { max-width: 1580px; margin: auto; padding: 0 24px; }

/* ---------- Masthead ---------- */
.topline {
  display: flex; justify-content: space-between; gap: 12px; color: var(--muted);
  font: 700 12px/1.3 var(--ui); letter-spacing: .14em; padding: 22px 0 8px;
}
.topline a { color: var(--orange); text-decoration: none; }
.logo {
  display: block; font: 900 clamp(58px, 9vw, 124px)/.95 var(--display);
  letter-spacing: -.035em; text-decoration: none;
}
.logo span { color: var(--yellow); }
.logo i { font-style: normal; color: var(--orange); }

.lang-nav { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; font: 700 13px var(--ui); color: var(--muted); }
.lang-nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--text); }
.lang-nav a[aria-current='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.lang-nav a:hover { border-color: var(--orange); }

.strap { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin: 8px 0 18px; }
.strap h1 { margin: 0; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--display); }
.strap p { margin: 0; color: var(--muted); font-size: 14px; }

.visual-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 250px; overflow: hidden; }
.visual-strip figure { margin: 0; position: relative; overflow: hidden; background: #29342e; }
.visual-strip img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block;
  filter: saturate(.8) contrast(1.08);
}
.visual-strip figure:nth-child(2) img { object-position: center 20%; }
.visual-strip figcaption {
  position: absolute; inset: auto 0 0 0; padding: 15px 12px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff;
  font: 800 12px var(--ui); letter-spacing: .06em;
}
.photo-note { font-size: 12px; color: var(--muted); margin: 8px 0 20px; }
.photo-note a { color: var(--muted); }
.mainline { border-top: 4px solid var(--text); margin: 18px 0 14px; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 335px minmax(0, 1fr); gap: 40px; }
.sidebar { background: var(--panel); align-self: start; border-top: 4px solid var(--orange); padding: 22px 20px; }
.side-head h2 { font: 900 28px/1.05 var(--display); margin: 0 0 6px; }
.side-head p { color: var(--muted); margin: 0 0 14px; }
.side-item { border-top: 1px solid var(--line); padding: 13px 0; }
.side-item small { display: block; color: var(--green); font: 700 12px var(--ui); letter-spacing: .06em; }
.side-item a { display: block; padding: 4px 0; font-weight: 700; line-height: 1.4; text-decoration: none; }
.side-item a:hover { color: var(--orange); }
.side-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.side-foot a { color: var(--orange); font-weight: 700; }

/* ---------- Toolbar, tabs, filters ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button, .yearbar button {
  border: 1px solid var(--line); border-radius: 28px; background: transparent; color: var(--text);
  padding: 10px 17px; cursor: pointer; font: 700 13px var(--serif);
}
.tabs button:hover, .yearbar button:hover { border-color: var(--orange); }
.tabs button[aria-selected='true'], .yearbar button[aria-pressed='true'] {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.yearbar button { white-space: nowrap; padding: 8px 12px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.yearbar { display: flex; gap: 7px; overflow-x: auto; max-width: 100%; padding-bottom: 6px; flex-basis: 100%; }
.filters input, .filters select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--text);
  padding: 11px 13px; font: inherit;
}
.filters input { flex: 1; min-width: 190px; }

.feed-intro { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0; }
.eyebrow { margin: 0; color: var(--orange); font: 800 13px var(--ui); letter-spacing: .08em; }
#count { font: 13px var(--ui); color: var(--muted); }

/* ---------- Story cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.story { border-bottom: 1px solid var(--line); padding: 20px 0 26px; }
.story:first-child { grid-column: 1 / -1; border-bottom: 2px solid var(--line); padding-top: 0; }
.story h3 { font: 800 32px/1.05 var(--display); margin: 10px 0; }
.story:first-child h3 { font-size: clamp(44px, 5vw, 70px); }
.story p { margin: 12px 0; }
.story .meta { color: var(--muted); font: 13px var(--ui); }
.story .meta b { color: var(--orange); }
.story-link { text-decoration: none; }
.story-link:hover, .story-link:focus-visible { color: var(--orange); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.statement-location, .provenance-note { font: 13px/1.5 var(--ui); color: var(--muted); }
.source-links { display: flex; gap: 12px; flex-wrap: wrap; }
.source-links a { color: var(--orange); font-weight: 700; font-size: 13px; }

/* Verdict badge: colour is a hint, the words carry the meaning */
.verdict { display: inline-block; font: 800 12px var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.verdict[data-verdict='False'] { color: var(--orange); }
.verdict[data-verdict='Misleading'] { color: var(--yellow); }
.verdict[data-verdict='Needs context'] { color: var(--blue); }
.verdict[data-verdict='Unsupported'] { color: var(--violet); }
.verdict[data-verdict='Supported'] { color: var(--green); }
.quip { color: var(--muted); font: italic 13px var(--serif); text-transform: none; letter-spacing: 0; }

/* ---------- Coverage ---------- */
.coverage { margin: 45px 0; border-top: 2px solid var(--line); padding-top: 15px; }
.coverage h2 { font: 800 29px var(--display); margin: 0; }
.coverage p { color: var(--muted); }
#coverage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
#coverage-grid span { padding: 10px; background: var(--panel); font: 13px var(--ui); color: var(--muted); }
#coverage-grid span.has { color: var(--text); border-left: 3px solid var(--orange); }

/* ---------- Contradiction tracker ---------- */
.section-title { font: 900 clamp(42px, 5vw, 70px)/1 var(--display); margin: 14px 0; }
.section-desc { color: var(--muted); max-width: 700px; }
.pair { border-bottom: 1px solid var(--line); padding: 24px 0; }
.pair h3 { font: 800 32px/1.1 var(--display); margin: 0 0 8px; }
.quote-panel { background: var(--panel); padding: 18px; border-left: 3px solid var(--orange); margin: 10px 0; }
.quote-panel strong { color: var(--yellow); font: 700 13px var(--ui); }
.quote-panel blockquote { margin: 8px 0; font-size: 17px; }
.quote-panel .orig { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.quote-panel .where { margin: 0 0 8px; color: var(--muted); font: 13px/1.5 var(--ui); }
.quote-panel a { color: var(--orange); }
.pair-context { max-width: 820px; }

.empty, .error { padding: 25px; background: var(--panel); color: var(--muted); }
.error button {
  margin-left: 12px; background: var(--text); color: var(--bg); border: 0; border-radius: 20px;
  padding: 8px 16px; font: 700 13px var(--ui); cursor: pointer;
}

/* ---------- Article page ---------- */
.article-header { padding-bottom: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 55px; margin: 28px 0 70px; }
.back-link { grid-column: 1 / -1; color: var(--orange); font: 700 14px var(--ui); }
.article-title { font: 900 clamp(48px, 7vw, 96px)/.98 var(--display); letter-spacing: -.02em; margin: 10px 0 30px; }
.article-meta { font: 800 13px var(--ui); color: var(--orange); text-transform: uppercase; }
.article-eyebrow { font: 800 13px var(--ui); color: var(--yellow); letter-spacing: .12em; margin: 25px 0 8px; }
.article-claim { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.45; border-left: 5px solid var(--orange); margin: 0; padding: 14px 0 14px 25px; }
.article-orig { margin: 10px 0 0 30px; color: var(--muted); font-size: 14px; }
.article-summary { font-size: 20px; line-height: 1.8; }
.article-finding { font-weight: 700; }
.article-finding .quip { display: block; margin-top: 2px; }
.article-sources-title, .article-aside h2 { font: 900 29px var(--display); }
.full-article ul { padding-left: 23px; }
.full-article li { padding: 8px 0; }
.full-article li a, .article-aside a { color: var(--orange); }
.article-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.article-aside { align-self: start; background: var(--panel); padding: 25px; border-top: 4px solid var(--orange); }
.article-aside p { color: var(--muted); }
.statement-provenance { background: var(--panel); border-left: 4px solid var(--yellow); padding: 18px 22px; margin: 20px 0; }
.statement-provenance h2 { font: 900 24px var(--display); margin: 0 0 12px; }
.statement-provenance p { margin: 7px 0; }
.statement-provenance a { color: var(--orange); }

/* ---------- Methodology / 404 ---------- */
.doc { max-width: 820px; margin: 30px 0 60px; }
.doc h1 { font: 900 clamp(48px, 7vw, 90px)/1 var(--display); margin: 8px 0 6px; }
.doc .lead { font: 800 clamp(24px, 3vw, 34px)/1.2 var(--display); color: var(--yellow); margin: 0 0 28px; }
.doc h2 { font: 800 30px var(--display); margin: 34px 0 6px; }
.doc a { color: var(--orange); }
.doc dl { margin: 0; }
.doc dt { font: 800 13px var(--ui); letter-spacing: .06em; text-transform: uppercase; margin-top: 12px; }
.doc dd { margin: 2px 0 0; }
.notfound { text-align: left; margin: 50px 0 80px; }
.notfound h1, .notfound h2 { font: 900 clamp(48px, 8vw, 110px)/1 var(--display); margin: 0 0 10px; }

/* ---------- Footer ---------- */
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 3px solid var(--text);
  padding: 25px 0; margin-top: 55px; color: var(--muted); font-size: 13px;
}
footer strong { font: 900 28px var(--display); color: var(--text); }
footer a { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
  .story-grid { grid-template-columns: 1fr; }
  .story:first-child { grid-column: auto; }
}
@media (max-width: 750px) {
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .back-link { grid-column: auto; }
}
@media (max-width: 700px) {
  .site { padding: 0 14px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .content { order: 1; }
  .visual-strip { height: 155px; }
  .visual-strip figcaption { font-size: 10px; padding: 18px 6px 6px; }
  .strap { display: block; }
  .strap p { margin-top: 4px; }
  .topline span:last-child:not(:only-child) { display: none; }
  #coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .tabs button { font-size: 12px; padding: 9px; }
  .logo { font-size: 72px; }
}

.long-article { margin: 8px 0 24px; }
.long-article p, .long-evidence li { font-size: 18px; line-height: 1.75; }
.long-evidence { padding-left: 22px; }
.long-evidence li { margin-bottom: 10px; }
.long-h { font: 700 13px/1.4 var(--ui); letter-spacing: .08em; margin: 26px 0 8px; }


/* Shareable, source-linked contradiction cards */
.pair { scroll-margin-top: 24px; }
.pair:target { outline: 2px solid var(--yellow); outline-offset: 8px; }
.pair-permalink { display: inline-block; margin-top: 8px; color: var(--yellow); font: 700 13px var(--ui); }
.pair-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0 6px; }
.pair-share-actions a, .pair-share-actions button { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); font: 700 12px var(--ui); text-decoration: none; cursor: pointer; }
.pair-share-actions a:hover, .pair-share-actions button:hover { border-color: var(--yellow); color: var(--yellow); }
