:root {
  --bg: #fbf7f0;
  --bg2: #f1f7f5;
  --surface: rgba(255, 255, 255, 0.74);
  --surface2: rgba(255, 255, 255, 0.92);
  --text: #101828;
  --muted: #475467;
  --border: rgba(16, 24, 40, 0.12);
  --shadow: 0 14px 30px rgba(2, 6, 23, 0.08);
  --shadow2: 0 10px 24px rgba(2, 6, 23, 0.06);
  --accent: #6d28d9;
  --accent2: #f97316;
  --danger: #c63d2f;
  --radius: 14px;
  --radius2: 22px;
  --ring: 0 0 0 3px rgba(109, 40, 217, 0.22);
}

:root[data-theme="dark"] {
  --bg: #0b0b12;
  --bg2: #0f1324;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(17, 24, 39, 0.88);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: rgba(248, 250, 252, 0.14);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.46);
  --shadow2: 0 14px 32px rgba(0, 0, 0, 0.34);
  --accent: #c4b5fd;
  --accent2: #fdba74;
  --ring: 0 0 0 3px rgba(196, 181, 253, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(
      900px 560px at 12% -8%,
      color-mix(in oklab, var(--accent) 22%, transparent),
      transparent 60%
    ),
    radial-gradient(900px 560px at 92% 0%, color-mix(in oklab, var(--accent2) 18%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.45;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  transform: translateY(-160%);
  transition: transform 140ms ease;
  z-index: 50;
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 220px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
}

.brand-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
}

.header-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 140px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border));
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover {
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  border-color: color-mix(in oklab, var(--accent) 22%, var(--border));
}

button.btn:focus-visible,
a.btn:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.welcome {
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 2px 10px;
}
.welcome-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.welcome-copy {
  min-width: 0;
}
.welcome-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.welcome-sub {
  margin: 10px 0 0;
  font-size: 15px;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.7;
}
.mode-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.welcome-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.welcome-controls {
  min-width: 220px;
}

@media (max-width: 720px) {
  .welcome-controls {
    align-items: flex-start;
    width: 100%;
  }
  .welcome-actions {
    justify-content: flex-start;
  }
}

.welcome-more {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: color-mix(in oklab, var(--surface2) 78%, transparent);
  overflow: hidden;
}
.welcome-more > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.welcome-more > summary::-webkit-details-marker {
  display: none;
}
.welcome-more > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}
.welcome-more[open] > summary::after {
  transform: translateY(-1px) rotate(180deg);
}
.welcome-more-body {
  padding: 0 14px 14px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: none;
}
.seg-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.seg-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.seg-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.trustbar {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: none;
  font-size: 13px;
  color: var(--muted);
}
.trust-pill strong {
  color: var(--text);
}

.value {
  padding: 10px 0 6px;
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: var(--shadow);
  padding: 16px 16px 10px;
}
.value-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.value-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.value-card li {
  margin: 8px 0;
  line-height: 1.55;
}
.value-card strong {
  color: var(--text);
}

.how {
  padding: 10px 0 6px;
}
.how-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.how-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 980px) {
  .how-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.how-card {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface);
  box-shadow: var(--shadow2);
  padding: 14px 14px 12px;
}
.how-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.how-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.newsroom {
  padding: 12px 0 10px;
}
.newsroom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.newsroom-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: var(--shadow);
}

@media (min-width: 820px) {
  .controls {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
  }
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
.selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.selects select {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.results-meta {
  text-align: right;
}
@media (max-width: 819px) {
  .results-meta {
    text-align: left;
  }
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 6px 0 22px;
}
@media (min-width: 860px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1180px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
}
.card.featured {
  background: color-mix(in oklab, var(--surface2) 85%, transparent);
  border-color: color-mix(in oklab, var(--accent) 18%, var(--border));
}
@media (min-width: 860px) {
  .card.featured {
    grid-column: 1 / -1;
    padding: 18px 18px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.meta.meta-human {
  gap: 8px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
  color: var(--text);
}
.badge a {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
}
.pill.new {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
}
.pill.kind {
  background: color-mix(in oklab, var(--accent2) 18%, transparent);
  border-color: color-mix(in oklab, var(--accent2) 30%, var(--border));
}
.pill.coverage {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-color: color-mix(in oklab, var(--accent) 26%, var(--border));
}

.date {
  color: var(--muted);
  font-size: 12px;
}

.title {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.title a {
  color: var(--text);
}
.title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.snippet {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--accent2) 18%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.mini-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini-link {
  font-weight: 800;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.mini-link:hover {
  background: color-mix(in oklab, var(--surface2) 62%, transparent);
  text-decoration: none;
}
.mini-link.primary {
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--border));
  color: #ffffff;
}
.mini-link.primary:hover {
  background: color-mix(in oklab, var(--accent) 92%, #000000);
}
.mini-link.ghost {
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
}

.footer {
  padding: 18px 0 30px;
}
.muted {
  color: var(--muted);
}

:root[data-lens="human"] .only-builder {
  display: none !important;
}

:root[data-lens="builder"] .only-human {
  display: none !important;
}

.pulse {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  padding: 10px 12px;
}
.pulse-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pulse-row + .pulse-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in oklab, var(--border) 70%, transparent);
}
.pulse-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
}
.pulse-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.chip:hover {
  text-decoration: none;
  background: var(--surface2);
}
.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 26%, var(--border));
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
}

.stream {
  padding: 6px 0 26px;
}
.stream-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}
.stream-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.stream-head p {
  margin: 0;
}

.top-cards {
  margin: 12px 0 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 980px) {
  .top-cards {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
}

.top-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid color-mix(in oklab, var(--border) 75%, transparent);
  background: color-mix(in oklab, var(--surface2) 86%, transparent);
  box-shadow: var(--shadow2);
  padding: 16px 16px 14px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.top-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
      900px 260px at 10% 0%,
      color-mix(in oklab, var(--accent) 18%, transparent),
      transparent 55%
    ),
    radial-gradient(900px 260px at 90% 0%, color-mix(in oklab, var(--accent2) 14%, transparent), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.top-card > * {
  position: relative;
}

.top-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 20%, var(--border));
  background: color-mix(in oklab, var(--surface2) 92%, transparent);
}

.top-card.primary {
  padding: 18px 18px 16px;
}

@media (min-width: 980px) {
  .top-card.primary {
    grid-row: 1 / span 2;
  }
}

.top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.top-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
}

.top-age {
  font-size: 12px;
  color: var(--muted);
}

.top-title {
  margin: 10px 0 0;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.top-card:not(.primary) .top-title {
  font-size: clamp(18px, 2vw, 22px);
}

.top-why {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 72ch;
}

.top-sub {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.more-news {
  margin-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding-top: 8px;
}

.more-news > summary {
  cursor: pointer;
  padding: 12px 2px;
  font-weight: 900;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.more-news > summary::-webkit-details-marker {
  display: none;
}

.more-news > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}

.more-news[open] > summary::after {
  transform: translateY(-1px) rotate(180deg);
}

.more-news-body {
  padding: 6px 2px 0;
}

.filters {
  margin: 12px 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  overflow: hidden;
}
.filters > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filters > summary::-webkit-details-marker {
  display: none;
}
.filters > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}
.filters[open] > summary::after {
  transform: translateY(-1px) rotate(180deg);
}
.filters-body {
  padding: 0 14px 14px;
}
.filters .controls {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feed {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.feed-li {
  margin: 0;
  padding: 0;
}
.feed-li.is-hidden {
  display: none;
}

.feed-item {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  overflow: hidden;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.feed-item:hover {
  transform: translateY(-1px);
  background: color-mix(in oklab, var(--surface2) 85%, var(--accent) 1%);
  border-color: color-mix(in oklab, var(--accent) 18%, var(--border));
}
.feed-item.featured {
  background: color-mix(in oklab, var(--surface2) 90%, var(--accent2) 2%);
  border-color: color-mix(in oklab, var(--accent2) 30%, var(--border));
}
@media (prefers-reduced-motion: reduce) {
  .feed-item:hover {
    transform: none;
  }
}

.feed-item > summary {
  cursor: pointer;
  padding: 14px 14px;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.feed-item > summary::-webkit-details-marker {
  display: none;
}
.feed-item > summary::after {
  content: "▸";
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transform: translateY(2px);
  transition: transform 140ms ease;
}
.feed-item[open] > summary::after {
  transform: translateY(2px) rotate(90deg);
}
.feed-summary-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-headline {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-item[open] > summary {
  background: color-mix(in oklab, var(--surface2) 74%, transparent);
}
.feed-body {
  border-top: 1px solid var(--border);
  padding: 0 14px 14px;
  background: color-mix(in oklab, var(--surface2) 70%, transparent);
}
.feed-tldr {
  margin: 12px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}
.feed-builder {
  margin: -2px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.coverage {
  margin: -2px 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.coverage-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  font-size: 12px;
}
.coverage-link:hover {
  background: var(--surface2);
  text-decoration: none;
}

.feed-more-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 6px;
}

.papers {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  overflow: hidden;
}
.papers > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.papers > summary::-webkit-details-marker {
  display: none;
}
.papers > summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}
.papers[open] > summary::after {
  transform: translateY(-1px) rotate(180deg);
}
.papers > ol.feed {
  margin: 0;
  padding: 12px 14px 4px;
}

.page-head {
  padding: 20px 0 6px;
}
.page-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.prose {
  max-width: 860px;
}
.prose h2 {
  margin-top: 22px;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin-top: 18px;
}
.prose p {
  line-height: 1.75;
}
.prose li {
  line-height: 1.65;
  margin: 6px 0;
}
.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  padding: 14px 14px 10px;
  margin: 14px 0;
}
.callout h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.story {
  padding-bottom: 36px;
}
.backlink {
  display: inline-flex;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}
.story-head {
  padding: 10px 0 8px;
}
.story-title {
  margin: 10px 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.story-dek {
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
  line-height: 1.7;
}
.story-topbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.story-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.story-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 980px) {
  .story-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.story-main {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  padding: 14px 14px 18px;
}

.reading-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 2px 0 14px;
}
.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.tab.active,
.tab:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

.reading-level {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
:root[data-js="true"] .reading-level {
  display: none;
}
:root[data-js="true"] .reading-level.is-active {
  display: block;
}

.story-aside .aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface2);
  box-shadow: none;
  padding: 14px 14px 14px;
}
.story-aside h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.receipts {
  margin: 10px 0 0;
  padding-left: 18px;
}
.receipts li {
  margin: 8px 0;
  line-height: 1.55;
}
.aside-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  box-shadow: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
