:root {
  color-scheme: light;
  --anchor-offset: 124px;
  --ink: #17322f;
  --ink-strong: #0a2522;
  --muted: #687b78;
  --bg: #f3f8f6;
  --panel: #ffffff;
  --panel-soft: #eaf4f0;
  --panel-blue: #edf5f8;
  --line: #d5e2de;
  --line-strong: #b9cfca;
  --lime: #5b8f3e;
  --lime-soft: #dff0ce;
  --aqua: #0b837b;
  --aqua-soft: #d9efeb;
  --coral: #c85d4d;
  --shadow: 0 26px 70px rgba(35, 74, 68, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; }

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .32;
}
.ambient-a { width: 560px; height: 560px; background: #bce9df; right: -260px; top: -220px; }
.ambient-b { width: 460px; height: 460px; background: #c9ddf0; left: -300px; top: 520px; }

.site-header, main, footer { position: relative; z-index: 1; }
.site-header {
  height: 84px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(185, 207, 202, .76);
  background: rgba(249, 252, 251, .86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; letter-spacing: .11em; text-decoration: none; font-size: .88rem; color: var(--ink-strong); }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 24px; height: 24px; }
.brand-mark i { display: block; width: 5px; background: var(--lime); border-radius: 5px; }
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 14px; }
nav { display: flex; gap: 34px; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
nav a:hover { color: var(--aqua); }
.system-pill { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .66); border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: .78rem; }
.system-pill span { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 4px var(--lime-soft); }

main { width: min(1440px, 100%); margin: 0 auto; }
.hero { min-height: 620px; padding: 92px clamp(22px, 7vw, 110px) 74px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 50px; }
.eyebrow { color: var(--aqua); font-size: .73rem; letter-spacing: .18em; font-weight: 800; margin: 0 0 18px; }
.hero h1 { color: var(--ink-strong); font-size: clamp(3.4rem, 7.3vw, 7.4rem); line-height: .9; letter-spacing: -.07em; margin: 0; font-weight: 650; }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--lime); }
.lede { color: var(--muted); max-width: 610px; font-size: clamp(1rem, 1.5vw, 1.25rem); margin-top: 34px; }
.hero-meter { width: min(360px, 76vw); aspect-ratio: 1; border-radius: 50%; position: relative; justify-self: center; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; }
.orbit-one { inset: 4%; animation: spin 20s linear infinite; }
.orbit-two { inset: 20%; border-style: dashed; animation: spin 13s linear reverse infinite; }
.orbit-one::before, .orbit-two::before { content: ""; position: absolute; width: 9px; height: 9px; background: var(--aqua); border: 3px solid #fff; border-radius: 50%; top: 10%; left: 19%; box-shadow: 0 5px 16px rgba(11, 131, 123, .22); }
.meter-core { width: 46%; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-content: center; text-align: center; box-shadow: 0 18px 46px rgba(35, 74, 68, .12), inset 0 0 0 12px var(--panel-soft); }
.meter-core strong { color: var(--lime); font-size: 3.6rem; line-height: 1; }
.meter-core span { color: var(--muted); font-size: .72rem; margin-top: 8px; }
.signal { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); position: absolute; box-shadow: 0 4px 12px rgba(200, 93, 77, .28); }
.signal-a { top: 13%; right: 23%; }.signal-b { bottom: 17%; left: 18%; }.signal-c { right: 3%; bottom: 42%; }
@keyframes spin { to { transform: rotate(360deg); } }

.topic-overview { margin: 0 clamp(14px, 3vw, 42px) 34px; padding: 52px clamp(24px, 5vw, 68px); border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: 0 18px 50px rgba(35, 74, 68, .07); }
.overview-heading { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); gap: 70px; align-items: end; }
.overview-heading .eyebrow { margin-bottom: 10px; }
.overview-heading h2 { margin: 0; color: var(--ink-strong); font-size: clamp(2.2rem, 4.6vw, 4.8rem); line-height: .96; letter-spacing: -.055em; }
.overview-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 1rem; max-width: 520px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border: 1px solid var(--line); }
.overview-stats article { min-height: 150px; padding: 22px; background: var(--panel-blue); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.overview-stats article:last-child { border-right: 0; }
.overview-stats span, .overview-stats small { color: var(--muted); font-size: .76rem; }
.overview-stats strong { margin: auto 0 4px; color: var(--ink-strong); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.topic-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.topic-card { min-height: 132px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfc; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; transition: border-color .2s, background .2s, transform .2s; }
.topic-card:hover { border-color: var(--aqua); background: var(--aqua-soft); transform: translateY(-2px); }
.topic-card span { color: var(--aqua); font-size: .74rem; font-weight: 800; }
.topic-card strong { margin: auto 0 6px; color: var(--ink-strong); font-size: 1.05rem; }
.topic-card small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.board-shell { margin: 0 clamp(14px, 3vw, 42px); border: 1px solid var(--line); background: var(--panel); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.board-header { padding: 28px 32px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--panel-soft); gap: 20px; }
.board-header .eyebrow { margin-bottom: 5px; }
.board-header h2 { margin: 0; color: var(--ink-strong); font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.region-toggle { display: flex; padding: 4px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .58); border-radius: 999px; }
.region-toggle button { border: 0; background: transparent; color: var(--muted); padding: 9px 15px; border-radius: 999px; cursor: pointer; }
.region-toggle button:hover { color: var(--aqua); }
.region-toggle button.active { background: var(--ink-strong); color: #fff; box-shadow: 0 5px 14px rgba(10, 37, 34, .18); }
.category-toolbar { padding: 15px 26px; border-bottom: 1px solid var(--line); background: #f8fbfa; display: flex; align-items: center; gap: 18px; }
.category-toolbar > span { flex: 0 0 auto; color: var(--muted); font-size: .74rem; font-weight: 700; }
.category-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-filter::-webkit-scrollbar { display: none; }
.category-filter button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: .78rem; }
.category-filter button:hover { border-color: var(--aqua); color: var(--aqua); }
.category-filter button.active { background: var(--aqua); border-color: var(--aqua); color: #fff; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 730px; }
.trend-panel { border-right: 1px solid var(--line); background: var(--panel); }
.table-head { display: grid; grid-template-columns: 1fr 120px 120px; padding: 18px 26px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.trend-row { width: 100%; display: grid; grid-template-columns: 1fr 120px 120px; align-items: center; padding: 20px 26px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.trend-row:hover { background: #f6faf8; }
.trend-row.active { background: var(--lime-soft); box-shadow: inset 4px 0 0 var(--lime); }
.query { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 14px; }
.rank { font-family: Georgia, serif; color: var(--muted); font-size: 1.05rem; }
.query strong { display: block; color: var(--ink-strong); font-size: 1rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: capitalize; }
.query small { color: var(--muted); font-size: .72rem; }
.query-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.query-meta em { display: inline-flex; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--aqua); background: var(--panel); font-size: .64rem; font-style: normal; font-weight: 750; white-space: nowrap; }
.traffic { color: var(--lime); font-weight: 800; }
.seen { color: var(--muted); font-size: .8rem; }
.insight-panel { padding: 32px; position: sticky; top: 84px; height: fit-content; background: var(--panel-blue); }
.insight-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.category { color: var(--coral); font-size: .78rem; font-weight: 700; margin-top: 58px; }
.insight-panel h3 { color: var(--ink-strong); font-size: clamp(2.1rem, 3.5vw, 4rem); line-height: .96; letter-spacing: -.055em; text-transform: capitalize; margin: 10px 0 38px; }
.volume-block { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.volume-block span { color: var(--muted); font-size: .8rem; }
.volume-block strong { color: var(--lime); font-size: 1.45rem; }
.source-block { margin: 28px 0; }
.source-block > p { color: var(--muted); font-size: .78rem; }
.news-link { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.news-link strong { display: block; color: var(--ink-strong); font-size: .87rem; line-height: 1.35; }
.news-link small { color: var(--aqua); font-weight: 650; }
.search-link { display: inline-flex; border: 1px solid var(--line-strong); background: var(--panel); padding: 12px 16px; border-radius: 10px; text-decoration: none; font-size: .82rem; }
.search-link:hover { border-color: var(--aqua); color: var(--aqua); }

.article-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scroll-margin-top: 82px; }
.article-hero-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-top: 20px; border-radius: 16px; background: var(--panel); }
.image-credit { margin: 8px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.image-credit a { color: var(--aqua); font-weight: 700; text-underline-offset: 2px; }
.article-panel .category { margin-top: 22px; }
.article-panel h3 { margin: 8px 0 14px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: .96; }
.article-dek { margin: 0 0 24px; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.article-body { display: grid; gap: 10px; }
.article-body section { padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.62); }
.article-body h4 { margin: 0 0 7px; color: var(--ink-strong); font-size: .9rem; }
.article-body p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.article-panel .volume-block { margin-top: 22px; }
.related-block { margin: 28px 0; }
.related-block > p { color: var(--muted); font-size: .78rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.related-card { min-width: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; }
.related-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; flex: 0 0 auto; object-fit: cover; object-position: center; display: block; }
.related-card small { display: block; padding: 7px 9px 0; color: var(--muted); font-size: .56rem; line-height: 1.25; }
.related-card span, .related-card strong { display: block; padding-inline: 9px; }
.related-card span { margin-top: 8px; color: var(--aqua); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.related-card strong { padding-bottom: 10px; font-size: .72rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.compact-loading { padding: 10px 0; }

footer { margin: 90px 42px 0; padding: 24px 0 36px; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; gap: 18px; }

.loading { padding: 36px; color: var(--muted); }
@media (min-width: 901px) {
  .board-grid {
    --trend-row-height: 67px;
    --trend-table-height: 40px;
    min-height: calc(var(--trend-table-height) + 10 * var(--trend-row-height));
  }
  .table-head { min-height: var(--trend-table-height); padding-block: 11px; }
  .trend-row { min-height: var(--trend-row-height); padding-block: 10px; }
  .query { grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
  .article-panel {
    position: relative;
    top: auto;
    align-self: stretch;
    height: 0;
    min-height: 100%;
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-one, .orbit-two { animation: none; }
}
@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-meter { width: 280px; }
  .overview-heading { grid-template-columns: 1fr; gap: 24px; }
  .topic-cards { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: 1fr; min-height: 0; }
  .trend-panel { border-right: 0; }
  .insight-panel { position: static; border-top: 1px solid var(--line); }
  .article-panel { height: auto; min-height: 0; max-height: none; overflow: visible; }
}
@media (max-width: 620px) {
  :root { --anchor-offset: 94px; }
  .site-header { height: 72px; }
  .system-pill { padding: 7px 10px; font-size: .68rem; }
  .hero { min-height: 580px; padding-inline: 22px; }
  .hero h1 { font-size: clamp(2.55rem, 11.5vw, 3.25rem); line-height: .94; }
  .topic-overview { padding: 38px 20px; }
  .overview-stats { grid-template-columns: 1fr; }
  .overview-stats article { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-stats article:last-child { border-bottom: 0; }
  .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .topic-card { min-height: 108px; padding: 13px; border-radius: 11px; }
  .topic-card span { font-size: .66rem; }
  .topic-card strong { font-size: .94rem; line-height: 1.25; }
  .topic-card small { font-size: .7rem; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .board-header { align-items: stretch; flex-direction: column; }
  .region-toggle { align-self: flex-start; }
  .category-toolbar { align-items: flex-start; flex-direction: column; }
  .table-head { display: none; }
  .trend-row { grid-template-columns: 1fr auto; padding: 18px; }
  .trend-row .seen { display: none; }
  .query { grid-template-columns: 32px minmax(0,1fr); }
  .insight-panel { padding: 26px 20px; }
  .article-hero-image { border-radius: 12px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  footer { margin: 70px 22px 0; flex-direction: column; }
}
