/* ============================================================
   Warrior Retirement — Shared Stylesheet
   /css/wr.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --paper: #ffffff;
  --brand: #3a4a78;
  --brand-deep: #2c3a60;
  --brand-soft: #eef0f7;
  --ink: #1a1f2e;
  --ink-soft: #2e3548;
  --body: #1d2230;
  --muted: #5a6173;
  --muted-strong: #3a4154;
  --rule: #e2e4ec;
  --rule-strong: #c8ccda;

  /* Topic palette */
  --topic-fers: #3a5949;
  --topic-tsp: #a17a2a;
  --topic-ss: #5a3d6b;
  --topic-tax: #a8523f;
  --topic-health: #9a5a3c;
  --topic-mil: #3d4548;
  --topic-va: #356b6b;
  --topic-general: #4d5560;

  /* Semantic */
  --success: #3a5949;
  --warning: #a8523f;
  --danger: #6b1414;

  /* Fonts */
  --sans: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.shield { width: 34px; height: 38px; flex-shrink: 0; color: var(--brand); }
.shield svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text .wordmark {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 19px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-text .tagline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1;
  margin-top: 5px;
  font-weight: 500;
}
.menu-btn {
  background: var(--brand);
  color: #ffffff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.menu-btn:hover { background: var(--brand-deep); }
.menu-btn svg { width: 20px; height: 20px; }

/* Desktop inline nav - TOP NAV FONT SIZE FIX HERE */
.inline-nav {
  display: none;
  gap: 28px;
  align-items: center;
  flex-wrap: nowrap;
}
.inline-nav > a, .inline-nav .more-trigger {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;            /* bumped from 14px per feedback */
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}
.inline-nav > a::after, .inline-nav .more-trigger::after {
  content: '';
  position: absolute;
  left: 2px; right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  transition: right 0.25s;
}
.inline-nav > a:hover::after, .inline-nav .more-trigger:hover::after { right: 2px; }

/* More dropdown */
.more-wrap { position: relative; }
.more-trigger { display: inline-flex; align-items: center; gap: 5px; }
.more-trigger .caret {
  font-size: 13px;
  color: var(--muted-strong);
  transition: transform 0.2s;
}
.more-wrap.open .more-trigger .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(10, 23, 48, 0.18);
  min-width: 240px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 60;
}
.more-wrap.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown a .ar {
  color: var(--brand);
  font-family: var(--sans);
  font-size: 16px;
}
.dropdown .divider {
  height: 1px;
  background: var(--rule);
  margin: 6px 4px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.mobile-menu-list { list-style: none; padding: 16px 0; flex: 1; }
.mobile-menu-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.01em;
  transition: background 0.15s;
}
.mobile-menu-list li a:hover { background: var(--brand-soft); }
.mobile-menu-list li a .arrow {
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
}
.mobile-menu-foot {
  padding: 20px 22px;
  background: var(--brand-soft);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 600;
}
.mobile-menu-foot a { color: var(--brand); text-decoration: none; }

/* CHIPS */
.chips {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips-inner {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  white-space: nowrap;
}
.chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 100px;
  background: #ffffff;
  flex-shrink: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* HERO */
.hero-wrap {
  padding: 20px 18px 24px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 100% 0%, rgba(58, 74, 120, 0.06) 0, transparent 70%);
  pointer-events: none;
}
.hero-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--brand);
  padding: 4px 0 4px 18px;
  transition: border-color 0.2s;
  position: relative;
}
.hero-card:hover { border-left-color: var(--brand-deep); }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 100px;
}
.topic-badge.dispatch::before { content: '✦'; font-size: 12px; line-height: 1; }
.topic-badge.fers   { background: var(--topic-fers); }
.topic-badge.tsp    { background: #6b4f1c; }
.topic-badge.ss     { background: var(--topic-ss); }
.topic-badge.tax    { background: #7d3c28; }
.topic-badge.health { background: #6b3c28; }
.topic-badge.mil    { background: var(--topic-mil); }
.topic-badge.va     { background: #2c5757; }

.hero-eyebrow .label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.hero-headline {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.hero-dek {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-byline .dot { width: 3px; height: 3px; background: var(--rule-strong); border-radius: 50%; }
.hero-byline .read { color: var(--brand); }

/* SECTION HEADER */
.section-head { padding: 24px 18px 12px; }
.section-head .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.section-head .lede {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}

/* PILLAR CARDS */
.pillars-grid {
  padding: 4px 18px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pillar-card {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s;
}
.pillar-card:hover {
  border-color: var(--brand);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(58, 74, 120, 0.25);
}
.pillar-card .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.12em;
  background: #ffffff;
  border: 1.5px solid var(--brand);
  padding: 5px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
}
.pillar-card .body { flex: 1; min-width: 0; }
.pillar-card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.pillar-card p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 500;
}
.pillar-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.pillar-card .count { color: var(--ink-soft); }
.pillar-card .arrow {
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pillar-card .arrow .ar { font-family: var(--sans); font-size: 18px; line-height: 1; }

/* SUBSCRIBE BLOCK */
.subscribe {
  background: var(--brand);
  color: #ffffff;
  padding: 36px 18px;
  position: relative;
  overflow: hidden;
}
.subscribe::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.subscribe::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.sub-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.subscribe .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4cf6f;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subscribe .kicker::before {
  content: '✦';
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}
.subscribe h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.subscribe h2 em {
  font-style: italic;
  font-weight: 500;
  color: #f4cf6f;
}
.subscribe p {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: #ffffff;
  margin-bottom: 22px;
  font-weight: 500;
}
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s;
  min-height: 50px;
}
.sub-form input::placeholder { color: rgba(255, 255, 255, 0.72); }
.sub-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}
.sub-form button {
  background: #ffffff;
  color: var(--brand);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 50px;
}
.sub-form button:hover {
  background: #f4cf6f;
  color: var(--ink);
}
.sub-fine {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  color: #ffffff;
  margin-top: 14px;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.92;
}

/* FOOTER */
footer {
  background: var(--ink);
  color: #d8dbe5;
  padding: 36px 18px 20px;
}
.foot-inner { max-width: 1100px; margin: 0 auto; }
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2a3148;
}
.foot-brand .word {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 22px;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.foot-brand .tag {
  font-family: var(--sans);
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 500;
}
.foot-brand .net {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #d8dbe5;
  line-height: 1.7;
  font-weight: 500;
}
.foot-brand .net a { color: #ffffff; text-decoration: none; }
.foot-brand .net a:hover { color: #f4cf6f; }
.foot-col h4 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4cf6f;
  font-weight: 700;
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
.foot-col a:hover { color: #f4cf6f; }
.foot-bottom {
  padding-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  color: #d8dbe5;
  line-height: 1.7;
  font-weight: 500;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-width: 90%;
  text-align: center;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* iPAD */
@media (min-width: 768px) {
  .topbar { padding: 16px 28px; }
  .shield { width: 38px; height: 42px; }
  .brand-text .wordmark { font-size: 22px; }
  .brand-text .tagline { font-size: 14px; }
  .chips-inner { padding: 16px 28px; }
  .hero-wrap { padding: 28px 28px 32px; max-width: 720px; margin: 0 auto; }
  .hero-wrap::before { width: 320px; height: 320px; }
  .hero-headline { font-size: 50px; line-height: 1.02; }
  .hero-dek { font-size: 19px; max-width: 580px; }
  .section-head { padding: 32px 28px 16px; max-width: 720px; margin: 0 auto; }
  .section-head h2 { font-size: 34px; }
  .pillars-grid {
    padding: 4px 28px 28px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
  }
  .pillar-card { padding: 22px; }
  .pillar-card h3 { font-size: 21px; }
  .subscribe { padding: 44px 28px; }
  .subscribe h2 { font-size: 38px; }
  .subscribe p { font-size: 19px; }
  .sub-form { flex-direction: row; gap: 10px; }
  .sub-form input { flex: 1; }
  .sub-form button { white-space: nowrap; padding: 14px 28px; }
  footer { padding: 44px 28px 24px; }
  .foot-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .topbar {
    padding: 16px 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
  }
  .inline-nav { display: flex; justify-content: flex-end; }
  .menu-btn { display: none; }
  .chips { display: none; }
  .hero-wrap, .section-head, .pillars-grid, .sub-inner, .foot-inner { max-width: 1100px; }
  .hero-headline { font-size: 56px; }
  .hero-dek { font-size: 20px; max-width: 680px; }
  .section-head h2 { font-size: 40px; }
  .pillars-grid { gap: 16px; }
  .subscribe h2 { font-size: 42px; }
  .foot-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

/* ============================================================
   CALCULATOR — Tool-specific styles
   Used by /tools/calculator.html
   ============================================================ */

/* TOOL HEADER */
  .tool-header {
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-soft);
  }
  .tool-header h1 {
    font-family: var(--sans);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  /* ASSUMPTIONS PANEL */
  .assumptions {
    margin: 16px 18px 0;
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .assumptions summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--brand);
    font-weight: 700;
  }
  .assumptions summary::-webkit-details-marker { display: none; }
  .assumptions summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 600;
    color: var(--brand);
    line-height: 1;
  }
  .assumptions[open] summary::after { content: '−'; }
  .assumptions-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
  }
  .assumptions-body dl { display: grid; gap: 12px; }
  .assumptions-body dt {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--muted-strong);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .assumptions-body dd {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.55;
  }
  .assumptions-body dd strong { color: var(--ink); font-weight: 700; }

  /* INPUT BLOCK */
  .block {
    margin: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 18px;
  }
  .block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 14px;
  }
  .block-num {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--brand);
    letter-spacing: 0.1em;
    background: var(--brand-soft);
    border: 1px solid var(--brand);
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
  }
  .block-title {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: -0.015em;
  }

  /* FIELDS */
  .field { margin-bottom: 14px; }
  .field:last-child { margin-bottom: 0; }
  .field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .field label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .field .hint {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 500;
  }
  .field input[type="number"],
  .field input[type="text"] {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 17px;
    color: var(--ink);
    font-weight: 500;
    outline: none;
    transition: all 0.15s;
    min-height: 48px;
    font-family: var(--sans);
  }
  .field input[type="number"]:focus,
  .field input[type="text"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(58, 74, 120, 0.12);
  }
  .field select {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 17px;
    color: var(--ink);
    font-weight: 500;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%233a4a78' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    min-height: 48px;
    font-family: var(--sans);
  }

  /* RADIO GROUP */
  .radio-group { display: flex; gap: 8px; }
  .radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .radio-group label {
    flex: 1;
    text-align: center;
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 0;
    background: #ffffff;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .radio-group input[type="radio"]:checked + label {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
  }
  .radio-group label:hover { border-color: var(--brand); }

  /* SLIDER */
  .slider-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
    align-items: center;
  }
  .slider-row input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--rule);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }
  .slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(58, 74, 120, 0.3);
  }
  .slider-row input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(58, 74, 120, 0.3);
  }
  .slider-row .num-input {
    background: var(--brand-soft);
    border: 1.5px solid var(--brand);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 16px;
    color: var(--brand);
    font-weight: 700;
    text-align: center;
    outline: none;
    min-height: 44px;
    width: 100%;
  }

  /* DOLLAR INPUT */
  .dollar-wrap { position: relative; }
  .dollar-wrap::before {
    content: '$';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--muted-strong);
    font-size: 17px;
    pointer-events: none;
    z-index: 1;
  }
  .dollar-wrap input { padding-left: 28px !important; }

  /* ALLOCATION VIZ */
  .alloc-viz {
    display: flex;
    height: 14px;
    border-radius: 100px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--rule);
  }
  .alloc-stocks { background: var(--brand); }
  .alloc-bonds { background: var(--success); }
  .alloc-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .alloc-labels .stocks-label { color: var(--brand); }
  .alloc-labels .bonds-label { color: var(--success); }


  /* UNIT TOGGLE */
  .input-with-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
  }
  .unit-toggle {
    display: inline-flex;
    background: var(--bg-soft);
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    overflow: hidden;
    height: 48px;
  }
  .unit-toggle button {
    background: transparent;
    border: none;
    padding: 0 12px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-strong);
    cursor: pointer;
    letter-spacing: 0.04em;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }
  .unit-toggle button.active {
    background: var(--brand);
    color: #ffffff;
  }
  .unit-toggle button:not(.active):hover {
    color: var(--brand);
  }


  /* COLA CHECKBOX */
  .cola-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-radius: 8px;
  }
  .cola-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
  }
  .cola-row label {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    line-height: 1.3;
  }

  /* COLA FOOTNOTE */
  .cola-footnote {
    margin: 18px 18px 24px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    font-weight: 500;
  }
  .cola-footnote strong { color: var(--ink); font-weight: 700; }

  /* CALC BAR (inline, not sticky) */
  .calc-bar {
    margin: 18px 18px 8px;
    text-align: center;
  }
  .calc-btn {
    background: var(--brand);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    min-width: 200px;
  }
  .calc-btn:hover { background: var(--brand-deep); }
  .calc-btn:active { transform: scale(0.99); }
  .calc-btn:disabled { opacity: 0.7; cursor: wait; }
  .calc-btn .arrow { font-size: 18px; transition: transform 0.2s; }
  .calc-btn:hover .arrow { transform: translateX(3px); }
  .calc-note {
    font-size: 13.5px;
    color: var(--muted-strong);
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
  }

  /* RESULTS */
  .results {
    margin: 24px 18px;
    display: none;
  }
  .results.show { display: block; animation: fadeIn 0.4s; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  .headline-card {
    background: var(--brand);
    color: #ffffff;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .headline-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 180px; height: 180px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
  }
  .headline-card.warn { background: var(--warning); }
  .headline-card.danger { background: var(--danger); }
  .headline-card.good { background: var(--success); }
  .headline-card .label {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
  }
  .headline-card .pct {
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
  }
  .headline-card .desc {
    font-size: 16px;
    color: #ffffff;
    margin-top: 10px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 500;
  }

  .stats-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat-card {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .stat-card .label {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--muted-strong);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .stat-card .val {
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.02em;
  }
  .stat-card .sub {
    font-size: 14px;
    color: var(--muted-strong);
    margin-top: 4px;
    font-weight: 500;
  }

  /* FAN CHART */
  .chart-card {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
  }
  .chart-card h3 {
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.015em;
  }
  .chart-card .desc {
    font-size: 14px;
    color: var(--muted-strong);
    margin-bottom: 14px;
    font-weight: 500;
  }
  .chart-svg {
    width: 100%;
    display: block;
  }
  .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
  }
  .chart-legend .item { display: flex; align-items: center; gap: 6px; }
  .chart-legend .swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

  /* WHAT IF */
  .whatif {
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
  }
  .whatif h3 {
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -0.015em;
  }
  .whatif .desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 14px;
    font-weight: 500;
  }
  .whatif-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .whatif-card {
    background: #ffffff;
    border: 1.5px solid var(--rule-strong);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: var(--sans);
    width: 100%;
  }
  .whatif-card:hover { border-color: var(--brand); }
  .whatif-card .scenario {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 6px;
  }
  .whatif-card .delta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--success);
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .whatif-card .delta.negative { color: var(--warning); }
  .whatif-card.computing { opacity: 0.6; }

  /* CASHFLOW TABLE */
  .table-card {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
  }
  .table-card summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.015em;
  }
  .table-card summary::-webkit-details-marker { display: none; }
  .table-card summary::after {
    content: '+';
    font-size: 22px;
    color: var(--brand);
    font-weight: 600;
  }
  .table-card[open] summary::after { content: '−'; }
  .cashflow-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 8px;
  }
  table.cashflow {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  table.cashflow th {
    background: var(--bg-soft);
    padding: 10px 12px;
    text-align: right;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-strong);
    font-weight: 700;
    border-bottom: 1px solid var(--rule);
    white-space: nowrap;
  }
  table.cashflow th:first-child, table.cashflow td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background: #ffffff;
  }
  table.cashflow th:first-child { background: var(--bg-soft); }
  table.cashflow td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
  }
  table.cashflow tr:last-child td { border-bottom: none; }
  table.cashflow tr.failed td { background: var(--warning-soft); color: var(--warning); }

  /* DISCLAIMER */
  .disclaimer {
    margin: 4px 18px 24px;
    font-size: 14px;
    color: var(--muted-strong);
    text-align: center;
    line-height: 1.55;
    font-weight: 500;
  }

  /* iPad+ */
  @media (min-width: 768px) {
    .tool-header { padding: 22px 28px 18px; }
    .tool-header h1 { font-size: 26px; }
    .assumptions, .block, .results, .disclaimer { margin-left: 28px; margin-right: 28px; }
    .assumptions-body dl { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
    .field-row.two-col { grid-template-columns: 1fr 1fr; gap: 18px; }
    .field-row.three-col { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
    .stats-row { grid-template-columns: 1fr 1fr 1fr; }
    .whatif-grid { grid-template-columns: 1fr 1fr 1fr; }
  }
  @media (min-width: 1024px) {
    .tool-header, .assumptions, .block, .results, .disclaimer {
      max-width: 880px;
      margin-left: auto;
      margin-right: auto;
    }
  }


/* ============================================================
   BREADCRUMB
   Used on all non-homepage pages, sits at top of <main>
   ============================================================ */
.breadcrumb {
  padding: 12px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.4;
}
.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb .sep {
  color: var(--muted-strong);
  font-weight: 400;
  font-size: 14px;
  user-select: none;
}
.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 768px) {
  .breadcrumb { padding: 14px 28px; font-size: 15px; }
}
@media (min-width: 1024px) {
  .breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 32px;
  }
}


/* ============================================================
   ARTICLE STYLES (.wr-article)
   Scoped to article pages — used by /tsp/, /fers-and-csrs/,
   /social-security/, etc. articles
   ============================================================ */
/* ===== WARRIOR RETIREMENT ARTICLE — SCOPED STYLES ===== */
.wr-article {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1a1f2e;
  background: #ffffff;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  -webkit-font-smoothing: antialiased;
}
.wr-article *,
.wr-article *::before,
.wr-article *::after { box-sizing: border-box; }

/* ===== HERO ===== */
.wr-article .wr-hero {
  border-top: 4px solid #a17a2a;
  padding-top: 28px;
  margin-bottom: 40px;
}
.wr-article .wr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.wr-article .wr-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  color: #ffffff;
}
.wr-article .wr-badge-tsp { background: #5e4818; }
.wr-article .wr-badge-general { background: #4d5560; }
.wr-article .wr-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1a1f2e;
  margin: 0 0 18px;
}
.wr-article .wr-dek {
  font-size: 19px;
  line-height: 1.55;
  color: #2e3548;
  font-weight: 400;
  margin: 0 0 24px;
}
.wr-article .wr-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #3f4659;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 16px;
  border-top: 1px solid #e2e4ec;
}
.wr-article .wr-byline-dot { color: #5e4818; }

/* ===== QUICK STATS ===== */
.wr-article .wr-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e2e4ec;
  border: 1px solid #e2e4ec;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 40px;
}
.wr-article .wr-stat {
  background: #ffffff;
  padding: 20px 22px;
}
.wr-article .wr-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1a1f2e;
  margin-bottom: 6px;
}
.wr-article .wr-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #2e3548;
  line-height: 1.4;
  margin-bottom: 8px;
}
.wr-article .wr-stat-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #3f4659;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== TOC ===== */
.wr-article .wr-toc {
  background: #eef0f7;
  border-left: 3px solid #3a4a78;
  padding: 22px 24px;
  margin: 0 0 48px;
  border-radius: 0 6px 6px 0;
}
.wr-article .wr-toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a4a78;
  margin-bottom: 14px;
}
.wr-article .wr-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.wr-article .wr-toc li {
  counter-increment: toc;
  padding: 7px 0;
  border-bottom: 1px solid #d8dce7;
}
.wr-article .wr-toc li:last-child { border-bottom: 0; }
.wr-article .wr-toc li::before {
  content: counter(toc, decimal-leading-zero) ".";
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #5e4818;
  margin-right: 10px;
  font-size: 13px;
}
.wr-article .wr-toc a {
  color: #1a1f2e;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.wr-article .wr-toc a:hover { color: #3a4a78; }

/* ===== BODY ===== */
.wr-article h2 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #1a1f2e;
  margin: 56px 0 18px;
  padding-top: 24px;
  border-top: 1px solid #e2e4ec;
}
.wr-article h2 .wr-h2-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #5e4818;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.wr-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1f2e;
  margin: 32px 0 12px;
}
.wr-article p {
  margin: 0 0 18px;
  color: #1a1f2e;
}
.wr-article a {
  color: #3a4a78;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wr-article a:hover { color: #1a1f2e; }
.wr-article .wr-ext::after {
  content: " ↗";
  font-size: 13px;
  color: #3a4a78;
}
.wr-article em { color: #3a4a78; font-style: italic; font-weight: 600; }
.wr-article cite { color: #1a1f2e; font-style: italic; font-weight: 500; }
.wr-article strong { font-weight: 700; color: #1a1f2e; }

/* ===== CALLOUT ===== */
.wr-article .wr-callout {
  border-left: 4px solid #a17a2a;
  background: #faf6ec;
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.wr-article .wr-callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e4818;
  margin-bottom: 8px;
}
.wr-article .wr-callout p { margin: 0 0 10px; font-size: 16px; }
.wr-article .wr-callout p:last-child { margin-bottom: 0; }
.wr-article .wr-callout--slate { border-color: #4d5560; background: #f3f4f6; }
.wr-article .wr-callout--slate .wr-callout-label { color: #4d5560; }

/* ===== PULL QUOTE ===== */
.wr-article .wr-pull {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #1a1f2e;
  border-left: 4px solid #3a4a78;
  padding: 8px 0 8px 22px;
  margin: 36px 0;
}
.wr-article .wr-pull em { color: #3a4a78; font-weight: 700; }

/* ===== TABLE ===== */
.wr-article .wr-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid #e2e4ec;
  border-radius: 6px;
}
.wr-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.wr-article thead th {
  background: #1a1f2e;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: left;
}
.wr-article tbody td {
  padding: 12px 14px;
  border-top: 1px solid #e2e4ec;
  vertical-align: middle;
}
.wr-article tbody tr:nth-child(even) { background: #f7f8fb; }
.wr-article .wr-row-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  color: #ffffff;
  text-transform: uppercase;
}
.wr-article .wr-row-badge--tsp { background: #5e4818; }
.wr-article .wr-row-badge--general { background: #4d5560; }
.wr-article .wr-row-badge--ahead { background: #3a5949; }
.wr-article .wr-row-badge--behind { background: #a8523f; }

/* ===== CHART ===== */
.wr-article .wr-chart {
  background: #ffffff;
  border: 1px solid #e2e4ec;
  border-radius: 6px;
  padding: 22px 20px 18px;
  margin: 28px 0;
}
.wr-article .wr-chart-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1f2e;
  margin: 0 0 4px;
}
.wr-article .wr-chart-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: #3f4659;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}
.wr-article .wr-chart-canvas { position: relative; height: 320px; }
.wr-article .wr-chart-note {
  font-size: 13px;
  color: #3f4659;
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

/* ===== WIDGET ===== */
.wr-article .wr-widget {
  background: #ffffff;
  border: 2px solid #1a1f2e;
  border-radius: 6px;
  padding: 24px 22px;
  margin: 32px 0;
}
.wr-article .wr-widget-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e4818;
  margin-bottom: 8px;
}
.wr-article .wr-widget h3 { margin: 0 0 16px; font-size: 22px; }
.wr-article .wr-widget label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1f2e;
  margin-bottom: 6px;
}
.wr-article .wr-widget input[type="number"],
.wr-article .wr-widget select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a1f2e;
  background: #ffffff;
  border: 1.5px solid #5a6173;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 18px;
  min-height: 48px;
}
.wr-article .wr-widget input[type="number"]:focus,
.wr-article .wr-widget select:focus {
  outline: none;
  border-color: #3a4a78;
  box-shadow: 0 0 0 3px rgba(58, 74, 120, 0.2);
}
.wr-article .wr-widget button {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #3a4a78;
  border: 0;
  border-radius: 4px;
  padding: 14px 20px;
  cursor: pointer;
  min-height: 48px;
  letter-spacing: 0.01em;
}
.wr-article .wr-widget button:hover { background: #2c3a60; }
.wr-article .wr-result {
  margin-top: 22px;
  padding: 20px;
  background: #faf6ec;
  border-left: 4px solid #a17a2a;
  border-radius: 0 4px 4px 0;
  display: none;
}
.wr-article .wr-result.is-active { display: block; }
.wr-article .wr-result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e4818;
  margin-bottom: 6px;
}
.wr-article .wr-result-headline {
  font-size: 22px;
  font-weight: 800;
  color: #1a1f2e;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.wr-article .wr-result-detail {
  font-size: 15px;
  color: #2e3548;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.wr-article .wr-faq details {
  border-top: 1px solid #e2e4ec;
  padding: 18px 0;
}
.wr-article .wr-faq details:last-of-type { border-bottom: 1px solid #e2e4ec; }
.wr-article .wr-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: #1a1f2e;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.wr-article .wr-faq summary::-webkit-details-marker { display: none; }
.wr-article .wr-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  font-weight: 400;
  color: #5e4818;
  font-family: 'JetBrains Mono', monospace;
}
.wr-article .wr-faq details[open] summary::after { content: "−"; }
.wr-article .wr-faq details p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #2e3548;
  line-height: 1.65;
}

/* ===== RELATED ===== */
.wr-article .wr-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e2e4ec;
}
.wr-article .wr-related-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3f4659;
  margin-bottom: 16px;
}
.wr-article .wr-related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.wr-article .wr-related-card {
  display: block;
  padding: 18px 20px;
  background: #f7f8fb;
  border-left: 3px solid #a17a2a;
  border-radius: 0 14px 14px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.wr-article .wr-related-card:hover {
  background: #eef0f7;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(58, 74, 120, 0.25);
}
.wr-article .wr-related-card-topic {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5e4818;
  margin-bottom: 6px;
}
.wr-article .wr-related-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1f2e;
  line-height: 1.3;
  text-decoration: none;
}
.wr-article .wr-related-card--general { border-color: #4d5560; }
.wr-article .wr-related-card--general .wr-related-card-topic { color: #4d5560; }
.wr-article .wr-related-card--tax { border-color: #a8523f; }
.wr-article .wr-related-card--tax .wr-related-card-topic { color: #7d3c28; }
.wr-article .wr-related-card--fers { border-color: #3a5949; }
.wr-article .wr-related-card--fers .wr-related-card-topic { color: #3a5949; }

/* ===== CTA ===== */
.wr-article .wr-cta {
  margin-top: 48px;
  padding: 32px 28px;
  background: #1a1f2e;
  border-radius: 14px;
  color: #ffffff;
}
.wr-article .wr-cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4cf6f;
  margin-bottom: 10px;
}
.wr-article .wr-cta h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.wr-article .wr-cta p { color: #d8dce7; margin: 0 0 18px; font-size: 15px; }
.wr-article .wr-cta a.wr-cta-btn {
  display: inline-block;
  background: #f4cf6f;
  color: #1a1f2e;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  min-height: 48px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.wr-article .wr-cta a.wr-cta-btn:hover { background: #ffffff; color: #1a1f2e; }

/* ===== SOURCES ===== */
.wr-article .wr-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e4ec;
  font-size: 14px;
  color: #3f4659;
  line-height: 1.65;
}
.wr-article .wr-sources-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1f2e;
  margin-bottom: 12px;
}
.wr-article .wr-sources ol { padding-left: 20px; margin: 0; }
.wr-article .wr-sources li { margin-bottom: 6px; }

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .wr-article { font-size: 18px; padding: 32px 28px 80px; }
  .wr-article .wr-hero h1 { font-size: 44px; }
  .wr-article .wr-dek { font-size: 20px; }
  .wr-article h2 { font-size: 30px; }
  .wr-article .wr-stats { grid-template-columns: repeat(2, 1fr); }
  .wr-article .wr-related-list { grid-template-columns: 1fr 1fr; }
  .wr-article .wr-chart-canvas { height: 360px; }
}
@media (min-width: 860px) {
  .wr-article { padding: 40px 32px 100px; }
  .wr-article .wr-hero h1 { font-size: 50px; }
  .wr-article .wr-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Additional rules from second article */

.wr-article .wr-badge-fers { background: #3a5949; }
.wr-article .wr-callout--fers { border-color: #3a5949; background: #eef3ef; }
.wr-article .wr-callout--fers .wr-callout-label { color: #3a5949; }
.wr-article .wr-row-badge--fers { background: #3a5949; }
.wr-article .wr-row-badge--steady { background: #4d5560; }
.wr-article .wr-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e8d9b6;
  font-size: 14px;
}
.wr-article .wr-result-row:last-child { border-bottom: 0; }
.wr-article .wr-result-row-label { color: #2e3548; font-weight: 500; }
.wr-article .wr-result-row-val { color: #1a1f2e; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.wr-article .wr-result-row-val.is-ahead { color: #3a5949; }
.wr-article .wr-result-row-val.is-behind { color: #7d3c28; }
.wr-article .wr-related-card--ss { border-color: #5a3d6b; }
.wr-article .wr-related-card--ss .wr-related-card-topic { color: #5a3d6b; }
/* ============================================================
   GUIDE STYLES (.wr-guide)
   Used by /guides/ deep-dive pieces
   Uses Warrior Retirement design tokens — NO Fraunces, NO Source Sans 3
   ============================================================ */

.wr-guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 80px;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
}

.wr-guide p {
  margin: 0 0 18px;
  color: var(--body);
  font-weight: 400;
}
.wr-guide p strong { color: var(--ink); font-weight: 700; }
.wr-guide em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.wr-guide a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.wr-guide a:hover {
  color: var(--brand-deep);
}
.wr-guide ul, .wr-guide ol {
  margin: 0 0 18px 22px;
  color: var(--body);
}
.wr-guide li { margin-bottom: 8px; line-height: 1.65; }

/* ===== Hero ===== */
.wr-guide .guide-hero {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 36px;
}
.wr-guide .guide-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--brand);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.wr-guide .guide-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}
.wr-guide .guide-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 500;
}
.wr-guide .guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-strong);
}
.wr-guide .guide-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 16px;
  color: var(--rule-strong);
}

/* ===== Section structure ===== */
.wr-guide .guide-section {
  margin-bottom: 52px;
}
.wr-guide .section-number {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  padding: 5px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1;
}
.wr-guide h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.wr-guide h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.wr-guide h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  margin: 24px 0 10px;
}
.wr-guide .section-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ===== TOC ===== */
.wr-guide .toc {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
}
.wr-guide .toc h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}
.wr-guide .toc ol {
  margin: 0 0 0 20px;
  color: var(--ink);
}
.wr-guide .toc li {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
}
.wr-guide .toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.wr-guide .toc a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Stat row ===== */
.wr-guide .stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}
.wr-guide .stat-card {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
}
.wr-guide .stat-value {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.wr-guide .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ===== TL;DR card ===== */
.wr-guide .tldr-card {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 32px 0;
}
.wr-guide .tldr-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--brand-deep);
  font-weight: 800;
}
.wr-guide .tldr-card p { margin-bottom: 12px; }
.wr-guide .tldr-card p:last-child { margin-bottom: 0; }

/* ===== Callouts (generic + variants) ===== */
.wr-guide .callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 24px 0;
}
.wr-guide .callout-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 10px;
}
.wr-guide .callout p { margin-bottom: 10px; }
.wr-guide .callout p:last-child { margin-bottom: 0; }

.wr-guide .callout.tip {
  background: #e8efe9;
  border-left-color: var(--success);
}
.wr-guide .callout.tip .callout-title { color: var(--success); }

.wr-guide .callout.warn {
  background: #f3e6dd;
  border-left-color: var(--warning);
}
.wr-guide .callout.warn .callout-title { color: var(--warning); }

.wr-guide .callout.insight {
  background: #eef0f7;
  border-left-color: var(--brand);
}
.wr-guide .callout.insight .callout-title { color: var(--brand-deep); }

.wr-guide .callout.warning {
  background: #f3e6dd;
  border-left-color: var(--danger);
}
.wr-guide .callout.warning .callout-title { color: var(--danger); }

/* ===== Highlight inline ===== */
.wr-guide .highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(58, 74, 120, 0.18) 60%);
  padding: 0 2px;
  font-weight: 600;
}

/* ===== Formula box ===== */
.wr-guide .formula {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}
.wr-guide .formula .equals {
  color: var(--brand);
  font-weight: 700;
  margin: 0 4px;
}

/* ===== Tables ===== */
.wr-guide .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15.5px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.wr-guide .data-table thead { background: var(--brand-soft); }
.wr-guide .data-table th {
  padding: 14px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 700;
  border-bottom: 1.5px solid var(--rule-strong);
}
.wr-guide .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
}
.wr-guide .data-table tr:last-child td { border-bottom: none; }
.wr-guide .data-table tr:nth-child(even) td { background: #fafbfd; }

/* Status cells inside tables */
.wr-guide .yes, .wr-guide .best, .wr-guide .value {
  color: var(--success);
  font-weight: 700;
}
.wr-guide .no, .wr-guide .bad, .wr-guide .cost {
  color: var(--danger);
  font-weight: 700;
}
.wr-guide .partial {
  color: var(--warning);
  font-weight: 700;
}

/* ===== Chart wrapper ===== */
.wr-guide .chart-wrap {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px 24px;
  margin: 28px 0;
}
.wr-guide .chart-wrap h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
}

/* ===== Phase cards (20-year timeline) ===== */
.wr-guide .phase {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 18px 0;
  transition: all 0.2s;
}
.wr-guide .phase-active {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 8px 20px -10px rgba(58, 74, 120, 0.25);
}
.wr-guide .phase-numbers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.wr-guide .phase-number {
  background: #ffffff;
  border: 1px solid var(--rule);
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wr-guide .phase-years {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
}
.wr-guide .phase-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.wr-guide .phase-summary {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 12px;
  font-weight: 500;
}
.wr-guide .phase-priorities {
  margin: 0 0 0 20px;
  font-size: 15.5px;
  color: var(--body);
}
.wr-guide .phase-priorities li { margin-bottom: 6px; }

/* ===== Path cards (decision paths) ===== */
.wr-guide .path-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 16px 0;
}
.wr-guide .path-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wr-guide .path-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.wr-guide .path-card-elig {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid var(--brand);
}
.wr-guide .path-checklist {
  margin: 12px 0 0 20px;
  font-size: 15.5px;
  color: var(--body);
}
.wr-guide .path-checklist li { margin-bottom: 6px; }
.wr-guide .is-for {
  background: #e8efe9;
  border-left: 3px solid var(--success);
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 15px;
  border-radius: 6px;
  color: var(--ink);
}
.wr-guide .not-for {
  background: #f3e6dd;
  border-left: 3px solid var(--warning);
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 15px;
  border-radius: 6px;
  color: var(--ink);
}

/* ===== Audience cards ===== */
.wr-guide .audience-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
.wr-guide .audience-card {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
}
.wr-guide .audience-card strong { display: block; margin-bottom: 4px; color: var(--brand-deep); }

/* ===== Mistake cards ===== */
.wr-guide .mistake-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 18px 0;
}
.wr-guide .mistake-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.wr-guide .mistake-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--warning);
  background: #f3e6dd;
  border: 1.5px solid var(--warning);
  padding: 5px 8px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.wr-guide .mistake-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ===== Fund cards (TSP funds) ===== */
.wr-guide .fund-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}
.wr-guide .fund-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px;
}
.wr-guide .fund-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.wr-guide .fund-ticker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 10px;
}
.wr-guide .fund-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand);
}

/* ===== Widgets (interactive calculators) ===== */
.wr-guide .widget {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 32px 0;
}
.wr-guide .widget-header {
  margin-bottom: 18px;
}
.wr-guide .widget-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.wr-guide .widget-note {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.wr-guide .widget-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.wr-guide .widget-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wr-guide .widget-input label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.wr-guide .widget-input input,
.wr-guide .widget-input select {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--rule-strong);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  outline: none;
  font-family: var(--sans);
  min-height: 44px;
}
.wr-guide .widget-input input:focus,
.wr-guide .widget-input select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(58, 74, 120, 0.12);
}
.wr-guide .widget-result {
  background: #ffffff;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  padding: 20px 22px;
}
.wr-guide .result-col {
  margin-bottom: 14px;
}
.wr-guide .result-col:last-child { margin-bottom: 0; }
.wr-guide .result-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 4px;
}
.wr-guide .result-value {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.wr-guide .result-sub {
  font-size: 13.5px;
  color: var(--muted-strong);
  margin-top: 3px;
  font-weight: 500;
}

/* Path-number labels (formula breakdowns) */
.wr-guide .pn-label {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
}
.wr-guide .pn-val {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1.1;
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

/* ===== Checklist block ===== */
.wr-guide .checklist-block {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 24px 0;
}
.wr-guide .checklist-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--brand-deep);
}
.wr-guide .checklist-block ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.wr-guide .checklist-block li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--body);
  line-height: 1.55;
}
.wr-guide .checklist-block li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--success);
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== FAQ (native details/summary) ===== */
.wr-guide .faq-item {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0;
  overflow: hidden;
}
.wr-guide .faq-item summary,
.wr-guide .faq-q {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.wr-guide .faq-item summary::-webkit-details-marker { display: none; }
.wr-guide .faq-item summary::after,
.wr-guide .faq-q::after {
  content: '+';
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.wr-guide .faq-item[open] summary::after { content: '−'; }
.wr-guide .faq-item .faq-a,
.wr-guide .faq-a {
  padding: 0 20px 18px;
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.wr-guide .faq-a p { margin-bottom: 12px; }
.wr-guide .faq-a p:last-child { margin-bottom: 0; }

/* ===== Three-up grid ===== */
.wr-guide .three-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}

/* ===== Closing CTA ===== */
.wr-guide .closing-cta {
  background: var(--ink);
  color: #ffffff;
  border-radius: 14px;
  padding: 32px 28px;
  margin: 48px 0 0;
  text-align: center;
}
.wr-guide .closing-cta h3 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.wr-guide .closing-cta p {
  color: #d8dbe5;
  margin-bottom: 22px;
  font-size: 17px;
}
.wr-guide .cta-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.wr-guide .closing-cta a {
  background: #ffffff;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
  display: inline-block;
  font-size: 15.5px;
  border: 1.5px solid #ffffff;
  transition: all 0.2s;
}
.wr-guide .closing-cta a:hover {
  background: #f4cf6f;
  color: var(--ink);
  border-color: #f4cf6f;
}
.wr-guide .closing-cta a.secondary {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
}
.wr-guide .closing-cta a.secondary:hover {
  background: #ffffff;
  color: var(--brand);
}

/* ===== iPad ===== */
@media (min-width: 768px) {
  .wr-guide { padding: 36px 28px 100px; font-size: 19px; max-width: 800px; }
  .wr-guide .guide-title { font-size: 48px; }
  .wr-guide .guide-subtitle { font-size: 22px; }
  .wr-guide h2 { font-size: 36px; }
  .wr-guide h3 { font-size: 24px; }
  .wr-guide .section-lede { font-size: 20px; }
  .wr-guide .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .wr-guide .audience-row { grid-template-columns: 1fr 1fr; }
  .wr-guide .fund-grid { grid-template-columns: 1fr 1fr; }
  .wr-guide .three-up { grid-template-columns: 1fr 1fr 1fr; }
  .wr-guide .widget-controls { grid-template-columns: 1fr 1fr; gap: 16px; }
  .wr-guide .cta-links { flex-direction: row; justify-content: center; }
  .wr-guide .closing-cta { padding: 44px 36px; }
  .wr-guide .closing-cta h3 { font-size: 30px; }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  .wr-guide {
    max-width: 880px;
    font-size: 19px;
  }
  .wr-guide .guide-title { font-size: 54px; }
}

@media (min-width: 768px) {
  .wr-guide .phase-numbers { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}


/* ============================================================
   ERROR PAGES (.error-page) - 404, 403
   ============================================================ */
.error-page {
  padding: 32px 18px 64px;
  background: var(--bg);
}
.error-inner {
  max-width: 720px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted-strong);
  margin-bottom: 12px;
}
.error-headline {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}
.error-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.error-dek {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-weight: 500;
}
.error-home-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  margin-bottom: 36px;
  transition: all 0.15s;
}
.error-home-link:hover {
  background: var(--brand);
  color: #ffffff;
}
.error-dest-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.error-dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.error-dest-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow arrow"
    "title arrow"
    "desc arrow";
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  gap: 4px 12px;
  align-items: center;
}
.error-dest-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(58, 74, 120, 0.25);
}
.error-dest-eyebrow {
  grid-area: eyebrow;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.error-dest-title {
  grid-area: title;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.error-dest-desc {
  grid-area: desc;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}
.error-dest-arrow {
  grid-area: arrow;
  font-family: var(--sans);
  font-size: 24px;
  color: var(--brand);
  align-self: center;
  font-weight: 400;
}
.error-dest-card:hover .error-dest-arrow {
  transform: translateX(3px);
  transition: transform 0.2s;
}

@media (min-width: 768px) {
  .error-page { padding: 48px 28px 80px; }
  .error-headline { font-size: 44px; }
  .error-dek { font-size: 19px; }
  .error-dest-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (min-width: 1024px) {
  .error-inner { max-width: 880px; }
  .error-headline { font-size: 52px; }
}


/* ============================================================
   PILLAR LANDING PAGES (/fers-and-csrs/, /tsp/, etc.)
   ============================================================ */
.pillar-landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}
.pillar-landing .hero-block {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.pillar-landing .hero-block .topic-badge {
  margin-bottom: 16px;
}
.pillar-landing .hero-block h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
}
.pillar-landing .hero-block h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.pillar-landing .hero-block .dek {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
}
.pillar-content {
  padding: 32px 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
}
.pillar-content h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 12px;
}
.pillar-content h2:first-child { margin-top: 0; }
.pillar-content p {
  margin: 0 0 16px;
  color: var(--body);
}
.pillar-content p strong { color: var(--ink); font-weight: 700; }
.pillar-content ul, .pillar-content ol {
  margin: 0 0 18px 22px;
}
.pillar-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.pillar-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.pillar-content a:hover { color: var(--brand-deep); }

/* Articles section on pillar landing */
.pillar-articles {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.pillar-articles .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar-articles h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.pillar-articles h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}
.pillar-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pillar-article-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
}
.pillar-article-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(58, 74, 120, 0.25);
  background: var(--brand-soft);
}
.pillar-article-card .meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}
.pillar-article-card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}
.pillar-article-card p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* "Coming soon" empty state */
.pillar-coming-soon {
  background: var(--brand-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.pillar-coming-soon h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.pillar-coming-soon p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* Cross-network callout on relevant pillars */
.network-callout {
  margin-top: 28px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
}
.network-callout h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.network-callout p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.5;
  font-weight: 500;
}
.network-callout a {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.network-callout a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .pillar-landing { padding: 0 28px; max-width: 800px; }
  .pillar-landing .hero-block { padding: 32px 0 40px; }
  .pillar-landing .hero-block h1 { font-size: 46px; }
  .pillar-landing .hero-block .dek { font-size: 21px; }
  .pillar-content { font-size: 19px; padding: 40px 0; }
  .pillar-content h2 { font-size: 28px; }
  .pillar-articles { padding: 40px 0; }
  .pillar-articles h2 { font-size: 34px; }
  .pillar-articles-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (min-width: 1024px) {
  .pillar-landing { max-width: 880px; }
  .pillar-landing .hero-block h1 { font-size: 52px; }
}


/* ============================================================
   LEGAL PAGES (/privacy/, /terms/, /disclaimer/)
   ============================================================ */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}
.legal-hero {
  padding: 24px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.legal-hero h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
  font-weight: 700;
  margin: 0;
}
.legal-content {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  padding-bottom: 64px;
}
.legal-content h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin: 0 0 16px;
  color: var(--body);
}
.legal-content p strong { color: var(--ink); font-weight: 700; }
.legal-content em { color: var(--ink-soft); }
.legal-content ul, .legal-content ol {
  margin: 0 0 20px 22px;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.legal-content a:hover { color: var(--brand-deep); }

@media (min-width: 768px) {
  .legal-page { padding: 0 28px; max-width: 800px; }
  .legal-hero { padding: 32px 0 32px; }
  .legal-hero h1 { font-size: 44px; }
  .legal-content { font-size: 19px; }
  .legal-content h2 { font-size: 28px; }
}

@media (min-width: 1024px) {
  .legal-page { max-width: 880px; }
  .legal-hero h1 { font-size: 50px; }
}


/* ============================================================
   ARTICLE PULL QUOTE (.wr-pull-quote)
   ============================================================ */
.wr-article .wr-pull-quote {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  padding: 22px 26px;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.wr-article .wr-pull-quote:before {
  content: '';
}

@media (min-width: 768px) {
  .wr-article .wr-pull-quote { font-size: 22px; padding: 26px 30px; }
}
