:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #68716d;
  --paper: #ffffff;
  --canvas: #f3f5f4;
  --line: #dce2df;
  --accent: #137c68;
  --accent-soft: #dcefe9;
  --serif: var(--display-font, "Newsreader"), Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, var(--canvas), var(--paper) 430px); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; }

.topbar { min-height: 76px; max-width: 1280px; margin: 0 auto; padding: 0 42px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--line); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 700; }
.brand { white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: block; flex: 0 0 34px; border-radius: 4px; object-fit: cover; }
.top-nav { display: flex; align-self: stretch; gap: 28px; }
.top-nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.top-nav a:hover, .top-nav a.active { color: var(--ink); }
.top-nav a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; }
.search-field { margin-left: auto; width: min(250px, 30vw); height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.72); }
.search-symbol { color: var(--accent); font-size: 17px; font-weight: 700; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.page-shell { max-width: 1196px; margin: 0 auto; padding: 0 42px 80px; }
.edition-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.edition-label { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 350px); align-items: end; gap: 40px; padding: 54px 0 45px; border-bottom: 1px solid var(--ink); }
.eyebrow, .about-index { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 0; font-family: var(--serif); font-size: 62px; font-weight: 500; line-height: .98; }
.intro-note { margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.coverage { padding-top: 34px; }
.coverage-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.coverage-heading h2 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.story-count { color: var(--muted); font-size: 11px; }
.subject-index { padding: 32px 0 34px; border-bottom: 1px solid var(--line); }
.subject-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.subject-heading .eyebrow { margin-bottom: 4px; }
.subject-heading h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.subject-count { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.subcategory-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.subcategory-tile { position: relative; aspect-ratio: 2.15 / 1; min-width: 0; overflow: hidden; display: flex; align-items: end; padding: 10px 12px; border: 0; border-radius: 3px; color: white; background-color: var(--accent-soft); background-position: center; background-size: cover; text-align: left; cursor: pointer; }
.subcategory-tile::before { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(12, 20, 17, .72)); content: ""; transition: opacity .18s ease; }
.subcategory-tile:hover::before, .subcategory-tile[aria-pressed="true"]::before { opacity: .76; }
.photo-tile::before { display: none; }
.photo-tile:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.photo-tile[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.photo-name { display: none; }
.subcategory-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.subcategory-name { position: relative; z-index: 1; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 9px; }
.filter-button { min-height: 31px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 3px; color: #48514d; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.filter-button:hover { border-color: var(--accent); }
.filter-button[aria-pressed="true"] { border-color: var(--ink); color: white; background: var(--ink); }
.story-feed { border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 25px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); animation: rise-in .35s ease both; }
.story-meta { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; color: var(--muted); font-size: 11px; }
.story-category { color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.story-copy a { text-decoration: none; }
.story-copy a:hover h3 { color: var(--accent); }
.story-copy h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.14; transition: color .15s ease; }
.story-copy p { margin: 0; color: #505a55; font-size: 13px; }
.story-source { justify-self: end; color: var(--muted); font-size: 10px; text-align: right; }
.empty-state { padding: 54px 20px 58px; text-align: center; background: linear-gradient(135deg, var(--accent-soft), rgba(255,255,255,.25)); }
.empty-state h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.article-view { max-width: 790px; margin: 0 auto; padding: 44px 0 60px; }
.back-link { display: inline-block; margin-bottom: 35px; color: var(--accent); font-size: 12px; text-decoration: none; }
.article-view h1 { margin: 13px 0 17px; font-size: 54px; line-height: 1.04; }
.article-dek { color: #4b5550; font-size: 18px; line-height: 1.5; }
.article-byline { margin: 20px 0 29px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-context { margin: -20px 0 16px; color: var(--muted); font-size: 11px; }
.editorial-note { margin-top: 24px; padding: 12px 14px; border-left: 3px solid var(--accent); color: #4b5550; background: var(--accent-soft); font-size: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 24px; }
.share-link { min-height: 32px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: white; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
.share-link:hover { border-color: var(--accent); color: var(--accent); }
.reader-poll { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 28px; padding: 16px; border-left: 3px solid var(--accent); background: var(--canvas); }
.reader-poll h2 { flex-basis: 100%; margin: 0 0 4px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.poll-option { padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: white; font: inherit; font-size: 12px; cursor: pointer; }
.poll-option:disabled { color: var(--muted); cursor: default; }
.poll-status, .poll-totals { flex-basis: 100%; margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.article-view-count { margin: -20px 0 17px; color: var(--muted); font-size: 11px; }
.article-image { width: 100%; max-height: 470px; margin: 0 0 27px; object-fit: cover; }
.article-body { font-family: var(--serif); font-size: 20px; line-height: 1.65; }
.article-faq { margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); }
.article-faq h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.article-faq p { color: #4b5550; font-size: 14px; }
.article-source { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-source a { color: var(--accent); }
.about-strip { display: grid; grid-template-columns: 150px 1fr; gap: 25px; margin-top: 50px; padding: 19px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.about-index { margin: 3px 0 0; }
.about-strip p { max-width: 650px; margin: 0; font-family: var(--serif); font-size: 19px; }
.subscribe-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
.subscribe-strip .eyebrow { margin-bottom: 4px; }
.subscribe-strip h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.subscribe-link { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: 3px; color: white; background: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.subscribe-link:hover { filter: brightness(.9); }
.is-unavailable { color: var(--muted) !important; background: #e8ecea !important; cursor: default; text-decoration: none; }
.site-footer { max-width: 1196px; margin: 0 auto; padding: 23px 42px 30px; display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--ink); font-size: 12px; }
.footer-logo { height: 40px; width: auto; display: block; }
.page-logo { height: 64px; width: auto; display: block; margin: 4px 0 18px; }
.site-footer [data-footer-note] { margin-right: auto; }
.site-footer a:last-child { color: var(--accent); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@keyframes rise-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

body[data-design="research"] .intro { background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(19,124,104,.045) 80px); }
body[data-design="civic"] .intro { padding-left: 22px; border-left: 4px solid var(--accent); }
body[data-design="culture"] .story-copy h3 { font-size: 28px; }
body[data-design="ledger"] .story-row { grid-template-columns: 130px minmax(0, 1fr) 170px; padding: 19px 0; }
body[data-design="arena"] h1, body[data-design="arena"] .story-copy h3 { font-family: "Barlow Condensed", var(--sans); font-weight: 700; }
body[data-design="world"] .subject-index { border-top: 3px solid var(--accent); }
body[data-design="technology"] .brand-mark { border-radius: 50%; }

@media (max-width: 760px) {
  .topbar { min-height: 66px; padding: 0 20px; gap: 18px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .top-nav { display: none; }
  .search-field { width: min(180px, 42vw); }
  .page-shell { padding: 0 20px 60px; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding: 39px 0 31px; }
  h1 { font-size: 48px; }
  .subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .subject-index { padding: 26px 0; }
  .intro-note { max-width: 440px; }
  .story-row { grid-template-columns: 1fr; gap: 8px; padding: 19px 0; }
  .story-meta { flex-direction: row; align-items: center; gap: 10px; }
  .story-source { justify-self: start; text-align: left; }
  .story-copy h3 { font-size: 23px; }
  .article-view h1 { font-size: 40px; }
  .about-strip { grid-template-columns: 1fr; gap: 8px; margin-top: 38px; }
  .subscribe-strip { align-items: flex-start; flex-direction: column; }
  .site-footer { padding: 20px; flex-wrap: wrap; gap: 10px 18px; }
  .site-footer [data-footer-note] { flex-basis: 100%; order: 1; }
}

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