/* Forces Money Mate theme — navy, military red, white */
:root {
  --navy: #0B1C2C;
  --navy-2: #12263A;
  --navy-3: #1B3348;
  --blue: #3A6EA5;
  --red: #C8102E;
  --red-dark: #9B0E24;
  --white: #FFFFFF;
  --paper: #F6F3EE;
  --ink: #14202B;
  --muted: #5A6A76;
  --line: #D8DEE4;
  --shadow: 0 10px 30px rgba(11, 28, 44, 0.08);
  --radius: 14px;
  --max: 1120px;
  --read: 760px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.readable { width: min(var(--read), calc(100% - 2rem)); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--white); min-width: 0; }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--cond); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.95rem; line-height: 1.1;
}
.brand-tagline { font-size: 0.72rem; color: #C9D4DE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.2rem; }
.nav-list a {
  color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: 8px;
}
.nav-list a:hover, .nav-list .nav-current a { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent;
  line-height: 1.2; cursor: pointer; font-family: inherit;
}
.btn-lg { padding: 0.85rem 1.3rem; font-size: 1rem; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0; }

/* Hero and sections */
.hero {
  background:
    linear-gradient(180deg, rgba(11,28,44,0.92), rgba(11,28,44,0.88)),
    var(--navy);
  color: var(--white);
  padding: 4.2rem 0 4.5rem;
}
.hero h1, .page-hero h1 { color: var(--white); }
.hero-inner { max-width: 800px; }
.eyebrow, .pill-kicker, .panel-label, .card-meta, .footer-heading, .post-meta {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; margin: 0 0 0.8rem; color: var(--red);
}
.hero .eyebrow, .page-hero .eyebrow, .panel-navy .panel-label, .panel-red .panel-label { color: #F3B4BE; }
.hero-lead { font-size: 1.15rem; max-width: 62ch; }
.hero .hero-lead { color: #E6EDF3; }
.hero-tag { font-family: var(--cond); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #F6F3EE; }
.page-hero { background: var(--navy); color: #fff; padding: 3rem 0 2.6rem; }
.page-hero .hero-lead { color: #D5DEE6; }
.page-hero a { color: #fff; }
.pills, .start-band, .finder-band, .library, .membership-band, .tool-wrap, .content-wrap { padding: 3.5rem 0; }
.start-band, .library { background: var(--paper); }
.pill-grid, .card-grid, .split { display: grid; gap: 1.25rem; }
.pill-grid, .split { grid-template-columns: 1fr 1fr; }
.card-grid { grid-template-columns: repeat(2, 1fr); }
.pill-card, .guide-card, .panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem; box-shadow: var(--shadow);
}
.pill-blue { border-top: 6px solid var(--blue); }
.pill-red { border-top: 6px solid var(--red); }
.panel-navy { background: var(--navy); color: #fff; border: 0; }
.panel-navy h3 { color: #fff; }
.panel-red { border-top: 6px solid var(--red); }
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 1.4rem; margin: 0 0 0.55rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55em; height: 0.55em; background: var(--red); border-radius: 50%; }
.panel-navy .tick-list li::before { background: #F3B4BE; }
.fine-print { font-size: 0.9rem; color: var(--muted); }
.panel-navy .fine-print { color: #C9D4DE; }
.guide-card h3 a { text-decoration: none; color: var(--navy); }
.guide-card h3 a:hover { color: var(--red); }
.text-link { font-weight: 600; text-decoration: none; color: var(--red); }
.text-link:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: #D5DEE6; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-name, .footer-heading { color: #fff; }
.footer-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.6rem 0 0.2rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: #D5DEE6; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-disclaimers {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.4rem;
  font-size: 0.82rem; line-height: 1.55; color: #B7C3CD;
}
.footer-disclaimers strong { color: #fff; }
.footer-copy { margin-top: 1.2rem; color: #8E9CA8; }

/* Post / Ghost content */
.gh-content { font-size: 1.05rem; }
.gh-content h2, .gh-content h3 { margin-top: 1.8em; }
.gh-content blockquote {
  margin: 1.4rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--red);
  background: var(--paper); color: var(--navy-2);
}
.gh-content table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: 0.95rem; }
.gh-content th, .gh-content td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; }
.gh-content th { background: var(--navy); color: #fff; font-weight: 600; }
.gh-content tr:nth-child(even) td { background: var(--paper); }
.gh-content .kg-card { margin: 1.5rem 0; }
.gh-content a { word-break: break-word; }
.post-foot { padding: 0 0 3rem; color: var(--muted); }
.post-meta { color: #C9D4DE; }

/* Interactive tools */
.tool-app {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem; margin-top: 0.5rem;
}
.tool-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 1.2rem; }
.tool-progress span { display: block; height: 100%; background: var(--red); width: 0; transition: width 0.25s ease; }
.tool-q { font-family: var(--cond); font-size: 1.4rem; margin-bottom: 0.4rem; }
.tool-help { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.opt-list { display: grid; gap: 0.55rem; }
.opt, .opt-multi {
  display: block; width: 100%; text-align: left; background: var(--paper); border: 2px solid transparent;
  border-radius: 12px; padding: 0.85rem 1rem; font: inherit; cursor: pointer; color: var(--navy);
}
.opt:hover, .opt-multi:hover, .opt[aria-pressed="true"], .opt-multi[aria-pressed="true"] {
  border-color: var(--navy); background: #fff;
}
.opt[aria-pressed="true"], .opt-multi[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.tool-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.result-card {
  border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 12px;
  padding: 1rem 1.1rem; margin: 0 0 0.9rem; background: #fff;
}
.result-card h3 { margin-bottom: 0.3rem; }
.result-card .src { font-size: 0.88rem; }
.notice {
  background: var(--paper); border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.92rem; margin: 0 0 1rem;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; padding: 0 0 3rem; }

@media (max-width: 860px) {
  .pill-grid, .split, .card-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: var(--navy-2); padding: 1rem 1.2rem 1.3rem;
    flex-direction: column; align-items: stretch; border-bottom: 3px solid var(--red);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-actions { justify-content: flex-start; }
  .brand-tagline { display: none; }
  .hero, .page-hero { padding: 2.4rem 0 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
