/* ============================================================
   Paul's Corner — 2026 design system
   Loaded AFTER each page's original inline <style> so it
   re-themes existing markup without touching page content.
   ============================================================ */

:root {
  --cream: #F7F2E9;
  --paper: #FFFDF8;
  --navy: #22334A;
  --navy-2: #18263A;
  --navy-3: #111C2C;
  --ink: #27303C;
  --mid: #5C6B7C;
  --gold: #D9A44A;
  --gold-dk: #A97B25;
  --crisis: #7A2E2A;
  --line: rgba(34, 51, 74, 0.12);
  --radius: 18px;
  --shadow: 0 18px 44px -24px rgba(17, 28, 44, 0.38);
  --shadow-sm: 0 8px 22px -16px rgba(17, 28, 44, 0.4);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────── */
body {
  font-family: var(--sans) !important;
  background: var(--cream) !important;
  color: var(--ink) !important;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif) !important;
  letter-spacing: -0.015em;
  color: var(--navy);
}

a { color: var(--gold-dk); }

::selection { background: rgba(217, 164, 74, 0.35); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Crisis bar ───────────────────────────────────────── */
.crisis-bar {
  background: var(--crisis) !important;
  font-family: var(--sans) !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 20px !important;
  border-bottom: none !important;
}
.crisis-bar a {
  color: #F7D9AE !important;
  border-bottom-color: rgba(247, 217, 174, 0.55) !important;
}
.crisis-bar a:hover { color: #fff !important; }

/* ── Header / nav ─────────────────────────────────────── */
nav {
  background: var(--paper) !important;
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -26px rgba(17, 28, 44, 0.5) !important;
}
.nav-inner { height: 68px; max-width: 1180px; }
.nav-logo {
  color: var(--navy) !important;
  font-family: var(--serif) !important;
  font-weight: 900;
  font-size: 22px;
}
.nav-logo span { color: var(--gold-dk) !important; }
.nav-links a {
  font-family: var(--sans) !important;
  color: var(--mid) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
}
.nav-links a:hover {
  background: rgba(34, 51, 74, 0.07) !important;
  color: var(--navy) !important;
}
.nav-links a[aria-current="page"] { color: var(--navy) !important; }
.nav-cta,
.nav-cta-mobile {
  background: var(--gold) !important;
  color: var(--navy-3) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: #E7B865 !important; }
.nav-ai-badge {
  color: var(--gold-dk) !important;
  border-color: rgba(169, 123, 37, 0.55) !important;
  font-family: var(--sans) !important;
}
.nav-hamburger span { background: var(--navy) !important; }
.nav-mobile {
  background: var(--paper) !important;
  border-top: 1px solid var(--line);
}
.nav-mobile a { color: var(--navy) !important; font-family: var(--sans) !important; font-weight: 700; }
.nav-mobile a:hover { background: rgba(34, 51, 74, 0.06) !important; }
.nav-mobile .nav-ai-badge { color: var(--gold-dk) !important; }

/* ── Sections & slabs ─────────────────────────────────── */
.section { padding: 68px 22px !important; }
.section-inner { max-width: 900px; }
.section-inner.wide { max-width: 1120px; }

.bg-white .section-inner,
.bg-warm .section-inner {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 44px 40px !important;
}
.bg-warm .section-inner { background: #FBF6EC !important; }

.bg-dark { color: rgba(255, 255, 255, 0.86) !important; }
.bg-dark .section-inner {
  background: var(--navy) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 44px 40px !important;
}
.bg-dark h2, .bg-dark h1 { color: #fff !important; }
.bg-dark h3, .bg-dark h4 { color: var(--gold) !important; }
.bg-dark a { color: #F2CE8B !important; }
.bg-dark p { color: rgba(255, 255, 255, 0.82) !important; }

.section-label {
  font-family: var(--sans) !important;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold-dk) !important;
}
.bg-dark .section-label { color: var(--gold) !important; }

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* ── Hero (interior pages) ────────────────────────────── */
.hero {
  background: var(--navy) !important;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero::before {
  background:
    radial-gradient(620px 320px at 82% 0%, rgba(217, 164, 74, 0.22), transparent 62%),
    radial-gradient(520px 300px at 0% 100%, rgba(217, 164, 74, 0.1), transparent 60%) !important;
}
.hero h1 {
  color: #fff !important;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero h1 em { color: var(--gold) !important; font-style: italic; }
.hero-sub { font-family: var(--sans) !important; color: rgba(255, 255, 255, 0.82) !important; }
.hero-badge {
  font-family: var(--sans) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(217, 164, 74, 0.45) !important;
  background: rgba(217, 164, 74, 0.1) !important;
  border-radius: 999px !important;
}
.hero-stat .num { color: var(--gold) !important; font-family: var(--serif) !important; }
.hero-stat .label { font-family: var(--sans) !important; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.btn-primary { background: var(--gold) !important; color: var(--navy-3) !important; }
.btn-primary:hover { background: #E7B865 !important; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

/* ── Cards, callouts, lists ───────────────────────────── */
.card {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
}
.card h4 { color: var(--navy) !important; font-family: var(--serif) !important; }
.card p { font-family: var(--sans) !important; color: var(--mid) !important; }
.bg-dark .card { background: rgba(255, 255, 255, 0.06) !important; border-color: rgba(255, 255, 255, 0.12) !important; }
.bg-dark .card h4 { color: var(--gold) !important; }

.callout {
  border-radius: 14px !important;
  border-left-width: 4px !important;
  font-family: var(--sans) !important;
}
.callout.info { border-color: var(--navy) !important; background: rgba(34, 51, 74, 0.06) !important; }
.callout.info strong { color: var(--navy) !important; }
.callout.danger { border-color: var(--crisis) !important; background: rgba(122, 46, 42, 0.07) !important; }
.callout.danger strong { color: var(--crisis) !important; }

.steps li .step-body h4 { color: var(--gold) !important; }
.steps li::before { background: var(--gold) !important; color: var(--navy-3) !important; }

.warning-box {
  border-radius: var(--radius) !important;
  background: rgba(122, 46, 42, 0.14) !important;
  border-color: rgba(122, 46, 42, 0.45) !important;
}
.warning-box h3 { color: #FFB1A6 !important; }

.tab-btn,
.resource-tab-btn {
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}
.tab-btn.active { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
.resource-tab-btn.active { background: var(--gold) !important; color: var(--navy-3) !important; border-color: var(--gold) !important; }

.sign-list li { font-family: var(--sans) !important; border-radius: 12px; }
.sign-list li.danger { border-left-color: var(--crisis) !important; }

.resource-card {
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.resource-card .rc-tag { color: var(--gold) !important; font-family: var(--sans) !important; }
.resource-card a { color: #F2CE8B !important; }

.faq-question { font-family: var(--serif) !important; }
.faq-answer { font-family: var(--sans) !important; }

.hotline-box {
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
.hotline-box .hl-label { color: var(--gold) !important; font-family: var(--sans) !important; }
.get-help-section { background: var(--navy) !important; border-radius: var(--radius); }

.back-to-top {
  background: var(--navy) !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--gold) !important; color: var(--navy-3) !important; }

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy-3) !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-family: var(--sans) !important;
}
.footer-brand { font-family: var(--serif) !important; font-weight: 900; color: #fff !important; }
.footer-brand span { color: var(--gold) !important; }
footer a { color: #F2CE8B !important; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1) !important; }

/* ── Floating "Need help?" pill + modal ───────────────── */
.help-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-3);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(17, 28, 44, 0.55);
  animation: pcBob 3.4s ease-in-out infinite;
}
.help-pill:hover { background: #E7B865; animation-play-state: paused; }
@keyframes pcBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .help-pill { animation: none; }
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(17, 28, 44, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 30px 70px -20px rgba(17, 28, 44, 0.6);
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--mid);
  cursor: pointer;
}

/* ── Forms ────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field .err { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--crisis); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-family: var(--sans); font-size: 14px; font-weight: 700; }
.form-msg.ok { color: #1E6B4F; }
.form-msg.bad { color: var(--crisis); }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-3);
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── H1 parity (added 2026-08-16) ──────────────────────
   Interior pages now lead with a real <h1>. Give it the
   same scale the section <h2> had so nothing shifts. */
h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }

/* ── Footer disclosure legibility ──────────────────────
   The affiliation line has to be readable, not 12px at
   30% opacity. */
.footer-bottom {
  font-size: 13.5px !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62) !important;
  max-width: 780px;
}
.footer-bottom a {
  color: rgba(232, 164, 74, 0.95) !important;
  text-decoration: underline;
}
