/* ===========================================================
   Our Permanent Fund — modern stylesheet (v2)
   Independent, education-first guide to the Alaska Permanent Fund.
   Fonts: Fraunces (display) + Inter (UI/body), loaded via <link>
   with graceful system fallbacks for offline use.
   =========================================================== */

:root {
  /* --- palette --- */
  --navy-900: #071a30;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --ocean-600:#13497e;
  --steel-500:#1d5fa8;
  --sky-100:  #e8f0fb;
  --sky-50:   #f3f8fe;
  --parchment:#faf7f0;   /* warm neutral section bg */
  --paper:    #ffffff;
  --ink-900:  #131c27;   /* body text */
  --ink-700:  #2c3d52;   /* strong secondary text */
  --ink-600:  #46566a;   /* muted text */
  --ink-400:  #74879b;
  --danger:   #c5341f;   /* alerts / negative values */
  --line:     #dde6f1;
  --line-soft:#ebf1f8;

  --gold-500: #e9a900;   /* dividend / accent */
  --gold-400: #f6c333;
  --gold-700: #b07d00;
  --aurora-500:#16b8a6;  /* teal */
  --aurora-400:#34d3c0;
  --aurora-glow: rgba(22,184,166,.45);

  /* --- type --- */
  --font-ui:   "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --font-disp: "Fraunces", Georgia, "Times New Roman", serif;

  /* --- shape --- */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(11,37,69,.06), 0 4px 14px rgba(11,37,69,.07);
  --sh-2: 0 10px 30px rgba(11,37,69,.12);
  --sh-3: 0 24px 60px rgba(11,37,69,.20);

  /* --- layout --- */
  --maxw: 1140px;
  --gut: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--sky-50);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-disp); font-weight: 600; line-height: 1.12; color: var(--navy-800); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem); margin: 0 0 .35em; }
h2 { font-size: clamp(1.55rem, 1rem + 2.4vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; font-weight: 600; }
h4 { font-family: var(--font-ui); font-weight: 700; margin: 0 0 .4em; color: var(--navy-800); }
p  { margin: 0 0 1.15em; }
a  { color: var(--ocean-600); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; color: var(--navy-800); }
em { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 68ch; }

/* ---------- Accessibility ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--gold-500); color: var(--navy-900);
  padding: 12px 18px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--aurora-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Reading progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--aurora-500), var(--gold-500));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 150;
  background: rgba(7,26,48,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { background: rgba(7,26,48,.96); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gut); transition: padding .25s var(--ease); }
.site-header.scrolled .nav { padding-top: 9px; padding-bottom: 9px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; position: relative;
  background: url(logo-icon-app.svg) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 16px var(--aurora-glow);
}
.brand .mark::after { content: none; }
.brand .name { font-family: var(--font-disp); font-size: 1.16rem; line-height: 1; }
.brand small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: .7rem;
  color: var(--aurora-400); letter-spacing: .05em; margin-top: 3px; }

.nav-links { display: flex; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cdd9e8; padding: 9px 13px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s; white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(52,211,192,.18); box-shadow: inset 0 0 0 1px rgba(52,211,192,.4); }
.nav-cta { background: var(--gold-500) !important; color: var(--navy-900) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--gold-400) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 160; }
.nav-toggle .bar { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle .bar + .bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-900); padding: 14px var(--gut) 26px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%); transition: transform .32s var(--ease); box-shadow: var(--sh-3);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: transform .15s var(--ease), box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 22px rgba(233,169,0,.35); }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 12px 28px rgba(233,169,0,.45); }
.btn-solid { background: var(--navy-800); color: #fff; }
.btn-solid:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--sky-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn .arr { transition: transform .15s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero::before { /* aurora glow */
  content:""; position:absolute; inset:-20% -10% auto -10%; height: 80%;
  background: radial-gradient(60% 80% at 20% 0%, rgba(22,184,166,.40), transparent 60%),
              radial-gradient(50% 70% at 90% 10%, rgba(29,95,168,.55), transparent 60%),
              radial-gradient(40% 60% at 70% 100%, rgba(233,169,0,.22), transparent 60%);
  filter: blur(10px); pointer-events: none;
}
.hero::after { /* subtle grid texture */
  content:""; position:absolute; inset:0; opacity:.06; pointer-events:none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 80%);
}
.hero .container { position: relative; z-index: 1; padding: clamp(56px, 8vw, 92px) var(--gut); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: #dde8f4; max-width: 60ch; margin-bottom: 1.8em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui);
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--aurora-400);
  border: 1px solid rgba(52,211,192,.35); background: rgba(52,211,192,.08); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora-400); box-shadow: 0 0 0 4px rgba(52,211,192,.25); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; color: #fff; background: linear-gradient(155deg, var(--navy-900), var(--ocean-600)); overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(40% 80% at 90% 0%, rgba(52,211,192,.28), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; padding: clamp(40px,6vw,64px) var(--gut); }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #d6e3f2; max-width: 64ch; font-size: 1.1rem; margin: 0; }
.crumb { font-size: .82rem; letter-spacing: .03em; color: var(--aurora-400); margin-bottom: 12px; }
.crumb a { color: var(--aurora-400); }

/* ---------- Sections ---------- */
section.block { padding: clamp(46px, 7vw, 80px) 0; }
section.tint { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
section.warm { background: var(--parchment); border-top: 1px solid #efe7d6; border-bottom: 1px solid #efe7d6; }
.section-head { max-width: 66ch; margin-bottom: 36px; }
.section-head .kicker { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aurora-500); margin-bottom: 8px; }
.section-head p { color: var(--ink-600); font-size: 1.1rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px;
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #cdddef; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 600; }
.ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.35rem;
  background: linear-gradient(160deg, var(--sky-100), #fff); border: 1px solid var(--line); }
.card.feature { background: linear-gradient(165deg, var(--navy-800), var(--ocean-600)); color: #fff; border-color: rgba(255,255,255,.14); }
.card.feature h2, .card.feature h3, .card.feature h4 { color: #fff; }
.card.feature p { color: #cfdcec; }
.card.feature a { color: var(--gold-400); }

/* ---------- Split layout (text + sidebar / visual) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Aside (sidebar card) ---------- */
.aside { background: linear-gradient(170deg, var(--sky-100), var(--paper)); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 30px; box-shadow: var(--sh-1); }
.aside h3 { margin-bottom: 14px; }
.aside ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 11px; }
.aside ul li { position: relative; padding-left: 22px; color: var(--ink-600); line-height: 1.55; }
.aside ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--aurora-500); box-shadow: 0 0 0 3px rgba(22,184,166,.18); }
.aside ul li strong { color: var(--navy-800); }
.aside ul li a { font-weight: 600; }

/* ---------- Callout / highlight boxes ---------- */
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--steel-500);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 26px; box-shadow: var(--sh-1); }
.callout h4 { margin-bottom: .4em; font-size: 1.05rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.fact { background: #f0fbf9; border-color: #c4e8df; border-left-color: var(--aurora-500); }
.callout.fact h4 { color: #0f6e60; }
.callout.warn { background: #fff7e4; border-color: #f0deb0; border-left-color: var(--gold-500); }
.callout.warn h4 { color: var(--gold-700); }
.callout.alert { background: #fdeeed; border-color: #f3c9c2; border-left-color: var(--danger); }
.callout.alert h4 { color: #9a2a1c; }

/* ===========================================================
   v3 additions — charts, dashboard, quiz, richer tables,
   5-column footer, inflation explainer components
   =========================================================== */

/* ---------- Chart cards & SVG ---------- */
.chart-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 24px 18px; box-shadow: var(--sh-1);
}
.chart-card h3 { margin-bottom: 4px; }
.chart-card .chart-sub { color: var(--ink-600); font-size: .92rem; margin: 0 0 16px; }
.chart-card figcaption, .chart-cap { color: var(--ink-400); font-size: .8rem; margin-top: 10px; }
.ch-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--ink-400); font-size: 12px; font-family: var(--font-ui); }
.ch-bar { fill: var(--steel-500); transition: fill .2s; }
.ch-bar.hi { fill: var(--gold-500); }
.ch-bar:hover { fill: var(--ocean-600); }
.ch-val { fill: var(--navy-800); font-size: 12px; font-weight: 700; font-family: var(--font-ui); }
.ch-area { fill: rgba(29,95,168,.14); }
.ch-line { fill: none; stroke: var(--steel-500); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--aurora-500); stroke: #fff; stroke-width: 2; }
.ch-hbar { fill: var(--steel-500); }
.ch-hbar.hi { fill: var(--gold-500); }

/* donut */
.ch-donut-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ch-donut { width: 180px; height: 180px; flex: none; }
.ch-donut-num { fill: var(--navy-800); font-size: 26px; font-weight: 800; font-family: var(--font-disp); }
.ch-donut-lab { fill: var(--ink-400); font-size: 11px; font-family: var(--font-ui); letter-spacing: .04em; }
.ch-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 220px; columns: 1; }
.ch-legend li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .95rem; color: var(--ink-600); }
.ch-legend .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ch-legend strong { margin-left: auto; color: var(--navy-800); font-variant-numeric: tabular-nums; }

/* dashboard grid */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2.4vw,26px); }
.dash .span-2 { grid-column: 1 / -1; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } .dash .span-2 { grid-column: auto; } }

/* compact data note */
.data-note { font-size: .82rem; color: var(--ink-400); }
table.data caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy-800); padding: 0 0 10px; font-family: var(--font-disp); }
.table-scroll { max-height: 460px; overflow: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.table-scroll table.data thead th { position: sticky; top: 0; z-index: 1; }

/* highlight row */
table.data tr.row-hi td { background: #fff7e4 !important; }
table.data td.pos { color: #1a7f57; font-weight: 700; }
table.data td.neg { color: var(--danger); font-weight: 700; }

/* ---------- Stat tile variants ---------- */
.stat.alert-tile { background: linear-gradient(165deg,#7c2218,#b33124); }
.stat.alert-tile .num { color: #ffd9d2; }
.stat.good-tile { background: linear-gradient(165deg,#0d5a4a,#13735c); }

/* ---------- Step / flow numbers ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 1.2rem; }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--ink-600); margin: 0; }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; }
.quiz-q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--sh-1); margin-bottom: 18px; }
.quiz-q .qtext { font-family: var(--font-disp); font-weight: 600; font-size: 1.18rem; color: var(--navy-800); margin: 0 0 16px; }
.quiz-q .qnum { color: var(--aurora-500); font-weight: 700; font-family: var(--font-ui); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.quiz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quiz-opts button { width: 100%; text-align: left; padding: 14px 16px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--sky-50); color: var(--ink-900); font-size: 1rem;
  cursor: pointer; font-family: var(--font-ui); transition: border-color .15s, background .15s, transform .1s; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--steel-500); transform: translateY(-1px); }
.quiz-opts button:disabled { cursor: default; opacity: .96; }
.quiz-opts button.correct { border-color: #1a7f57; background: #e7f7ef; color: #0d5a3c; font-weight: 700; }
.quiz-opts button.wrong { border-color: var(--danger); background: #fdeeed; color: #8c241b; }
.quiz-feedback { margin: 14px 0 0; padding: 0; font-size: .95rem; color: var(--ink-600); max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), margin .3s; }
.quiz-feedback.show { max-height: 220px; margin-top: 14px; }
.quiz-result { display: none; text-align: center; background: linear-gradient(165deg,var(--navy-800),var(--ocean-600));
  color: #fff; border-radius: var(--r-md); padding: 34px 26px; box-shadow: var(--sh-2); margin-top: 8px; }
.quiz-result.show { display: block; }
.quiz-result h3 { color: #fff; font-size: 2rem; }
.quiz-result p { color: #d6e3f2; }
.quiz-result .btn-row { margin-top: 18px; }

/* ---------- Pull quote ---------- */
.pullquote { border-left: 5px solid var(--gold-500); padding: 6px 0 6px 22px; margin: 26px 0;
  font-family: var(--font-disp); font-size: 1.35rem; line-height: 1.4; color: var(--navy-800); }
.pullquote cite { display: block; font-family: var(--font-ui); font-size: .9rem; color: var(--ink-400); font-style: normal; margin-top: 8px; }

/* ---------- Mini metric row ---------- */
.metric-row { display: flex; flex-wrap: wrap; gap: 14px; }
.metric { flex: 1 1 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--sh-1); }
.metric .m-num { font-family: var(--font-disp); font-size: 1.7rem; font-weight: 600; color: var(--ocean-600); line-height: 1; }
.metric .m-lab { color: var(--ink-600); font-size: .88rem; margin-top: 6px; }

/* ---------- 5-column footer (override v2) ---------- */
.foot-grid { grid-template-columns: 1.7fr repeat(4, 1fr); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Hero metric chips ---------- */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-chips .chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #e7eef7; padding: 8px 14px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; }
.hero-chips .chip strong { color: var(--gold-400); }

/* ===========================================================
   v4 additions — legislator lookup, action links, letters
   =========================================================== */

/* Lookup panel */
.action-panel { background: linear-gradient(165deg, var(--navy-800), var(--ocean-600)); color: #fff;
  border-radius: var(--r-lg); padding: clamp(24px,4vw,40px); box-shadow: var(--sh-2); }
.action-panel h2, .action-panel h3 { color: #fff; }
.action-panel p { color: #dbe6f3; }
.leg-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.leg-form input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 14px 16px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.10); color: #fff; font-size: 1.05rem; font-family: var(--font-ui); }
.leg-form input::placeholder { color: #adc0d6; }
.leg-form input:focus { outline: none; border-color: var(--aurora-400); background: rgba(255,255,255,.16); }
.leg-result { margin-top: 4px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.leg-result.show { max-height: 520px; margin-top: 18px; }
.lookup-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: 22px; }
.lookup-card p { color: #e7eef7; }
.lookup-zip { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 600; color: var(--gold-400) !important; margin-bottom: 6px; }
.lookup-msg { background: rgba(244,180,0,.14); border: 1px solid rgba(244,180,0,.4); color: #ffe9b8;
  border-radius: 12px; padding: 14px 18px; font-weight: 600; }

/* Official quick links */
.official-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .official-links { grid-template-columns: 1fr; } }
.official-links a { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 13px 16px; color: #fff; font-weight: 600; font-size: .96rem; }
.official-links a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.official-links a .ar { margin-left: auto; color: var(--aurora-400); }

/* Sample letters */
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.letter-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 18px; }
.letter-head { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; background: var(--sky-50); border-bottom: 1px solid var(--line); }
.letter-head h3 { margin: 0; font-size: 1.12rem; }
.letter-body { margin: 0; padding: 22px; white-space: pre-wrap; font-family: var(--font-ui); font-size: .97rem;
  line-height: 1.65; color: var(--ink-900); }
.btn.copied { background: #1a7f57 !important; color: #fff !important; border-color: #1a7f57 !important; }

/* Key votes list */
.votes { display: grid; gap: 12px; }
.vote-item { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--steel-500);
  border-radius: 12px; padding: 16px 20px; box-shadow: var(--sh-1); }
.vote-item h4 { margin: 0 0 4px; }
.vote-item p { margin: 0; color: var(--ink-600); font-size: .95rem; }
.vote-item .yr { color: var(--ink-400); font-weight: 700; font-size: .8rem; letter-spacing: .05em; }

/* ===========================================================
   v5 additions — blog, articles, newsletter signup
   =========================================================== */

/* Post hero meta */
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--ink-400);
  font-size: .9rem; margin-top: 6px; }
.post-meta .tag { display: inline-block; background: var(--sky-100); color: var(--ocean-600);
  border: 1px solid var(--line); padding: 3px 11px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 700; }
.page-hero .post-meta { color: #cfe0f2; }
.page-hero .post-meta .tag { background: rgba(52,211,192,.16); color: #d8f5ef; border-color: rgba(52,211,192,.35); }

/* Blog index list */
.post-list { display: grid; gap: 20px; }
.post-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 28px; box-shadow: var(--sh-1); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); text-decoration: none; border-color: #cdddef; }
.post-card .pdate { color: var(--ink-400); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.45rem; margin: 6px 0 8px; color: var(--navy-800); }
.post-card p { color: var(--ink-600); margin: 0 0 12px; }
.post-card .readmore { color: var(--ocean-600); font-weight: 700; }
.post-card .tag { display: inline-block; background: var(--sky-100); color: var(--ocean-600);
  border: 1px solid var(--line); padding: 3px 11px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; margin-left: 8px; }

/* Article body */
.post-article { max-width: 720px; margin: 0 auto; }
.post-article p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.25em; }
.post-article h2 { margin: 1.4em 0 .5em; font-size: 1.6rem; }
.post-article h3 { margin: 1.2em 0 .4em; }
.post-article ul, .post-article ol { margin: 0 0 1.25em; padding-left: 22px; }
.post-article li { margin-bottom: 8px; }
.post-article blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--aurora-500);
  font-family: var(--font-disp); font-size: 1.25rem; line-height: 1.45; color: var(--navy-800); }
.post-article blockquote cite { display: block; font-family: var(--font-ui); font-size: .85rem; color: var(--ink-400); font-style: normal; margin-top: 8px; }
.post-article .lede { font-size: 1.2rem; color: var(--ink-600); }
.post-byline { color: var(--ink-400); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; }
.post-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 30px; }

/* Newsletter signup */
.subscribe { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--navy-900);
  border-radius: var(--r-lg); padding: clamp(24px,4vw,40px); box-shadow: var(--sh-2); }
.subscribe h2, .subscribe h3 { color: var(--navy-900); }
.subscribe p { color: #4a3a05; }
.subscribe .leg-form input[type="email"], .subscribe .leg-form input[type="text"] {
  background: rgba(255,255,255,.85); border-color: rgba(11,37,69,.18); color: var(--navy-900); }
.subscribe .leg-form input::placeholder { color: #6b5a2a; }
.subscribe .leg-form input:focus { border-color: var(--navy-800); background: #fff; }
.subscribe .btn-solid { background: var(--navy-800); }
.subscribe .small { color: #4a3a05; }
.subscribe a { color: var(--navy-800); text-decoration: underline; }

/* ===========================================================
   v6 additions — about & contact pages
   =========================================================== */
.contact-form { display: grid; gap: 14px; max-width: 560px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; font-family: var(--font-ui); font-size: 1rem; color: var(--ink-900); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--steel-500); background: #fff; }
.contact-form button { justify-self: start; }

.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-methods .card { text-align: center; }
.contact-methods .ico { margin: 0 auto 12px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--sh-1); }
.value .vico { font-size: 1.5rem; flex: none; line-height: 1; margin-top: 2px; }
.value h3 { margin: 0 0 4px; font-size: 1.1rem; }
.value p { margin: 0; color: var(--ink-600); font-size: .96rem; }

.editable-note { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; background: var(--sky-50);
  color: var(--ink-600); font-size: .9rem; }
.editable-note strong { color: var(--navy-800); }

/* ===========================================================
   v7 additions — simulator, calculator, tooltips, flow diagram
   =========================================================== */

/* Range/checkbox accent */
input[type="range"] { accent-color: var(--gold-500); }
input[type="checkbox"] { accent-color: var(--aurora-500); width: 18px; height: 18px; }

/* Fund-future simulator */
.sim { display: grid; grid-template-columns: 300px 1fr; gap: 26px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); }
@media (max-width: 820px) { .sim { grid-template-columns: 1fr; } }
.sim-controls { display: grid; gap: 18px; align-content: start; }
.sim-controls label { display: grid; gap: 6px; font-weight: 600; color: var(--navy-800); font-size: .92rem; }
.sim-controls output { color: var(--ocean-600); font-variant-numeric: tabular-nums; font-weight: 700; }
.sim-controls input[type="range"] { width: 100%; }
.sim-toggle { display: flex !important; flex-direction: row; align-items: center; gap: 10px; padding-top: 4px; }
.sim-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 520px) { .sim-summary { grid-template-columns: 1fr; } }
.sim-stat { background: var(--sky-50); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.sim-stat .sv { display: block; font-family: var(--font-disp); font-size: 1.55rem; font-weight: 600; color: var(--navy-800); }
.sim-stat .sv.pos { color: #1a7f57; } .sim-stat .sv.neg { color: var(--danger); }
.badge-good { color: #1a7f57 !important; } .badge-warn { color: var(--gold-700) !important; } .badge-bad { color: var(--danger) !important; }
.sim-stat .sl { display: block; font-size: .78rem; color: var(--ink-600); margin-top: 4px; }

/* Dividend calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }
.calc-controls { display: grid; gap: 16px; }
.calc-controls label { display: grid; gap: 6px; font-weight: 600; color: var(--navy-800); font-size: .92rem; }
.calc-controls select, .calc-controls input[type="number"] { padding: 11px 14px; border-radius: 10px;
  border: 2px solid var(--line); font-size: 1rem; font-family: var(--font-ui); background: #fff; color: var(--ink-900); }
.calc-controls select:focus, .calc-controls input:focus { outline: none; border-color: var(--steel-500); }
.calc-controls output { color: var(--ocean-600); font-weight: 700; }
.calc-result { text-align: center; background: linear-gradient(165deg, var(--navy-800), var(--ocean-600));
  color: #fff; border-radius: var(--r-md); padding: 32px 20px; }
.calc-big { font-family: var(--font-disp); font-size: clamp(2.4rem, 1.5rem + 3vw, 3.2rem); font-weight: 600; color: var(--gold-400); line-height: 1; }
.calc-sub { color: #cfdcec; margin-top: 8px; font-size: .95rem; }

/* Glossary tooltips */
.gl { border-bottom: 2px dotted var(--aurora-500); cursor: help; position: relative; font-weight: 600; color: inherit; }
.gl:focus-visible { outline: 2px solid var(--aurora-500); outline-offset: 2px; }
.gl-pop { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(5px);
  width: max-content; max-width: 260px; background: var(--navy-800); color: #fff; font-weight: 400; font-size: .85rem;
  line-height: 1.45; padding: 11px 13px; border-radius: 10px; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 90; pointer-events: none; text-align: left; }
.gl:hover .gl-pop, .gl:focus .gl-pop, .gl:focus-within .gl-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.gl-pop::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--navy-800); }

/* Animated money-flow diagram */
.flow-fig { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--sh-1); }
.flow-fig svg { width: 100%; height: auto; display: block; }
.flow-node { fill: var(--sky-100); stroke: var(--line); stroke-width: 1.5; }
.flow-node.principal { fill: #eef4fb; stroke: #cdddef; }
.flow-node.gold { fill: #fff7e4; stroke: #f0deb0; }
.flow-node.teal { fill: #effbf9; stroke: #bfe6dd; }
.flow-title { fill: var(--navy-800); font: 600 15px var(--font-ui); }
.flow-sub { fill: var(--ink-400); font: 500 11px var(--font-ui); }
.flow-pipe { stroke: #cdddef; stroke-width: 3; fill: none; stroke-linecap: round; }
.flow-dot { fill: var(--gold-500); }
@media (prefers-reduced-motion: reduce) { .flow-dot animatemotion { display: none; } }

/* ===========================================================
   v8 additions — inflation-proofing tools (eroder + comparator)
   =========================================================== */
.ch-line2 { fill: none; stroke: var(--danger); stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linejoin: round; }
.ch-dot2 { fill: var(--danger); stroke: #fff; stroke-width: 2; }
.lg-a { fill: var(--steel-500); } .lg-b { fill: var(--danger); }

/* Buying-power eroder */
.erode { display: grid; grid-template-columns: 300px 1fr; gap: 26px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); align-items: center; }
@media (max-width: 760px) { .erode { grid-template-columns: 1fr; } }
.erode-controls { display: grid; gap: 18px; }
.erode-controls label { display: grid; gap: 6px; font-weight: 600; color: var(--navy-800); font-size: .92rem; }
.erode-controls output { color: var(--ocean-600); font-weight: 700; font-variant-numeric: tabular-nums; }
.erode-view { text-align: center; }
.erode-track { height: 26px; background: var(--sky-100); border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--line); }
.erode-fill { height: 100%; width: 100%; border-radius: var(--r-pill); transition: width .4s var(--ease);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.erode-now { font-family: var(--font-disp); font-size: 2.6rem; font-weight: 600; color: var(--navy-800); line-height: 1; margin-top: 14px; }
.erode-sub { color: var(--ink-600); margin-top: 6px; }
.erode-lost { color: var(--danger); font-weight: 600; margin-top: 10px; }

/* Impact comparator reuses .sim layout */
#ipimpact.sim { align-items: start; }
.ip-gap { border-left: 5px solid var(--danger); background: #fdeeed; border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin-top: 18px; color: var(--ink-900); font-size: 1.02rem; }
.ip-gap strong { color: var(--danger); }

/* ===========================================================
   v9 additions — Alaska scenery in hero areas
   =========================================================== */
.hero, .page-hero {
  background-image:
    linear-gradient(150deg, rgba(6,18,34,.86), rgba(11,37,69,.72) 55%, rgba(7,26,48,.88)),
    url("alaska-hero.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: var(--navy-900);
}
/* keep the page-hero's gold underline accent above the imagery */
.page-hero { border-bottom: 3px solid var(--gold-500); }

/* ===========================================================
   v10 additions — consent, privacy note, support/donate, legal
   =========================================================== */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-600); line-height: 1.5; cursor: pointer; }
.consent input[type="checkbox"] { margin-top: 3px; flex: none; }
.privacy-note { background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--aurora-500);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin-top: 14px; font-size: .9rem; color: var(--ink-600); }
.privacy-note strong { color: var(--navy-800); }

.support { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--ocean-600)); color: #fff; border-radius: var(--r-lg);
  padding: clamp(24px,4vw,40px); box-shadow: var(--sh-2); }
@media (max-width: 760px) { .support { grid-template-columns: 1fr; } }
.support h2 { color: #fff; } .support p { color: #dbe6f3; } .support .support-fine { color: #aebfd2; }
.support-actions { display: flex; flex-direction: column; gap: 12px; }
.support-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.support-actions .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.disclaimer a { color: #aebfd2; text-decoration: underline; }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 1.5em; }
.legal h3 { margin-top: 1.3em; }
.legal p, .legal li { color: var(--ink-700, var(--ink-900)); }
.legal .toc { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; }
.legal .toc ul { margin: 8px 0 0; padding-left: 18px; } .legal .toc li { margin-bottom: 5px; color: var(--ink-600); }
.legal .updated { color: var(--ink-400); font-size: .9rem; }

/* ===========================================================
   v11 RESTORE — rules lost to a prior file truncation
   =========================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; } }

.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--sh-1); }
.num { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.7rem); line-height: 1; color: var(--ocean-600); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lab { color: var(--ink-600); font-size: .9rem; margin-top: 8px; line-height: 1.4; }
.stat.alert-tile, .stat.good-tile { border: 0; color: #fff; }
.stat.alert-tile .lab, .stat.good-tile .lab { color: rgba(255,255,255,.85); }
.stat.good-tile .num { color: #b8f0d8; }

.muted { color: var(--ink-600); }
.center { text-align: center; }
.small { font-size: .88rem; }
.lead { font-size: 1.18rem; color: var(--ink-700); line-height: 1.6; margin-bottom: 1em; }
.mb0 { margin-bottom: 0 !important; }

.cta-band { background: linear-gradient(150deg, var(--navy-900), var(--ocean-600)); color: #fff; padding: clamp(48px, 7vw, 80px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(45% 70% at 50% 0%, rgba(52,211,192,.22), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e3f2; max-width: 60ch; margin: 0 auto 22px; }

.site-footer { background: var(--navy-900); color: #aebfd2; padding: clamp(40px, 6vw, 64px) 0 32px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { display: grid; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #9fb1c6; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: #aebfd2; font-size: .95rem; }
.site-footer ul a:hover { color: #fff; }
.disclaimer { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8499b0; line-height: 1.6; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; border: 1px solid rgba(255,255,255,.15); font-size: 1.2rem; cursor: pointer; box-shadow: var(--sh-2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s; z-index: 120; }
.to-top:hover { background: var(--steel-500); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content:""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 40px; }
.timeline li::before { content:""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--aurora-500); box-shadow: 0 0 0 4px rgba(22,184,166,.15); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr { display: inline-block; font-family: var(--font-disp); font-weight: 600; color: var(--gold-700); font-size: 1rem; letter-spacing: .02em; margin-bottom: 2px; }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { color: var(--ink-600); margin: 0; }

.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); margin-bottom: 12px; overflow: hidden; }
.faq .q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 18px 22px; background: none; border: 0; cursor: pointer; font-family: var(--font-disp); font-weight: 600; font-size: 1.1rem; color: var(--navy-800); }
.faq .q:hover { color: var(--ocean-600); }
.faq .chev { flex: none; font-family: var(--font-ui); font-weight: 400; font-size: 1.5rem; color: var(--aurora-500); transition: transform .25s var(--ease); line-height: 1; }
.faq.open .chev { transform: rotate(45deg); }
.faq .a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq.open .a { max-height: 600px; }
.faq .a p { margin: 0; padding: 0 22px 20px; color: var(--ink-600); }

.gloss { margin: 0; }
.gloss dt { font-family: var(--font-disp); font-weight: 600; font-size: 1.12rem; color: var(--navy-800); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.gloss dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.gloss dd { margin: 6px 0 0; color: var(--ink-600); }

.news-item { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--steel-500); border-radius: var(--r-md); padding: 20px 24px; box-shadow: var(--sh-1); margin-bottom: 14px; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.news-item:hover { transform: translateY(-2px); box-shadow: var(--sh-2); text-decoration: none; border-left-color: var(--aurora-500); }
.news-item .src { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.news-item .hl { display: block; font-family: var(--font-disp); font-weight: 600; font-size: 1.18rem; color: var(--navy-800); margin: 4px 0 6px; }
.news-item .dek { margin: 0; color: var(--ink-600); font-size: .96rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-block; background: var(--sky-100); color: var(--ocean-600); border: 1px solid var(--line); padding: 5px 13px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 700; }
.pill.gold { background: #fff7e4; color: var(--gold-700); border-color: #f0deb0; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 12px; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 96px 1fr 42px; gap: 8px; } }
.bar-row .bl { font-size: .9rem; color: var(--ink-700); font-weight: 600; }
.bar-track { height: 14px; background: var(--sky-100); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--steel-500), var(--aurora-500)); transition: width .9s var(--ease); }
.bar-row .bv { text-align: right; font-weight: 700; color: var(--navy-800); font-variant-numeric: tabular-nums; font-size: .92rem; }

.sim-view { align-self: start; }
.sim-view figure { margin: 0; }
.cite { font-size: .7rem; vertical-align: super; line-height: 0; margin-left: 2px; }
.cite a { color: var(--steel-500); font-weight: 700; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.support-text p:last-child { margin-bottom: 0; }
#sources, .sources { font-size: .92rem; color: var(--ink-600); }
#sources li, .sources li { margin-bottom: 8px; }
