/* ═══════════════════════════════════════════════════════════════
   MoloneyStreetRe Analytics — Shared Design System  v1.0
   All pages link to this file. Page-specific styles live inline.
═══════════════════════════════════════════════════════════════ */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --forest:       #1E3F11;
  --forest-dark:  #122A0C;
  --forest-light: #2C5128;
  --navy:         #1F4E79;
  --navy-dark:    #0F2A47;
  --gold:         #D4A85A;
  --gold-dark:    #B5904A;

  --grey-50:   #FBF8EE;
  --grey-100:  #F3F0E5;
  --grey-200:  #E5E7EB;
  --grey-300:  #D1D5DB;
  --grey-400:  #9CA3AF;
  --grey-600:  #4B5563;
  --grey-800:  #1F2937;

  --green:       #2D8659;
  --green-light: #DCFCE7;
  --red:         #B45454;
  --red-light:   #FEE2E2;
  --amber:       #D4A85A;
  --amber-light: #FEF3C7;
  --blue:        #3E7CB1;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-w: 1320px;
  --pad:   36px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.10);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; padding: 0;
  background: var(--grey-50);
  font-family: var(--font);
  color: var(--grey-800);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────── */
header.site {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: white;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
  position: sticky; top: 0; z-index: 500;
}
header.site .header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--pad);
}
header.site .brand {
  display: inline-flex; align-items: center;
  line-height: 0; flex-shrink: 0; text-decoration: none;
}
header.site .brand img {
  height: 44px; width: auto; max-width: 300px; display: block;
}
header.site .brand .text-fallback {
  font-size: 18px; font-weight: 800; color: white; letter-spacing: -0.02em;
}
header.site .header-nav {
  flex: 1; display: flex; align-items: center;
  justify-content: flex-end; gap: 4px;
}

/* ── Primary nav ────────────────────────────────────────────── */
nav.primary {
  display: flex; gap: 1px; align-items: center; flex-wrap: nowrap;
}
nav.primary > a,
nav.primary > .nav-dropdown > a {
  color: rgba(255,255,255,0.80); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 7px 11px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  white-space: nowrap; display: inline-block;
}
nav.primary > a:hover,
nav.primary > .nav-dropdown > a:hover {
  color: white; background: rgba(255,255,255,0.10);
}
nav.primary > a.active,
nav.primary > .nav-dropdown.active > a {
  color: var(--gold); background: rgba(212,168,90,0.15); font-weight: 600;
}

/* dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 600;
  min-width: 200px; padding: 8px 0 6px; /* top padding bridges visual gap without breaking hover zone */
  background: var(--forest-dark);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.js-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 18px; font-size: 13px;
  color: rgba(255,255,255,0.80); transition: color .1s, background .1s;
}
.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.nav-dropdown-menu .menu-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

/* ── Auth area in header ────────────────────────────────────── */
.msre-nav-auth {
  display: flex; align-items: center; gap: 8px;
  margin-left: 12px; flex-shrink: 0;
}
.nav-auth-btn {
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25);
  background: transparent; cursor: pointer; transition: all .15s;
  white-space: nowrap; text-decoration: none; display: inline-block; line-height: 1.4;
}
.nav-auth-btn:hover { color: white; border-color: rgba(255,255,255,0.50); background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-auth-btn.primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.nav-auth-btn.primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* user pill (when logged in) */
.nav-user-pill {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px 4px 4px; border-radius: 999px;
  cursor: pointer; transition: background .15s; user-select: none;
}
.nav-user-pill:hover, .nav-user-pill:focus-within { background: rgba(255,255,255,0.14); }
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.nav-user-name { font-size: 12.5px; font-weight: 600; color: white; }
.nav-tier-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.nav-tier-badge.premium { background: rgba(212,168,90,0.25); color: var(--gold); }
.nav-tier-badge.free    { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.70); }
.nav-tier-badge.admin   { background: rgba(180,84,84,0.30);  color: #f4a8a8; }
.nav-user-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 210px; padding: 6px 0;
  background: var(--forest-dark);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); z-index: 600;
}
.nav-user-pill:hover .nav-user-menu,
.nav-user-pill:focus-within .nav-user-menu { display: block; }
.nav-user-menu-item {
  display: block; padding: 9px 16px; font-size: 13px;
  color: rgba(255,255,255,0.80); cursor: pointer; transition: background .1s;
  text-decoration: none;
}
.nav-user-menu-item:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-user-email { font-size: 11px; color: var(--grey-400) !important; cursor: default !important; }
.nav-user-menu-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.nav-watchlist-badge {
  display: none; background: var(--gold); color: var(--forest-dark);
  border-radius: 999px; padding: 1px 6px; font-size: 10px;
  font-weight: 700; margin-left: 4px; vertical-align: 2px;
}

/* ── Mobile hamburger ───────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
  margin-left: 8px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; background: var(--forest-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 10px 28px;
  color: rgba(255,255,255,0.80); font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); text-decoration: none; }
.mobile-group-label {
  padding: 14px 28px 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400);
}
.mobile-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 0; }
.mobile-auth { display: flex; gap: 10px; padding: 14px 28px 4px; }
.mobile-auth a {
  display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: 600;
  border-radius: var(--r-sm);
}
.mobile-auth a.sign-in { color: white; border: 1px solid rgba(255,255,255,0.28); }
.mobile-auth a.join { background: var(--gold); color: var(--navy-dark); }

/* ── Responsive breakpoints ─────────────────────────────────── */
@media (max-width: 980px) {
  header.site .header-inner { padding: 10px 20px; }
  header.site .brand img { height: 38px; }
  nav.primary, .msre-nav-auth { display: none !important; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  header.site .brand img { height: 32px; max-width: 200px; }
}

/* ── Layout ─────────────────────────────────────────────────── */
main { max-width: var(--max-w); margin: 0 auto; padding: 30px var(--pad) 80px; }
@media (max-width: 800px) { main { padding: 20px 16px 60px; } }

/* ── Section cards ──────────────────────────────────────────── */
section {
  background: white; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 26px 30px; margin-bottom: 22px;
  border: 1px solid var(--grey-200);
}
section h2 {
  margin: 0 0 6px; font-size: 17px; font-weight: 700;
  color: var(--forest-dark); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
section h2::before {
  content: ''; display: inline-block; width: 3px; height: 18px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}
section h2 .badge {
  font-size: 10px; background: var(--grey-100); color: var(--grey-600);
  padding: 2px 8px; border-radius: 4px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
section h3 {
  margin: 18px 0 8px; font-size: 11.5px; font-weight: 700;
  color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.07em;
}
section .hint { font-size: 12.5px; color: var(--grey-600); margin: 2px 0 16px; line-height: 1.5; }
section .section-rule { height: 1px; background: var(--grey-200); margin: 12px 0 18px; }

/* ── KPI cards ──────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.kpi {
  background: white; border-left: 4px solid var(--gold); padding: 16px 18px;
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200); border-left-width: 4px;
}
.kpi .label { font-size: 10.5px; text-transform: uppercase; color: var(--grey-600); letter-spacing: 0.07em; font-weight: 600; }
.kpi .value { font-size: 26px; font-weight: 700; color: var(--forest-dark); margin-top: 5px; line-height: 1.1; }
.kpi .subv  { font-size: 11.5px; color: var(--grey-600); margin-top: 4px; }
.kpi.pos { border-left-color: var(--green); }
.kpi.pos .value { color: var(--green); }
.kpi.neg { border-left-color: var(--red); }
.kpi.neg .value { color: var(--red); }
.kpi.navy { border-left-color: var(--navy); }
.kpi.navy .value { color: var(--navy); }
.kpi.gold { border-left-color: var(--gold); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--grey-200); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: var(--grey-100); text-align: left; padding: 10px 14px;
  font-weight: 600; font-size: 11.5px; color: var(--grey-600);
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--grey-200); position: sticky; top: 0;
  cursor: pointer; user-select: none;
}
thead th:hover { background: var(--grey-200); color: var(--grey-800); }
thead th::after { content: " \2195"; opacity: 0.35; font-size: 10px; }
thead th.no-sort::after { content: ''; }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--grey-100); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(30,63,17,0.025); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ── Pills & flags ──────────────────────────────────────────── */
.flag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600; margin: 0 3px 3px 0;
}
.flag.green  { background: var(--green-light);  color: var(--green); }
.flag.red    { background: var(--red-light);    color: var(--red); }
.flag.amber  { background: var(--amber-light);  color: #8B6914; }
.flag.navy   { background: rgba(31,78,121,0.10); color: var(--navy); }
.flag.grey   { background: var(--grey-100);     color: var(--grey-600); }
.tier-pill, .style-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: white; white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all .15s; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn.primary  { background: var(--gold);    color: var(--navy-dark); }
.btn.primary:hover { background: var(--gold-dark); }
.btn.forest   { background: var(--forest);  color: white; }
.btn.forest:hover { background: var(--forest-dark); }
.btn.navy     { background: var(--navy);    color: white; }
.btn.navy:hover   { background: var(--navy-dark); }
.btn.ghost    { background: transparent; color: var(--grey-800); border-color: var(--grey-300); }
.btn.ghost:hover  { background: var(--grey-100); }
.btn.sm       { padding: 6px 14px; font-size: 12px; }
.btn.lg       { padding: 14px 28px; font-size: 15px; }

/* CTA aliases */
.cta-button { display: inline-block; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; text-decoration: none; transition: all .15s; font-family: var(--font); }
.cta-button.primary  { background: var(--gold); color: var(--navy-dark); }
.cta-button.primary:hover { background: var(--gold-dark); }
.cta-button.ghost    { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.35); }
.cta-button.ghost:hover  { background: rgba(255,255,255,0.08); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-field { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--grey-600);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--grey-300);
  border-radius: var(--r-sm); font-size: 14px; font-family: var(--font);
  color: var(--grey-800); background: white;
  transition: border-color .15s, box-shadow .15s; line-height: 1.4;
}
.form-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,63,17,0.10); }
.form-input.err { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; }
.form-hint  { font-size: 12px; color: var(--grey-400); margin-top: 5px; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center;
  padding: 12px 16px; background: var(--grey-50); border-radius: var(--r-md); border: 1px solid var(--grey-200);
}
.filters label { font-size: 12px; color: var(--grey-600); display: flex; align-items: center; gap: 6px; }
.filters select, .filters input { font-size: 13px; padding: 6px 10px; border: 1px solid var(--grey-300); border-radius: var(--r-sm); background: white; color: var(--grey-800); font-family: var(--font); transition: border-color .15s; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30,63,17,0.08); }

/* ── Grids ───────────────────────────────────────────────────── */
.two-col  { display: grid; grid-template-columns: 1fr 1fr;       gap: 20px; }
.two-col-wide { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.four-col  { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 900px) { .two-col, .two-col-wide, .three-col, .four-col { grid-template-columns: 1fr; } }
@media (min-width:901px) and (max-width:1100px) { .four-col { grid-template-columns: repeat(2,1fr); } }

/* ── Content blocks ─────────────────────────────────────────── */
.insight {
  background: linear-gradient(135deg,#FAFBFC 0%,rgba(31,78,121,0.04) 100%);
  border-left: 4px solid var(--navy); padding: 16px 20px;
  border-radius: var(--r-md); margin: 14px 0;
}
.insight .badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  color: var(--navy); background: rgba(31,78,121,0.10); padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.insight .badge::before { content: "◆"; font-size: 9px; color: var(--gold); }
.insight p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.65; }
.insight p:last-child { margin: 0; }
.ai-block { background: linear-gradient(135deg,#FAFBFC 0%,rgba(31,78,121,0.04) 100%); border-left: 4px solid var(--navy); padding: 18px 22px; border-radius: var(--r-md); margin: 12px 0; }
.ai-block .ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--navy); background: rgba(31,78,121,0.10); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.ai-block .ai-badge::before { content: "◆"; font-size: 9px; color: var(--gold); }
.ai-block p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: var(--grey-800); }
.ai-block p:last-child { margin: 0; }
.ai-block .ai-footer { font-size: 10px; color: var(--grey-400); margin-top: 8px; font-style: italic; }
.ai-block.market-pulse { background: linear-gradient(135deg,white 0%,rgba(201,169,97,0.06) 100%); border-left-color: var(--gold); }
.ai-block.market-pulse .ai-badge { background: rgba(201,169,97,0.15); color: #8B6914; }

.news-item { padding: 9px 0; border-bottom: 1px solid var(--grey-100); font-size: 13px; }
.news-item:last-child { border-bottom: 0; }
.news-meta { color: var(--grey-600); font-size: 11px; margin-top: 2px; }
.symbol-chip { display: inline-block; background: var(--grey-100); padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--navy); margin-right: 4px; }

/* ── Honesty cards ───────────────────────────────────────────── */
.honesty-card { padding: 18px 20px; border-radius: var(--r-md); font-size: 13px; line-height: 1.55; }
.honesty-card.yes { background: var(--green-light); border-left: 4px solid var(--green); }
.honesty-card.no  { background: var(--red-light);   border-left: 4px solid var(--red); }
.honesty-card h4  { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.honesty-card.yes h4 { color: var(--green); }
.honesty-card.no  h4 { color: var(--red); }
.honesty-card ul { margin: 0; padding-left: 18px; }
.honesty-card li { padding: 2px 0; }

/* ── Hero (landing) ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
  color: white; padding: 60px 28px 52px; text-align: center;
  border-radius: var(--r-xl); margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(18,42,12,0.18);
}
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.1; }
.hero .tagline { font-size: 17px; opacity: 0.85; max-width: 600px; margin: 0 auto 28px; line-height: 1.5; }
.hero .proof {
  display: inline-flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,0.08); padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(201,169,97,0.40); margin-bottom: 24px;
  font-size: 13px; flex-wrap: wrap; justify-content: center;
}
.hero .proof .stat { color: var(--gold); font-weight: 700; font-size: 16px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 16px; }
.feature-card { background: white; border-radius: var(--r-md); padding: 22px; border: 1px solid var(--grey-200); transition: all .15s; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-card .icon { width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(31,78,121,0.08); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--navy); margin-bottom: 12px; font-weight: 800; }
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin: 0 0 6px; }
.feature-card p  { font-size: 13px; color: var(--grey-600); margin: 0; line-height: 1.55; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 10px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--grey-200); padding: 14px 0; }
.faq-item summary { font-weight: 600; color: var(--navy-dark); cursor: pointer; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 17px; color: var(--gold); font-weight: 700; }
details[open] .faq-item summary::after { content: "−"; }
.faq-item p { margin: 10px 0 2px; color: var(--grey-600); font-size: 13px; line-height: 1.65; }

/* Step list */
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.step-list li { counter-increment: steps; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--grey-100); }
.step-list li:last-child { border-bottom: none; }
.step-list li::before { content: counter(steps); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.step-list li .body { font-size: 13.5px; line-height: 1.6; }
.step-list li .body strong { color: var(--navy-dark); display: block; margin-bottom: 2px; }

/* ── Section nav (sticky page nav) ─────────────────────────── */
.section-nav { position: sticky; top: 70px; z-index: 100; background: white; padding: 10px 0; margin: 0 -28px 18px; border-bottom: 1px solid var(--grey-200); }
.section-nav .inner { display: flex; gap: 4px; flex-wrap: wrap; max-width: var(--max-w); margin: 0 auto; padding: 0 28px; align-items: center; }
.section-nav a { color: var(--grey-600); padding: 7px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s; }
.section-nav a:hover { color: var(--navy); background: var(--grey-100); }
.section-nav a.active { color: var(--navy); background: rgba(31,78,121,0.08); }
.section-nav .pill-stat { margin-left: auto; font-size: 12px; color: var(--grey-600); }
.section-nav .pill-stat strong { color: var(--navy-dark); }

/* ── Misc ────────────────────────────────────────────────────── */
.metric-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--grey-100); font-size: 13px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row .name { color: var(--grey-600); }
.metric-row .val { font-weight: 600; color: var(--grey-800); font-variant-numeric: tabular-nums; }
.bullets { padding-left: 20px; margin: 6px 0; }
.bullets li { padding: 4px 0; font-size: 13px; }
.star-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--grey-400); padding: 2px 5px; line-height: 1; transition: color .15s, transform .15s; }
.star-btn:hover { color: var(--gold); transform: scale(1.18); }
.star-btn::after { content: '\2606'; }
.star-btn.starred { color: var(--gold); }
.star-btn.starred::after { content: '\2605'; }
.chart-wrap { position: relative; height: 360px; }
.chart-wrap.tall { height: 440px; }
.chart-wrap.short { height: 240px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--grey-600); }
.empty-state h3 { color: var(--navy-dark); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.empty-state p { font-size: 14px; max-width: 520px; margin: 0 auto 18px; line-height: 1.6; }
.two-col-stat { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; }
@media (max-width: 900px) { .two-col-stat { grid-template-columns: 1fr; } }

/* ── Content gating (freemium) ──────────────────────────────── */
.msre-gated { position: relative; overflow: hidden; border-radius: var(--r-md); }
.msre-gated::after {
  content: ''; position: absolute; inset: 50% 0 0 0;
  background: linear-gradient(to bottom, rgba(251,248,238,0) 0%, rgba(251,248,238,0.96) 55%);
  pointer-events: none;
}
.msre-gate-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 10; padding: 20px; pointer-events: all;
}
.msre-gate-inner {
  background: white; border-radius: var(--r-lg); border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-lg); padding: 28px 32px; text-align: center;
  max-width: 340px; width: 100%;
}
.msre-gate-icon { font-size: 30px; margin-bottom: 10px; }
.msre-gate-title { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.msre-gate-text { font-size: 13px; color: var(--grey-600); line-height: 1.55; margin-bottom: 18px; }
.msre-gate-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.msre-gate-btn {
  padding: 9px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  text-decoration: none; color: var(--grey-800); border: 1px solid var(--grey-300);
  background: white; cursor: pointer; display: inline-block; transition: all .15s;
}
.msre-gate-btn:hover { background: var(--grey-100); }
.msre-gate-btn.msre-gate-btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.msre-gate-btn.msre-gate-btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

/* Premium label badge */
.premium-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 10px;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(212,168,90,0.15); color: #8B6914;
  border: 1px solid rgba(212,168,90,0.30);
}
.premium-label::before { content: '⭐'; font-size: 8px; }

/* ── Site footer ─────────────────────────────────────────────── */
footer.site-footer {
  background: var(--forest-dark); color: rgba(255,255,255,0.62);
  margin-top: 60px; padding: 48px 0 32px;
}
footer.site-footer .footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { footer.site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { footer.site-footer .footer-inner { grid-template-columns: 1fr; } }
footer.site-footer .footer-brand img { height: 34px; width: auto; opacity: 0.88; }
footer.site-footer .footer-brand p { font-size: 12px; margin: 12px 0 0; line-height: 1.65; }
footer.site-footer h4 { color: white; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 12px; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 8px; }
footer.site-footer ul li a { font-size: 13px; color: rgba(255,255,255,0.58); transition: color .15s; }
footer.site-footer ul li a:hover { color: var(--gold); text-decoration: none; }
footer.site-footer .footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0;
  padding: 20px var(--pad) 0; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
footer.site-footer .legal { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.65); }
footer.site-footer .footer-links { display: flex; gap: 16px; }
footer.site-footer .footer-links a { font-size: 11px; color: rgba(255,255,255,0.65); }
footer.site-footer .footer-links a:hover { color: var(--gold); }
/* Legacy simple footer */
footer:not(.site-footer) { text-align: center; color: var(--grey-400); font-size: 11px; padding: 22px 0 32px; max-width: 800px; margin: 0 auto; }

/* ── Announcement banner (injected by admin panel via auth.js) ── */
.msre-ann { width: 100%; font-size: 13px; font-weight: 500; z-index: 900; }
.msre-ann-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
}
.msre-ann-info    { background: var(--navy);        color: white; }
.msre-ann-warning { background: var(--amber-light);  color: #8B6914; border-bottom: 1px solid rgba(212,168,90,0.30); }
.msre-ann-success { background: var(--green-light);  color: var(--green); border-bottom: 1px solid rgba(45,134,89,0.20); }
.msre-ann-close {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 20px; line-height: 1; opacity: 0.60; padding: 0 6px;
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
}
.msre-ann-close:hover { opacity: 1; }

/* Admin panel link in nav user menu */
.nav-user-menu-admin { color: #f4a8a8 !important; font-weight: 700 !important; }

/* ── Keyboard focus ring (all interactive non-input elements) ─── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.form-input:focus-visible { outline: none; } /* inputs use border + shadow instead */

/* ── Skip-to-content link ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  padding: 8px 16px; background: var(--gold); color: var(--forest-dark);
  font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }
