/* dahsas.com — conflict verification
   Identity notes:
   - No flag colours. Federal and TPLF factions use different flags; adopting
     either takes a side. The palette is instrument-like instead.
   - Noto Ethiopic throughout. Google Fonts subsets by unicode-range, so Latin
     readers never download the Ethiopic glyphs. Identity and bandwidth agree.
   - Teal is spent in exactly one place: things we treat as established. */

:root {
  --paper:    #F5F7F8;
  --card:     #FFFFFF;
  --ink:      #0F151A;
  --ink-2:    #39444E;
  --muted:    #6C7883;
  --rule:     #DCE2E7;
  --rule-2:   #EDF1F3;

  --established: #0B6B62;
  --claimed:     #9C6714;
  --unknown:     #69757F;

  --serif: "Noto Serif Ethiopic", Iowan Old Style, Georgia, serif;
  --sans:  "Noto Sans Ethiopic", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 68ch;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1216; --card: #141B21; --ink: #E7EDF1; --ink-2: #AFBAC3;
    --muted: #8593A0; --rule: #24303A; --rule-2: #1B242C;
    --established: #3FB3A6; --claimed: #D39B3F; --unknown: #8593A0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-synthesis-weight: none;
}
.wrap { width: min(100% - 2 * var(--gut), 72rem); margin-inline: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
:focus-visible { outline: 2px solid var(--established); outline-offset: 3px; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0; position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.masthead .wrap { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font: 700 1.3rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; margin-right: auto;
}
.wordmark span { color: var(--established); }
.dateline { font: 500 .75rem/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 1.1rem; font-size: .84rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.hero h1 {
  font: 600 clamp(2.1rem, 6.2vw, 3.9rem)/1.06 var(--serif);
  letter-spacing: -.02em; margin: 0 0 1rem; max-width: 20ch; text-wrap: balance;
}
.hero .standfirst {
  font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--ink-2);
  max-width: 54ch; margin: 0 0 2.2rem;
}

/* ---------- the certainty stack (signature) ---------- */
.stack { border-top: 1px solid var(--ink); padding-top: .9rem; }
.stack-head {
  display: grid; grid-template-columns: var(--labelw, 20rem) 1fr; gap: 1.2rem;
  align-items: end; margin-bottom: .5rem;
}
.stack-head .cap {
  font: 500 .68rem/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.scale { position: relative; height: 1.1rem; }
.scale .tick {
  position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule);
}
.scale .tick b {
  position: absolute; top: 0; left: 2px; font: 500 .62rem/1 var(--mono);
  color: var(--muted); font-weight: 500;
}
.threshold { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed var(--established); }
.threshold b {
  position: absolute; bottom: 100%; left: 0; transform: translateX(-50%);
  white-space: nowrap; font: 500 .62rem/1.4 var(--mono); color: var(--established);
  letter-spacing: .04em; padding-bottom: 2px;
}

.row {
  display: grid; grid-template-columns: var(--labelw, 20rem) 1fr; gap: 1.2rem;
  align-items: center; padding: .42rem 0; border-bottom: 1px solid var(--rule-2);
  text-decoration: none;
}
.row:hover { background: color-mix(in srgb, var(--established) 5%, transparent); }
.row .claim { font-size: .92rem; line-height: 1.35; color: var(--ink); }
.row .who { display: block; font: 400 .72rem/1.3 var(--mono); color: var(--muted); }
.track { position: relative; height: 1.5rem; }
.track .grid { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--rule-2); }
.bar {
  position: absolute; top: 50%; height: .5rem; transform: translateY(-50%);
  background: var(--unknown); border-radius: 1px;
  transform-origin: left center;
}
.bar.is-established { background: var(--established); }
.bar.is-claimed { background: var(--claimed); }
.bar .pct {
  position: absolute; left: calc(100% + .45rem); top: 50%; transform: translateY(-50%);
  font: 500 .66rem/1 var(--mono); color: var(--muted); white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .bar { animation: grow .5s cubic-bezier(.22,.8,.3,1) backwards; }
  @keyframes grow { from { transform: translateY(-50%) scaleX(0); opacity: 0 } }
}

/* ---------- sections ---------- */
section { padding: clamp(2.2rem, 6vw, 4rem) 0; border-top: 1px solid var(--rule); }
.eyebrow {
  font: 500 .7rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem;
}
h2 { font: 600 clamp(1.45rem, 3.6vw, 2rem)/1.15 var(--serif); margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font: 600 1.05rem/1.3 var(--sans); margin: 0 0 .4rem; }
p { max-width: var(--measure); }
.lede { color: var(--ink-2); max-width: 58ch; }

.triad { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pane { border-top: 2px solid var(--rule); padding-top: .9rem; }
.pane.established { border-top-color: var(--established); }
.pane.claimed { border-top-color: var(--claimed); }
.pane.unknown { border-top-color: var(--unknown); }
.pane .n { font: 600 2.4rem/1 var(--serif); display: block; }
.pane .k {
  font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin: .35rem 0 .8rem;
}
.pane ul { margin: 0; padding: 0; list-style: none; }
.pane li { font-size: .92rem; line-height: 1.45; padding: .5rem 0; border-top: 1px solid var(--rule-2); }

/* ---------- map + incidents ---------- */
.mapgrid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .mapgrid { grid-template-columns: 1fr 1.1fr; } }
.map svg { width: 100%; height: auto; display: block; }
.map .region { fill: var(--rule-2); stroke: var(--paper); stroke-width: .012; }
.map .region.hot { fill: color-mix(in srgb, var(--claimed) 22%, var(--rule-2)); }
.map .site { fill: var(--claimed); stroke: var(--paper); stroke-width: .02; }
.map .site.established { fill: var(--established); }
.maplegend { font: 500 .68rem/1.5 var(--mono); color: var(--muted); margin-top: .6rem; }

.incident {
  display: block; text-decoration: none; padding: .85rem 0;
  border-top: 1px solid var(--rule-2);
}
.incident:first-child { border-top: 1px solid var(--rule); }
.incident:hover h3 { text-decoration: underline; }
.incident .meta { font: 400 .72rem/1.4 var(--mono); color: var(--muted); }
.incident .sum { font-size: .9rem; color: var(--ink-2); margin: .25rem 0 0; max-width: 60ch; }
.tag {
  display: inline-block; font: 500 .62rem/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; padding: .22rem .45rem; border: 1px solid var(--rule);
  border-radius: 2px; color: var(--muted); margin-right: .35rem;
}
.tag.draft { border-color: var(--claimed); color: var(--claimed); }
.tag.seed { border-color: var(--unknown); color: var(--unknown); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--ink); padding: 2.5rem 0 4rem; }
footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
footer p, footer li { font-size: .86rem; color: var(--ink-2); }
footer h4 { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { padding: .22rem 0; }

@media (max-width: 46rem) {
  .stack-head, .row { grid-template-columns: 1fr; gap: .3rem; }
  .stack-head .cap { display: none; }
  .track { height: 1.25rem; }
}

/* ---------- incident pages ---------- */
.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.compare figure { margin: 0; }
.compare img {
  width: 100%; height: auto; display: block; border-radius: 3px;
  border: 1px solid var(--rule); background: var(--rule-2);
}
.compare figcaption {
  font: 500 .7rem/1.4 var(--mono); color: var(--muted); padding-top: .45rem;
  letter-spacing: .03em;
}
.limit {
  border-left: 2px solid var(--claimed); padding: .8rem 1rem; margin-top: 1.2rem;
  background: color-mix(in srgb, var(--claimed) 7%, transparent);
  font-size: .92rem; max-width: var(--measure); border-radius: 0 3px 3px 0;
}
.obs {
  border-left: 2px solid var(--rule); padding: .1rem 0 .1rem 1.1rem;
  margin: 0 0 1.6rem;
}
.obs p { font-size: .95rem; }
.obs .eyebrow { margin-bottom: .3rem; }
.assessment { border-top: 1px solid var(--rule); padding: 1.4rem 0; }
.assessment h3 { font: 600 1.15rem/1.35 var(--serif); max-width: 46ch; }
.assessment .meta { font: 400 .72rem/1.4 var(--mono); color: var(--muted); margin: 0 0 .8rem; }
.assessment p { font-size: .95rem; }
.verdict { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .8rem; }
.verdict b {
  font: 600 1.25rem/1 var(--serif); color: var(--claimed); letter-spacing: -.01em;
}
.verdict span { font: 500 .72rem/1 var(--mono); color: var(--muted); }
.sources { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.sources li {
  border-top: 1px solid var(--rule-2); padding: .75rem 0; font-size: .9rem;
  color: var(--ink-2);
}
.sources b {
  font: 500 .66rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-right: .4rem;
}
.sources i { color: var(--muted); }

/* The established zone is drawn empty on purpose: the point of the page is
   that almost nothing reaches it. */
.scale .zone, .track .zone {
  position: absolute; top: 0; bottom: 0; right: 0;
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--established) 7%, transparent) 0 5px,
    transparent 5px 10px);
  border-left: 1px solid color-mix(in srgb, var(--established) 45%, transparent);
  pointer-events: none;
}
.scale .tick b { font-weight: 500; }
.threshold { border-left: none; }
.tally {
  font: 500 .82rem/1.7 var(--mono); color: var(--muted); max-width: none;
  letter-spacing: .01em; margin: 0;
}
.tally b { font-weight: 500; color: var(--ink); }
.tally .t-est { color: var(--established); }
.tally .t-cl  { color: var(--claimed); }
.tally .t-un  { color: var(--unknown); }
.hero h1 { margin-bottom: .8rem; }
.hero .standfirst { margin-bottom: 1.1rem; }

/* Two answer zones, one at each end. The empty middle is the point. */
.zone.out { background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--unknown) 10%, transparent) 0 5px, transparent 5px 10px);
  border-left: none; border-right: 1px solid color-mix(in srgb, var(--unknown) 45%, transparent); }
.threshold.out { }
.threshold.out b { color: var(--unknown); left: 100%; transform: translateX(-100%); }
.bar.is-ruledout { background: var(--unknown); }
.bar.is-open { background: var(--claimed); }
.pane.ruledout { border-top-color: var(--unknown); }
.pane li { display: flex; gap: .8rem; align-items: baseline; justify-content: space-between; }
.pane li .w {
  font: 500 .64rem/1.4 var(--mono); color: var(--muted); white-space: nowrap;
  letter-spacing: .03em;
}
.pane li.none { color: var(--muted); font-style: italic; }
.tally .t-out { color: var(--unknown); }

ul.plain { max-width: var(--measure); padding-left: 1.1rem; }
ul.plain li { margin-bottom: .55rem; }

/* ---------- update feed ---------- */
.updates { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 56rem; }
.update {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.4rem;
  padding: .95rem 0; border-top: 1px solid var(--rule-2); align-items: start;
}
.update:first-child { border-top: 1px solid var(--rule); }
.u-meta { display: flex; flex-direction: column; gap: .35rem; }
.u-meta time {
  font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .04em;
}
.kindtag {
  font: 500 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 2px; padding: .25rem .4rem;
  color: var(--muted); width: fit-content;
}
/* Corrections are the point of publishing this at all, so they are the one
   thing in the feed that carries colour. */
.kindtag.correction { border-color: var(--claimed); color: var(--claimed); background:
  color-mix(in srgb, var(--claimed) 9%, transparent); }
.kindtag.evidence { border-color: var(--established); color: var(--established); }
.u-body p { margin: 0 0 .3rem; font-size: .96rem; max-width: 60ch; }
.u-body a { font: 400 .8rem/1.4 var(--mono); color: var(--muted); }
.u-body a:hover { color: var(--ink); }
.update.correction .u-body p { font-weight: 500; }
.day { border-top: 1px solid var(--rule); padding: 2rem 0; }
.day h2 { font-size: 1.1rem; font-family: var(--mono); font-weight: 500;
  letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.tally .t-cor { color: var(--claimed); }
@media (max-width: 46rem) {
  .update { grid-template-columns: 1fr; gap: .4rem; }
  .u-meta { flex-direction: row; align-items: center; gap: .6rem; }
}
