:root {
  --ink: #0f1720;
  --ink-2: #17212c;
  --muted: #64748b;
  --muted-2: #8a97a7;
  --surface: #f4f7fa;
  --surface-2: #eef2f6;
  --white: #ffffff;
  --border: #dbe3eb;
  --border-strong: #cbd5df;
  --accent: #ff6a00;
  --accent-soft: #fff2e8;
  --green: #159447;
  --shadow: 0 16px 40px rgba(15, 23, 32, .06);
  --radius: 20px;
  --radius-sm: 14px;
  --shell: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 11px; background: var(--ink); color: #fff; font-weight: 900; letter-spacing: -.04em; font-size: 15px;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.desktop-nav a { position: relative; color: var(--muted); font-size: 12px; font-weight: 800; padding: 8px 0; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; border-radius: 999px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.search-toggle:hover, .menu-toggle:hover { background: var(--surface); color: var(--ink); }
.search-toggle span { font-size: 12px; margin-left: 4px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dbe8df; background: #f7fcf9; color: #17643a; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.live-pill span, .live-dot, .status-dot { width: 7px; height: 7px; background: var(--green); border-radius: 999px; display: inline-block; }
.menu-toggle { display: none; font-size: 20px; }
.search-panel, .mobile-menu { border-top: 1px solid var(--border); background: var(--white); }
.search-panel-inner { padding: 20px 0 22px; }
.search-form label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 9px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input { min-height: 46px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; outline: none; }
.search-row input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,23,32,.08); }
.search-row button { border: 0; border-radius: 12px; padding: 0 18px; background: var(--ink); color: #fff; font-weight: 800; }
.search-suggestions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; color: var(--muted); }
.search-suggestions span { margin-right: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.search-suggestions a { padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.mobile-menu-grid { padding: 16px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.mobile-menu-grid a, .mobile-menu-grid button { border: 1px solid var(--border); background: var(--white); border-radius: 12px; padding: 13px 14px; text-align: left; color: var(--ink); font-weight: 800; }

/* Hero */
.hero-v2 { background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%); border-bottom: 1px solid var(--border); }
.hero-grid { min-height: 520px; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(320px,.8fr); gap: 64px; align-items: center; padding: 64px 0; }
.hero-topline, .eyebrow, .trust-label { font-size: 11px; line-height: 1; font-weight: 900; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; }
.hero-topline { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.hero-copy-block h1 { margin: 0; font-size: clamp(54px, 7vw, 96px); line-height: .92; letter-spacing: -.065em; max-width: 850px; }
.hero-copy-block h1 em { font-style: normal; color: var(--accent); }
.hero-copy-block p { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button, .outline-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 17px; border-radius: 12px; font-size: 13px; font-weight: 900;
}
.primary-button { background: var(--ink); color: #fff; }
.primary-button:hover { background: var(--ink-2); transform: translateY(-1px); }
.secondary-button, .outline-button { border: 1px solid var(--border-strong); background: var(--white); color: var(--ink); }
.secondary-button:hover, .outline-button:hover { border-color: var(--ink); }
.hero-feature { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.feature-top, .card-kicker, .top-trend-header, .card-footer, .author-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-top, .card-kicker { color: var(--muted); font-size: 11px; }
.stamp { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.stamp-trend { color: var(--accent); background: var(--accent-soft); }
.stamp-xmd { color: #0f1720; background: #eef2f6; }
.stamp-rss { color: #365d8d; background: #edf4fb; }
.stamp-feed { color: #516172; background: #eef2f6; }
.feature-score { margin-top: 30px; display: flex; align-items: baseline; gap: 5px; }
.feature-score strong { font-size: 74px; line-height: .9; letter-spacing: -.07em; }
.feature-score span { font-size: 13px; color: var(--muted); font-weight: 800; }
.hero-feature h2 { margin: 14px 0 7px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.hero-feature p { margin: 0; color: var(--muted); font-size: 13px; }
.score-track { height: 7px; margin-top: 17px; border-radius: 999px; background: #e7ebef; overflow: hidden; }
.score-track span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.hero-feature > a { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 900; }

/* Trust */
.trust-strip { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr) 1.2fr; gap: 0; }
.trust-grid > div { min-height: 102px; padding: 20px 26px; border-left: 1px solid rgba(255,255,255,.09); display: grid; align-content: center; gap: 4px; }
.trust-grid > div:first-child { border-left: 0; }
.trust-grid strong { font-size: 30px; letter-spacing: -.04em; }
.trust-grid small { color: #aeb8c5; font-size: 11px; }
.trust-label { color: #91a0b0; font-size: 9px; }
.trust-status { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: center; gap: 10px !important; }
.trust-status strong { font-size: 14px; }
.trust-status .status-dot { box-shadow: 0 0 0 5px rgba(21,148,71,.1); }

/* Sections */
.section, .search-results-section { padding: 76px 0; }
.section-soft { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.updated-label { color: var(--muted); font-size: 12px; }
.compact-heading { align-items: center; margin-bottom: 20px; }
.text-link { color: var(--muted); font-size: 12px; font-weight: 800; }

/* Trending */
.trending-feature-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 18px; }
.top-trend-card { padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.top-trend-header .status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #17643a; font-weight: 800; }
.status-badge i { width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.top-trend-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 28px; }
.top-trend-main h3 { margin: 0; font-size: 44px; letter-spacing: -.055em; line-height: 1; }
.top-trend-main p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.big-score { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
.big-score strong { font-size: 56px; line-height: .9; letter-spacing: -.06em; }
.big-score span { color: var(--muted); font-size: 11px; font-weight: 800; }
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.source-chips span { border: 1px solid var(--border); background: #fbfcfd; border-radius: 999px; padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.momentum { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 18px; }
.momentum > div:first-child { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.momentum strong { color: var(--ink); }
.card-link { display: inline-block; margin-top: 21px; font-size: 12px; font-weight: 900; }
.trend-rank-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trend-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.trend-row:last-child { border-bottom: 0; }
.trend-row:hover { background: #fbfcfd; }
.trend-rank { color: var(--muted-2); font-size: 11px; font-weight: 800; }
.trend-row-copy { display: grid; gap: 4px; min-width: 0; }
.trend-row-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-row-copy small { color: var(--muted); font-size: 11px; }
.trend-row-score { font-size: 18px; font-weight: 900; }

/* Social */
.social-grid, .news-grid, .trend-story-grid, .search-results-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.social-card, .news-card, .trend-story-card, .search-result-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.social-card, .news-card, .trend-story-card { display: flex; flex-direction: column; }
.social-media, .news-media, .trend-story-media { aspect-ratio: 16 / 9; background: #e9edf2; overflow: hidden; }
.social-media img, .news-media img, .trend-story-media img, .social-media video, .news-media video, .trend-story-media video { width: 100%; height: 100%; object-fit: cover; }
.social-body, .news-body, .trend-story-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.card-kicker { justify-content: flex-start; }
.author-line { justify-content: flex-start; margin-top: 12px; }
.author-line strong { font-size: 13px; }
.author-line span { color: var(--muted-2); font-size: 11px; }
.social-body h3, .news-body h3, .trend-story-body h3, .search-result-card h3 { margin: 12px 0 0; font-size: 18px; line-height: 1.22; letter-spacing: -.025em; }
.social-body p, .news-body p, .trend-story-body p, .search-result-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.card-footer a { color: var(--ink); font-weight: 900; }

/* News */
.news-card.no-media { min-height: 300px; }
.news-card.no-media .news-body { min-height: 280px; }
.news-card.has-media .news-body { min-height: 230px; }
.news-body h3 { font-size: 21px; }
.news-body p { max-width: 42ch; }

/* Search */
.search-results-section { background: var(--surface); border-bottom: 1px solid var(--border); padding-top: 42px; }
.search-result-card { padding: 18px; min-height: 200px; display: flex; flex-direction: column; }
.search-result-card .card-footer { margin-top: auto; }

/* Closing / Footer */
.closing-cta { padding: 60px 0; background: #101820; color: #fff; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.closing-inner .eyebrow { color: #ff9a57; }
.closing-inner h2 { margin: 10px 0 0; font-size: 38px; letter-spacing: -.045em; }
.closing-inner p:not(.eyebrow) { color: #aeb8c5; max-width: 670px; margin: 12px 0 0; line-height: 1.6; }
.site-footer { background: #0b1117; color: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding: 46px 0 34px; }
.footer-brand { color: #fff; }
.footer-brand small { display: block; color: #8592a2; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.footer-top p { color: #8592a2; margin: 15px 0 0; font-size: 12px; }
.footer-links { display: flex; gap: 60px; }
.footer-links div { display: grid; gap: 9px; min-width: 120px; }
.footer-links strong { color: #d9e0e8; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links a { color: #8491a0; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; color: #718091; font-size: 11px; }
.footer-bottom span:last-child { display: inline-flex; align-items: center; gap: 7px; }

.empty-state { border: 1px dashed var(--border-strong); border-radius: var(--radius); background: rgba(255,255,255,.7); padding: 36px 24px; display: grid; place-items: center; gap: 7px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 16px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .desktop-nav { gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-feature { max-width: 520px; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid > div:nth-child(3) { border-left: 0; }
  .trust-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.09); }
  .trending-feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(var(--shell), calc(100% - 28px)); }
  .desktop-nav, .search-toggle span { display: none; }
  .header-inner { min-height: 66px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: inline-block; }
  .live-pill { padding: 6px 8px; font-size: 9px; }
  .search-toggle { display: inline-block; font-size: 20px; line-height: 1; }
  .hero-grid { min-height: 0; padding: 48px 0 42px; }
  .hero-copy-block h1 { font-size: clamp(48px, 16vw, 72px); }
  .hero-copy-block p { font-size: 15px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-feature { padding: 21px; }
  .feature-score strong { font-size: 60px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div { min-height: 94px; padding: 17px 15px; }
  .trust-grid strong { font-size: 25px; }
  .section, .search-results-section { padding: 54px 0; }
  .section-heading, .closing-inner, .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 28px; }
  .social-grid, .news-grid, .trend-story-grid, .search-results-grid { grid-template-columns: 1fr; }
  .top-trend-main { align-items: flex-start; flex-direction: column; gap: 18px; }
  .top-trend-main h3 { font-size: 36px; }
  .big-score { align-self: flex-start; }
  .news-card.no-media, .news-card.no-media .news-body { min-height: 0; }
  .footer-links { gap: 34px; flex-wrap: wrap; }
  .footer-bottom { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* V2.0.1 archive pages */
.archive-hero { padding: 54px 0 30px; background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%); border-bottom: 1px solid var(--border); }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: 12px; font-weight: 800; }
.archive-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.archive-title-row h1 { margin: 8px 0 0; font-size: clamp(38px, 6vw, 64px); line-height: .96; letter-spacing: -.06em; }
.archive-title-row p { margin: 14px 0 0; max-width: 670px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.archive-count { display: grid; justify-items: end; font-size: 44px; line-height: .9; letter-spacing: -.05em; }
.archive-count small { margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.archive-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.archive-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 12px; font-weight: 900; }
.archive-tabs a:hover, .archive-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.archive-section { background: var(--surface); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.archive-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.archive-media { aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf2; }
.archive-media img, .archive-media video { width: 100%; height: 100%; object-fit: cover; }
.archive-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.archive-body h2 { margin: 12px 0 0; font-size: 20px; line-height: 1.22; letter-spacing: -.03em; }
.archive-body p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.archive-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 12px; font-weight: 800; }
.archive-pagination a { color: var(--ink); }
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .archive-title-row { align-items: flex-start; flex-direction: column; } .archive-count { justify-items: start; font-size: 34px; } .archive-grid { grid-template-columns: 1fr; } }

/* Section-level archive actions: user-facing, not technical/API controls. */
.section-more { display: flex; justify-content: center; margin-top: 24px; }
.section-more .outline-button { min-width: 190px; }

/* Theme V2.0.2 — prominent section-level archive actions. */
.section-more {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
  padding: 0 4px;
}
.section-more .outline-button {
  width: min(100%, 360px);
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 8px 22px rgba(15, 23, 32, .08);
}
.section-more .outline-button::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.section-more .outline-button:hover,
.section-more .outline-button:focus-visible {
  border-color: var(--ink-2);
  background: var(--ink-2);
  color: #fff;
  transform: translateY(-1px);
}
.section-more .outline-button:hover::after,
.section-more .outline-button:focus-visible::after {
  transform: translate(2px, 0) rotate(45deg);
}
@media (max-width: 600px) {
  .section-more .outline-button {
    width: 100%;
    min-height: 50px;
  }
}
