/* ═══════════════════════════════════════════════════════
   Gaiergy Corp — Insights article stylesheet
   Tokens mirrored from the site root in ../index.html
   ═══════════════════════════════════════════════════════ */

:root {
  --deep: #0B1D26;
  --ocean: #134B5F;
  --teal: #1A7A6D;
  --teal-light: rgba(26, 122, 109, 0.08);
  --teal-mid: rgba(26, 122, 109, 0.15);
  --warm: #D4A54A;
  --warm-light: rgba(212, 165, 74, 0.12);
  --light: #E8EEF2;
  --mist: #D6DEE4;
  --chalk: #EFF3F6;
  --slate: #3B4F5E;
  --dim: #5F7A8A;
  --border: #C8D4DC;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11,29,38,0.06), 0 1px 2px rgba(11,29,38,0.04);
  --shadow-md: 0 4px 14px rgba(11,29,38,0.08), 0 2px 6px rgba(11,29,38,0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ── */
.topbar {
  background: var(--deep);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar-brand img { height: 34px; width: auto; display: block; }
.topbar-brand span {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}
.topbar a.back {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.topbar a.back:hover { color: var(--warm); }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── Article header ── */
.article-head {
  background: linear-gradient(160deg, var(--deep) 0%, var(--ocean) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--warm); border-radius: 2px; }
.article-head h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.14;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 400;
}
.standfirst {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 700px;
}
.byline {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ── Hero image ── */
figure { margin: 34px 0; }
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
figcaption {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
  margin-top: 10px;
}
.hero-figure { margin: 0 0 8px; }
.hero-figure img { border-radius: 0; border: none; border-bottom: 1px solid var(--border); }
.hero-figure figcaption { max-width: 820px; margin: 10px auto 0; padding: 0 28px; }

/* ── Body ── */
article { padding: 40px 0 20px; }
article h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  line-height: 1.22;
  color: var(--deep);
  margin: 46px 0 16px;
  font-weight: 400;
}
article h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--deep);
  margin: 30px 0 10px;
  letter-spacing: 0.1px;
}
article p { margin-bottom: 18px; font-size: 16.5px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 9px; font-size: 16.5px; }
article a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { opacity: 0.75; }
strong { color: var(--deep); font-weight: 600; }

/* ── Takeaways box ── */
.takeaways {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 26px 30px;
  margin: 0 0 36px;
}
.takeaways h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.takeaways ol { margin: 0 0 0 20px; }
.takeaways li { margin-bottom: 12px; font-size: 16px; }
.takeaways li:last-child { margin-bottom: 0; }

/* ── Callouts ── */
.note {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 15px;
  line-height: 1.7;
}
.note .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.flag {
  background: var(--warm-light);
  border-left: 4px solid var(--warm);
}
.flag .label { color: #9A7420; }

/* ── Tables ── */
.table-scroll { overflow-x: auto; margin: 26px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
caption {
  caption-side: bottom;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  padding-top: 10px;
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: var(--chalk);
  color: var(--deep);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 1px solid var(--border); }

/* ── Chart block ── */
.chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 18px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.chart h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 4px;
}
.chart .sub { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .src { font-size: 12px; color: var(--dim); margin-top: 12px; line-height: 1.6; }

/* ── Sources ── */
.sources {
  background: var(--chalk);
  border-top: 3px solid var(--teal);
  padding: 40px 0 48px;
  margin-top: 50px;
}
.sources h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--deep);
  margin-bottom: 8px;
}
.sources p.intro { font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.sources ol { margin-left: 20px; }
.sources li { font-size: 14px; line-height: 1.7; margin-bottom: 12px; color: var(--slate); }
.sources a { color: var(--teal); word-break: break-word; }

/* ── Footer ── */
.article-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  padding: 34px 0;
  font-size: 13.5px;
}
.article-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.article-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.article-footer a:hover { color: var(--warm); }

@media (max-width: 700px) {
  .article-head { padding: 44px 0 40px; }
  article h2 { font-size: 25px; }
  article p, article li { font-size: 16px; }
  .takeaways { padding: 22px 22px; }
}
