/* Shared styles for the Insights hub and articles. Tokens and header match guide.html. */
:root {
  --bg:         #F5F6F8;
  --surface:    #FFFFFF;
  --surface2:   #F3F5F7;
  --border:     #D9DEE5;
  --header-bg:  #17212B;
  --focus:      #2563EB;
  --gold:       #DCAA43;                      /* fills only; text on dark header */
  --text:       #17212B;
  --text-mid:   #526071;
  --sans:       'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 600; }  /* IBM Plex Sans is loaded at 400/500/600 only */

/* ── Header (same as guide.html) ────────────────────────────────── */
.topbar {
  background: var(--header-bg);
  border-bottom: 1px solid #6E7E91;
  --focus: #93C5FD;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #D5DCE4;
}
.nav-bar a {
  color: var(--gold);
  text-decoration: none;
}
.nav-bar a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-bar span { color: #D5DCE4; }
.nav-bar .nav-socials { margin-left: auto; }
.nav-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: #6E7E91;
  margin-right: -4px;
}
/* 44px tap area around a 30px circle. The -7px margin keeps the 30px layout footprint. */
.nav-icon-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -7px;
  border-radius: 50%;
  color: #D5DCE4;
  text-decoration: none;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
.nav-icon-pill::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid #6E7E91;
  transition: border-color 0.15s ease;
}
.nav-icon-pill:hover { color: var(--gold); }
.nav-icon-pill:hover::before { border-color: var(--gold); }
.nav-icon-pill:focus-visible { outline: none; }
.nav-icon-pill:focus-visible::before { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) {
  .nav-divider { display: none; }
  .nav-socials { gap: 8px; }
  .nav-icon-pill { margin: -4px; }
  .nav-icon-pill::before { inset: 4px; }
}

/* ── Page ───────────────────────────────────────────────────────── */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.hero {
  margin-bottom: 40px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 620px;
}

/* ── Hub list ───────────────────────────────────────────────────── */
.article-list { list-style: none; }
.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
}
.article-card:hover { border-color: #848E9C; }
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-card-date {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ── Article body ───────────────────────────────────────────────── */
.article { max-width: 720px; }
.article h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.article p,
.article li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.article p + p { margin-top: 14px; }
.article ul { padding-left: 20px; margin-top: 12px; }
.article li + li { margin-top: 8px; }
.article a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chart {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.chart-zoom {
  display: block;
  cursor: zoom-in;
}
.chart-zoom:focus-visible {
  outline: 2px solid var(--text-mid);
  outline-offset: -2px;
}
.chart img {
  display: block;
  width: 100%;
  height: auto;
}
.chart figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
}

/* Seed table scrolls inside its own box on narrow screens */
.table-wrap {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0 0;
}
.seed-table {
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.seed-table th,
.seed-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.seed-table thead th {
  background: var(--surface2);
  font-weight: 500;
  color: var(--text-mid);
}
.seed-table tbody tr:last-child td { border-bottom: 0; }
.article .table-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

@media (max-width: 640px) {
  .page { padding: 32px 16px 64px; }
  .nav-bar { padding-left: 16px; padding-right: 16px; }
}
