@import url('/brand/editorial-ui.css');

:root {
  color-scheme: light dark;
  --paper: #f6f3ed;
  --surface: #fffdfa;
  --surface-muted: #eeece6;
  --surface-subtle: #f0eee8;
  --ink: #15191f;
  --ink-soft: #2b3139;
  --muted: #626b76;
  --muted-2: #7d8690;
  --line: #d8d6cf;
  --line-strong: #c6c3ba;
  --navy: #0c1d35;
  --blue: #245b91;
  --blue-soft: #e2edf6;
  --red: #cf3e37;
  --red-strong: #a72d29;
  --red-soft: #f7e8e5;
  --green: #287052;
  --amber: #8f6216;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Noto Sans SC", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --max: 1260px;
  --article: 748px;
  --wide: 1130px;
  --header-h: 72px;
}

html[data-theme="dark"] {
  --paper: #0c1117;
  --surface: #121921;
  --surface-muted: #18212b;
  --surface-subtle: #10171e;
  --ink: #eef3f7;
  --ink-soft: #d8e0e7;
  --muted: #a9b4bf;
  --muted-2: #8795a3;
  --line: #28333e;
  --line-strong: #35424f;
  --navy: #dceaf7;
  --blue: #85b7e4;
  --blue-soft: #172c3f;
  --red: #f2766f;
  --red-strong: #ff958f;
  --red-soft: #392021;
  --green: #78caa0;
  --amber: #e7bd76;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --paper: #0c1117;
    --surface: #121921;
    --surface-muted: #18212b;
    --surface-subtle: #10171e;
    --ink: #eef3f7;
    --ink-soft: #d8e0e7;
    --muted: #a9b4bf;
    --muted-2: #8795a3;
    --line: #28333e;
    --line-strong: #35424f;
    --navy: #dceaf7;
    --blue: #85b7e4;
    --blue-soft: #172c3f;
    --red: #f2766f;
    --red-strong: #ff958f;
    --red-soft: #392021;
    --green: #78caa0;
    --amber: #e7bd76;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--blue); }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 78%, white); outline-offset: 3px; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.article-width { width: min(calc(100% - 48px), var(--article)); margin-inline: auto; }
.wide-article { width: min(calc(100% - 48px), var(--wide)); margin-inline: auto; }

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

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.muted, .small, .disclosure { color: var(--muted); }
.small { font-size: .84rem; }
.disclosure { font-size: .74rem; line-height: 1.5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  backdrop-filter: blur(18px) saturate(125%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}

.header-main {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 116px;
  text-decoration: none;
}
.brand-logo { width: 116px; height: auto; }

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
  white-space: nowrap;
}

.desktop-nav a,
.header-action {
  text-decoration: none;
  font-size: .83rem;
  font-weight: 760;
}

.desktop-nav a {
  position: relative;
  padding: 24px 0 22px;
  color: var(--muted);
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 2px;
  background: var(--red);
  transition: right .18s ease;
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 1px; }
.header-action {
  min-width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  cursor: pointer;
}
.header-action:hover { background: var(--surface-muted); color: var(--ink); }
.menu-button { display: none; }

.language-popover {
  position: absolute;
  right: 63px;
  top: 60px;
  width: 220px;
  padding: 15px;
  display: grid;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgb(7 24 39 / 14%);
  border-radius: 5px;
  font-size: .82rem;
}
.language-popover[hidden], .mobile-menu[hidden] { display: none; }

.mobile-menu {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.mobile-menu nav {
  padding: 14px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.mobile-menu a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 780;
}

.icon { width: 18px; height: 18px; position: relative; display: inline-block; }
.icon-search::before { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid; border-radius: 50%; left: 1px; top: 1px; }
.icon-search::after { content: ""; position: absolute; width: 7px; height: 2px; background: currentColor; rotate: 45deg; right: 0; bottom: 2px; }
.icon-menu::before { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; }
.icon-chevron::before { content: ""; position: absolute; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; rotate: 45deg; left: 5px; top: 3px; }
.icon-theme::before { content: ""; position: absolute; inset: 2px; border: 2px solid; border-radius: 50%; }
.icon-theme::after { content: ""; position: absolute; left: 9px; top: 3px; bottom: 3px; width: 6px; background: currentColor; border-radius: 0 9px 9px 0; opacity: .48; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 8vw, 112px) 0 clamp(54px, 6.2vw, 84px);
  border-bottom: 1px solid var(--line);
}
.home-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -250px;
  top: -235px;
  border: 1px solid color-mix(in srgb, var(--blue) 12%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(300px, .73fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: end;
}

.home-hero h1,
.page-hero h1,
.topic-hero h1,
.article-hero h1,
.not-found h1 {
  font-family: var(--font-serif);
  letter-spacing: -.05em;
}
.home-hero h1 {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: clamp(3.15rem, 5.9vw, 5.9rem);
  line-height: .95;
}
.home-hero h1 em { color: var(--red); font-weight: inherit; font-style: italic; }
.hero-intro { padding-bottom: 4px; }
.hero-intro > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 870;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
.button-dark { background: #0c1d35; border-color: #0c1d35; color: #fff; }
.button-dark:hover { background: #102b4c; border-color: #102b4c; color: #fff; }
.text-link { font-size: .84rem; font-weight: 850; text-decoration-thickness: 1px; }

.update-stamp {
  margin: 23px 0 0 !important;
  color: var(--muted-2) !important;
  font-size: .71rem !important;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent); }

.signal-strip { background: #0c1d35; color: #f7f5ef; }
.signal-inner { min-height: 64px; display: flex; align-items: center; gap: 22px; }
.signal-name { white-space: nowrap; font-size: .69rem; font-weight: 900; letter-spacing: .105em; text-transform: uppercase; color: #a8cae8; }
.signal-inner p { margin: 0; font-size: .82rem; opacity: .92; }
.signal-inner a { text-decoration-color: #88afd0; }

.section {
  padding: clamp(64px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-heading h2 {
  margin: 6px 0 0;
  font: 700 clamp(2rem, 3.1vw, 3.2rem)/1 var(--font-serif);
  letter-spacing: -.04em;
}
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.6; }

.trend-list { border-top: 3px solid var(--ink); }
.trend-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 19px;
  padding: 23px 5px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .14s ease;
}
.trend-row:hover { background: color-mix(in srgb, var(--surface) 68%, transparent); color: var(--ink); }
.trend-rank, .trend-facts, .story-foot { color: var(--muted-2); font-size: .69rem; }
.trend-rank { padding-top: 3px; font-weight: 850; letter-spacing: .05em; }
.trend-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trend-title-line strong { font: 700 clamp(1.28rem, 1.7vw, 1.52rem)/1.15 var(--font-serif); letter-spacing: -.025em; }
.trend-main p { max-width: 860px; margin: 7px 0 9px; color: var(--muted); line-height: 1.55; }
.trend-facts { display: flex; gap: 0; flex-wrap: wrap; }
.trend-facts > * + *::before { content: "·"; margin: 0 8px; color: var(--line-strong); }
.trend-direction { align-self: center; font-size: 1.25rem; color: var(--red); }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .065em;
  line-height: 1;
  white-space: nowrap;
}
.status-breaking, .status-hot { color: var(--red); background: var(--red-soft); }
.status-rising, .status-trend { color: var(--blue); background: var(--blue-soft); }
.status-developing { color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, transparent); }
.status-updated { color: var(--green); background: color-mix(in srgb, var(--green) 7%, transparent); }
.status-interest, .status-global { color: var(--navy); background: color-mix(in srgb, var(--navy) 5%, transparent); }

.top-story {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-story-media, .story-media { background: var(--surface-muted); overflow: hidden; }
.top-story-media { min-height: 100%; }
.top-story-media img, .story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.top-story-media:hover img, .story-media:hover img { transform: scale(1.015); }
.top-story-copy { padding: clamp(28px, 4vw, 52px); }
.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.top-story h3 {
  margin: 17px 0 15px;
  font: 700 clamp(2rem, 3vw, 3.3rem)/1.03 var(--font-serif);
  letter-spacing: -.042em;
}
.top-story h3 a, .story-card h3 a, .compact-story h3 a { text-decoration: none; }
.top-dek { color: var(--muted); line-height: 1.62; }
.why-matters { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.why-matters strong { color: var(--red); font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.why-matters p { margin: 5px 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.62; }
.story-foot { margin-top: 17px; display: flex; gap: 12px; flex-wrap: wrap; }

.latest-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr); gap: clamp(38px, 5vw, 58px); }
.compact-stack { border-top: 3px solid var(--ink); }
.compact-story { padding: 22px 0; border-bottom: 1px solid var(--line); }
.compact-story h3 { margin: 9px 0; font: 700 clamp(1.26rem, 1.8vw, 1.48rem)/1.18 var(--font-serif); letter-spacing: -.025em; }
.compact-label { display: block; margin-bottom: 9px; color: var(--red); font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.story-grid, .topic-grid, .entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 34px); }
.story-card { min-width: 0; border-top: 3px solid var(--ink); padding-top: 13px; }
.story-media { display: block; aspect-ratio: 1200/630; margin-bottom: 17px; border: 1px solid var(--line); }
.story-card h3 { margin: 10px 0; font: 700 clamp(1.32rem, 1.9vw, 1.5rem)/1.17 var(--font-serif); letter-spacing: -.027em; }
.story-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.58; }
.story-lead h3 { font-size: clamp(1.5rem, 2.4vw, 1.82rem); }

.topic-card, .entity-card {
  min-height: 248px;
  padding: 23px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.topic-card:hover, .entity-card:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-muted));
  color: var(--ink);
  transform: translateY(-2px);
}
.topic-card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: .67rem; }
.topic-card h3, .entity-card h3 { margin: 26px 0 10px; font: 700 1.55rem/1.08 var(--font-serif); letter-spacing: -.03em; }
.topic-card p, .entity-card p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.topic-link, .entity-card > span:last-child { margin-top: auto; padding-top: 24px; color: var(--ink); font-size: .75rem; font-weight: 850; }

.category-band:nth-of-type(even) { background: color-mix(in srgb, var(--surface-subtle) 62%, transparent); }
.listing-grid .story-lead { grid-column: span 2; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: .77rem; }
  .action-label { display: none; }
  .hero-grid { gap: 42px; }
  .story-grid, .topic-grid, .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .shell, .article-width, .wide-article, .policy { width: min(calc(100% - 36px), var(--max)); }
  .desktop-nav { display: none; }
  .header-main { grid-template-columns: auto 1fr; }
  .menu-button { display: inline-flex; }
  .hero-grid, .top-story, .latest-layout { grid-template-columns: 1fr; }
  .signal-inner { padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 3px; }
  .top-story-media { aspect-ratio: 1200/630; }
  .listing-grid .story-lead { grid-column: span 1; }
}

@media (max-width: 650px) {
  :root { --header-h: 62px; }
  .shell, .article-width, .wide-article, .policy { width: min(calc(100% - 28px), var(--max)); }
  .site-header { backdrop-filter: none; }
  .brand-link, .brand-logo { width: 104px; height: auto; }
  .language-button { display: none; }
  .home-hero { padding-top: 54px; }
  .home-hero h1 { font-size: clamp(2.95rem, 14.4vw, 4.55rem); }
  .section { padding: 58px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 2.25rem; }
  .section-heading > p { font-size: .86rem; }
  .trend-row { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; padding: 18px 0; }
  .trend-title-line strong { font-size: 1.2rem; }
  .trend-main p { font-size: .87rem; }
  .trend-facts { line-height: 1.7; }
  .top-story { background: transparent; }
  .top-story-copy { padding: 24px 0 0; }
  .story-grid, .topic-grid, .entity-grid { grid-template-columns: 1fr; }
  .topic-card, .entity-card { min-height: 220px; }
}

@media (max-width: 360px) {
  .shell, .article-width, .wide-article, .policy { width: min(calc(100% - 22px), var(--max)); }
  .header-action { min-width: 37px; padding-inline: 7px; }
  .brand-link, .brand-logo { width: 98px; }
  .home-hero h1 { font-size: 2.78rem; }
  .trend-row { grid-template-columns: 27px minmax(0, 1fr); }
  .trend-direction { display: none; }
  .mobile-menu nav { grid-template-columns: 1fr; }
}
