/* =============================================
   AussieCalc.com.au — Design System v2
   Paper · Navy · Ochre · Editorial
   ============================================= */

/* Google Fonts injected non-blocking by calculators.js — @import removed to eliminate render-blocking */

/* ── CLS guard: hide header/footer until JS has replaced their content ──
   visibility:hidden preserves layout dimensions (no reflow) so nothing
   shifts when JS swaps the innerHTML.  The [data-ac-ready] attribute is
   set by injectHeader() / injectFooter() after injection. ── */
header.site-header:not([data-ac-ready]),
footer.site-footer:not([data-ac-ready]) {
  visibility: hidden;
}

/* --- Variables --- */
:root {
  /* Surfaces */
  --bg:           #FBF8F1;
  --surface:      #FFFFFF;
  --surface-alt:  #F5F0E4;

  /* Ink */
  --ink:          #1B2230;
  --muted:        #737681;
  --line:         #EAE3D2;

  /* Brand */
  --navy:         #1F3A5F;
  --navy-light:   #2a4d7a;
  --navy-soft:    #F5E6C2;
  --ochre:        #D4A24C;

  /* Status — never decorative */
  --leaf:         #2DA86C;
  --flag:         #B23A2A;

  /* Legacy aliases — keeps old pages working without changes */
  --teal:         #1F3A5F;
  --teal-light:   #D4A24C;
  --teal-dark:    #1F3A5F;
  --gold:         #D4A24C;
  --gold-light:   #E8C070;
  --slate:        #1B2230;
  --off-white:    #FBF8F1;
  --white:        #FFFFFF;
  --grey-50:      #FAFAF8;
  --grey-100:     #F5F0E4;
  --grey-200:     #EAE3D2;
  --grey-300:     #D5CDBF;
  --grey-400:     #B0A898;
  --grey-500:     #8C8578;
  --grey-600:     #737681;
  --grey-700:     #5A5550;
  --grey-800:     #3D3A35;
  --red:          #B23A2A;
  --green:        #2DA86C;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', Menlo, monospace;

  /* Spacing */
  --max-width:      800px;
  --header-height:  64px;
  --radius:         8px;
  --radius-lg:      12px;

  /* No elevation shadows on tiles — borders only.
     Shadows reserved for menus and modals. */
  --shadow-sm:  0 1px 3px rgba(27,34,48,0.06);
  --shadow-md:  0 4px 16px rgba(27,34,48,0.10);
  --shadow-lg:  0 12px 40px rgba(27,34,48,0.14);
  --transition: 0.18s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ochre); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
  padding: 2rem 0 3rem;
}

/* --- Header --- */
.site-header {
  background: var(--bg);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ochre);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover { color: var(--ochre); opacity: 0.85; }

.header-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.header-nav a:hover { color: var(--ink); }

/* Clock widget */
.header-clock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.clock-sep { color: var(--line); }
.clock-icon { color: var(--ochre); font-size: 0.85rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); }

@media (max-width: 900px) {
  .header-clock { display: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .header-nav.open { display: flex; }
}

/* --- Category nav bar --- */
.category-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.category-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}
.category-nav a:hover,
.category-nav a.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 0.5rem; color: var(--line); }

/* --- Calculator Card --- */
.calc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 2rem;
}

.calc-card--highlight {
  border-top: 3px solid var(--ochre);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,58,95,0.10);
}

.form-input::placeholder { color: var(--grey-400); }

/* Currency input wrapper */
.input-currency { position: relative; }

.input-currency::before {
  content: '$';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-currency .form-input { padding-left: 1.8rem; }

/* Percentage input wrapper */
.input-percent { position: relative; }

.input-percent::after {
  content: '%';
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 600;
  pointer-events: none;
}

.input-percent .form-input { padding-right: 2rem; }

/* Radio / toggle buttons */
.toggle-group {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.toggle-group input[type="radio"] { display: none; }

.toggle-group label {
  flex: 1;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: all var(--transition);
  color: var(--muted);
  margin-bottom: 0;
  background: var(--surface);
}

.toggle-group label:last-of-type { border-right: none; }

.toggle-group input[type="radio"]:checked + label {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover { background: var(--line); }

/* --- Results Display --- */
.results-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
  color: #fff;
  display: none;
}

.results-panel.visible { display: block; }

.result-main {
  text-align: center;
  margin-bottom: 1.25rem;
}

.result-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin-bottom: 0.25rem;
}

.result-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--ochre);
  line-height: 1.1;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.result-item {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 0.9rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.result-item .result-label { font-size: 0.68rem; }

.result-item .result-value {
  font-size: 1.2rem;
  color: #fff;
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
}

/* --- Split Ledger Widget (Variation A — the only approved variant) ---
   Use on high-priority calc pages. Inputs on left (cream), result on right (navy).
   Wrap: <div class="calc-ledger"> instead of <div class="calc-card calc-card--highlight">
   Left:  <div class="ledger-inputs">  (form + button)
   Right: <div class="ledger-result results-panel" id="results">  (always visible in ledger mode)
   ----------------------------------------------------------------- */
.calc-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 400px;
}

.ledger-inputs {
  background: var(--surface-alt);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.ledger-inputs-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.ledger-result {
  background: var(--navy);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Override: always visible in ledger layout */
  display: flex !important;
  margin-top: 0;
  border-radius: 0;
}

.ledger-result .result-main { margin-bottom: 1.75rem; }

/* Ledger breakdown table */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.ledger-table tr {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ledger-table tr:first-child { border-top: none; }

.ledger-table td {
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
}

.ledger-table td:last-child {
  text-align: right;
  color: #fff;
  font-weight: 600;
}

.ledger-table tr.ledger-total td {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 0.75rem;
  color: #fff;
  font-weight: 700;
}

.ledger-table tr.ledger-total td:last-child {
  color: var(--ochre);
  font-size: 1rem;
}

/* Share button inside ledger */
.ledger-share {
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 700px) {
  .calc-ledger {
    grid-template-columns: 1fr;
  }
  .ledger-inputs { border-right: none; border-bottom: 1px solid var(--line); }
  .ledger-result { min-height: 300px; }
}

/* --- Content Sections --- */
.content-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-section h2 { margin-top: 0; }

.content-section ul, .content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li { margin-bottom: 0.4rem; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ochre);
  flex-shrink: 0;
  font-family: var(--font-mono);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  display: none;
  padding-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.open .faq-answer { display: block; }

/* --- Related Calculators --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.related-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.related-card h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--ink);
  margin-top: 0;
}

.related-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.45;
}

/* Suite tag on related cards */
.related-card .suite-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

/* --- Category Cards (Homepage) --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.category-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ochre);
}

.category-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.category-links a {
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--bg);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: all var(--transition);
  font-weight: 500;
}

.category-links a:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* --- Ad Placeholder --- */
.ad-unit {
  background: var(--surface-alt);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin: 1.5rem 0;
  min-height: 90px;  /* leaderboard — always reserve 90px to prevent CLS */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* In-content rectangle — 250px reserved to prevent CLS on AdSense load */
.ad-unit--square {
  min-height: 250px;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 0;
  margin-top: auto;
  color: var(--muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 280px;
}

/* Live data indicator */
.footer-live {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.live-dot-wrap {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.live-dot-pulse {
  position: absolute;
  inset: 0;
  background: var(--leaf);
  border-radius: 50%;
  opacity: 0.4;
  animation: livePulse 1.6s ease-in-out infinite;
}

.live-dot-core {
  position: absolute;
  inset: 1.5px;
  background: var(--leaf);
  border-radius: 50%;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.1; transform: scale(0.8); }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
  margin-top: 0;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a  { color: var(--muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.6;
}

/* --- Disclaimer --- */
.disclaimer {
  background: #FFFBF0;
  border-left: 3px solid var(--ochre);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.5rem 0;
  line-height: 1.55;
}

/* --- Hero (Homepage) --- */
.hero {
  background: var(--navy);
  padding: 3.5rem 0;
  color: #fff;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ochre);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero { padding: 2.5rem 0; }
}

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

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .ad-unit, .breadcrumbs { display: none; }
  .calc-card, .content-section { border: 1px solid #ccc; }
  .results-panel { color: #000; background: #f5f5f5 !important; -webkit-print-color-adjust: exact; }
  .result-value { color: #000 !important; }
}

/* ==============================================
   ⌘K Command Palette + Hero Search
   ============================================== */

/* --- ⌘K Button in Header --- */
.cmd-k-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cmd-k-btn:hover { background: var(--line); color: var(--ink); }
.cmd-k-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--muted);
}
@media (max-width: 640px) { .cmd-k-btn { display: none; } }

/* --- Command Palette --- */
#cmd-palette { display: none; position: fixed; inset: 0; z-index: 9999; }
#cmd-palette.open { display: block; }

.cp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,34,48,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cp-modal {
  position: absolute;
  top: 12vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 580px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cp-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.cp-search-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }

.cp-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
}
.cp-input::placeholder { color: var(--grey-400); }

.cp-esc-hint {
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.cp-results {
  list-style: none;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.cp-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cp-result-item:hover, .cp-result-item.selected { background: var(--bg); }

.cp-result-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface-alt);
  color: var(--navy);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  font-family: var(--font-mono);
}

.cp-result-name { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.cp-result-name mark { background: rgba(212,162,76,0.2); color: var(--navy); border-radius: 2px; padding: 0 1px; }

.cp-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cp-footer {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cp-footer span {
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
}
.cp-footer kbd {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1rem 0.3rem;
  color: var(--muted);
}
@media (max-width: 480px) { .cp-footer { display: none; } }

/* --- Rates Bar --- */
.rates-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.55rem 0;
  overflow: hidden;
}
.rates-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.rates-bar-inner::-webkit-scrollbar { display: none; }
.rates-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.rates-item { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; flex-shrink: 0; }
.rates-item-name { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.rates-item-value { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--ochre); }

/* --- Hero v2 with search --- */
.hero-search-wrap {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 1.75rem auto 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
}
.hero-search-input::placeholder { color: var(--grey-400); }
.hero-search-btn {
  background: var(--ochre);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.hero-search-btn:hover { background: var(--navy); }

/* --- Category card header row --- */
.category-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.category-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

/* --- Homepage section header --- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-header h2 { margin: 0; }
.section-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Last Updated badge --- */
.page-updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  margin-top: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.04em;
}
.page-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  flex-shrink: 0;
}

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a { color: var(--ochre); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.cookie-accept:hover { opacity: 0.88; }
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s, border-color 0.15s;
}
.cookie-decline:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .cookie-banner-btns { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* --- Shareable link button --- */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.share-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.share-btn--copied { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* --- ASIC compliance line --- */
.footer-asic {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ================================================================
   ADVICE & WEALTH SUITE — Visual Components (unchanged structure)
   ================================================================ */

.step-progress { display:flex; align-items:center; gap:0; margin-bottom:1.5rem; }
.step-pip { width:30px; height:30px; border-radius:50%; background:var(--grey-200); color:var(--muted); font-size:0.78rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .2s,color .2s; }
.step-pip.active { background:var(--navy); color:#fff; }
.step-pip.done   { background:var(--navy); color:#fff; opacity:.5; }
.step-connector  { flex:1; height:2px; background:var(--grey-200); transition:background .3s; }
.step-connector.done { background:var(--navy); opacity:.5; }
.step-labels { display:flex; justify-content:space-between; font-size:0.68rem; color:var(--muted); margin-bottom:1.5rem; font-family:var(--font-mono); }
.form-step { display:none; }
.form-step.active { display:block; animation:stepIn .25s ease; }
@keyframes stepIn { from { opacity:0; transform:translateX(8px); } to { opacity:1; transform:none; } }
.step-nav { display:flex; justify-content:space-between; align-items:center; margin-top:1.5rem; gap:1rem; }
.step-back { background:transparent; border:1px solid var(--line); color:var(--muted); padding:.55rem 1.1rem; border-radius:var(--radius); cursor:pointer; font-size:0.88rem; transition:border-color .15s,color .15s; font-family:var(--font-body); }
.step-back:hover { border-color:var(--navy); color:var(--navy); }

.hero-result { text-align:center; padding:1.5rem 1.25rem; background:var(--navy); border-radius:var(--radius); color:#fff; margin-bottom:1.25rem; }
.hero-result-label { font-family:var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:.1em; opacity:.6; margin-bottom:.4rem; }
.hero-result-value { font-family:var(--font-mono); font-size:2.8rem; font-weight:700; line-height:1.05; margin-bottom:.3rem; color:var(--ochre); }
.hero-result-sub   { font-size:0.82rem; opacity:.7; }

.score-ring-wrap { position:relative; width:160px; height:160px; margin:0 auto 1.25rem; }
.score-ring-svg  { width:100%; height:100%; transform:rotate(-90deg); }
.score-ring-bg   { fill:none; stroke:var(--grey-200); stroke-width:10; }
.score-ring-fill { fill:none; stroke:var(--navy); stroke-width:10; stroke-linecap:round; stroke-dasharray:314.16; stroke-dashoffset:314.16; transition:stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1),stroke .4s; }
.score-ring-inner { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; line-height:1; }
.score-ring-value { font-family:var(--font-mono); font-size:2.4rem; font-weight:700; color:var(--ink); display:block; }
.score-ring-max   { font-family:var(--font-mono); font-size:0.75rem; color:var(--muted); }

.rating-badge { display:inline-block; padding:.35rem 1rem; border-radius:2rem; font-size:0.78rem; font-weight:700; letter-spacing:.03em; font-family:var(--font-mono); }
.rating-badge--poor   { background:#fee2e2; color:#b91c1c; }
.rating-badge--fair   { background:#fef3c7; color:#92400e; }
.rating-badge--good   { background:#d1fae5; color:#065f46; }
.rating-badge--strong { background:#ccfbf1; color:#0f766e; }

.ret-timeline { margin:1.5rem 0; }
.ret-timeline-track { position:relative; height:8px; background:var(--grey-200); border-radius:4px; margin:2.5rem 0 1rem; }
.ret-timeline-past   { position:absolute; left:0; top:0; bottom:0; background:var(--navy); border-radius:4px 0 0 4px; opacity:.25; transition:width .8s ease; }
.ret-timeline-active { position:absolute; top:0; bottom:0; background:var(--navy); transition:left .8s ease,width .8s ease; }
.ret-timeline-marker { position:absolute; top:0; transform:translateX(-50%); }
.ret-timeline-pip    { display:block; width:14px; height:14px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 2px var(--ink); background:var(--ink); margin:-3px auto 0; }
.ret-timeline-pip--retire { background:var(--leaf); box-shadow:0 0 0 2px var(--leaf); }
.ret-timeline-tag    { display:block; font-family:var(--font-mono); font-size:0.65rem; font-weight:700; white-space:nowrap; color:var(--ink); background:var(--grey-100); border-radius:4px; padding:2px 5px; margin-top:5px; transform:translateX(-50%); margin-left:50%; }
.ret-timeline-ends   { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:0.65rem; color:var(--muted); }

.ba-split { display:grid; grid-template-columns:1fr auto 1fr; border-radius:var(--radius) var(--radius) 0 0; overflow:hidden; margin-top:1.25rem; }
.ba-col   { padding:1.25rem 1rem; text-align:center; }
.ba-col--before { background:var(--surface-alt); }
.ba-col--after  { background:var(--navy); color:#fff; }
.ba-divider     { display:flex; align-items:center; justify-content:center; padding:0 .75rem; font-family:var(--font-mono); font-size:0.72rem; font-weight:700; color:var(--muted); background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.ba-col-label   { font-family:var(--font-mono); font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; opacity:.65; margin-bottom:.35rem; }
.ba-col--after .ba-col-label { color:rgba(255,255,255,.7); }
.ba-col-value   { font-family:var(--font-mono); font-size:1.55rem; font-weight:700; line-height:1.1; }
.ba-col--before .ba-col-value { color:var(--ink); }
.ba-col--after  .ba-col-value { color:var(--ochre); }
.ba-col-sub     { font-size:0.7rem; opacity:.6; margin-top:.2rem; }
.ba-gain-wrap   { background:#ecfdf5; border:1px solid #a7f3d0; border-top:none; border-radius:0 0 var(--radius) var(--radius); padding:.65rem; text-align:center; margin-bottom:1.25rem; }
.ba-gain        { font-family:var(--font-mono); font-size:0.92rem; font-weight:700; color:#065f46; }

.waterfall { margin:1.25rem 0; display:flex; flex-direction:column; gap:.55rem; }
.waterfall-item { display:grid; grid-template-columns:140px 1fr; align-items:center; gap:.65rem; }
.waterfall-name { font-family:var(--font-mono); font-size:0.75rem; color:var(--muted); text-align:right; }
.waterfall-bar-wrap { display:flex; align-items:center; gap:.5rem; }
.waterfall-bar  { height:20px; background:var(--navy); border-radius:0 4px 4px 0; min-width:4px; transition:width .9s cubic-bezier(.4,0,.2,1); }
.waterfall-bar--risk { background:linear-gradient(90deg,#8b5cf6,#6d28d9); }
.waterfall-amount { font-family:var(--font-mono); font-size:0.75rem; font-weight:700; color:var(--ink); white-space:nowrap; }
@media(max-width:560px){ .waterfall-item{grid-template-columns:1fr;} .waterfall-name{text-align:left;} }

.priority-stack { display:flex; flex-direction:column; gap:.65rem; margin:1.25rem 0; }
.priority-card  { display:flex; align-items:center; gap:.9rem; padding:.9rem 1.1rem; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); border-left:4px solid var(--navy); animation:cardReveal .4s ease both; }
.priority-card:nth-child(1){animation-delay:.00s;border-left-color:#ef4444;}
.priority-card:nth-child(2){animation-delay:.08s;border-left-color:#f59e0b;}
.priority-card:nth-child(3){animation-delay:.16s;border-left-color:#3b82f6;}
.priority-card:nth-child(4){animation-delay:.24s;border-left-color:var(--navy);}
.priority-card:nth-child(5){animation-delay:.32s;border-left-color:var(--grey-400);}
@keyframes cardReveal { from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;} }
.priority-rank  { font-family:var(--font-mono); font-size:1.5rem; font-weight:700; color:var(--grey-300); min-width:2rem; line-height:1; }
.priority-body  { flex:1; }
.priority-title { font-size:0.9rem; font-weight:700; color:var(--ink); }
.priority-why   { font-size:0.75rem; color:var(--muted); margin-top:.2rem; }
.priority-badge { font-family:var(--font-mono); font-size:0.65rem; font-weight:700; padding:.2rem .55rem; border-radius:2rem; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.priority-badge--critical { background:#fee2e2; color:#b91c1c; }
.priority-badge--high     { background:#fef3c7; color:#92400e; }
.priority-badge--medium   { background:#dbeafe; color:#1e40af; }
.priority-badge--low      { background:var(--grey-100); color:var(--muted); }

.protection-table { width:100%; border-collapse:collapse; font-size:0.83rem; margin:1rem 0; }
.protection-table th { text-align:left; padding:.45rem .7rem; background:var(--surface-alt); font-family:var(--font-mono); font-size:0.65rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.protection-table td { padding:.6rem .7rem; border-bottom:1px solid var(--line); color:var(--muted); }
.protection-table tr:last-child td { border-bottom:none; }
.prot-status         { display:inline-block; padding:.18rem .55rem; border-radius:2rem; font-family:var(--font-mono); font-size:0.68rem; font-weight:700; }
.prot-status--gap    { background:#fee2e2; color:#b91c1c; }
.prot-status--review { background:#fef3c7; color:#92400e; }
.prot-status--ok     { background:#d1fae5; color:#065f46; }
.prot-status--unknown{ background:var(--grey-100); color:var(--muted); }

.matrix-2x2      { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px; background:var(--line); border-radius:var(--radius); overflow:hidden; min-height:170px; margin:1rem 0; }
.matrix-cell     { background:var(--surface); padding:.9rem; display:flex; flex-direction:column; }
.matrix-cell--hero { background:#ecfdf5; }
.matrix-cell-label { font-family:var(--font-mono); font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:.4rem; }
.matrix-cell--hero .matrix-cell-label { color:var(--leaf); }
.matrix-axis-y   { font-family:var(--font-mono); font-size:0.65rem; color:var(--muted); text-align:center; margin-bottom:.2rem; }
.matrix-axis-x   { font-family:var(--font-mono); font-size:0.65rem; color:var(--muted); text-align:center; margin-top:.2rem; }
.matrix-tag      { display:inline-block; font-size:0.72rem; font-weight:600; padding:.18rem .45rem; background:var(--grey-100); border-radius:4px; margin:2px 2px 0 0; color:var(--ink); }
.matrix-cell--hero .matrix-tag { background:#a7f3d0; color:#065f46; }

.gauge-wrap  { margin:.4rem 0 1rem; }
.gauge-track { height:11px; background:var(--grey-200); border-radius:6px; overflow:hidden; }
.gauge-fill  { height:100%; border-radius:6px; background:var(--navy); transition:width .8s cubic-bezier(.4,0,.2,1); }
.gauge-fill--poor { background:linear-gradient(90deg,#ef4444,#f97316); }
.gauge-fill--fair { background:linear-gradient(90deg,#f59e0b,#eab308); }
.gauge-fill--good { background:linear-gradient(90deg,#22c55e,var(--leaf)); }
.gauge-labels { display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:0.65rem; color:var(--muted); margin-top:.3rem; }

.cat-scores { display:flex; flex-direction:column; gap:.7rem; margin:1.1rem 0; }
.cat-score-item  { display:grid; grid-template-columns:130px 1fr 2.2rem; align-items:center; gap:.65rem; font-size:0.8rem; }
.cat-score-label { color:var(--muted); }
.cat-score-track { height:8px; background:var(--grey-200); border-radius:4px; overflow:hidden; }
.cat-score-fill  { height:100%; border-radius:4px; transition:width .8s ease; }
.cat-score-num   { font-family:var(--font-mono); font-size:0.76rem; font-weight:700; color:var(--ink); text-align:right; }
@media(max-width:500px){ .cat-score-item{grid-template-columns:1fr 2.2rem;} .cat-score-label{grid-column:1/-1;} }

.lever-grid  { display:flex; flex-direction:column; gap:.9rem; margin:1rem 0; }
.lever-item  { border:1px solid var(--line); border-radius:var(--radius); padding:.9rem 1rem; }
.lever-title { font-size:0.85rem; font-weight:600; color:var(--ink); margin-bottom:.55rem; }
.lever-options { display:flex; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.lever-opt   { flex:1; text-align:center; font-size:0.72rem; padding:.45rem .2rem; cursor:pointer; border:none; background:var(--surface); color:var(--muted); transition:background .15s,color .15s; border-right:1px solid var(--line); font-family:var(--font-body); }
.lever-opt:last-child { border-right:none; }
.lever-opt.selected   { background:var(--navy); color:#fff; font-weight:600; }

.runway-track  { height:34px; border-radius:var(--radius); background:var(--grey-200); overflow:hidden; display:flex; margin:1rem 0 .5rem; }
.runway-income { background:var(--navy); display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-mono); font-size:0.72rem; font-weight:600; transition:width .8s ease; white-space:nowrap; padding:0 .5rem; min-width:0; }
.runway-gap    { background:#fee2e2; display:flex; align-items:center; justify-content:center; color:#b91c1c; font-family:var(--font-mono); font-size:0.72rem; font-weight:600; transition:width .8s ease; white-space:nowrap; padding:0 .5rem; min-width:0; }
.runway-legend { display:flex; gap:1rem; flex-wrap:wrap; font-size:0.73rem; }
.runway-dot    { width:10px; height:10px; border-radius:2px; flex-shrink:0; display:inline-block; margin-right:.3rem; vertical-align:middle; }
.runway-dot--income { background:var(--navy); }
.runway-dot--gap    { background:#fca5a5; }

@media(max-width:560px){
  .ba-split { grid-template-columns:1fr; }
  .ba-divider { padding:.5rem; }
  .hero-result-value { font-size:2.2rem; }
}
