/* ============================================================
   Lee Man-hee Case Watch — Evidence Hub
   Design system: restrained, institutional, document-of-record.
   Two typefaces only — an editorial serif for all prose,
   a plain grotesque for chrome, labels, tags and citations.
   ============================================================ */

:root {
  /* Ink & paper — v2 palette (navy / cream / tan) */
  --paper:        #faf7f2;   /* cream reading surface */
  --paper-panel:  #f1ece1;   /* inset panels / cards */
  --ink:          #22262b;   /* body text */
  --ink-soft:     #3a4149;
  --muted:        #6c7178;   /* meta, captions */
  --navy:         #162b41;   /* brand / headings */
  --navy-line:    #274b74;   /* links, accent rules */
  --tan:          #dbceb3;   /* brand tan accent */
  --tan-soft:     #ece3d1;
  --rule:         #e6ddce;   /* hairline borders */
  --rule-strong:  #d4c8b2;

  /* Fact / allegation system */
  --est-bg:   #e6efe7;
  --est-ink:  #2c5a3f;
  --est-line: #c8ddca;
  --alg-bg:   #f5ead7;
  --alg-ink:  #8a5a1e;
  --alg-line: #e6d3ad;

  /* Callouts */
  --info-bg:   #eef2f6;
  --info-line: #234a72;
  --note-bg:   #f8f0e2;
  --note-line: #b3833a;

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 41rem;         /* reading column ≈ 680px, 65–70 chars */
  --wide:    64rem;         /* full content width */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-line); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem;
  font-family: var(--sans); font-size: .9rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, #fff);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.1) blur(6px);
}
.masthead__inner {
  max-width: var(--wide); margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); text-decoration: none; color: var(--navy);
}
.wordmark__mark {
  width: 14px; height: 14px; background: var(--navy);
  display: inline-block; transform: rotate(0deg);
  box-shadow: 3px 3px 0 0 var(--alg-line);
}
.wordmark__text {
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; line-height: 1.15;
}
.wordmark__text span { display: block; font-weight: 400; color: var(--muted); letter-spacing: .18em; font-size: .62rem; }

/* ---------- Nav ---------- */
.nav {
  font-family: var(--sans); display: flex; flex-wrap: wrap;
  gap: .1rem; align-items: center;
}
.nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .82rem; letter-spacing: .01em;
  padding: .35rem .6rem; border-radius: 3px;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); background: var(--paper-panel); }
.nav a[aria-current="page"] {
  color: var(--navy); font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--navy-line);
  border-radius: 0;
}

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.col  { max-width: var(--measure); }
.pagehead { padding: 3.25rem 0 1.75rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.25rem; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .7rem; color: var(--muted); font-weight: 600; margin: 0 0 .9rem;
}
h1 { font-family: var(--serif); font-weight: 600; color: var(--navy);
     font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); line-height: 1.12;
     letter-spacing: -.012em; margin: 0 0 .6rem; }
.lede { font-size: 1.28rem; line-height: 1.55; color: var(--ink-soft); margin: .4rem 0 0; max-width: var(--measure); }
h2 { font-family: var(--serif); font-weight: 600; color: var(--navy);
     font-size: 1.55rem; line-height: 1.2; letter-spacing: -.008em;
     margin: 2.75rem 0 .75rem; padding-top: .25rem; }
h3 { font-family: var(--sans); font-weight: 600; color: var(--navy);
     font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
     margin: 2rem 0 .5rem; }
p { margin: 0 0 1.15rem; }
.section { padding: 0 0 1rem; }
.section[id] { scroll-margin-top: 120px; }
section + section { margin-top: .5rem; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1.3rem; }
li { margin: 0 0 .5rem; }
li::marker { color: var(--muted); }
strong { font-weight: 600; color: var(--ink); }

.small { font-size: .95rem; color: var(--muted); }
.footnote { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ---------- Fact / allegation tags ---------- */
.tag {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  font-size: .62rem; letter-spacing: .1em;
  display: inline-block; padding: .18em .5em; border-radius: 2px;
  vertical-align: middle; border: 1px solid transparent; white-space: nowrap;
}
.tag--est { background: var(--est-bg); color: var(--est-ink); border-color: var(--est-line); }
.tag--alg { background: var(--alg-bg); color: var(--alg-ink); border-color: var(--alg-line); }

/* ---------- Citation component ---------- */
.cite {
  font-family: var(--sans); font-size: .8rem; color: var(--muted);
}
.cite a {
  color: var(--navy-line); text-decoration: none;
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px;
}
.cite a:hover { color: var(--navy); border-bottom-color: var(--navy-line); }
.cite a[target="_blank"]::after {
  content: "↗"; font-size: .72em; margin-left: .18em; color: var(--muted);
  vertical-align: baseline;
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--info-bg); border-left: 3px solid var(--info-line);
  padding: 1.15rem 1.35rem; margin: 1.8rem 0; border-radius: 0 4px 4px 0;
}
.callout--note { background: var(--note-bg); border-left-color: var(--note-line); }
.callout__label {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em;
  font-size: .68rem; font-weight: 600; color: var(--navy); margin: 0 0 .5rem;
}
.callout--note .callout__label { color: var(--alg-ink); }
.callout p:last-child { margin-bottom: 0; }

/* Pull-quote / core question */
.pullquote {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  line-height: 1.5; color: var(--navy); border-left: 3px solid var(--rule-strong);
  padding: .3rem 0 .3rem 1.4rem; margin: 1.9rem 0;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 0; }
.btn {
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: 4px; border: 1px solid var(--navy);
  color: #fff; background: var(--navy); transition: background .15s, transform .15s;
}
.btn:hover { background: #1d3a5e; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--paper-panel); color: var(--navy); }
.btn[aria-disabled="true"] {
  background: var(--paper-panel); color: var(--muted); border-color: var(--rule-strong);
  pointer-events: none; cursor: default;
}

/* ---------- Legend (timeline key) ---------- */
.legend {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  background: var(--paper-panel); border: 1px solid var(--rule);
  padding: .85rem 1.1rem; border-radius: 4px; margin: 0 0 2.25rem;
}
.legend > span { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: .4rem; bottom: .4rem;
  width: 2px; background: var(--rule); border-radius: 2px;
}
.entry { position: relative; padding: 0 0 1.9rem 2.1rem; }
.entry::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy-line);
}
.entry--alg::before { border-color: var(--alg-line); background: var(--alg-bg); }
.entry__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin: 0 0 .25rem; }
.entry__date { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--navy); }
.entry__body { margin: 0; }
.entry__body p { margin: 0 0 .4rem; }

/* ---------- Source library ---------- */
.source-group { margin: 0 0 1.75rem; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li {
  padding: .7rem 0; border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline;
}
.source-list li:first-child { border-top: 1px solid var(--rule); }
.source-outlet { font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--navy); }
.source-desc { color: var(--ink-soft); font-size: 1rem; flex: 1 1 14rem; }
.source-link { font-family: var(--sans); font-size: .82rem; }

/* ---------- Home hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero .kicker {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--muted); font-weight: 600; margin: 0 0 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem); max-width: 20ch; }
.hero .lede { font-size: 1.35rem; }

.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .grid-2 { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.aside-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.5rem 1.5rem; box-shadow: 0 1px 0 var(--rule);
}
.aside-card h3 { margin-top: 0; }
.factbox dt { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-top: .9rem; }
.factbox dd { margin: .1rem 0 0; font-size: 1rem; }
.factbox dt:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); margin-top: 4rem;
  background: var(--paper-panel);
}
.site-footer__inner {
  max-width: var(--wide); margin: 0 auto; padding: 2.5rem 1.5rem 3rem;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .site-footer__inner { grid-template-columns: 1.6fr 1fr; } }
.site-footer .transparency {
  font-size: .98rem; color: var(--ink-soft); border-left: 3px solid var(--info-line);
  padding-left: 1rem; max-width: 40rem;
}
.site-footer .transparency strong { display:block; font-family: var(--sans); font-size:.68rem; text-transform:uppercase; letter-spacing:.13em; color: var(--navy); margin-bottom:.4rem; font-weight:600; }
.footer-nav { font-family: var(--sans); font-size: .85rem; }
.footer-nav a { display: block; color: var(--ink-soft); text-decoration: none; padding: .22rem 0; }
.footer-nav a:hover { color: var(--navy); }
.footer-meta { font-family: var(--sans); font-size: .78rem; color: var(--muted); grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.placeholder { background: var(--alg-bg); color: var(--alg-ink); padding: 0 .3em; border-radius: 2px; font-family: var(--sans); font-size: .85em; }

/* ---------- Reveal (respectful, subtle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); animation: fadeUp .6s ease forwards; }
  .reveal:nth-child(2) { animation-delay: .05s; }
  .reveal:nth-child(3) { animation-delay: .1s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 34rem) {
  body { font-size: 1.06rem; }
  .masthead__inner { padding: .7rem 1rem; }
  .wrap { padding: 0 1.15rem; }
  .nav { width: 100%; overflow-x: auto; }
}

/* ============================================================
   v2 — Readability & progressive-disclosure components
   ============================================================ */

/* Featured pull-quote: large, centered, isolated (core question / sign-off) */
.pullquote--feature {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 1.9rem); line-height: 1.42;
  color: var(--navy); text-align: center; border: 0;
  max-width: 34rem; margin: 3.5rem auto; padding: 2rem 1.5rem;
  position: relative;
}
.pullquote--feature::before,
.pullquote--feature::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--tan); margin: 0 auto 1.6rem;
}
.pullquote--feature::after { margin: 1.6rem auto 0; }

/* "At a glance" fact cards */
.glance {
  display: grid; gap: 1rem; margin: 0 0 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 46rem) { .glance { grid-template-columns: repeat(4, 1fr); } }
.glance__card {
  background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--tan);
  border-radius: 5px; padding: 1.05rem 1.1rem 1.15rem;
}
.glance__label {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .11em;
  font-size: .64rem; font-weight: 600; color: var(--muted); margin: 0 0 .4rem;
}
.glance__value {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.28; color: var(--navy);
  font-weight: 600;
}
.glance__value small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: .25rem; letter-spacing: 0; text-transform: none; }

/* Two-column "is / isn't" block with check / cross */
.isisnt { display: grid; gap: 1.25rem; margin: 1.5rem 0; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .isisnt { grid-template-columns: 1fr 1fr; } }
.isisnt__col {
  background: var(--paper-panel); border: 1px solid var(--rule);
  border-radius: 6px; padding: 1.3rem 1.4rem;
}
.isisnt__col h3 { margin: 0 0 .85rem; }
.isisnt__list { list-style: none; padding: 0; margin: 0; }
.isisnt__list li {
  position: relative; padding: 0 0 .7rem 1.9rem; margin: 0;
  font-size: 1rem; line-height: 1.5;
}
.isisnt__list li::before {
  position: absolute; left: 0; top: .05rem; font-family: var(--sans);
  font-weight: 700; font-size: .95rem;
}
.isisnt__col--is   .isisnt__list li::before { content: "✓"; color: var(--est-ink); }
.isisnt__col--isnt .isisnt__list li::before { content: "✕"; color: var(--alg-ink); }
.isisnt__col--is   { border-left: 3px solid var(--est-line); }
.isisnt__col--isnt { border-left: 3px solid var(--alg-line); }

/* Deep-dive link cards */
.deepdive {
  display: grid; gap: 1rem; margin: 1.5rem 0 0;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .deepdive { grid-template-columns: 1fr 1fr; } }
.deepdive__card {
  display: block; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.25rem 1.35rem; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.deepdive__card:hover { border-color: var(--tan); transform: translateY(-2px); box-shadow: 0 6px 18px -12px rgba(22,43,65,.4); }
.deepdive__card h3 { margin: 0 0 .35rem; color: var(--navy); }
.deepdive__card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.deepdive__card .go { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--navy-line); margin-top: .7rem; display: inline-block; }
.deepdive__card:hover .go { text-decoration: underline; }

/* Sticky in-page section nav (long documents) */
.subnav {
  position: sticky; top: 58px; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, #fff);
  backdrop-filter: saturate(1.1) blur(6px);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: .55rem .75rem; margin: 0 0 2.25rem;
  display: flex; flex-wrap: wrap; gap: .2rem .4rem; align-items: center;
  font-family: var(--sans);
}
.subnav a { text-decoration: none; color: var(--ink-soft); font-size: .8rem; padding: .3rem .55rem; border-radius: 4px; }
.subnav a:hover { background: var(--paper-panel); color: var(--navy); }
.subnav .readtime { margin-left: auto; font-size: .74rem; color: var(--muted); padding-right: .3rem; }
@media (max-width: 40rem) { .subnav { overflow-x: auto; flex-wrap: nowrap; } .subnav .readtime { display: none; } }

/* Standards cards (human-rights) */
.standards-cards { display: grid; gap: 1rem; margin: 1.25rem 0 0; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .standards-cards { grid-template-columns: 1fr 1fr; } }
.standard-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  padding: 1.15rem 1.25rem; border-left: 3px solid var(--tan);
}
.standard-card h3 { margin: 0 0 .3rem; color: var(--navy); font-size: .82rem; }
.standard-card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* Section eyebrow used on homepage lobby blocks */
.lobby-eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .68rem; color: var(--muted); font-weight: 600; margin: 0 0 1rem;
}

/* ---------- Simplified footer (v2) ---------- */
.site-footer__inner {
  display: block; text-align: center;
  padding: 2.75rem 1.5rem 3rem;
}
.footer-disclaimer {
  font-family: var(--serif); font-style: italic; color: var(--navy);
  font-size: 1.06rem; line-height: 1.5; max-width: 34rem; margin: 0 auto 1.4rem;
}
.site-footer .footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .35rem; margin: 0 0 1.2rem;
}
.site-footer .footer-nav a { display: inline-block; padding: .25rem .55rem; }
.footer-domain { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin: 0; letter-spacing: .02em; }
