/* ================================================================
   AusImmigration Tracker — style.css
   Design: Clean editorial, government-data gravitas with warmth
   Fonts: Fraunces (display) + Sora (body)
   Palette: White base, deep navy, Australian gold accents
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,700;0,900;1,700&family=Sora:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --bg:           #f4f6fb;
  --surface:      #ffffff;
  --surface2:     #f8faff;
  --border:       #e3e8f4;
  --border-soft:  #edf0f8;

  --text:         #111827;
  --text-body:    #374151;
  --muted:        #6b7a99;
  --muted-light:  #9aa3bf;

  --navy:         #0f2051;
  --navy-mid:     #1a3a7a;
  --blue:         #1d4ed8;
  --blue-light:   #3b82f6;
  --sky:          #0ea5e9;

  --gold:         #d97706;
  --gold-light:   #f59e0b;
  --gold-bg:      #fffbeb;
  --gold-border:  #fde68a;

  --green:        #059669;
  --green-bg:     #ecfdf5;
  --green-border: #6ee7b7;

  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fca5a5;

  --teal:         #0891b2;
  --violet:       #7c3aed;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-sm:    0 1px 4px rgba(15,32,81,.06);
  --shadow:       0 2px 16px rgba(15,32,81,.08);
  --shadow-md:    0 4px 24px rgba(15,32,81,.10);
  --shadow-lg:    0 8px 48px rgba(15,32,81,.14);

  --nav-h:        6.4rem;
  --max-w:        100rem;
  --font-display: 'Fraunces', serif;
  --font-body:    'Sora', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .85em;
  background: var(--border-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section  { padding: 3rem 0; }
.section--lg { padding: 4rem 0; }

.text-navy  { color: var(--navy); }
.text-blue  { color: var(--blue); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-muted { color: var(--muted); }

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.5); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-up { animation: fadeUp .5s ease both; }
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .10s; }
.fade-up:nth-child(3) { animation-delay: .15s; }
.fade-up:nth-child(4) { animation-delay: .20s; }
.fade-up:nth-child(5) { animation-delay: .25s; }
.fade-up:nth-child(6) { animation-delay: .30s; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #e8ecf4 25%, #f4f6fb 50%, #e8ecf4 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.nav__brand-flag { font-size: 1.5rem; }
.nav__brand-name { line-height: 1; }
.nav__brand-sub  { font-size: .68rem; font-family: var(--font-body); font-weight: 400; color: var(--muted); display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav__links a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s;
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--bg);
  color: var(--blue);
}

.nav__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.nav__badge-time {
  font-size: .7rem;
  color: var(--green);
  opacity: .8;
  margin-left: 2px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 55%, #1a5da0 100%);
  color: white;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,165,233,.15) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 55.5 50 50zm-40 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S10 55.5 10 50zm40-40c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S50 15.5 50 10zM10 10c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S10 15.5 10 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.hero__eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__desc {
  font-size: 1rem;
  opacity: .82;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-size: .78rem;
  opacity: .7;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.hero__kpi {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: background .2s;
}
.hero__kpi:hover {
  background: rgba(255,255,255,.16);
}
.hero__kpi-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: .2rem;
}
.hero__kpi-label {
  font-size: .75rem;
  opacity: .78;
  line-height: 1.4;
}
.hero__kpi-change {
  font-size: .7rem;
  margin-top: .4rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  opacity: .9;
}
.hero__kpi-change.down { color: #fca5a5; }
.hero__kpi-change.up   { color: #6ee7b7; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head__left {}
.section-head__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .25rem;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.section-head__link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.section-head__link:hover { text-decoration: underline; }

/* ================================================================
   ALERT / BANNER
   ================================================================ */
.alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert--warning { background: var(--gold-bg); border: 1px solid var(--gold-border); color: #92400e; }
.alert--success { background: var(--green-bg); border: 1px solid var(--green-border); color: #065f46; }
.alert--error   { background: var(--red-bg); border: 1px solid var(--red-border); color: #991b1b; }
.alert__icon { flex-shrink: 0; font-size: 1.1rem; margin-top: .05rem; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.card__source {
  font-size: .7rem;
  color: var(--muted-light);
  margin-top: .9rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.card__source a { color: var(--muted); text-decoration: none; }
.card__source a:hover { color: var(--blue); text-decoration: underline; }

/* KPI mini card */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.kpi-card__accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 0 0 0;
}
.kpi-card__icon { font-size: 1.4rem; margin-bottom: .6rem; }
.kpi-card__val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  display: block;
}
.kpi-card__label { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.kpi-card__change {
  margin-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}
.kpi-card__change--up   { background: var(--green-bg); color: var(--green); }
.kpi-card__change--down { background: var(--red-bg);   color: var(--red); }
.kpi-card__change--flat { background: var(--gold-bg);  color: var(--gold); }
.kpi-card__sub { font-size: .74rem; color: var(--muted-light); margin-top: .3rem; }

/* ================================================================
   GRIDS
   ================================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-2--wide { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* ================================================================
   BAR CHART
   ================================================================ */
.bar-chart { display: flex; flex-direction: column; gap: .6rem; }
.bar-row { display: flex; align-items: center; gap: .75rem; }
.bar-row__label {
  font-size: .76rem;
  color: var(--muted);
  width: 58px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 500;
}
.bar-row__track {
  flex: 1;
  background: var(--border-soft);
  border-radius: 6px;
  height: 24px;
  overflow: hidden;
}
.bar-row__fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: .71rem;
  font-weight: 700;
  color: white;
  transition: width .9s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.bar-row__fill--pos { background: linear-gradient(90deg, var(--blue) 0%, var(--sky) 100%); }
.bar-row__fill--neg { background: linear-gradient(90deg, #f97316, #fbbf24); }
.bar-row__fill--zero { background: var(--muted-light); }
.bar-row__aside {
  font-size: .73rem;
  color: var(--muted);
  max-width: 70px;
  flex-shrink: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================================================================
   DONUT CHART
   ================================================================ */
.donut-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut-svg  { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: .55rem; flex: 1; min-width: 140px; }
.donut-legend__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
}
.donut-legend__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-legend__name { font-weight: 500; flex: 1; }
.donut-legend__val  { font-weight: 700; color: var(--navy); }
.donut-legend__pct  { color: var(--muted); font-size: .76rem; }

/* ================================================================
   COUNTRY LIST
   ================================================================ */
.country-list { display: flex; flex-direction: column; }
.country-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.country-item:last-child { border-bottom: none; }
.country-item__rank {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted-light);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.country-item__flag { font-size: 1.3rem; flex-shrink: 0; }
.country-item__name { flex: 1; font-size: .87rem; font-weight: 500; }
.country-item__bar-wrap {
  width: 90px;
  height: 6px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
}
.country-item__bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.country-item__val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  width: 58px;
  text-align: right;
}

/* ================================================================
   DATA TABLE
   ================================================================ */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.data-table th {
  text-align: left;
  padding: .65rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface2); }
.data-table td:first-child { font-weight: 600; color: var(--navy); }
.data-table .num { font-family: var(--font-display); font-weight: 700; color: var(--blue); }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 700;
}
.pill--blue   { background: #eff6ff; color: var(--blue); }
.pill--green  { background: var(--green-bg); color: var(--green); }
.pill--gold   { background: var(--gold-bg); color: var(--gold); }
.pill--teal   { background: #ecfeff; color: var(--teal); }
.pill--violet { background: #f5f3ff; color: var(--violet); }

/* ================================================================
   SOURCE TAGS
   ================================================================ */
.source-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.source-tag:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

/* ================================================================
   SOURCES PAGE
   ================================================================ */
.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.source-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.source-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.source-card__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.badge--official  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge--quarterly { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge--monthly   { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.badge--annual    { background: #f5f3ff; color: var(--violet); border: 1px solid #ddd6fe; }
.badge--open      { background: #ecfeff; color: var(--teal); border: 1px solid #a5f3fc; }
.source-card__desc { font-size: .87rem; color: var(--text-body); margin-bottom: 1rem; line-height: 1.6; }
.source-card__link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.source-card__link:hover { text-decoration: underline; }

/* Code block */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .79rem;
  overflow-x: auto;
  line-height: 1.75;
  margin: .8rem 0;
}
.code-block .cm  { color: #64748b; } /* comment */
.code-block .kw  { color: #7dd3fc; } /* keyword */
.code-block .str { color: #86efac; } /* string */
.code-block .fn  { color: #fbbf24; } /* function */
.code-block .num { color: #f472b6; } /* number */

/* Steps */
.steps { display: flex; flex-direction: column; gap: .75rem; }
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.step__txt { font-size: .88rem; line-height: 1.6; }
.step__txt strong { color: var(--navy); }

/* ================================================================
   VISA TYPES PAGE
   ================================================================ */
.visa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.visa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.visa-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.visa-card__code {
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.visa-card__name { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .3rem; }
.visa-card__desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.cat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.cat-header__icon { font-size: 1.6rem; }
.cat-header__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.cat-block { margin-bottom: 2.5rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 2rem; }

.contact-form { }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-label span { color: var(--red); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted-light); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a99' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-check { display: flex; align-items: flex-start; gap: .6rem; }
.form-check input[type=checkbox] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label { font-size: .83rem; color: var(--text-body); cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, transform .15s, box-shadow .18s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 12px rgba(29,78,216,.25);
}
.btn--primary:hover { background: #1e40af; box-shadow: 0 4px 20px rgba(29,78,216,.35); color: white; }
.btn--secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { background: var(--bg); }
.btn--lg { padding: .9rem 2rem; font-size: .95rem; }
.btn--full { width: 100%; justify-content: center; }
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { opacity: .7; }

.contact-info { }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.contact-info-card__icon { font-size: 1.5rem; margin-bottom: .6rem; }
.contact-info-card__title { font-weight: 700; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.contact-info-card__text  { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.contact-info-card__link  { color: var(--blue); text-decoration: none; font-size: .85rem; font-weight: 500; }
.contact-info-card__link:hover { text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.form-success__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.form-success__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.form-success__text { color: var(--muted); font-size: .9rem; }

/* ================================================================
   LOADING / ERROR STATES
   ================================================================ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  gap: 1rem;
}
.loading-state__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-state__text { font-size: .85rem; }

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  gap: .75rem;
}
.error-state__icon { font-size: 2.5rem; }
.error-state__text { font-size: .85rem; }

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  padding: clamp(2.5rem,5vw,3.5rem) 0;
}
.page-header__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.page-header__breadcrumb {
  font-size: .75rem;
  margin-bottom: .75rem;
  opacity: .7;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.page-header__breadcrumb a { color: white; text-decoration: none; }
.page-header__breadcrumb a:hover { text-decoration: underline; }
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.page-header__desc { opacity: .82; font-size: .95rem; max-width: 580px; line-height: 1.65; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer__tagline { font-size: .82rem; line-height: 1.6; margin-bottom: 1rem; }
.footer__disclaimer {
  font-size: .73rem;
  opacity: .55;
  line-height: 1.6;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}
.footer__col-title {
  color: white;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer__links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .84rem;
  transition: color .18s;
}
.footer__links a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .76rem;
  opacity: .55;
}
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { opacity: 1; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--wide { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__kpis { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: .25rem;
  }
  .nav__hamburger { display: flex; }
  .nav__badge-time { display: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero__kpis { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   UPDATE TICKER
   ================================================================ */
.update-bar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: .76rem;
  padding: 6px 0;
  text-align: center;
}
.update-bar a { color: var(--gold-light); text-decoration: none; }
.update-bar a:hover { text-decoration: underline; }

/* ================================================================
   PRINT
   ================================================================ */
@media print {
  .nav, .footer, .update-bar { display: none; }
  .hero { background: none; color: var(--navy); padding: 1rem 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ================================================================
   GOVERNMENT ERA TIMELINE
   ================================================================ */
.era-section { padding: 3rem 0 2rem; }

.era-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.era-intro__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}
.era-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.era-intro__desc { font-size: .93rem; color: var(--muted); line-height: 1.7; }

/* Timeline track */
.timeline {
  position: relative;
  padding: 0 0 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--border), var(--navy), var(--border));
  transform: translateX(-50%);
}

.era-block {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}

/* Era node on timeline centre */
.era-block__node {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.era-block__dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid white;
  box-shadow: 0 0 0 3px currentColor, var(--shadow-md);
  flex-shrink: 0;
  margin-top: 1rem;
}
.era-block__line {
  flex: 1;
  width: 3px;
  background: currentColor;
  opacity: .25;
  min-height: 20px;
}

/* Era card */
.era-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow .22s, transform .22s;
}
.era-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Left side (even) / Right side (odd) */
.era-block:nth-child(odd)  .era-card { grid-column: 1; margin-right: 2rem; }
.era-block:nth-child(odd)  .era-block__node { grid-column: 2; }
.era-block:nth-child(odd)  .era-spacer { grid-column: 3; }
.era-block:nth-child(even) .era-spacer { grid-column: 1; }
.era-block:nth-child(even) .era-block__node { grid-column: 2; }
.era-block:nth-child(even) .era-card { grid-column: 3; margin-left: 2rem; }

.era-spacer { /* empty grid cell */ }

.era-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.era-card__pm {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.era-card__party {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.party--labor    { background: #fee2e2; color: #991b1b; }
.party--coalition{ background: #dbeafe; color: #1e3a8a; }

.era-card__years {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.era-card__policy {
  font-size: .84rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.era-card__stance {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.stance--open        { background: #ecfdf5; color: #065f46; }
.stance--restrictive { background: #eff6ff; color: #1e40af; }
.stance--mixed       { background: var(--gold-bg); color: #92400e; }
.stance--covid       { background: #f5f3ff; color: #5b21b6; }

/* NOM bar inside era card */
.era-nom { margin-top: .75rem; }
.era-nom__label {
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: .4rem;
  font-weight: 600;
}
.era-nom__years { display: flex; flex-direction: column; gap: .3rem; }
.era-nom__row { display: flex; align-items: center; gap: .6rem; }
.era-nom__yr  { font-size: .7rem; color: var(--muted-light); width: 52px; flex-shrink: 0; }
.era-nom__track {
  flex: 1;
  height: 18px;
  background: var(--border-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.era-nom__fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: .66rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  transition: width 1s ease;
}
.era-nom__fill--pos  { background: linear-gradient(90deg,var(--blue),var(--sky)); }
.era-nom__fill--neg  { background: linear-gradient(90deg,#ef4444,#f97316); }
.era-nom__fill--zero { background: var(--muted-light); }
.era-nom__val { font-size: .7rem; font-weight: 700; color: var(--navy); width: 56px; text-align: right; flex-shrink: 0; }

/* Change badge on era */
.era-card__delta {
  font-size: .8rem;
  font-weight: 700;
  margin-top: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 8px;
  border: 1px solid;
}

/* Year filter tabs */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.year-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.year-tab:hover  { border-color: var(--blue); color: var(--blue); }
.year-tab.active { background: var(--blue); color: white; border-color: var(--blue); }
.year-tab.era-labor     { border-color: #fca5a5; }
.year-tab.era-coalition { border-color: #93c5fd; }
.year-tab.era-labor.active     { background: #dc2626; border-color: #dc2626; }
.year-tab.era-coalition.active { background: #1d4ed8; border-color: #1d4ed8; }

/* Stat highlight when year selected */
.nom-highlight {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  display: none;
}
.nom-highlight.visible { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.nom-highlight__val {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}
.nom-highlight__meta { flex: 1; }
.nom-highlight__yr   { font-size: .8rem; opacity: .7; margin-bottom: .3rem; }
.nom-highlight__pm   { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.nom-highlight__policy { font-size: .85rem; opacity: .8; line-height: 1.5; }
.nom-highlight__change {
  font-size: .85rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.nom-highlight__change.up   { background: rgba(52,211,153,.2); color: #6ee7b7; }
.nom-highlight__change.down { background: rgba(252,165,165,.2); color: #fca5a5; }

@media (max-width: 768px) {
  .timeline::before { left: 24px; }
  .era-block { grid-template-columns: 48px 1fr; }
  .era-block__node { grid-column: 1; }
  .era-block:nth-child(odd) .era-card,
  .era-block:nth-child(even) .era-card { grid-column: 2; margin: 0 0 0 1rem; }
  .era-block:nth-child(even) .era-spacer,
  .era-block:nth-child(odd) .era-spacer { display: none; }
  .era-block__dot { width: 38px; height: 38px; font-size: 1rem; }
}
/* ===============================
   Vertical Chart
================================= */

.vertical-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 10px;
  height: 260px;
}

.vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  flex-shrink: 0;
}

.vbar__track {
  width: 100%;
  height: 160px;
  background: #e9eef7;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.vbar__fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  transition: 0.3s;
}

.bar-pos {
  background: linear-gradient(180deg, #0ea5e9, #1d4ed8);
}

.bar-neg {
  background: linear-gradient(180deg, #fbbf24, #f97316);
}

.vbar__label {
  margin-top: 6px;
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
}

.vbar__value {
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 6px;
}
/* ================================================================
   MONTHLY ARRIVALS CARD
   ================================================================ */
   .section--compact {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  
  .monthly-head-note {
    pointer-events: none;
    color: var(--muted);
  }
  
  .monthly-card__intro {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    max-width: 760px;
  }
  
  .monthly-mini-chart-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  
  .monthly-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-width: max-content;
    width: 100%;
    padding: 8px 4px 4px;
    min-height: 250px;
  }

  /* Centre bars when there are few items (e.g. quarterly NOM card) */
  .monthly-mini-chart--center {
    justify-content: center;
    min-width: unset;
  }
  
  .monthly-mini-chart__item {
    width: 68px;
    flex: 0 0 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .monthly-mini-chart__value {
    font-size: .72rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.15;
    text-align: center;
  }
  
  .monthly-mini-chart__bar-track {
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, #eef3fb 0%, #e3ebf7 100%);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 32, 81, 0.04);
  }
  
  .monthly-mini-chart__bar-fill {
    width: 100%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    transition: height .35s ease;
  }
  
  .monthly-mini-chart__label {
    margin-top: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-body);
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .monthly-mini-chart__item {
      width: 58px;
      flex-basis: 58px;
    }
  
    .monthly-mini-chart__bar-track {
      height: 130px;
    }
  
    .monthly-mini-chart__value {
      font-size: .68rem;
    }
  
    .monthly-mini-chart__label {
      font-size: .74rem;
    }
  }

/* ================================================================
   TRUST / POLISH ENHANCEMENTS
   ================================================================ */
main { padding-bottom: 3rem; }
.section-card { overflow: hidden; }
.grid-3--tight { gap: 1rem; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.4rem 0 1.6rem;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: .76rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.trust-card {
  height: 100%;
  border-radius: var(--radius-lg);
}
.trust-list {
  padding-left: 1rem;
  color: var(--text-body);
  display: grid;
  gap: .65rem;
  font-size: .86rem;
}
.trust-copy,
.chart-note,
.transparency-copy {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.65;
}
.chart-note { margin: -.2rem 0 1rem; }
.transparency-copy { margin-bottom: 1rem; }
.update-bar {
  padding: 0;
}
.update-bar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.update-bar__sep { opacity: .55; }
.hero__inner,
.hero .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.hero__desc {
  max-width: 760px;
}
.hero__kpi {
  min-height: 168px;
}
.card,
.kpi-card,
.hero__kpi,
.era-card,
.source-card,
.visa-card,
.contact-info-card {
  border-color: rgba(15,32,81,.08);
}
.card__source {
  flex-wrap: wrap;
  row-gap: .2rem;
}
.monthly-mini-chart__bar-fill,
.bar-row__fill,
.country-item__bar,
.era-nom__fill,
.vbar__fill {
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
}
.data-table th {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .trust-strip { margin-top: 1rem; }
  .update-bar__inner {
    font-size: .73rem;
    line-height: 1.45;
  }
}
@media (max-width: 480px) {
  .trust-pill {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }
  .hero__kpi {
    min-height: unset;
  }
}

/* ================================================================
   NOM ANNUAL CHART — PARTY COLOURS
   ================================================================ */
.vbar__fill.bar-labor     { background: linear-gradient(to top, #b91c1c, #ef4444); }
.vbar__fill.bar-coalition { background: linear-gradient(to top, #1d4ed8, #60a5fa); }

/* ── Legend swatches (replaces emoji dots) ───────────────── */
.legend-swatch {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
  margin-right: .3rem;
}
.legend-swatch--labor     { background: #dc2626; }
.legend-swatch--coalition { background: #1d4ed8; }

/* ── Current-year NOM quarterly mini bars ───────────────── */
.nom-qtr-bar { background: linear-gradient(to top, #1d4ed8, #60a5fa); }

/* ── vertical-chart wrapper (fixes overflow on the annual NOM chart) ── */
.vertical-chart-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* ================================================================
   HOMEPAGE NEWS + MVP TOOLS
   ================================================================ */
.grid-2--news {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
}

.section-head--compact {
  margin-bottom: 1rem;
}

.mvp-tool-list {
  display: grid;
  gap: .9rem;
}

.mvp-tool-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mvp-tool-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
}

.mvp-tool-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: .3rem;
}

.mvp-tool-card p {
  color: var(--text-body);
  font-size: .92rem;
  margin: 0;
}

.news-panel__intro {
  color: var(--muted);
  margin-bottom: 1rem;
}

.news-feed-list {
  display: grid;
  gap: .9rem;
}

.news-feed-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-feed-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cfd9ef;
}

.news-feed-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}

.news-feed-item__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}

.news-feed-item__date {
  color: var(--muted);
  font-size: .8rem;
}

.news-feed-item__title {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: .45rem;
}

.news-feed-item__title a {
  color: var(--navy);
  text-decoration: none;
}

.news-feed-item__title a:hover {
  color: var(--blue);
}

.news-feed-item__desc {
  font-size: .9rem;
  color: var(--text-body);
  margin: 0;
}

@media (max-width: 980px) {
  .grid-2--news {
    grid-template-columns: 1fr;
  }
}
