:root {
  /* Approved palette -- exactly these four pastels, per their assigned role. */
  --accent: #9FA1FF;    /* main brand/header accent */
  --surface: #B8BAFF;   /* supporting surfaces */
  --highlight: #AEE2FF; /* secondary panels/highlights */
  --mint: #D9F9DF;      /* soft accents / status areas */

  /* Neutrals: a near-white page base and one dark neutral for text -- not
     olive, not navy, just a desaturated dark tied to the palette's cool
     undertone (same value used for the story thumbnails' text/icon ink). */
  --bg: #FFFFFF;
  --text: #2B2A33;
  --muted: rgba(43, 42, 51, 0.62);
  --border: rgba(159, 161, 255, 0.32);
  --shadow: 0 1px 2px rgba(43, 42, 51, 0.05), 0 8px 20px rgba(43, 42, 51, 0.08);

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  background: var(--accent);
  color: var(--text);
  padding: 1.1rem 1.5rem 1rem;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 0 rgba(217, 249, 223, 0.9);
  animation: live-pulse 2.2s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 249, 223, 0.9); }
  70%  { box-shadow: 0 0 0 7px rgba(217, 249, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 249, 223, 0); }
}

.tagline {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 1.6rem; margin-bottom: 1.25rem; font-family: var(--font-display); color: var(--text); }

h2 {
  font-size: 0.82rem;
  margin-top: 2.25rem;
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
}

.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.story-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.7rem 0.7rem 0.9rem;
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Alternate the two "surface"/"highlight" pastels across the list so a long
   list of cards reads as lively rather than one flat block of color. */
.story-list li:nth-child(even) .story-card { background: var(--highlight); }

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--text);
  opacity: 0.35;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.18s ease;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(43, 42, 51, 0.08), 0 10px 22px rgba(43, 42, 51, 0.12);
}

.story-card:hover::before,
.story-card:focus-within::before {
  transform: scaleY(1);
}

.story-thumb {
  flex: 0 0 32%;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  align-self: center;
  border: 1px solid var(--border);
}

.story-thumb svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 200;
}

.story-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.4rem 0.3rem 0.4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card-body a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.story-card-body a:hover { text-decoration: underline; }

.story-hero {
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.story-hero svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 200;
}

@media (max-width: 520px) {
  .story-thumb { flex-basis: 34%; max-width: 140px; }
  .story-card-body a { font-size: 0.98rem; }
  .meta { flex-wrap: wrap; gap: 0.4rem 0.6rem; }
  .hero h1 { font-size: 1.6rem; }
}

.meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
}

/* Public-facing category label only -- internal decision/score values are
   never rendered on the public site, so this is the only badge variant. */
.badge-category { background: rgba(255, 255, 255, 0.6); color: var(--text); }

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--text); text-decoration: underline; }

.event-meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.82rem; }

.source-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.source-list li {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.source-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.source-list a:hover { text-decoration: underline; }

.source-name { color: var(--muted); font-size: 0.85rem; }

.empty {
  color: var(--muted);
  background: var(--highlight);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p { margin: 0.25rem 0; }
.site-footer .radar-note { color: var(--muted); font-size: 0.8rem; }

.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Monetization components -- all inert/hidden by default (see
   config/monetization.yaml); these rules only ever matter once a feature is
   deliberately configured. Styled as clearly distinct from editorial
   content: bordered panels with an explicit "Advertisement"/"Sponsored"
   label, never blended into the story list or article body. */

.ad-slot {
  margin: 1.5rem 0;
  padding: 0.6rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  background: var(--highlight);
}

.ad-slot-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.sponsored-banner {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: var(--highlight);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.sponsored-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.sponsored-banner a { color: var(--text); font-weight: 700; }
.sponsored-disclosure { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; }

.affiliate-section {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.affiliate-disclosure { color: var(--muted); font-size: 0.85rem; }
.affiliate-links { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.affiliate-links a { color: var(--text); font-weight: 600; }
.affiliate-links a:hover { text-decoration: underline; }

.newsletter-signup {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.newsletter-form input, .newsletter-form button {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
.newsletter-form button {
  background: var(--mint);
  color: var(--text);
  font-weight: 700;
  border-color: var(--mint);
}
.newsletter-form button:not(:disabled):hover { filter: brightness(0.94); }
.newsletter-sponsor { margin-top: 0.75rem; color: var(--muted); font-size: 0.85rem; }
.newsletter-sponsor a { color: var(--text); }

.info-page .disclaimer { color: var(--muted); font-size: 0.85rem; }

.coming-soon-badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--highlight);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

/* Editorial/content layer -- development timeline, open questions, and the
   reader-facing "why we're tracking this" note. All present data the
   pipeline already computed and already shows elsewhere on the page
   (source count, update count, conflict presence); no internal score or
   decision value is ever rendered here. */

.dev-timeline, .open-questions, .why-tracking {
  margin-top: 1.9rem;
}

.why-tracking p { color: var(--text); }

.timeline-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding-left: 1.1rem;
  border-left: 2px solid var(--border);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-time {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.timeline-text { color: var(--text); font-size: 0.94rem; }

.conflict-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.conflict-list li {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
}

.conflict-list strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .story-card, .story-card::before { transition: none; }
}
