/* AI Radar — event-first intelligence reader.
   Palette via light-dark(); manual override with html[data-theme]. */

:root {
  color-scheme: light dark;

  --bg: light-dark(#f6f7f5, #101317);
  --bg-card: light-dark(#ffffff, #181c22);
  --bg-inset: light-dark(#eef0ed, #20262e);
  --bg-head: light-dark(rgba(255,255,255,.88), rgba(16,19,23,.88));
  --text: light-dark(#191b1a, #e9eae6);
  --text-dim: light-dark(#69706b, #98a09a);
  --border: light-dark(#e2e5e0, #2a313a);
  --border-strong: light-dark(#c9cec8, #3a434e);
  --accent: light-dark(#0e6e5c, #4fd1b5);
  --accent-soft: light-dark(#e0f0ec, #16352f);
  --link: light-dark(#0b5cad, #74b6f3);
  --shadow: light-dark(0 1px 2px rgba(20,24,22,.05), 0 1px 3px rgba(0,0,0,.4));
  --shadow-lift: light-dark(0 4px 14px rgba(20,24,22,.08), 0 6px 18px rgba(0,0,0,.5));

  --confirmed-fg: light-dark(#0a6b3d, #63d99a); --confirmed-bg: light-dark(#e0f2e8, #143321);
  --corrob-fg: light-dark(#0b5cad, #7db8f0);    --corrob-bg: light-dark(#e2edf8, #142c44);
  --single-fg: light-dark(#5b5f5c, #b0b6b1);    --single-bg: light-dark(#eaece9, #262c31);
  --rumor-fg: light-dark(#8a5a00, #f0c060);     --rumor-bg: light-dark(#f8ecd2, #3a2d10);
  --disputed-fg: light-dark(#a52323, #f08a8a);  --disputed-bg: light-dark(#fae3e3, #421818);
  --false-fg: light-dark(#7a1f5c, #e08ac2);     --false-bg: light-dark(#f5dfee, #3a1230);

  --hue-teal: light-dark(#0e8b74, #43cfae);
  --hue-green: light-dark(#3f8b1f, #8fd464);
  --hue-violet: light-dark(#6d4fc4, #af97f2);
  --hue-pink: light-dark(#c23e88, #ef8fc4);
  --hue-blue: light-dark(#1f6fc2, #7ab5f0);
  --hue-amber: light-dark(#a4680a, #ecb54e);
  --hue-red: light-dark(#bb3535, #ef8f8f);
  --hue-slate: light-dark(#55657a, #9fb0c4);
  --hue-none: light-dark(#8a908c, #6d756f);
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-head);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.head-row { display: flex; align-items: center; gap: 16px; padding: 10px 20px 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand b { font-size: 19px; letter-spacing: -.01em; color: var(--text); display: block; line-height: 1.15; }
.brand .tagline { font-size: 11.5px; font-weight: 400; color: var(--text-dim); display: block; line-height: 1.2; }
.site-nav { margin-left: auto; display: flex; gap: 16px; font-size: 13.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; white-space: nowrap; }
.site-nav a { color: var(--text-dim); }
.site-nav a.active, .site-nav a:hover { color: var(--text); text-decoration: none; }
.head-controls { display: flex; gap: 8px; align-items: center; }
.ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-dim);
  font-size: 13px; cursor: pointer;
}
.ctrl:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }

.tabs-row { padding: 0 20px; min-width: 0; overflow: hidden; }
.tabs { display: flex; width: 100%; max-width: 100%; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 13.5px;
  color: var(--text-dim); border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: var(--bg-inset); text-decoration: none; }
.tab.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.tab .gicon { opacity: .75; }
.tab-teal.active { color: var(--hue-teal); background: color-mix(in srgb, var(--hue-teal) 12%, transparent); border-color: var(--hue-teal); }
.tab-green.active { color: var(--hue-green); background: color-mix(in srgb, var(--hue-green) 12%, transparent); border-color: var(--hue-green); }
.tab-violet.active { color: var(--hue-violet); background: color-mix(in srgb, var(--hue-violet) 12%, transparent); border-color: var(--hue-violet); }
.tab-pink.active { color: var(--hue-pink); background: color-mix(in srgb, var(--hue-pink) 12%, transparent); border-color: var(--hue-pink); }
.tab-blue.active { color: var(--hue-blue); background: color-mix(in srgb, var(--hue-blue) 12%, transparent); border-color: var(--hue-blue); }
.tab-amber.active { color: var(--hue-amber); background: color-mix(in srgb, var(--hue-amber) 12%, transparent); border-color: var(--hue-amber); }
.tab-red.active { color: var(--hue-red); background: color-mix(in srgb, var(--hue-red) 12%, transparent); border-color: var(--hue-red); }
.tab-slate.active { color: var(--hue-slate); background: color-mix(in srgb, var(--hue-slate) 12%, transparent); border-color: var(--hue-slate); }

/* ---------- stats strip ---------- */
.stats-strip {
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline;
  margin: 18px 0 4px; font-size: 13.5px; color: var(--text-dim);
}
.stats-strip b { color: var(--text); font-weight: 600; }
.stats-strip .dim { opacity: .85; }

/* ---------- editorial briefs ---------- */
.insights-home { margin: 28px 0 18px; }
.section-intro { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 12px; }
.section-intro .sec-title { margin: 0 0 4px; }
.section-intro p { margin: 0; color: var(--text-dim); font-size: 14px; max-width: 72ch; }
.section-intro > a { flex: none; font-size: 13px; font-weight: 650; }
.insights-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 10px; }
.insight-card {
  display: flex; flex-direction: column; gap: 5px; min-height: 168px; padding: 15px 16px;
  color: var(--text); background: var(--bg-card); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.insight-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.insight-card h3 { margin: 4px 0 2px; font-size: 16px; line-height: 1.48; }
.insight-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.insight-lead { background: linear-gradient(140deg, var(--accent-soft), var(--bg-card) 65%); }
.insight-tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-soft); }
.insight-audience { margin-top: auto; color: var(--text-dim); font-size: 12px; }
.insight-figure { margin: 20px 0 6px; }
.insight-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow); }
.insight-figure figcaption { margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.home-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 34px; }
.home-pillars a { display: flex; flex-direction: column; gap: 4px; min-height: 118px; padding: 15px 16px; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.home-pillars a:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.home-pillar-lead { grid-column: span 2; min-height: 142px !important; justify-content: center; padding: 20px 22px !important; background: linear-gradient(135deg, var(--accent-soft), var(--bg-card) 72%); border-color: color-mix(in srgb, var(--accent) 42%, var(--border)) !important; border-left: 4px solid var(--accent) !important; }
.home-pillar-kicker { color: var(--accent) !important; font-size: 11px !important; font-weight: 750; letter-spacing: .1em; line-height: 1.2 !important; text-transform: uppercase; }
.home-pillars b { font-size: 15px; line-height: 1.35; }
.home-pillar-lead b { font-size: 22px; line-height: 1.25; }
.home-pillars a > span:not(.home-pillar-kicker):not(.home-pillar-arrow) { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.home-pillar-arrow { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; color: var(--accent) !important; font-size: 12.5px !important; font-weight: 700; line-height: 1.3 !important; }
.home-pillar-arrow span { transition: transform .15s ease; }
.home-pillar-lead:hover .home-pillar-arrow span { transform: translateX(3px); }
.raw-radar-intro { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); }
.raw-radar-intro .sec-title { margin: 0; }
.raw-radar-intro p { margin: 0; max-width: 62ch; color: var(--text-dim); font-size: 13px; }
.raw-feed-home { max-width: 900px; }
.raw-more { margin: 14px 0 24px; }
.insights-hero { margin-bottom: 24px; }
.insights-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto 32px; }
.insights-list .insight-card { min-height: 145px; }
.insight-article { max-width: 76ch; }
.insight-article h1 { margin-bottom: 8px; }
.insight-bottom-line { margin: 22px 0 12px; padding: 15px 17px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.insight-bottom-line > span { display: block; color: var(--accent); font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.insight-bottom-line p { margin: 5px 0 0; font-size: 16px; line-height: 1.75; }
.insight-body { margin-top: 18px; }
.insight-sources { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); }
.insight-sources h2 { font-size: 17px; margin: 0 0 8px; }
.insight-sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.insight-sources li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.insight-sources li .tag { flex: none; }
.insight-related { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border); }
.insight-related h2 { font-size: 17px; margin: 0 0 8px; }
.insight-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.insight-related li a { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); text-decoration: none; background: var(--surface); }
.insight-related li a:hover { border-color: var(--accent); }
.insight-related li a b { color: var(--accent); font-size: 14px; }
.insight-related li a span { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ---------- featured (Ground News-style uniform rail) ---------- */
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin: 18px 0 10px; }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.featured-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); box-shadow: var(--shadow);
  border-top: 3px solid var(--hue-none);
  padding: 11px 13px 12px; min-width: 0;
}
.featured-card .card-top { font-size: 11px; display: flex; align-items: center; gap: 6px; }
.featured-card .card-time { margin-left: auto; white-space: nowrap; }
.featured-card h3 {
  font-size: 13.5px; line-height: 1.5; margin: 7px 0 0; font-weight: 650;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card .featured-why {
  font-size: 12px; line-height: 1.55; color: var(--text-dim); margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card .featured-why b {
  margin-right: 3px; font-size: 11px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .03em;
}
.featured-foot {
  margin-top: auto; padding-top: 9px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-dim); white-space: nowrap;
}
.featured-card .rank {
  flex: none; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent-soft);
  font-size: 11px; font-weight: 750; color: var(--accent);
}
.event-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-inset); }
.event-media img, .detail-hero img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-media-fallback {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-inset));
  color: var(--accent); font-size: 18px;
}
.event-media-fallback .gicon { width: 28px; height: 28px; }
.hue-bg-teal { color: var(--hue-teal); } .hue-bg-green { color: var(--hue-green); }
.hue-bg-violet { color: var(--hue-violet); } .hue-bg-pink { color: var(--hue-pink); }
.hue-bg-blue { color: var(--hue-blue); } .hue-bg-amber { color: var(--hue-amber); }
.hue-bg-red { color: var(--hue-red); } .hue-bg-slate { color: var(--hue-slate); }
.featured-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.featured-card { transition: box-shadow .15s ease, transform .15s ease; }
.featured-why, .featured-uncertain { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.featured-why b, .featured-uncertain b {
  display: inline-block; margin-right: 4px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.featured-why b { color: var(--accent); }
.featured-uncertain b { color: var(--hue-amber); }

/* ---------- evidence visualization (Ground News-style) ---------- */
.evidence-viz { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.evbar {
  display: inline-flex; width: 54px; height: 6px; border-radius: 999px;
  overflow: hidden; background: var(--bg-inset); flex: none;
}
.evidence-viz.with-labels .evbar { width: 160px; height: 8px; }
.evbar .seg { display: block; height: 100%; }
.seg-PRIMARY { background: var(--hue-green); }
.seg-TRUSTED_SECONDARY { background: var(--hue-blue); }
.seg-COMMUNITY { background: var(--hue-amber); }
.seg-UNVERIFIED { background: var(--hue-slate); }
.evlabels { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--text-dim); }
.evlabel { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.evlabel .dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.evidence-strip { margin: 2px 0 12px; }

/* ---------- rising (new coverage momentum) ---------- */
.rising { margin-top: 16px; }
.rising-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.rising-card {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rising-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.rising-gain {
  flex: none; font-size: 13px; font-weight: 750; color: var(--hue-amber);
  background: color-mix(in srgb, var(--hue-amber) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--hue-amber) 40%, var(--border));
  border-radius: 8px; padding: 2px 7px;
}
.rising-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rising-body b { font-size: 13.5px; line-height: 1.45; font-weight: 640; }
.rising-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }

/* ---------- daily radar ---------- */
.daily-nav { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.daily-top { list-style: none; margin: 0 0 20px; padding: 0; max-width: 74ch; }
.daily-top-item {
  display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow);
}
.daily-top-item .rank-num {
  flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 750;
}
.daily-top-body { min-width: 0; }
.daily-top-body h3 { margin: 6px 0 0; font-size: 16.5px; line-height: 1.45; }
.daily-top-body .meta { margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.daily-notable { max-width: 74ch; }
.daily-notable .side-item span:first-child { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }

/* ---------- timeline kinds ---------- */
.timeline .tl-day { border-left-color: transparent; padding-bottom: 6px; }
.timeline .tl-day::before { display: none; }
.timeline .tl-day span {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-dim); background: var(--bg-inset); border-radius: 6px; padding: 2px 8px;
  position: relative; left: -14px;
}
.timeline .kind-SOURCE_ADDED::before { background: var(--hue-blue); }
.timeline .kind-STATUS_CHANGED::before { background: var(--hue-green); }
.timeline .kind-MANUAL_MERGE::before { background: var(--hue-violet); }

/* ---------- learn section ---------- */
.learn-banner {
  display: flex; align-items: center; gap: 16px; margin: 14px 0 2px;
  padding: 13px 18px; border-radius: 14px; color: var(--text);
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--hue-blue) 10%, var(--bg-card)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  transition: box-shadow .15s ease, transform .15s ease;
}
.learn-banner:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.learn-banner-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.learn-banner-copy b { font-size: 15.5px; color: var(--accent); }
.learn-banner-copy span { font-size: 12.5px; color: var(--text-dim); }
.learn-banner .learn-cta { margin-left: auto; flex: none; }
.learn-hero { text-align: center; margin: 40px 0 30px; }
.learn-hero h1 { font-size: 34px; letter-spacing: -.018em; margin: 0 0 10px; }
.learn-hero p { margin: 0; color: var(--text-dim); font-size: 16.5px; }
.learn-hero-cta { margin-top: 18px !important; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.learn-cta.big { padding: 10px 22px; font-size: 14.5px; }
.learn-cta.ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 8.5px 20px; font-size: 14.5px;
}
.learn-hero-stats { margin-top: 12px !important; font-size: 12.5px !important; }
.sec-title.center { text-align: center; margin-top: 26px; }
.center-note { text-align: center; margin-top: 22px; }
.learn-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 980px; margin: 0 auto; }
.learn-entry {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 15px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.learn-entry:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.learn-entry b { font-size: 14px; }
.learn-entry span { font-size: 12.5px; color: var(--accent); }
.learn-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; }
.learn-step {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.learn-step:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.learn-step-num {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 15px; font-weight: 750;
}
.learn-step-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.learn-step-body b { font-size: 14.5px; line-height: 1.4; }
.learn-concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 14px auto 0; }
.learn-concept {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 14px; color: var(--text);
}
.learn-concept:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.learn-concept b { color: var(--accent); font-size: 14.5px; }
.learn-badge {
  display: inline-block; margin: 14px 0 0; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700;
}
.learn-article { max-width: 74ch; }
.learn-lead { font-size: 16px; color: var(--text-dim); margin: 4px 0 18px; line-height: 1.7; }
.learn-block { margin: 0 0 18px; }
.learn-block h3 { font-size: 16.5px; margin: 0 0 6px; }
.learn-block p { font-size: 15px; line-height: 1.75; margin: 0 0 8px; }
.learn-list { margin: 6px 0 8px; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.say-box {
  margin: 10px 0 4px; padding: 13px 16px; border-radius: 12px;
  background: var(--bg-inset); border: 1px dashed var(--border);
}
.say-box b { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 5px; }
.say-box p { margin: 0; font-size: 14.5px; line-height: 1.75; }
.learn-more { font-size: 14.5px; }
.learn-nav { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 8px; font-size: 13.5px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.tool-card h3 { margin: 0 0 10px; font-size: 17px; }
.tool-card .trow { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; margin-bottom: 6px; }
.tool-card .trow b { flex: none; width: 64px; color: var(--text-dim); font-weight: 600; font-size: 12.5px; padding-top: 1px; }
.tool-card .stars { color: var(--hue-amber); letter-spacing: 2px; }
.tool-verdict {
  margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
  font-size: 13.5px; line-height: 1.6;
}
.tool-meta { margin: 9px 0 0; font-size: 12px; }
.learn-hint {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--accent-soft); font-size: 13px; color: var(--text-dim);
  display: inline-block;
}
.side-learn { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* ---------- choose / guide / glossary ---------- */
.choose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.choose-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.choose-card h2 { margin: 0 0 10px; font-size: 16px; }
.choose-pick { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; margin-bottom: 7px; }
.choose-pick .medal { flex: none; }
.choose-pick b { flex: none; }
.choose-pick span:last-child { color: var(--text-dim); font-size: 12.5px; }
.choose-beginner {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 10px;
  background: var(--accent-soft); font-size: 12.5px; line-height: 1.6;
}
.guide-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; max-width: 980px; margin: 0 auto; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 6px 0 16px; font-size: 13.5px; align-items: center; }
.guide-meta b { color: var(--text-dim); font-weight: 600; margin-right: 4px; }
.say-pre { margin: 0; font: inherit; white-space: pre-wrap; line-height: 1.75; font-size: 14.5px; }
.say-box.with-copy { position: relative; padding-bottom: 44px; }
.copy-btn {
  position: absolute; right: 12px; bottom: 10px;
  padding: 5px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 650;
}
.copy-btn:hover { opacity: .92; }
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
.gloss-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow);
}
.gloss-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--accent); }
.gloss-card p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.65; }
.gloss-why { color: var(--text-dim); font-size: 12.5px !important; }
.gloss-why b { color: var(--text-dim); font-weight: 650; }

/* ---------- editor's notes ---------- */
.notes-list { display: grid; gap: 12px; max-width: 74ch; margin: 0 auto; }
.note-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.note-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.note-card h3 { margin: 6px 0 8px; font-size: 17px; line-height: 1.5; }
.note-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; color: var(--text-dim); }
.note-standfirst {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px;
  padding: 11px 15px; border-radius: 12px; border: 1px dashed var(--border);
  background: var(--bg-inset); font-size: 12.5px; color: var(--text-dim);
}
.note-standfirst b { color: var(--text); }
.verdict-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.verdict-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.note-body { margin-top: 10px; }
.note-body p { font-size: 15px; line-height: 1.85; margin: 0 0 14px; }
.note-body h2 { font-size: 19px; margin: 28px 0 10px; line-height: 1.5; }
.note-body h3 { font-size: 16px; margin: 22px 0 8px; }
.note-body blockquote {
  margin: 12px 0 14px; padding: 10px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
  font-size: 14.5px; line-height: 1.8;
}
.note-changelog { margin-top: 24px; }
.series-tag {
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
}
.note-article .series-tag { display: inline-block; margin-top: 14px; }
@media (max-width: 860px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .home-pillars { grid-template-columns: repeat(2, 1fr); }
  .home-pillar-lead { grid-column: span 2; }
  .guide-cats { grid-template-columns: 1fr; }
}
.learn-cta-row { margin: 8px 0 0; }
.learn-cta {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 650; font-size: 13px;
}
.learn-cta:hover { text-decoration: none; opacity: .92; }
@media (max-width: 860px) {
  .learn-path, .learn-concepts { grid-template-columns: 1fr; }
  .learn-entries { grid-template-columns: repeat(2, 1fr); }
  .learn-hero h1 { font-size: 24px; }
  .learn-banner { flex-wrap: wrap; }
  .learn-banner .learn-cta { margin-left: 0; }
  .section-intro, .raw-radar-intro { display: block; }
  .section-intro > a { display: inline-block; margin-top: 8px; }
  .insights-grid { grid-template-columns: 1fr; }
  .home-pillars { grid-template-columns: 1fr 1fr; }
  .home-pillar-lead { grid-column: span 2; min-height: 132px !important; }
  .home-pillar-lead b { font-size: 20px; }
}
.featured-card h3 { margin: 8px 0 6px; font-size: 16px; line-height: 1.45; letter-spacing: -.005em; }
.featured-card .summary { margin: 0 0 8px; font-size: 13px; color: var(--text-dim); }
.featured-card .srcline { font-size: 12px; color: var(--text-dim); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; align-items: start; }
.main-col { min-width: 0; }
.sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 14px; }
.side-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.side-box h4 {
  margin: 0 0 10px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-dim); font-weight: 600;
}
.side-ents { display: flex; flex-direction: column; gap: 2px; }
.side-ent {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px; margin: 0 -8px; border-radius: 7px;
  color: var(--text); font-size: 13.5px;
}
.side-ent:hover { background: var(--bg-inset); text-decoration: none; }
.side-ent b { color: var(--text-dim); font-size: 12px; font-weight: 600; }
.side-items { display: flex; flex-direction: column; gap: 8px; }
.side-item { display: block; color: var(--text); font-size: 13px; line-height: 1.45; }
.side-item:hover { color: var(--link); text-decoration: none; }
.side-item span { display: block; }
.side-item time { color: var(--text-dim); font-size: 11.5px; }
.feed-links { line-height: 1.9; }
.legend-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.toolbar input[type="search"] {
  flex: 1 1 240px; padding: 8px 14px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); color: var(--text);
}
.toolbar input[type="search"]:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim);
  border-radius: 999px; padding: 4px 13px; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ---------- event feed ---------- */
.event-list { list-style: none; margin: 4px 0 40px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.day-head h2 {
  margin: 16px 0 2px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 10px;
}
.day-head h2::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.event-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--hue-none);
  border-radius: 12px; padding: 12px 16px;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease;
}
.event-card:hover { box-shadow: var(--shadow-lift); }
.hue-teal { border-left-color: var(--hue-teal); } .featured-card.hue-teal { border-top-color: var(--hue-teal); }
.hue-green { border-left-color: var(--hue-green); } .featured-card.hue-green { border-top-color: var(--hue-green); }
.hue-violet { border-left-color: var(--hue-violet); } .featured-card.hue-violet { border-top-color: var(--hue-violet); }
.hue-pink { border-left-color: var(--hue-pink); } .featured-card.hue-pink { border-top-color: var(--hue-pink); }
.hue-blue { border-left-color: var(--hue-blue); } .featured-card.hue-blue { border-top-color: var(--hue-blue); }
.hue-amber { border-left-color: var(--hue-amber); } .featured-card.hue-amber { border-top-color: var(--hue-amber); }
.hue-red { border-left-color: var(--hue-red); } .featured-card.hue-red { border-top-color: var(--hue-red); }
.hue-slate { border-left-color: var(--hue-slate); } .featured-card.hue-slate { border-top-color: var(--hue-slate); }

.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-time { margin-left: auto; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.event-card h3 { margin: 6px 0 4px; font-size: 15.5px; line-height: 1.5; letter-spacing: -.004em; }
.event-card h3 a { color: var(--text); }
.event-card h3 a:hover { color: var(--link); text-decoration: none; }
.mt-mark { color: var(--text-dim); font-size: 10px; margin-left: 4px; border: 1px solid var(--border); border-radius: 4px; padding: 0 3px; vertical-align: 2px; }
.event-card .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.event-card .summary { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.event-card .srcline { margin-top: 7px; font-size: 12px; color: var(--text-dim); }
.hidden { display: none !important; }

/* ---------- badges & tags ---------- */
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 650;
  padding: 1.5px 9px; border-radius: 999px; white-space: nowrap;
}
.badge.CONFIRMED { color: var(--confirmed-fg); background: var(--confirmed-bg); }
.badge.CORROBORATED { color: var(--corrob-fg); background: var(--corrob-bg); }
.badge.SINGLE_SOURCE { color: var(--single-fg); background: var(--single-bg); }
.badge.RUMOR { color: var(--rumor-fg); background: var(--rumor-bg); }
.badge.DISPUTED { color: var(--disputed-fg); background: var(--disputed-bg); }
.badge.FALSE { color: var(--false-fg); background: var(--false-bg); }
.tag {
  display: inline-block; font-size: 11.5px; color: var(--text-dim);
  background: var(--bg-inset); border-radius: 6px; padding: 1px 8px;
}
.tag-link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.tcat-teal { color: var(--hue-teal); background: color-mix(in srgb, var(--hue-teal) 10%, transparent); }
.tcat-green { color: var(--hue-green); background: color-mix(in srgb, var(--hue-green) 10%, transparent); }
.tcat-violet { color: var(--hue-violet); background: color-mix(in srgb, var(--hue-violet) 10%, transparent); }
.tcat-pink { color: var(--hue-pink); background: color-mix(in srgb, var(--hue-pink) 10%, transparent); }
.tcat-blue { color: var(--hue-blue); background: color-mix(in srgb, var(--hue-blue) 10%, transparent); }
.tcat-amber { color: var(--hue-amber); background: color-mix(in srgb, var(--hue-amber) 10%, transparent); }
.tcat-red { color: var(--hue-red); background: color-mix(in srgb, var(--hue-red) 10%, transparent); }
.tcat-slate { color: var(--hue-slate); background: color-mix(in srgb, var(--hue-slate) 10%, transparent); }
.tier { font-size: 11.5px; font-weight: 650; }
.tier.PRIMARY { color: var(--confirmed-fg); }
.tier.TRUSTED_SECONDARY { color: var(--corrob-fg); }
.tier.COMMUNITY { color: var(--rumor-fg); }
.tier.UNVERIFIED { color: var(--disputed-fg); }

/* ---------- detail & generic pages ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.page-title { font-size: 21px; margin: 18px 0 10px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head .page-title { margin: 0; }
.back-link { margin-top: 16px; }
.detail h1 { font-size: 24px; line-height: 1.4; margin: 10px 0 6px; letter-spacing: -.012em; }
.orig-title { font-size: 13px; color: var(--text); margin: 0 0 8px; }
.status-line { margin: 0 0 6px; font-size: 13.5px; color: var(--text-dim); }
.status-line .dot { opacity: .5; margin: 0 2px; }
.chip-row { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.detail-hero { max-width: 920px; margin: 14px 0 18px; }
.detail-hero img { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--border); }
.detail-hero figcaption { margin-top: 5px; font-size: 12px; color: var(--text-dim); }
.why-box {
  max-width: 74ch; margin: 12px 0 16px; padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 12px; background: var(--accent-soft);
}
.why-box h2 { margin: 0 0 6px; font-size: 14px; color: var(--accent); }
.why-box p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.uncertain-box {
  max-width: 74ch; margin: 12px 0 16px; padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--hue-amber) 45%, var(--border));
  border-radius: 12px; background: color-mix(in srgb, var(--hue-amber) 9%, var(--bg-card));
}
.uncertain-box h2 { margin: 0 0 6px; font-size: 14px; color: var(--hue-amber); }
.uncertain-box p { margin: 0; font-size: 14.5px; line-height: 1.65; }

/* content first (ADR-010) */
.article-body {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 26px; margin: 12px 0 18px;
  box-shadow: var(--shadow);
  font-size: 15.5px; line-height: 1.8; max-width: 74ch;
}
.article-body p { margin: 0 0 14px; white-space: pre-line; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h3 {
  font-size: 16px; margin: 20px 0 10px; letter-spacing: -.005em;
  padding-left: 10px; border-left: 3px solid var(--accent);
}
.capped-note { border-top: 1px dashed var(--border); padding-top: 12px; }
.body-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0 !important; }
.readmore {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  background: var(--accent); color: light-dark(#fff, #08201b) !important;
  font-size: 13.5px; font-weight: 650;
}
.readmore:hover { text-decoration: none; filter: brightness(1.08); }

/* de-emphasized provenance sections */
.subdued-wrap { margin-top: 8px; }
.panel.subdued { padding: 12px 16px; box-shadow: none; background: color-mix(in srgb, var(--bg-card) 60%, var(--bg)); }
.panel.subdued h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.panel.subdued .src-table { font-size: 12.5px; }
.panel.subdued .timeline { font-size: 13px; }
.record-line { margin: 10px 2px 0; font-size: 12px; }
.record-line code { font-size: 11px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 18px; font-size: 13.5px; margin: 14px 0; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin: 14px 0;
  box-shadow: var(--shadow);
}
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.excerpt { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text-dim); font-size: 14px; }
.provenance { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -5.5px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-card);
}
.timeline .t { font-size: 12px; color: var(--text-dim); }

.src-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.src-table th, .src-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.src-table .tier-head td {
  padding-top: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-dim); border-bottom-style: dashed;
}
.src-table th { color: var(--text-dim); font-weight: 500; font-size: 12.5px; }
.src-table tr:last-child td { border-bottom: none; }

.archive-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.archive-list li { display: flex; gap: 14px; align-items: baseline; }

.note { font-size: 13px; color: var(--text-dim); }
.section-gap { margin-top: 26px; }
.ok { color: var(--confirmed-fg); }
.err { color: var(--disputed-fg); }
.about-md h2 { font-size: 16.5px; margin-top: 24px; }
.about-md p, .about-md li { font-size: 14px; }
code { background: var(--bg-inset); border-radius: 4px; padding: 0 5px; font-size: .92em; }
.gicon { flex: none; }

.site-foot {
  border-top: 1px solid var(--border); margin-top: 34px; padding: 16px 0 32px;
  font-size: 12.5px; color: var(--text-dim);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }

}
@media (max-width: 620px) {
  .head-row { flex-wrap: wrap; gap: 8px 12px; }
  .site-nav { margin-left: 0; order: 3; width: 100%; justify-content: flex-start; gap: 12px; }
  .head-controls { margin-left: auto; }
  .featured-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .src-table .col-author { display: none; }
  .wrap { padding: 0 14px; }
  .head-row, .tabs-row { padding-left: 14px; padding-right: 14px; }
}
