:root {
  --shell-bg: #eef4f1;
  --shell-bg-accent: #d8ebe4;
  --shell-panel: #f6fcf8;
  --shell-elev: #ffffff;
  --shell-text: #102029;
  --shell-muted: #486575;
  --shell-line: #b8d2cc;
  --shell-accent: #375c15;
  --brief-source-link: #2a66c7;
  --shell-accent-soft: rgba(55, 92, 21, 0.1);
  --shell-shadow: 0 8px 22px rgba(7, 24, 30, 0.12);
  --card-liquid-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.8) 100%);
  --card-liquid-line: rgba(255, 255, 255, 0.22);
  --card-liquid-glow: rgba(255, 255, 255, 0.28);
  --card-liquid-overlay: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(180, 223, 205, 0.35) 42%,
    rgba(174, 209, 232, 0.24) 72%,
    rgba(255, 255, 255, 0.4) 100%
  );
  --card-hover-shadow: 0 15px 45px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  --surface-soft-bg: rgba(255, 255, 255, 0.55);
  --surface-soft-bg-2: rgba(255, 255, 255, 0.72);
  --media-frame-bg: #e4f0ec;
  --banner-bg: linear-gradient(140deg, #2b8f80 0%, #2d5f77 62%, #446f99 100%);
  --banner-line: #6e9cb0;
  --banner-copy: #f4fffb;
  --rail-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(236, 245, 241, 0.9));
  --liquid-blur: 16px;
  --liquid-saturate: 140%;
  --liquid-specular: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.2) 36%,
    rgba(179, 215, 199, 0.22) 62%,
    rgba(161, 193, 223, 0.2) 100%
  );
  --liquid-edge: rgba(118, 156, 169, 0.33);
  --liquid-hover-glow: rgba(112, 150, 166, 0.22);
}

:root[data-theme="dark"],
body[data-theme="dark"] {
  --shell-bg: #061518;
  --shell-bg-accent: #12392f;
  --shell-panel: #0b222a;
  --shell-elev: #102c35;
  --shell-text: #e5f4ec;
  --shell-muted: #9cc8bb;
  --shell-line: #24504c;
  --shell-accent: #c6df68;
  --brief-source-link: #d7ef84;
  --shell-accent-soft: rgba(198, 223, 104, 0.14);
  --shell-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  --card-liquid-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  --card-liquid-line: rgba(255, 255, 255, 0.12);
  --card-liquid-glow: rgba(255, 255, 255, 0.14);
  --card-liquid-overlay: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(198, 223, 104, 0.08) 35%,
    rgba(89, 179, 213, 0.07) 65%,
    rgba(255, 255, 255, 0.02) 100%
  );
  --card-hover-shadow: 0 15px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  --surface-soft-bg: rgba(255, 255, 255, 0.03);
  --surface-soft-bg-2: rgba(255, 255, 255, 0.04);
  --media-frame-bg: #0f2530;
  --banner-bg: linear-gradient(140deg, #1f6f5f 0%, #0f3a40 65%, #213f6e 100%);
  --banner-line: #2d6f78;
  --banner-copy: #e8fff6;
  --rail-bg: linear-gradient(165deg, rgba(10, 31, 40, 0.86), rgba(9, 26, 35, 0.82));
  --liquid-blur: 14px;
  --liquid-saturate: 135%;
  --liquid-specular: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.03) 38%,
    rgba(198, 223, 104, 0.07) 68%,
    rgba(70, 174, 205, 0.11) 100%
  );
  --liquid-edge: rgba(188, 236, 221, 0.22);
  --liquid-hover-glow: rgba(150, 226, 204, 0.2);
}

body.home-route,
body.route-hub-page,
body[data-active-nav] {
  background:
    radial-gradient(circle at 85% 16%, rgba(24, 93, 76, 0.34), transparent 36%),
    radial-gradient(circle at 12% 82%, rgba(16, 68, 92, 0.26), transparent 30%),
    linear-gradient(145deg, var(--shell-bg) 0%, var(--shell-bg-accent) 100%);
  color: var(--shell-text);
}

.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;
}

.home-meta-kicker,
.shell-topbar,
.theme-toggle,
.post-banner-slot {
  width: min(1240px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

.home-meta-kicker {
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
  color: var(--shell-muted);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
}

.shell-topbar {
  display: grid;
  grid-template-columns: minmax(170px, 245px) minmax(170px, 230px) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 68px;
}

.global-home-logo {
  display: block;
  justify-self: start;
}

.global-home-logo img {
  width: min(250px, 42vw);
  height: auto;
  display: block;
}

.dossier-search-shell {
  position: relative;
  justify-self: start;
  width: 100%;
}

.dossier-search-input {
  width: 100%;
  border: 1px solid var(--shell-line);
  border-radius: 999px;
  padding: 0.47rem 0.8rem;
  max-width: 220px;
  background: var(--shell-elev);
  color: var(--shell-text);
  font: inherit;
  font-size: 0.82rem;
}

.dossier-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--shell-elev);
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  box-shadow: var(--shell-shadow);
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--shell-line);
  background: var(--shell-elev);
  color: var(--shell-text);
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  justify-self: end;
}

.global-site-nav {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.95rem;
  padding: 0;
  justify-self: center;
}

.global-site-nav a {
  color: var(--shell-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  border-bottom: 2px solid transparent;
}

.global-site-nav a:hover,
.global-site-nav a:focus-visible {
  border-bottom-color: var(--shell-accent);
}

/* Active nav state: soft yellow glow based on page section. */
body[data-active-nav="home"] .global-site-nav a[data-nav="home"],
body[data-active-nav="analysis"] .global-site-nav a[data-nav="analysis"],
body[data-active-nav="intelligence"] .global-site-nav a[data-nav="intelligence"],
body[data-active-nav="briefs"] .global-site-nav a[data-nav="briefs"],
body[data-active-nav="videos"] .global-site-nav a[data-nav="videos"],
body[data-active-nav="newsletter"] .global-site-nav a[data-nav="newsletter"],
body[data-active-nav="gear"] .global-site-nav a[data-nav="gear"],
body[data-active-nav="about"] .global-site-nav a[data-nav="about"] {
  color: color-mix(in srgb, var(--shell-accent) 88%, #fff 12%);
  text-shadow: 0 0 10px color-mix(in srgb, var(--shell-accent) 55%, transparent 45%);
  border-bottom-color: color-mix(in srgb, var(--shell-accent) 72%, #fff 28%);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--shell-accent) 52%, transparent 48%);
}

.theme-toggle {
  position: fixed;
  top: 0.9rem;
  right: 1.1rem;
  z-index: 260;
  margin: 0;
  display: inline-flex;
  width: auto;
  background: var(--card-liquid-bg);
  border: 1px solid var(--card-liquid-line);
  box-shadow: var(--shell-shadow);
  will-change: transform, box-shadow;
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--card-liquid-glow);
  box-shadow: var(--card-hover-shadow);
}

.post-banner-slot {
  max-width: 970px;
  margin-top: 0.25rem;
  margin-bottom: 0.95rem;
}

.post-banner-inner {
  min-height: 90px;
  background: var(--banner-bg);
  border: 1px solid var(--banner-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shell-shadow);
}

.post-banner-copy {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--banner-copy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.92rem;
}

.article-layout-grid {
  width: min(1240px, 94vw);
  margin: 0 auto 1.6rem;
  display: grid;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr) minmax(270px, 308px);
  gap: 1rem;
  align-items: start;
}

.article-layout-grid > * {
  min-width: 0;
}

.article-layout {
  width: min(1240px, 94vw);
  margin: 0 auto 1.6rem;
  display: grid;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr) minmax(270px, 308px);
  gap: 1rem;
  align-items: start;
}

.article-layout > * {
  min-width: 0;
}

.article-layout .article-rail-left {
  grid-column: 1;
  grid-row: 1;
}

.article-layout .article-main {
  grid-column: 2;
  grid-row: 1;
}

.article-layout .article-rail-right {
  grid-column: 3;
  grid-row: 1;
}

.article-main,
.article-rail {
  min-width: 0;
}

.article-main {
  overflow: visible;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

main.article-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

.article-rail {
  background: var(--rail-bg);
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  box-shadow: var(--shell-shadow);
}

.sticky-hud {
  position: sticky;
  top: 0.9rem;
  padding: 0.85rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.rail-title {
  margin-top: 0;
  margin-bottom: 0.45rem;
  color: var(--shell-text);
  font-family: "Public Sans", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.rail-summary,
.home-rail-intro,
.rail-item-meta,
.route-time,
.post-publication-date {
  color: var(--shell-muted);
}

.share-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  margin-bottom: 0;
  align-items: stretch;
}

.share-link {
  border: 1px solid var(--card-liquid-line);
  border-radius: 12px;
  padding: 0.42rem 0.54rem;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  min-width: 0;
  color: var(--shell-text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.28s ease,
    background-color 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--card-liquid-glow);
  box-shadow: 0 0 0 1px var(--liquid-hover-glow);
}

.share-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.share-label {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-x:hover,
.share-x:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
}

.share-facebook:hover,
.share-facebook:focus-visible {
  background-color: rgba(24, 119, 242, 0.15);
}

.share-linkedin:hover,
.share-linkedin:focus-visible {
  background-color: rgba(10, 102, 194, 0.15);
}

.share-email:hover,
.share-email:focus-visible {
  background-color: rgba(138, 92, 246, 0.15);
}

.share-bluesky:hover,
.share-bluesky:focus-visible {
  background-color: rgba(17, 133, 254, 0.15);
}

.share-reddit:hover,
.share-reddit:focus-visible {
  background-color: rgba(255, 69, 0, 0.15);
}

#tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tag-section {
  margin-top: 0.1rem;
  padding-top: 0.72rem;
  border-top: 1px solid var(--shell-line);
}

.tag-box {
  border: 1px solid var(--card-liquid-line);
  border-radius: 20px;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: var(--shell-muted);
}

.feature,
.latest-card,
.route-feed-card,
.story-card {
  background: var(--card-liquid-bg);
  border: 1px solid var(--card-liquid-line);
  border-radius: 10px;
  box-shadow: var(--shell-shadow);
  will-change: transform, box-shadow;
}

/* Story card surfaces: homepage leads + hub cards + post feature wrappers. */
.home-route .article-main > .tier1-hero,
.home-route .article-main > .tier1-feature,
.home-route .article-main .latest-card,
.route-hub-page .article-main .route-feed-card,
.route-hub-page .article-main > .feature,
.article-main.story-content > article.feature,
.article-main.story-content > article:not(.feature) {
  position: relative;
  isolation: isolate;
  background-size: 180% 180%;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-position 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-route .article-main > .tier1-hero::before,
.home-route .article-main > .tier1-feature::before,
.home-route .article-main .latest-card::before,
.route-hub-page .article-main .route-feed-card::before,
.route-hub-page .article-main > .feature::before,
.article-main.story-content > article.feature::before,
.article-main.story-content > article:not(.feature)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-specular);
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-route .article-main > .tier1-hero::after,
.home-route .article-main > .tier1-feature::after,
.home-route .article-main .latest-card::after,
.route-hub-page .article-main .route-feed-card::after,
.route-hub-page .article-main > .feature::after,
.article-main.story-content > article.feature::after,
.article-main.story-content > article:not(.feature)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--liquid-edge);
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.home-route .article-main > .tier1-hero > *,
.home-route .article-main > .tier1-feature > *,
.home-route .article-main .latest-card > *,
.route-hub-page .article-main .route-feed-card > *,
.route-hub-page .article-main > .feature > *,
.article-main.story-content > article.feature > *,
.article-main.story-content > article:not(.feature) > * {
  position: relative;
  z-index: 1;
}

.home-route .article-main > .tier1-hero:hover,
.home-route .article-main > .tier1-hero:focus-within,
.home-route .article-main > .tier1-feature:hover,
.home-route .article-main > .tier1-feature:focus-within,
.home-route .article-main .latest-card:hover,
.home-route .article-main .latest-card:focus-within,
.route-hub-page .article-main .route-feed-card:hover,
.route-hub-page .article-main .route-feed-card:focus-within,
.route-hub-page .article-main > .feature:hover,
.route-hub-page .article-main > .feature:focus-within,
.article-main.story-content > article.feature:hover,
.article-main.story-content > article.feature:focus-within,
.article-main.story-content > article:not(.feature):hover,
.article-main.story-content > article:not(.feature):focus-within {
  transform: translateY(-3px);
  filter: brightness(1.06);
  background-position: 100% 0%;
  box-shadow: var(--card-hover-shadow);
}

.home-route .article-main > .tier1-hero:hover::before,
.home-route .article-main > .tier1-hero:focus-within::before,
.home-route .article-main > .tier1-feature:hover::before,
.home-route .article-main > .tier1-feature:focus-within::before,
.home-route .article-main .latest-card:hover::before,
.home-route .article-main .latest-card:focus-within::before,
.route-hub-page .article-main .route-feed-card:hover::before,
.route-hub-page .article-main .route-feed-card:focus-within::before,
.route-hub-page .article-main > .feature:hover::before,
.route-hub-page .article-main > .feature:focus-within::before,
.article-main.story-content > article.feature:hover::before,
.article-main.story-content > article.feature:focus-within::before,
.article-main.story-content > article:not(.feature):hover::before,
.article-main.story-content > article:not(.feature):focus-within::before {
  opacity: 0.88;
  transform: translateX(1.2%);
}

/* Ensure all post-story articles get the same liquid card container,
   including restored pages that don't carry .feature. */
.article-main.story-content > article:not(.feature) {
  background: var(--card-liquid-bg);
  border: 1px solid var(--card-liquid-line);
  border-radius: 10px;
  box-shadow: var(--shell-shadow);
  padding: 0.95rem;
  min-width: 0;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.article-main.story-content > article:not(.feature) > header {
  margin-bottom: 0.7rem;
}

.feature {
  padding: 0.95rem;
}

.article-main > .feature,
.article-main > .latest-grid {
  width: 100%;
  max-width: 100%;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--shell-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.tier1-hero h2,
.tier1-feature h3 {
  margin: 0.22rem 0 0.7rem;
  line-height: 1.12;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.tier1-hero h2 a,
.tier1-feature h3 a,
.latest-card h3 a,
.route-headline a {
  color: var(--shell-accent);
  text-decoration: none;
}

.tier1-hero h2 a:hover,
.tier1-feature h3 a:hover,
.latest-card h3 a:hover,
.route-headline a:hover {
  text-decoration: underline;
}

.premiere-figure {
  margin: 0.55rem 0;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--media-frame-bg);
}

.premiere-figure img {
  width: 100%;
  display: block;
  height: auto;
}

.premiere-figure figcaption {
  padding: 0.45rem 0.6rem;
  font-size: 0.74rem;
  color: var(--shell-muted);
}

.standfirst,
.latest-text p,
.rail-summary,
.route-snippet {
  margin: 0.35rem 0 0;
  color: var(--shell-muted);
  font-size: 0.9rem;
}

.latest-grid.tier2-preview-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.latest-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.latest-card img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--shell-line);
}

.latest-text {
  display: block;
  padding: 0.55rem 0.65rem 0.7rem;
}

.latest-card h3 {
  margin: 0;
  color: var(--shell-text);
  font-size: 0.93rem;
  line-height: 1.16;
}

.latest-briefings {
  display: none;
  margin-top: 0.8rem;
}

#briefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.brief-grid-card {
  margin: 0;
}

.brief-grid-link {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--shell-line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface-soft-bg);
  color: var(--shell-text);
  box-shadow: var(--shell-shadow);
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s ease;
}

.brief-grid-link:hover,
.brief-grid-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--card-liquid-glow);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px var(--liquid-hover-glow);
}

.brief-grid-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--shell-line);
  background: var(--media-frame-bg);
}

.brief-grid-copy {
  padding: 0.62rem 0.68rem 0.7rem;
}

.brief-grid-copy h3 {
  margin: 0;
  color: var(--shell-text);
  font-size: 0.94rem;
  line-height: 1.2;
}

.brief-grid-copy p {
  margin: 0.45rem 0 0;
  color: var(--shell-muted);
  font-size: 0.81rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rail-link {
  display: block;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--shell-text);
  background: var(--surface-soft-bg);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s ease;
}

.rail-link:hover,
.rail-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--card-liquid-glow);
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px var(--liquid-hover-glow);
}

.rail-link .rail-media {
  float: left;
  width: 56px;
  margin-right: 0.5rem;
}

.rail-link .rail-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--shell-line);
  background: var(--media-frame-bg);
}

.rail-link .rail-text {
  display: block;
  overflow: hidden;
}

.rail-item-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.17;
  overflow-wrap: anywhere;
}

/* Normalize full-story right rail to match hub/home text-first card style. */
body:not(.route-hub-page) .article-rail-right .rail-link {
  padding: 0.55rem 0.62rem;
}

body:not(.route-hub-page) .article-rail-right .rail-link .rail-media,
body:not(.route-hub-page) .article-rail-right .rail-link .rail-label,
body:not(.route-hub-page) .article-rail-right .rail-link .rail-item-category {
  display: none;
}

body:not(.route-hub-page) .article-rail-right .rail-link .rail-text {
  overflow: visible;
}

body:not(.route-hub-page) .article-rail-right .rail-link .rail-item-title {
  font-size: 0.84rem;
  line-height: 1.2;
}

body:not(.route-hub-page) .article-rail-right .rail-link .rail-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not(.route-hub-page) .article-rail-right .rail-link .rail-item-meta {
  display: block;
  margin-top: 0.22rem;
}

.rail-summary {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

#beehiiv-form-embed {
  margin-top: 0.48rem;
  width: 100%;
}

.newsletter-terminal {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  overflow: hidden;
}

.newsletter-terminal .beehiiv-embed {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 68px;
  min-height: 68px;
  border: 0;
  background: transparent;
}

/* Intelligence (tier2) article readability: citations + sources block */
body.tier2-story-page .article-main.story-content > article sup a {
  color: var(--shell-accent);
  text-decoration: none;
  font-weight: 700;
}

body.tier2-story-page .article-main.story-content > article sup a:visited {
  color: color-mix(in srgb, var(--shell-accent) 78%, #ffffff 22%);
}

body.tier2-story-page .article-main.story-content > article sup a:hover,
body.tier2-story-page .article-main.story-content > article sup a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.tier2-story-page .article-main.story-content > article .references {
  margin-top: 1rem;
  padding: 0.72rem 0.78rem 0.82rem;
  border: 1px solid var(--card-liquid-line);
  border-radius: 10px;
  background: var(--card-liquid-bg);
  box-shadow: var(--shell-shadow);
}

body.tier2-story-page .article-main.story-content > article .references h2 {
  margin-top: 0;
}

.route-feed {
  display: grid;
  gap: 0.75rem;
}

.route-feed-card {
  padding: 0.78rem;
  overflow: hidden;
  min-width: 0;
  position: relative;
}

.route-feed-card-with-image {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
}

.route-card-media {
  display: block;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--media-frame-bg);
  min-height: 112px;
  max-height: 132px;
}

.route-card-media img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  max-height: 132px;
  object-fit: cover;
  display: block;
}

.route-card-copy {
  min-width: 0;
}

.route-feed-card .route-headline {
  margin: 0.2rem 0 0.25rem;
}

.route-feed-card .route-time {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.route-feed-card .route-snippet {
  margin-top: 0.32rem;
  font-size: 0.82rem;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-headline {
  margin: 0.28rem 0;
  color: var(--shell-text);
}

/* Keep long source URLs inside post card boundaries. */
.article-main.story-content .references {
  margin-top: 1rem;
  min-width: 0;
}

.article-main.story-content .references ol,
.article-main.story-content .references ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  max-width: 100%;
}

.article-main.story-content .references li {
  margin: 0.28rem 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-main.story-content .references a {
  color: var(--shell-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tier3 brief post pages: source list links need high-contrast colors in dark mode. */
body[data-active-nav="briefs"] .article-main.story-content > article section h2 + ul a {
  color: var(--brief-source-link);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body[data-active-nav="briefs"] .article-main.story-content > article section h2 + ul a:visited {
  color: color-mix(in srgb, var(--brief-source-link) 78%, #ffffff 22%);
}

body[data-active-nav="briefs"] .article-main.story-content > article section h2 + ul a:hover,
body[data-active-nav="briefs"] .article-main.story-content > article section h2 + ul a:focus-visible {
  color: color-mix(in srgb, var(--brief-source-link) 86%, #ffffff 14%);
}

body[data-active-nav="briefs"] .article-main.story-content > article .brief-video-embed {
  margin: 1rem 0 1.25rem;
}

body[data-active-nav="briefs"] .article-main.story-content > article .brief-video-embed h2 {
  margin-bottom: 0.65rem;
}

body[data-active-nav="briefs"] .article-main.story-content > article .video-embed-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(111, 146, 150, 0.35);
  background: rgba(7, 26, 35, 0.8);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

body[data-active-nav="briefs"] .article-main.story-content > article .video-embed-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

body[data-active-nav="briefs"] .article-main.story-content > article .video-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About route: refined contact/tipline form shell. */
.about-tipline {
  margin-top: 1rem;
  border: 1px solid var(--card-liquid-line);
  border-radius: 12px;
  padding: 1rem;
  background: var(--card-liquid-bg);
  box-shadow: var(--shell-shadow);
}

.about-tipline h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.about-tipline-intro {
  margin: 0 0 0.85rem;
  color: var(--shell-muted);
  font-size: 0.96rem;
}

.about-tipline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 0.75rem;
  align-items: start;
}

.about-tipline-field {
  display: grid;
  gap: 0.25rem;
}

.about-tipline-field-wide {
  grid-column: 1 / -1;
}

.about-tipline-field label {
  display: block;
  margin: 0;
  color: var(--shell-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.about-tipline-field input,
.about-tipline-field textarea {
  width: 100%;
  border: 1px solid var(--card-liquid-line);
  border-radius: 10px;
  background: var(--surface-soft-bg-2);
  color: var(--shell-text);
  font: inherit;
  padding: 0.58rem 0.72rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.about-tipline-field textarea {
  min-height: 140px;
  resize: vertical;
}

.about-tipline-field input:focus-visible,
.about-tipline-field textarea:focus-visible {
  outline: none;
  border-color: var(--card-liquid-glow);
  box-shadow: 0 0 0 2px var(--liquid-hover-glow);
  background: var(--shell-elev);
}

.about-tipline-form button {
  justify-self: start;
  border: 1px solid var(--card-liquid-line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: var(--card-liquid-bg);
  color: var(--shell-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  will-change: transform, box-shadow;
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.about-tipline-form button:hover,
.about-tipline-form button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--card-liquid-glow);
  box-shadow: var(--card-hover-shadow);
}

.about-tipline-note {
  margin: 0.8rem 0 0;
  color: var(--shell-muted);
  font-size: 0.88rem;
}

.daily-brief-panel {
  margin-top: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--card-liquid-line);
  border-radius: 10px;
  background: var(--card-liquid-bg);
  box-shadow: var(--shell-shadow);
}

.daily-brief-panel p {
  margin: 0 0 0.55rem;
  color: var(--shell-text);
  font-size: 0.94rem;
  line-height: 1.42;
}

.daily-brief-panel p:last-child {
  margin-bottom: 0;
}

.expand-brief-link,
.expand-brief-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border: 1px solid var(--card-liquid-line);
  border-radius: 9px;
  padding: 0.22rem 0.52rem;
  color: var(--shell-accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.14em;
  font-weight: 700;
  background: var(--surface-soft-bg);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.expand-brief-link:hover,
.expand-brief-link:focus-visible {
  color: color-mix(in srgb, var(--shell-accent) 86%, #ffffff 14%);
  border-color: var(--card-liquid-glow);
  background: var(--surface-soft-bg-2);
  box-shadow: 0 0 0 1px var(--liquid-hover-glow);
}

.daily-brief-loading {
  color: var(--shell-muted);
  font-style: italic;
}

.daily-brief-readmore {
  display: inline-flex;
  margin-top: 0.2rem;
  color: var(--shell-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-weight: 700;
}

html:not([data-theme="dark"]) .about-tipline-form input,
html:not([data-theme="dark"]) .about-tipline-form textarea {
  background: #f3f8fa;
}

html:not([data-theme="dark"]) .expand-brief-link,
html:not([data-theme="dark"]) .expand-brief-link:visited {
  color: #1f4d18;
  border-color: rgba(54, 88, 102, 0.26);
  background: rgba(255, 255, 255, 0.9);
}

html:not([data-theme="dark"]) .expand-brief-link:hover,
html:not([data-theme="dark"]) .expand-brief-link:focus-visible {
  color: #163910;
  border-color: rgba(54, 88, 102, 0.42);
  background: rgba(255, 255, 255, 0.98);
}

@media (max-width: 1180px) {
  .shell-topbar {
    grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .global-site-nav a {
    font-size: 0.82rem;
  }

  .article-layout-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .article-layout .article-rail-left,
  .article-layout .article-main,
  .article-layout .article-rail-right {
    grid-column: 1;
    grid-row: auto;
  }

  .article-rail {
    order: 2;
  }

  .article-main {
    order: 1;
  }
}

@media (max-width: 860px) {
  .shell-topbar {
    grid-template-columns: minmax(160px, 1fr) auto;
    grid-template-areas:
      "logo menu"
      "search search"
      "nav nav";
    align-items: center;
  }

  .global-home-logo {
    grid-area: logo;
  }

  .dossier-search-shell {
    grid-area: search;
  }

  .global-site-nav {
    grid-area: nav;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: menu;
  }

  .post-banner-slot {
    width: min(970px, 94vw);
  }

  .latest-grid.tier2-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-feed-card-with-image {
    grid-template-columns: 1fr;
  }

  .route-card-media,
  .route-card-media img {
    min-height: 170px;
    max-height: 220px;
  }

  .about-tipline-form {
    grid-template-columns: 1fr 1fr;
  }

  .about-tipline-field-wide {
    grid-column: 1 / -1;
  }

  .share-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-meta-kicker {
    padding-right: 9.5rem;
    line-height: 1.35;
  }

  .shell-topbar {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 0.45rem;
    align-items: start;
  }

  .global-home-logo,
  .dossier-search-shell,
  .global-site-nav,
  .nav-toggle {
    grid-area: auto;
  }

  .global-home-logo {
    justify-self: start;
  }

  .global-home-logo img {
    width: min(220px, 58vw);
  }

  .dossier-search-input {
    max-width: 100%;
  }

  .dossier-search-shell {
    width: 100%;
    justify-self: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: start;
    order: 3;
  }

  .global-site-nav {
    display: none;
    width: 100%;
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    background: var(--shell-elev);
    order: 4;
  }

  body.nav-open .global-site-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    top: max(0.6rem, env(safe-area-inset-top));
    right: 0.65rem;
    padding: 0.34rem 0.7rem;
    font-size: 0.82rem;
  }

  .latest-grid.tier2-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-grid.tier2-preview-grid .latest-card img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .latest-briefings {
    display: none;
  }

  #briefs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-tipline {
    padding: 0.85rem;
  }

  .about-tipline-form {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .about-tipline-form textarea {
    min-height: 128px;
  }
}
