:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eef5f4;
  --ink: #101820;
  --muted: #60707a;
  --line: #d9e3e5;
  --teal: #0a6f68;
  --teal-dark: #064c48;
  --mint: #dff4ef;
  --amber: #c9821f;
  --navy: #172338;
  --shadow: 0 24px 80px rgba(21, 38, 48, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(217, 227, 229, 0.82);
  background: rgba(244, 247, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 12px 24px rgba(10, 111, 104, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 760;
}

.header-cta {
  justify-self: end;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 560px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button {
  padding: 0 18px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 32px rgba(10, 111, 104, 0.2);
}

.secondary-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-panel,
.content-shell,
.topic-section,
.editorial-section {
  border: 1px solid rgba(217, 227, 229, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #21a67a;
  box-shadow: 0 0 0 7px rgba(33, 166, 122, 0.14);
}

.signal-card {
  min-height: 250px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 35, 50, 0.95), rgba(10, 111, 104, 0.88)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2), transparent 28%);
}

.signal-card span {
  display: block;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 720;
}

.signal-card strong {
  display: block;
  max-width: 260px;
  font-size: 34px;
  line-height: 1.05;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  font-size: 24px;
}

.stat-grid span {
  color: var(--muted);
  font-size: 12px;
}

.content-shell,
.topic-section,
.editorial-section {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
}

.content-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-wrap svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.topic-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.topic-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 720;
}

.topic-tabs button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 18px;
}

.featured-brief,
.brief-card,
.topic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.featured-brief {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
}

.brief-cover {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(23, 35, 56, 0.96), rgba(10, 111, 104, 0.85)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.featured-body {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.brief-topic {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 800;
}

.featured-body h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.featured-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.brief-list {
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.brief-card {
  padding: 16px;
  text-align: left;
}

.brief-card.selected {
  border-color: rgba(10, 111, 104, 0.62);
  box-shadow: 0 0 0 4px rgba(10, 111, 104, 0.09);
}

.brief-card h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.28;
}

.brief-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.brief-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topic-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) 1fr;
  gap: 28px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  padding: 18px;
}

.topic-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--amber);
  font-weight: 820;
}

.topic-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.topic-card p,
.editorial-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 28px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pipeline div {
  min-height: 118px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 780;
}

.pipeline span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 54px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.empty-state {
  min-height: 260px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

@media (max-width: 1120px) {
  .hero-section,
  .brief-layout,
  .topic-section,
  .editorial-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

  .brief-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow-x: auto;
  }

  .header-cta {
    padding: 0 12px;
  }

  main {
    padding: 18px 12px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 28px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .content-toolbar,
  .brief-list,
  .topic-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
