/* ============================================================
   MONEY KNOWLEDGE ONLINE — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
  /* Palette */
  --navy:          #04101b;
  --navy-mid:      #060f1a;
  --navy-card:     #091626;
  --navy-deep:     #030c15;
  --gold:          #c89e44;
  --gold-light:    #e2b95a;
  --gold-dim:      rgba(200, 158, 68, 0.15);
  --gold-border:   rgba(200, 158, 68, 0.2);
  --text:          #dde3ed;
  --muted:         #7d8fa8;
  --light:         #f2f5f9;
  --error:         #e07070;
  --success:       #6ec97e;

  /* Tokens */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift:   0 12px 40px rgba(0, 0, 0, 0.45);
  --border:        1px solid rgba(255, 255, 255, 0.06);
  --border-gold:   1px solid var(--gold-border);
  --gap:           80px;
  --ease:          0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(720px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--gap) 0;
  position: relative;
}

.light-bg { background: var(--navy-mid); }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 16, 27, 0.95);
  border-bottom: var(--border-gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.brand-logo.small { width: 28px; height: 28px; }
.brand-text { color: var(--light); }
body[data-page="home"] .brand-text { display: none; }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
  letter-spacing: 0.1px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--light);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
}

/* ============================================================
   Typography
   ============================================================ */

/* Hero eyebrow — centred with decorative side lines */
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
}

/* Section & card eyebrows — left-aligned, no lines */
.section-header .eyebrow,
.chart-head .eyebrow,
.fg-panel .eyebrow {
  justify-content: flex-start;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after,
.chart-head .eyebrow::before,
.chart-head .eyebrow::after,
.fg-panel .eyebrow::before,
.fg-panel .eyebrow::after {
  display: none;
}

h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--light);
  margin: 0 0 16px;
  line-height: 1.18;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--light);
  margin: 0 0 12px;
  line-height: 1.22;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
}

h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--light);
  margin: 0 0 8px;
  line-height: 1.3;
  font-size: 1rem;
  font-weight: 700;
}

.subhead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--navy-card);
  border: var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* ============================================================
   Hero — Landing
   ============================================================ */
.hero { background: var(--navy); }

.hero-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 64px);
  text-align: center;
  padding-bottom: 6vh; /* shifts content slightly above true centre */
}

.hero-stack {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-logo-wrapper {
  position: relative;
  width: min(780px, 88vw);
  max-height: 62vh;
}

.hero-logo { width: 100%; max-height: 62vh; object-fit: contain; display: block; }

.hero-logo-static {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-logo-static.visible { opacity: 1; }

#hero-video { opacity: 1; transition: opacity 0.6s ease; }
#hero-video.hidden { opacity: 0; pointer-events: none; }

.tagline-large {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ============================================================
   Hero — Inner pages
   ============================================================ */
.hero-slim {
  padding: 64px 0 52px;
  border-bottom: 1px solid rgba(200, 158, 68, 0.1);
}

.hero-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
}

/* ============================================================
   Section headers
   ============================================================ */
.section-header {
  margin-bottom: 36px;
}

.section-header h2 { margin-bottom: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 158, 68, 0.3);
}

.btn:active { transform: translateY(0); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #a87e2e 100%);
  color: var(--navy-deep);
  font-weight: 700;
}

/* ============================================================
   Links
   ============================================================ */
.link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.84rem;
  transition: color var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  letter-spacing: 0.1px;
}

.link:hover { color: var(--gold-light); }

/* ============================================================
   Article cards (Newsletter)
   ============================================================ */
.cards-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.article-card:hover {
  border-color: rgba(200, 158, 68, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.article-card h3 { margin: 0; }

.article-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
}

.article-meta {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
}

/* ============================================================
   Video grid & cards
   ============================================================ */
.video-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.video-card:hover {
  border-color: rgba(200, 158, 68, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.thumb-link {
  position: relative;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.thumb-link:hover .video-thumb { transform: scale(1.04); }

.thumb-link .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #fff;
  background: rgba(4, 16, 27, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.thumb-link:hover .play-icon { opacity: 1; }

.video-info { padding: 16px 20px 20px; }

/* ============================================================
   Macro list (Market Update)
   ============================================================ */
.macro-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.macro-card {
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 20px;
}

.macro-card h3 {
  font-size: 0.92rem;
  margin-bottom: 5px;
}

.macro-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Commodity prices grid
   ============================================================ */
.commodity-date-line {
  margin-top: 4px;
  font-size: 0.85rem;
}

.commodity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.commodity-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.commodity-card .c-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.commodity-card .c-ticker {
  font-size: 0.70rem;
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.commodity-card .c-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}

.commodity-card .c-unit {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.commodity-card .c-change {
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
}

.commodity-card .c-change.positive { color: var(--success); }
.commodity-card .c-change.negative { color: var(--error);   }

/* ============================================================
   Labour market stat grid
   ============================================================ */
.labour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.labour-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 20px;
}

.labour-stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin: 0;
}

.labour-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 2px;
}

.labour-stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

/* Shimmer skeleton while data loads */
.commodity-skeleton {
  height: 130px;
  border-radius: var(--radius);
  border: var(--border-gold);
  background: linear-gradient(
    90deg,
    var(--navy-card)               25%,
    rgba(200,158,68,0.06)          50%,
    var(--navy-card)               75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Charts grid
   ============================================================ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.chart-card { padding: 20px 20px 16px; }

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.chart-card h3 { font-size: 0.9rem; margin-bottom: 2px; }
.chart-card canvas { width: 100%; }

/* ============================================================
   TradingView widgets
   ============================================================ */
.tv-widget { margin-top: 8px; }

.tradingview-widget-container {
  width: 100%;
  height: 900px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.tradingview-widget-container__widget { width: 100%; height: 100%; }

/* ============================================================
   Fear & Greed Index
   ============================================================ */
.fg-sentiment-card {
  position: relative;
  background: var(--navy-card);
}

.fg-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.fg-dial { width: min(380px, 100%); margin-left: auto; }

.fg-dial svg { width: 100%; height: auto; display: block; overflow: visible; }

.seg { fill: none; stroke-width: 46; stroke-linecap: butt; }
.seg.extreme-fear  { stroke: #7d2f28; }
.seg.fear          { stroke: #c38778; }
.seg.neutral       { stroke: #f5f0d9; }
.seg.greed         { stroke: #b8c88e; }
.seg.extreme-greed { stroke: #405d3c; }

.dial-mask { fill: var(--navy-card); opacity: 0.88; }

.dial-label {
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: 800;
  fill: rgba(244, 246, 255, 0.65);
}

.needle {
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 120px 170px;
  transition: transform 650ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.hub { fill: var(--gold); }

.fg-score-below {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--light);
  margin-top: 6px;
}

.fg-source {
  position: absolute;
  bottom: 14px;
  left: 20px;
  font-size: 0.65rem;
  color: rgba(200, 158, 68, 0.4);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ============================================================
   Legend
   ============================================================ */
.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legend-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: var(--muted);
  padding: 28px 0 20px;
  border-top: var(--border-gold);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.82rem;
}

.footer-links a { transition: color var(--ease); }
.footer-links a:hover { color: var(--gold); }

.footer-copy { font-size: 0.8rem; }

/* ============================================================
   Forms — shared
   ============================================================ */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 15px;
  width: 100%;
  transition: border-color var(--ease), background var(--ease);
  text-transform: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200, 158, 68, 0.04);
}

input.invalid,
textarea.invalid,
select.invalid { border-color: var(--error); }

input::placeholder,
textarea::placeholder { color: rgba(125, 143, 168, 0.45); }

select option { background: var(--navy-mid); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cta-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cta-form input { flex: 1; min-width: 200px; }

.consent-checks { display: flex; flex-direction: column; gap: 16px; }

.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
}

.field-error {
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 1em;
  text-transform: none;
  letter-spacing: 0;
}

.form-message { font-size: 0.875rem; padding: 6px 0; text-transform: none; letter-spacing: 0; }
.form-message.success { color: var(--success); }
.form-message.error   { color: var(--error); }

.fine-print {
  font-size: 0.72rem;
  color: rgba(125, 143, 168, 0.5);
  line-height: 1.65;
  margin: 4px 0 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ============================================================
   RBA Cash Rate widget
   ============================================================ */
.rba-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
  border-left: 4px solid var(--gold);
}

.rba-stat-block {
  text-align: center;
  min-width: 180px;
  padding-right: 40px;
  border-right: 1px solid var(--gold-border);
}

.rba-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 10px;
}

.rba-value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--light);
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -1px;
  min-height: 1.1em; /* prevent layout shift during JS load */
}

.rba-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.rba-description p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px;
}

.rba-description p:last-child { margin: 0; }

.rba-source {
  font-size: 0.75rem !important;
  color: rgba(125, 143, 168, 0.6) !important;
}

.rba-source a {
  color: var(--gold);
  transition: color var(--ease);
}

.rba-source a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
  .rba-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .rba-stat-block {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: none;
    border-bottom: 1px solid var(--gold-border);
  }
}

/* ============================================================
   Inflation + Next Meeting widget
   ============================================================ */
.infl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.infl-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.infl-eyebrow {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.infl-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.infl-value.above-target  { color: #e05c5c; }
.infl-value.within-target { color: #52b052; }
.infl-value.below-target  { color: var(--gold); }

.infl-date { font-size: 1.35rem; }

.infl-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.infl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.infl-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.infl-badge.above  { background: rgba(224, 92,  92,  0.12); color: #e05c5c; }
.infl-badge.within { background: rgba(82,  176, 82,  0.12); color: #52b052; }
.infl-badge.below  { background: rgba(200, 158, 68,  0.10); color: var(--gold); }
.infl-badge.target { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.infl-badge.days   { background: rgba(200, 158, 68,  0.10); color: var(--gold); }
.infl-badge:empty  { display: none; }

.infl-source {
  font-size: 0.72rem;
  color: rgba(125, 143, 168, 0.55);
  margin-top: auto;
}

/* ============================================================
   Full article layout (Newsletter)
   ============================================================ */
.article-full {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 48px;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gold-border);
}

.article-header .article-meta {
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 14px;
  line-height: 1.2;
}

.article-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.article-body h3 {
  font-size: 1.05rem;
  margin: 32px 0 10px;
  color: var(--light);
}

.article-body h3:first-child { margin-top: 0; }

.article-body p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1.1em;
}

/* Opinion / callout block */
.article-opinion {
  background: rgba(200, 158, 68, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* Data tables */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border-radius: var(--radius-sm);
  border: var(--border-gold);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  background: rgba(200, 158, 68, 0.12);
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.5;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Sources */
.article-sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sources-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold);
  margin-bottom: 12px;
}

.article-sources ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-sources li {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .article-full { padding: 24px 20px; }
  .data-table th, .data-table td { padding: 9px 12px; }
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   Accessibility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root { --gap: 56px; }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 4vw;
    background: var(--navy-card);
    padding: 8px;
    border: var(--border-gold);
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 2px;
    display: none;
    min-width: 180px;
    box-shadow: var(--shadow-card);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }

  .fg-panel { grid-template-columns: 1fr; }
  .macro-list { grid-template-columns: 1fr; }
  .commodity-grid { grid-template-columns: repeat(2, 1fr); }
  .labour-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .cards-list { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
  .commodity-grid { grid-template-columns: 1fr; }
  .labour-grid    { grid-template-columns: 1fr; }
}
