:root {
  color-scheme: dark;
  --canvas: #10191b;
  --chrome: #0b1315;
  --surface: #152225;
  --raised: #19282b;
  --ink: #eef4ee;
  --muted: #a9beba;
  --rule: #344a4d;
  --accent: #d9ee52;
  --on-accent: #10191b;
  --link: #b8dfd3;
  --hover-surface: #203638;
  --active-surface: #2a413a;
  --font-site: "Segoe UI", system-ui, sans-serif;
  --type-lead: clamp(1.95rem, 4vw, 3.5rem);
  --type-section: clamp(1.6rem, 2.6vw, 2.125rem);
  --type-story: clamp(1.125rem, 1.6vw, 1.4rem);
  --type-article: clamp(1.7rem, 3.2vw, 2.6rem);
  --type-body: 1rem;
  --type-ui: .875rem;
  --type-meta: .8125rem;
  font-family: var(--font-site);
  scroll-padding-top: calc(var(--site-header-height, 0px) + .75rem);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: var(--type-body); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 11; inset: 8px auto auto 8px; background: var(--raised); padding: .65rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--chrome);
  border-bottom: 2px solid var(--accent);
}
.site-header :focus-visible { outline-color: var(--accent); }
.masthead {
  display: flex;
  align-items: baseline;
  gap: clamp(.85rem, 2.2vw, 1.8rem);
  min-height: 72px;
  padding-block: .62rem .6rem;
}
.brand {
  display: inline-block;
  font-size: clamp(2.1rem, 4.35vw, 3.45rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.105em;
  white-space: nowrap;
}
.brand-accent { color: var(--accent); }
.brand-accent span { margin-left: .025em; }
.masthead-caption { margin: 0; color: var(--muted); font-size: var(--type-ui); }
.search {
  display: flex;
  align-items: center;
  align-self: center;
  margin-left: auto;
  border-bottom: 1px solid #526b69;
}
.search input {
  width: clamp(7rem, 16vw, 13rem);
  min-width: 0;
  padding: .5rem .25rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search button {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 2.35rem;
  border: 0;
  background: none;
  color: var(--accent);
}
.search-icon { width: .86rem; height: .86rem; position: relative; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: .42rem; height: 2px; background: currentColor; bottom: -.18rem; right: -.34rem; transform: rotate(45deg); }
.category-nav {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--rule);
}
.category-nav a {
  flex: none;
  padding: .55rem .35rem .6rem;
  color: var(--ink);
  font-size: var(--type-ui);
  font-weight: 650;
}
.category-nav a:first-child { padding-inline: .7rem; }
.category-nav a:hover { color: var(--accent); }
.category-nav a[aria-current] { background: var(--accent); color: var(--on-accent); }
.category-nav a:focus-visible { outline-offset: -3px; }
.category-nav .contact-link { margin-inline-start: auto; }

main { padding-top: 1.1rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem 1.2rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.section-heading h1, .section-heading h2 {
  margin: 0;
  font: 700 var(--type-section)/1.12 var(--font-site);
  letter-spacing: -.058em;
}
.edition-heading { padding-bottom: .65rem; border-bottom: 1px solid var(--rule); }
.preview-label, .result-count { color: var(--muted); font: 700 var(--type-meta)/1.45 var(--font-site); }

.front-page {
  display: grid;
  grid-template-columns: minmax(225px, .85fr) minmax(0, 3fr);
  grid-template-areas: "briefing lead" "briefing secondary";
  grid-template-rows: max-content minmax(0, 1fr);
  column-gap: clamp(.8rem, 1.8vw, 1.5rem);
  row-gap: .9rem;
}
.lead { grid-area: lead; min-width: 0; }
.lead .story-link {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(320px, 30vw, 420px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--surface);
}
.lead-image, .lead .story-link::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.lead-image { object-fit: cover; object-position: 59% 53%; }
.lead .story-link::after {
  content: "";
  background: linear-gradient(0deg, #101719 2%, #101719e6 18%, #10171966 54%, transparent 78%);
}
.lead-body { padding: clamp(1rem, 2.5vw, 2rem); max-width: 760px; }
.category-label { color: var(--link); font: 750 var(--type-meta)/1.3 var(--font-site); letter-spacing: .035em; text-transform: uppercase; }
.lead .category-label { display: inline-block; padding: .35rem .55rem; color: var(--on-accent); background: var(--accent); }
.lead h2 {
  max-width: 16ch;
  margin: .62rem 0 .55rem;
  font: 750 var(--type-lead)/1.05 var(--font-site);
  letter-spacing: -.058em;
  text-wrap: balance;
}
.lead p { max-width: 55ch; margin: 0; color: #edf1e9; }
.lead .story-link:hover h2 { color: #e9f68f; }

.briefing {
  grid-area: briefing;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised);
}
.briefing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .75rem;
  border-bottom: 2px solid var(--accent);
  background: var(--chrome);
}
.briefing-heading h2 { margin: 0; font-size: var(--type-body); letter-spacing: -.035em; }
.briefing-heading time { color: var(--muted); font: 700 var(--type-meta)/1.4 var(--font-site); white-space: nowrap; }
.briefing .lead-tab {
  width: 100%;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: .45rem;
  align-items: baseline;
  padding: .55rem .7rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.lead-tab-time { color: var(--link); font-size: var(--type-meta); font-weight: 700; font-variant-numeric: tabular-nums; }
.lead-tab .radar-story-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.briefing .lead-tab[aria-selected="true"],
.briefing .lead-tab:focus-visible { background: var(--hover-surface); box-shadow: inset 3px 0 var(--accent); }
.lead-tab[aria-selected="true"] .radar-story-title { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .briefing .lead-tab:hover { background: var(--hover-surface); box-shadow: inset 3px 0 var(--accent); }
}
.briefing .lead-tab:active { background: var(--active-surface); }
.briefing a:hover, .side-story a:hover h2, .news-card a:hover h3 { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
.feed-link { display: inline-block; margin: .55rem .75rem .7rem; font-size: var(--type-ui); font-weight: 750; border-bottom: 1px solid; }

.secondary-stories {
  grid-area: secondary;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .9rem;
}
.side-story { border-block: 1px solid var(--rule); padding-block: .62rem; }
.side-story a {
  display: grid;
  grid-template-columns: minmax(90px, 35%) 1fr;
  align-items: center;
  gap: .8rem;
}
.side-story a:has(img[hidden]) { grid-template-columns: 1fr; }
.side-story img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; border-radius: 5px; background: var(--surface); }
.side-story h2 { margin: .25rem 0 0; font: 700 var(--type-story)/1.25 var(--font-site); letter-spacing: -.037em; }

.news-section {
  --news-gap: clamp(.75rem, 1.4vw, 1rem);
  --news-frame: var(--rule);
  --news-radius: 8px;
  --news-shadow: 0 2px 8px #0003;
  margin-top: clamp(1.4rem, 3vw, 2.6rem);
  padding-block: clamp(1.15rem, 2.4vw, 2rem) clamp(1.75rem, 3.4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.news-section .section-heading {
  align-items: baseline;
  margin-bottom: clamp(.8rem, 1.5vw, 1.15rem);
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--rule);
}
.news-section .section-heading h2 {
  font: 850 var(--type-section)/1.12 var(--font-site);
  letter-spacing: -.075em;
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "first" "radar" "more";
  align-items: start;
  gap: var(--news-gap);
}
.news-first { grid-area: first; min-width: 0; }
.news-more { grid-area: more; }
.news-radar-stack {
  grid-area: radar;
  display: grid;
  gap: .9rem;
  min-width: 0;
  color: var(--ink);
}
.news-radar, .radar-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--news-frame);
  border-radius: var(--news-radius);
  background: var(--raised);
  box-shadow: var(--news-shadow);
}
.radar-head {
  padding: .75rem .75rem .65rem;
  border-bottom: 2px solid var(--accent);
  background: var(--chrome);
}
.radar-head h3, .radar-meta h3 { margin: 0; font: 700 var(--type-story)/1.25 var(--font-site); letter-spacing: -.04em; }
.radar-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin: .58rem .65rem 0;
  padding: .22rem;
  border-radius: 5px;
  background: var(--canvas);
}
.radar-modes button {
  min-height: 44px;
  min-width: 0;
  padding: .3rem .35rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: var(--type-ui);
  font-weight: 700;
  line-height: 1.2;
}
.radar-modes button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.radar-period { margin: 0; padding: .55rem .75rem .4rem; color: var(--muted); font-size: var(--type-meta); font-weight: 700; }
.radar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .12rem .5rem;
  padding: .75rem .75rem .65rem;
  border-bottom: 2px solid var(--accent);
  background: var(--chrome);
  color: var(--muted);
  font-size: var(--type-meta);
}
.radar-meta h3 { color: var(--ink); }
.radar-meta span { white-space: nowrap; }
.radar-stories { margin: 0; padding: 0; list-style: none; }
.radar-stories li + li { border-top: 1px solid var(--news-frame); }
.news-radar .radar-stories { border-top: 1px solid var(--news-frame); }
.radar-story-link {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  min-height: 44px;
  padding: .5rem .75rem;
  box-shadow: inset 3px 0 transparent;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.radar-story-copy { display: grid; gap: .2rem; min-width: 0; }
.radar-rank {
  color: var(--link);
  padding-top: .13rem;
  font: 750 var(--type-meta)/1.3 var(--font-site);
  font-variant-numeric: tabular-nums;
}
.radar-story-title { overflow-wrap: anywhere; font-size: var(--type-body); font-weight: 740; line-height: 1.3; }
.radar-context { margin: .05rem 0 0; color: var(--muted); font-size: var(--type-ui); line-height: 1.43; }
.radar-category { color: var(--link); font-size: var(--type-meta); font-weight: 700; }
.radar-story-link:focus-visible {
  outline-offset: -2px;
  background: var(--hover-surface);
  box-shadow: inset 3px 0 var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .radar-modes button[aria-pressed="false"]:hover { background: var(--hover-surface); }
  .radar-story-link:hover {
    background: var(--hover-surface);
    box-shadow: inset 3px 0 var(--accent);
  }
  .radar-story-link:hover .radar-story-title { color: var(--link); }
}
.radar-story-link:active {
  background: var(--active-surface);
  box-shadow: inset 3px 0 var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .radar-story-link { transition: none; }
}

@media (min-width: 1060px) {
  .news-layout {
    grid-template-columns: minmax(0, 1fr) clamp(255px, 23vw, 305px);
    grid-template-areas: "first radar" "more radar";
    grid-template-rows: auto 1fr;
  }
}

@media (min-width: 1060px) and (min-height: 650px) {
  .news-radar-stack {
    position: sticky;
    top: calc(var(--site-header-height, 0px) + 1rem);
  }
}
.news-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--news-gap);
}
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--news-frame);
  border-radius: var(--news-radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--news-shadow);
}
.news-card > .story-link { display: flex; flex: 1; flex-direction: column; }
.news-card > .story-link:focus-visible { outline-offset: -4px; }
.news-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  object-fit: cover;
  background: var(--raised);
}
.news-pairs > .news-card:only-child { grid-column: 1 / -1; }
.news-pairs > .news-card:only-child .news-card-image { max-height: 290px; }
.news-card-copy { flex: 1; padding: clamp(.8rem, 1.5vw, 1.2rem); }
.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  margin: .5rem 0 .62rem;
  color: var(--muted);
  font-size: var(--type-ui);
}
.news-card-author { color: var(--link); font-weight: 720; }
.generated-image-label { color: var(--link); font-size: var(--type-meta); }
.lead-body .generated-image-label { display: inline-block; margin-inline-start: .35rem; }
.news-card-meta time { font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.news-card h3 {
  margin: 0;
  font: 730 var(--type-story)/1.25 var(--font-site);
  letter-spacing: -.03em;
  text-wrap: pretty;
}
.news-card p { max-width: 61ch; margin: 0; color: var(--muted); }
.news-card-footer {
  padding: .62rem clamp(.8rem, 1.5vw, 1.2rem) .72rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--type-ui);
}
.news-card-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .7rem; margin-bottom: .52rem; }
.news-card-details { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .65rem; }
.news-card-category { color: var(--link); font-weight: 700; }
.news-view-count { display: inline-flex; align-items: center; gap: .4rem; }
.news-eye-icon { position: relative; width: 1rem; height: .65rem; border: 1.4px solid currentColor; border-radius: 75% / 90%; }
.news-eye-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: .28rem; height: .28rem; border-radius: 50%; background: currentColor; }
.news-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.news-card-actions button, .load-next-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
  padding: .3rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--link);
  background: var(--raised);
  font-weight: 650;
}
.news-card-actions button:disabled { opacity: 1; cursor: default; }
.news-card-actions button[aria-pressed="true"] { color: var(--accent); }
.news-card-actions [data-share]::before { content: ""; flex: 0 0 1rem; height: 1rem; background: currentColor; mask: url('/share.svg') center / contain no-repeat; }
.news-card-actions button:not(:disabled):hover { border-color: var(--accent); }
.load-next-link:not([aria-disabled="true"]):hover { border-color: var(--accent); }
.load-next-link[aria-disabled="true"] { cursor: wait; }
.news-card-actions button[hidden], .load-next-link[hidden], [data-live] [hidden] { display: none; }
.load-more { justify-content: center; margin-top: 1.2rem; }
.vote-status { align-self: center; color: var(--muted); font-size: var(--type-meta); }
.vote-challenge { flex-basis: 100%; max-width: 100%; }
[data-live] .front-page:not([data-ready]), [data-live] .preview-label { display: none; }
.radar-empty { padding: .9rem 1rem; color: var(--muted); }
.article-page { padding-block: clamp(1.4rem, 4vw, 3.5rem); }
.article-page .article-content { padding: 0; }
.article-page h1 { margin: .55rem 0; font: 750 var(--type-article)/1.12 var(--font-site); letter-spacing: -.04em; }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.article-tags li { padding: .3rem .55rem; border: 1px solid currentColor; color: var(--muted); font-size: var(--type-meta); }
.article-sources { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-sources ul { display: grid; gap: .8rem; padding: 0; list-style: none; }
.article-sources li { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.article-sources a, .editor-page .editor-draft a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.article-sources li span { color: var(--muted); font-size: var(--type-meta); }
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4.75rem);
  max-width: 1110px;
  padding-block: clamp(2rem, 6vw, 4.75rem);
}
.contact-intro { padding-top: .35rem; }
.contact-intro h1 { margin: 0 0 .85rem; font-size: clamp(2.2rem, 4.4vw, 3.35rem); line-height: 1.08; letter-spacing: -.047em; }
.contact-intro h1 span { color: var(--accent); }
.contact-intro > p { max-width: 36ch; margin: 0; color: var(--muted); }
.contact-visual {
  width: 100%; height: auto; aspect-ratio: 2.75; object-fit: cover; margin-top: 1.25rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--chrome);
}
.contact-topics { margin-top: 1.15rem; border-block: 1px solid var(--rule); }
.contact-topics button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .12rem .8rem;
  width: 100%;
  padding: .78rem .68rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: start;
}
.contact-topics button + button { border-top: 1px solid var(--rule); }
.contact-topics button:hover, .contact-topics button[aria-pressed="true"] { background: var(--hover-surface); }
.contact-topics button[aria-pressed="true"] { box-shadow: inset 2px 0 var(--accent); }
.contact-topics button:focus-visible { outline-offset: -3px; }
.contact-topics button span { grid-column: 1; color: var(--muted); font-size: var(--type-ui); }
.contact-topics button::after { content: "→"; grid-area: 1 / 2 / 3 / 3; align-self: center; color: var(--accent); }
.contact-form {
  min-width: 0;
  padding: clamp(1.15rem, 3.3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--raised), var(--surface));
  box-shadow: 0 16px 35px #050a0b39;
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-wide { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: .36rem; min-width: 0; color: var(--ink); font-size: var(--type-ui); font-weight: 650; }
.contact-form input, .contact-form textarea {
  width: 100%; min-width: 0; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--canvas); color: var(--ink); font: 400 var(--type-body)/1.4 var(--font-site);
}
.contact-form input::placeholder { color: var(--muted); opacity: .72; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.15rem; margin-top: 1.25rem; }
.contact-actions > span { color: var(--muted); font-size: var(--type-meta); }
.contact-send {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.75rem; padding: .55rem .95rem;
  border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: var(--type-ui); font-weight: 750;
}
.contact-send::after { content: "→"; }
.contact-send:not(:disabled):hover { background: var(--ink); border-color: var(--ink); }
.contact-send:disabled { opacity: .65; cursor: wait; }
#contact-status { margin: .8rem 0 0; font-size: var(--type-ui); color: var(--link); }
#contact-status:empty { margin: 0; }
#contact-status[data-state="error"] { color: #ffbab2; }
@media (max-width: 800px) {
  .contact-page { grid-template-columns: minmax(0, 1fr); max-width: 610px; }
}
@media (max-width: 490px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
}
.editor-page {
  padding-block: clamp(1rem, 3vw, 2rem);
  font-size: var(--type-ui);
  overflow-wrap: anywhere;
}
.editor-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.editor-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.editor-sidebar, .editor-panel, .editor-draft {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}
.editor-sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 0px) + 1rem);
  max-height: calc(100dvh - var(--site-header-height, 0px) - 2rem);
  overflow-y: auto;
  padding: .75rem;
  background: var(--chrome);
}
.editor-sidebar-title { margin: 0 0 .5rem; padding-inline: .5rem; font-weight: 750; }
.editor-nav, .editor-nav :where(ul, ol) { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.editor-nav a[href], .editor-site-link {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.25rem;
  padding: .35rem .55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
}
.editor-nav a[href]:hover, .editor-site-link:hover { color: var(--ink); background: var(--hover-surface); }
.editor-nav a[href][aria-current="page"] { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.editor-site-link { width: fit-content; max-width: 100%; margin-top: .5rem; color: var(--link); }
.editor-workspace, .editor-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .75rem;
  padding: 0 .125rem .6rem;
  border-bottom: 1px solid var(--rule);
}
.editor-header h1 { margin: 0; font: 750 clamp(1.4rem, 3vw, 2rem)/1.15 var(--font-site); letter-spacing: -.025em; }
.editor-header #editor-status { min-width: 0; max-width: 100%; margin: 0; color: var(--muted); font-size: var(--type-meta); }
.editor-header #editor-status:not(:empty) { padding: .25rem .55rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.editor-panel { padding: clamp(.75rem, 1.8vw, 1rem); }
.editor-panel > :first-child { margin-top: 0; }
.editor-panel > :last-child { margin-bottom: 0; }
.editor-panel :where(h2, h3) { margin: 0 0 .55rem; font-size: 1rem; line-height: 1.3; }
.editor-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .5rem;
  margin: .55rem 0;
  padding: 0;
  list-style: none;
}
.editor-counts li { display: grid; gap: .1rem; padding: .45rem .65rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--raised); color: var(--muted); }
.editor-counts :where(strong, b) { color: var(--ink); font-variant-numeric: tabular-nums; }
.editor-records {
  margin: .55rem 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  list-style: none;
}
.editor-records > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) fit-content(44%);
  align-items: start;
  gap: .25rem .75rem;
  padding: .6rem .75rem;
}
.editor-records > li + li { border-top: 1px solid var(--rule); }
.editor-records > li:first-child { border-start-start-radius: 9px; border-start-end-radius: 9px; }
.editor-records > li:last-child { border-end-start-radius: 9px; border-end-end-radius: 9px; }
.editor-records > li:hover, .editor-records > li:focus-within { background: var(--hover-surface); }
.editor-records > li > * { grid-column: 1; min-width: 0; }
.editor-record-title { margin: 0; color: var(--ink); font-size: inherit; font-weight: 700; line-height: 1.35; }
.editor-record-title :where(a), a.editor-record-title { text-decoration: underline; text-underline-offset: .18em; }
.editor-record-title :where(a):hover, a.editor-record-title:hover { color: var(--accent); }
.editor-record-meta { margin: 0; color: var(--muted); font-size: var(--type-meta); font-variant-numeric: tabular-nums; }
.editor-records > li > p:not(.editor-record-meta) { margin-block: .25rem; }
.editor-records > li > .news-card-actions { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.editor-records > li:has(> .editor-record-meta) > .news-card-actions { grid-row: 1 / span 2; align-self: center; }
.editor-records > li > .editor-impact { grid-column: 1 / -1; }
.editor-impact { margin-top: .25rem; padding: .35rem .55rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--canvas); }
.editor-impact summary, .editor-draft summary { color: var(--link); cursor: pointer; font-weight: 700; }
.editor-impact summary:hover, .editor-draft summary:hover { color: var(--accent); }
.editor-impact > a[href] { color: var(--link); text-decoration: underline; text-underline-offset: .16em; }
.editor-impact blockquote { margin: .4rem 0 .15rem; padding-inline-start: .65rem; border-inline-start: 2px solid var(--accent); color: var(--muted); }
.editor-impact blockquote :where(p) { margin: .25rem 0; }
.editor-toolbar, .editor-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.editor-bulk { align-items: center; padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--canvas); }
.editor-bulk :is(label, span) { color: var(--muted); }
.editor-page input[type="checkbox"] { accent-color: var(--accent); }
.editor-selectable-title, .editor-draft-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55rem; }
.editor-draft-row { align-items: baseline; }
.editor-selectable-title input { margin-top: .2rem; }
#editor-bulk-draft-note input { margin-inline-start: .35rem; max-width: 100%; padding: .4rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--canvas); color: inherit; }
.editor-pagination { margin-top: .65rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#editor-decision-status:empty, .editor-pagination:not(:has(button:not([hidden]))) { display: none; }
.editor-page :is(.editor-toolbar, .editor-pagination, .news-card-actions) :is(button, a[href], select),
.editor-page #editor-mode-choice {
  min-width: 0;
  max-width: 100%;
  min-height: 2.125rem;
  padding: .3rem .6rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  white-space: normal;
}
.editor-page :is(.editor-toolbar, .editor-pagination, .news-card-actions) a[href] { display: inline-flex; align-items: center; }
.editor-page :is(.editor-toolbar, .editor-pagination, .news-card-actions) :is(button, a[href], select):not(:disabled, [aria-disabled="true"]):hover,
.editor-page #editor-mode-choice:not(:disabled):hover { border-color: var(--accent); background: var(--hover-surface); }
.editor-page :is(.editor-toolbar, .editor-pagination, .news-card-actions) :is(:disabled, [aria-disabled="true"]) { color: var(--muted); cursor: default; }
.editor-page :is(.editor-toolbar, .editor-pagination, .news-card-actions) [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.editor-draft { margin-block: .55rem; padding: .65rem .75rem; }
.editor-draft form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.editor-draft summary + form { margin-top: .65rem; }
.editor-draft label:not(.editor-toggle) { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; }
.editor-draft :is(input:not([type="checkbox"], [type="radio"]), textarea, select) {
  width: 100%;
  min-width: 0;
  padding: .5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--canvas);
  color: inherit;
  font: inherit;
}
.editor-draft textarea { min-height: 5rem; resize: vertical; }
.editor-draft textarea[name="body"] { min-height: 12rem; }
.editor-draft fieldset { margin: 0; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; }
.editor-draft fieldset > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem; padding-block: .45rem; }
@media (max-width: 740px) {
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-sidebar { position: static; max-height: none; overflow: visible; }
  .editor-nav, .editor-nav :where(ul, ol) { display: flex; flex-wrap: wrap; }
  .editor-nav :where(li) { min-width: 0; max-width: 100%; }
  .editor-nav a[href], .editor-site-link { min-height: 44px; }
  .editor-records > li { grid-template-columns: minmax(0, 1fr); }
  .editor-records > li > .news-card-actions, .editor-records > li:has(> .editor-record-meta) > .news-card-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}
.news-control-icon { font: 600 1.05rem/1 var(--font-site); }
.news-control-icon--save {
  position: relative;
  width: .65rem;
  height: .82rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 73%, 0 100%);
}
.news-control-icon--save::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: var(--raised);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 50% 66%, 0 91%);
}
.story-meta, .empty-result { color: var(--muted); }
.news-section .empty-result { min-height: 6rem; margin: 0; padding-block: 1.25rem; }
.story-meta { font-size: var(--type-meta); }
.site-footer { border-top: 2px solid var(--accent); background: var(--chrome); }
.site-footer a:focus-visible { outline-color: var(--accent); }
.footer-main { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem 1.5rem; padding-block: 1.4rem 1rem; }
.footer-brand { font-size: clamp(1.85rem, 3vw, 3rem); }
.footer-main p { margin: .55rem 0 0; color: var(--muted); font-size: var(--type-ui); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: var(--type-ui); font-weight: 650; }
.footer-nav a:hover { color: var(--accent); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding-block: .75rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--type-meta);
}
.footer-row a { color: var(--accent); }

dialog { width: min(calc(100% - 1.5rem), 700px); max-height: calc(100% - 1.5rem); border: 1px solid var(--rule); border-radius: 8px; padding: 0; color: var(--ink); background: var(--raised); }
dialog::backdrop { background: #050a0bcc; }
.share-dialog { width: min(calc(100% - 1.5rem), 28rem); }
.share-form { display: grid; gap: .8rem; padding: 1.15rem; }
.share-heading { align-items: center; justify-content: space-between; }
.share-heading h2 { margin: 0; font-size: var(--type-story); }
.share-title { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.share-options a { padding: .6rem; border: 1px solid var(--rule); border-radius: 5px; color: var(--ink); background: var(--surface); text-align: center; }
.share-options a:hover { border-color: var(--accent); color: var(--accent); }
.share-form label, .share-status { font-size: var(--type-ui); }
.share-copy input { flex: 1 1 10rem; min-width: 0; padding: .45rem; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 5px; font: inherit; }
.share-status { margin: 0; color: var(--link); }
.share-status:empty { display: none; }
.article-toolbar { display: flex; justify-content: end; padding: .65rem .75rem 0; }
.article-toolbar button { min-width: 44px; min-height: 44px; padding: .35rem .65rem; border: 0; border-radius: 4px; color: var(--on-accent); background: var(--accent); }
.article-content { max-width: 66ch; padding: .55rem clamp(1rem, 3vw, 1.5rem) 1.5rem; margin-inline: auto; }
.article-content h2 { margin: .45rem 0 .65rem; font: 700 var(--type-article)/1.12 var(--font-site); letter-spacing: -.05em; }
.article-summary { color: var(--muted); }
.article-content img { width: 100%; height: auto; max-height: 290px; object-fit: cover; }
.article-photo { margin: 1rem 0 1.2rem; }
.article-photo img { display: block; aspect-ratio: 16 / 9; border-radius: 7px; }
.article-photo figcaption { margin-top: .35rem; color: var(--muted); font-size: var(--type-meta); }
.article-photo figcaption a { color: inherit; text-underline-offset: .2em; }
.article-photo--document img { aspect-ratio: auto; object-fit: contain; max-height: none; }
.news-card-image.document-image, .side-story img.document-image { object-fit: contain; background: #f9f8fa; }
.lead-image.document-image { object-fit: contain; object-position: center 10%; background: #f9f8fa; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .masthead-caption { display: none; }
  .category-nav { gap: 1.02rem; }
  .front-page { grid-template-columns: minmax(190px, 29%) minmax(0, 1fr); }
  .side-story a { grid-template-columns: minmax(62px, 30%) 1fr; gap: .55rem; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .masthead { min-height: 60px; align-items: center; gap: .55rem; padding-block: .65rem; }
  .brand { font-size: clamp(1.68rem, 6.9vw, 2.8rem); }
  .search { min-width: 0; }
  .search input { width: clamp(3.6rem, 20vw, 6.4rem); font-size: var(--type-ui); }
  .search button { width: 1.65rem; }
  .category-nav { gap: .8rem; }
  .category-nav a { padding-block: .55rem; }
  main { padding-top: 1.05rem; }
  .section-heading { margin-bottom: .85rem; }
  .front-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "briefing" "lead" "secondary"; grid-template-rows: none; }
  .lead .story-link { min-height: clamp(300px, 82vw, 380px); }
  .lead .story-link::after { background: linear-gradient(0deg, #101719 1%, #101719e6 21%, #1017196b 55%, transparent 76%); }
  .secondary-stories { gap: .7rem; }
  .side-story a { grid-template-columns: 1fr; align-content: start; }
  .side-story img { aspect-ratio: 1.7; }
  .lead-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .briefing .lead-tab {
    flex: 0 0 clamp(11rem, 56vw, 14rem);
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: .15rem;
    border-right: 1px solid var(--rule);
    scroll-snap-align: start;
  }
  .news-section { margin-top: 1.35rem; }
  .footer-main { padding-block: 1.2rem .9rem; }
}

@media (max-width: 620px) {
  .news-pairs { grid-template-columns: minmax(0, 1fr); }
}
