:root {
  color-scheme: dark;
  --background: #151a1f;
  --surface: #1b2229;
  --text: #f2f4f5;
  --muted: #aeb7c0;
  --rule: #343d45;
  --blue: #70cce8;
  --orange: #f39a66;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button[hidden] { display: none; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #23718a; color: white; }

.shell { width: min(92%, 1248px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 10px 14px; background: var(--surface); }

.masthead {
  display: grid;
  grid-template-columns: minmax(172px, 1fr) auto minmax(115px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 73px;
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-block; justify-self: start; line-height: 0; }
.brand img { width: clamp(158px, 17.5vw, 193px); height: auto; mix-blend-mode: lighten; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.primary-nav a { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; color: #e0e5e9; font-size: .96rem; line-height: 2.6; }
.primary-nav a[hidden] { display: none; }
.primary-nav a + a::before { content: ''; border-radius: 50%; width: 3px; height: 3px; align-self: center; background: #7d8993; }
.primary-nav a:hover, .footer a:hover, .lead-copy a:hover { color: var(--blue); }
.mast-actions { display: flex; align-items: center; justify-self: end; gap: .6rem; }
.icon-button { display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; width: 2.45rem; height: 2.45rem; border-radius: 5px; cursor: pointer; }
.icon-button:hover { background: var(--surface); border-color: var(--rule); }
.search-icon { display: block; position: relative; width: .78rem; height: .78rem; border: 1.6px solid #e5eaef; border-radius: 50%; margin: -.16rem .15rem 0 0; }
.search-icon::after { content: ''; position: absolute; right: -.27rem; bottom: -.16rem; width: .36rem; height: 1.6px; background: #e5eaef; transform: rotate(47deg); }
.feed-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.08rem; min-width: 4.15rem; padding: 0 .68rem; border: 1.5px solid #e38f61; border-radius: 100px; color: #f1a477; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; font-weight: 700; }
.feed-link:hover { background: #2c2321; color: #ffd3b6; }

.front-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(207px, 22%, 270px); align-items: stretch; }
.lead-column { min-width: 0; padding-top: 16px; }
.lead-story { margin-right: clamp(16px, 2.4vw, 29px); }
.lead-image { display: block; overflow: hidden; background: #263342; border: 1px solid #232c35; aspect-ratio: 2.9 / 1; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; }
.lead-copy { padding: 14px 0 15px; }
.eyebrow { display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; margin: 0 0 .3rem; color: var(--blue); font-size: .84rem; font-weight: 740; letter-spacing: .024em; }
.eyebrow b { color: #778793; font-weight: inherit; }
.eyebrow span:last-child { color: var(--orange); }
.lead-copy h1, .article-head h1 { margin: 0; font-size: clamp(1.82rem, 3.7vw, 3.2rem); line-height: 1.055; letter-spacing: -.044em; font-weight: 790; text-wrap: balance; }
.lead-copy h1 { text-wrap: unset; }
.standfirst { margin: .43rem 0 0; color: #e1e5e8; font-size: clamp(.99rem, 1.45vw, 1.16rem); line-height: 1.48; }
.byline { margin: .26rem 0 0; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.watchlist { display: grid; grid-template-columns: 1fr 1.08fr; border-top: 1px solid var(--rule); }
.watch-card { display: flex; gap: .75rem; align-items: center; min-width: 0; padding: .9rem 1rem .9rem .28rem; }
.watch-card + .watch-card { position: relative; padding-left: clamp(.85rem, 1.9vw, 1.4rem); }
.watch-card + .watch-card::before { position: absolute; inset: .9rem auto .9rem 0; width: 1px; background: var(--rule); content: ''; }
.watch-card img { width: clamp(50px, 6.1vw, 64px); height: clamp(50px, 6.1vw, 64px); flex: 0 0 auto; object-fit: cover; border-radius: 5px; background: #263342; }
.watch-card strong { display: block; font-size: 1rem; line-height: 1.2; }
.watch-card:hover strong { color: var(--blue); }
.watch-card small { display: flex; gap: .33rem; align-items: baseline; color: #c7d0d6; margin-top: .3rem; line-height: 1.3; font-size: .8rem; }
.signal { width: .42rem; height: .42rem; border-radius: 50%; display: inline-block; flex: none; }
.signal-blue { background: var(--blue); }
.signal-orange { background: var(--orange); }

.sidebar { border-left: 1px solid var(--rule); min-width: 0; }
.side-section { padding: 13px 0 0 clamp(14px, 2.1vw, 23px); }
.rail-heading { color: #c1cbd4; margin: 0 0 .3rem; padding: 0; font: 650 .7rem/1.28 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.rail-heading a:hover { color: var(--blue); }
.rail-archive-link { display: inline-block; margin-block: .55rem .15rem; color: var(--blue); font-size: .82rem; }
.rail-archive-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.dispatch-sidebar, .dispatch-feed, .quick-links, .search-results { margin: 0; padding: 0; list-style: none; }
.dispatch-item { min-width: 0; border-bottom: 1px solid var(--rule); }
.dispatch-link { display: block; padding: 8px 0; }
.dispatch-link:hover .dispatch-title { color: var(--blue); }
.dispatch-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .34rem; color: var(--muted); font-size: .77rem; line-height: 1.3; }
.dispatch-time { font-variant-numeric: tabular-nums; }
.dispatch-source { color: var(--orange); font-weight: 650; }
.dispatch-source--brief { color: var(--blue); }
.dispatch-source::before { content: '//'; font-weight: 400; opacity: .85; margin-right: .26rem; }
.dispatch-title { display: block; margin-top: .18rem; font-weight: 520; font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.dispatch-sidebar .dispatch-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-shortcuts { padding-top: 12px; }
.quick-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .86rem; line-height: 1.25; padding: .4rem 0; }
.quick-links a:hover { color: var(--blue); }
.quick-links small { color: var(--muted); font-size: .73rem; text-align: right; }

.home-sections { margin-top: 19px; border-top: 1px solid var(--rule); }
.content-section { padding: clamp(1.5rem, 3vw, 2.5rem) 0; scroll-margin-top: 1rem; }
.content-section + .content-section, .utility-grid, .utility-grid + .content-section { border-top: 1px solid var(--rule); }
.section-heading { margin-bottom: .88rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.42rem, 2.6vw, 2.25rem); letter-spacing: -.028em; line-height: 1.15; }
.section-heading p { margin: .34rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.dispatch-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.35rem; }
.dispatch-feed .dispatch-link { padding: 13px 0; }
.dispatch-feed .dispatch-title { font-size: 1rem; font-weight: 600; }
.dispatch-description { display: block; color: var(--muted); margin-top: .3rem; }
.utility-grid, .hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); }
.utility-grid .content-section + .content-section { border-top: 0; }
.hub-group { scroll-margin-top: 1rem; }
.hub-group h3 { margin: 0 0 .46rem; font-size: 1.02rem; color: #e2e8ed; }
.listing-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .88rem 0; border-bottom: 1px solid var(--rule); }
.listing-card span:first-child { min-width: 0; }
.listing-card strong { display: block; font-size: 1rem; font-weight: 630; margin-top: .2rem; overflow-wrap: anywhere; }
.listing-card small { display: block; color: var(--orange); font-size: .72rem; letter-spacing: .04em; }
.listing-card:hover strong, .listing-card:hover .listing-detail { color: var(--blue); }
.listing-detail { color: var(--muted); font-size: .81rem; text-align: right; }
.footer { display: flex; align-items: baseline; gap: clamp(1rem, 2.5vw, 2rem); padding-block: 1.4rem 2.1rem; border-top: 1px solid var(--rule); font-size: .84rem; color: var(--muted); }
.footer span { color: #d9e0e5; margin-right: auto; }
.footer { flex-wrap: wrap; }
.footer-preferences { color: inherit; background: transparent; border: 0; font: inherit; padding: 0; cursor: pointer; }
.footer-preferences:hover { color: var(--blue); }

.article-shell { padding-block: clamp(1.8rem, 4vw, 4rem) 3.5rem; }
.article-head, .article-body { max-width: 740px; margin-inline: auto; }
.article-head { margin-bottom: 1.45rem; }
.article-art { margin: 0 auto 1.5rem; max-width: 970px; }
.article-art img { width: 100%; height: auto; border: 1px solid var(--rule); }
.article-art img:not([width]) { aspect-ratio: auto 16 / 9; }
.article-art figcaption { color: var(--muted); font-size: .81rem; margin-top: .55rem; }
.article-body { font-size: 1.07rem; line-height: 1.72; color: #dde4e9; }
.article-body h2 { margin: 1.7em 0 .55em; font-size: clamp(1.3rem, 2.4vw, 1.78rem); letter-spacing: -.021em; line-height: 1.25; color: var(--text); }
.article-body p { margin: 0 0 1em; }
.article-return { display: inline-block; color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }

.news-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(13.5rem, 22%, 16rem);
  align-items: start;
  gap: clamp(1.8rem, 4vw, 4rem);
  width: min(92%, 1120px);
  padding-block: clamp(1.65rem, 3.4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
}
.news-story { min-width: 0; }
.news-head { margin-bottom: clamp(1.25rem, 2.9vw, 2rem); }
.news-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin: 0 0 .8rem;
  color: var(--orange);
  font: 650 .78rem/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.news-kicker a { color: var(--blue); }
.news-kicker a:hover { text-decoration: underline; text-underline-offset: .22em; }
.news-kicker b, .news-kicker [aria-hidden] { color: var(--muted); font-weight: inherit; }
.news-head h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.25vw, 3.16rem);
  font-weight: 790;
  line-height: 1.065;
  letter-spacing: -.044em;
  overflow-wrap: break-word;
}
.news-dek { max-width: 64ch; margin: .78rem 0 0; color: #d8e0e6; font-size: clamp(1.03rem, 1.6vw, 1.21rem); line-height: 1.5; }
.news-byline { margin: .8rem 0 0; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.news-hero.article-art { margin: 0 0 clamp(1.65rem, 3.8vw, 2.5rem); max-width: none; }
.news-hero img { object-fit: contain; height: auto; }
.news-hero figcaption { line-height: 1.5; }
.news-hero figcaption a, .news-content a, .news-rail a { text-underline-offset: .2em; }
.news-hero figcaption a { text-decoration: underline; }
.news-hero figcaption a:hover, .news-rail a:hover { color: var(--blue); }
.news-content {
  max-width: 67ch;
  color: #e1e7ec;
  font-size: clamp(1rem, 1.55vw, 1.09rem);
  line-height: 1.72;
}
.news-content p { margin: 0 0 1em; }
.news-content h2, .news-rail h2 { margin: 0 0 .65rem; color: var(--text); line-height: 1.25; letter-spacing: -.018em; }
.news-content h2 { font-size: 1.22rem; }
.news-content p + h2 { margin-top: 1.65rem; }
.news-content a { color: var(--blue); text-decoration: underline; }
.news-highlights { margin: 0 0 1.65rem; padding: .95rem 1.1rem 1rem; background: var(--surface); border-left: 2px solid var(--blue); }
.news-highlights ul { margin: 0; padding-left: 1.15rem; }
.news-highlights li + li { margin-top: .42rem; }
.news-highlights li::marker { color: var(--blue); }
.news-source { margin-top: 1.75rem; padding-top: 1.05rem; border-top: 1px solid var(--rule); }
.news-source ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.news-source li + li { margin-top: .28rem; }
.news-source time { margin-left: .25em; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.news-rail { min-width: 0; padding: .2rem 0 .35rem clamp(1rem, 2.5vw, 1.65rem); border-left: 1px solid var(--rule); font-size: .92rem; line-height: 1.48; }
.news-rail h2 { margin-bottom: .7rem; color: var(--muted); font: 650 .74rem/1.4 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .09em; }
.news-rail ul { margin: 0; padding: 0; list-style: none; }
.news-rail li + li { margin-top: .62rem; }
.news-rail a { text-decoration: underline; text-decoration-color: #687581; }

@media (max-width: 780px) {
  .news-workspace { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; max-width: 46rem; }
  .news-head h1 { max-width: 26ch; }
  .news-rail { padding: 1.2rem 0 0; border: 0; border-top: 1px solid var(--rule); }
}

.search-dialog { width: min(580px, 92vw); max-height: min(82vh, 650px); padding: 1rem 1.25rem 1.3rem; color: var(--text); background: var(--surface); border: 1px solid #46515c; border-radius: 9px; }
.search-dialog::backdrop { background: #090c11c9; }
.search-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.search-heading h2 { font-size: 1.19rem; margin: 0; }
.close-button { font-size: 1.65rem; }
.search-dialog input { width: 100%; min-height: 2.8rem; background: #12171c; color: var(--text); border: 1px solid var(--rule); border-radius: 4px; padding: .55rem .8rem; margin: .68rem 0; }
.search-dialog input::placeholder { color: #aab6c0; }
.search-status { margin: .18rem .1rem .45rem; color: var(--muted); font-size: .82rem; }
.search-status:empty { margin: 0; }
.search-result { border-bottom: 1px solid var(--rule); }
.search-result-link { display: flex; gap: .5rem; align-items: baseline; justify-content: space-between; padding: .66rem .15rem; }
.search-result-link:hover { color: var(--blue); }
.search-result-title { overflow-wrap: anywhere; }
.search-result-category, .search-empty { font-size: .83rem; color: var(--muted); }
.search-result-category { text-align: right; }
.search-empty { padding: .5rem .15rem; }

@media (max-width: 860px) {
  .masthead { gap: .65rem; }
  .primary-nav, .primary-nav a { gap: .36rem; }
  .primary-nav a { font-size: .87rem; }
  .front-grid { grid-template-columns: minmax(0, 1fr) 195px; }
  .watch-card { gap: .55rem; }
  .watch-card small { font-size: .75rem; }
}

@media (max-width: 690px) {
  .shell { width: 92%; }
  .masthead { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 60px auto; gap: 0 .55rem; }
  .brand img { width: 161px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; min-width: 0; padding: 0 0 .3rem; column-gap: .47rem; }
  .primary-nav a { gap: .47rem; text-align: center; font-size: .84rem; line-height: 2.25; }
  .mast-actions { grid-column: 2; grid-row: 1; }
  .front-grid { display: block; }
  .lead-story { margin-right: 0; }
  .lead-image { aspect-ratio: 2.05 / 1; }
  .lead-copy h1 { font-size: clamp(1.85rem, 6.9vw, 2.62rem); }
  .sidebar { border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.1rem, .55fr); gap: .85rem; }
  .side-section { padding: .95rem 0 0; }
  .side-shortcuts { border-left: 1px solid var(--rule); padding-left: .85rem; }
  .quick-links a { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .quick-links small { text-align: left; }
  .dispatch-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .utility-grid, .hub-grid { gap: 1rem; }
  .listing-detail { display: none; }
}

@media (max-width: 380px) {
  .primary-nav, .primary-nav a { gap: .32rem; }
  .primary-nav a { font-size: .79rem; }
  .dispatch-feed, .hub-grid { grid-template-columns: 1fr; }
  .watch-card img { width: 43px; height: 43px; }
  .watch-card strong { font-size: .86rem; }
  .watch-card small { font-size: .72rem; }
}
