/* Beyond the Bet — site styles. Calm teal + warm amber, system fonts, no external requests. */
:root {
  --teal-900: #0b3a47;
  --teal-700: #0f5565;
  --teal-600: #17707f;
  --teal-500: #2a8a98;
  --teal-100: #d7e9ec;
  --teal-50:  #eef5f6;
  --amber-700: #8f5a0c;
  --amber-600: #b1731a;
  --amber-500: #e0a030;
  --amber-400: #f2b84b;
  --amber-50:  #fdf5e6;
  --ink:   #16262b;
  --muted: #475c62;
  --line:  #d9e3e5;
  --bg:    #fbfcfc;
  --card:  #ffffff;
  --danger: #a3322d;
  --focus: #c77a12;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11,58,71,.06), 0 8px 24px -12px rgba(11,58,71,.18);
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--teal-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip-link { position: absolute; left: 8px; top: -100px; background: var(--teal-900); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 8px; }

/* Crisis bar */
.crisis-bar { background: var(--teal-900); color: #fff; font-size: .95rem; }
.crisis-bar__inner { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; padding: 8px 0; text-align: center; }
.crisis-bar__lead { opacity: .9; }
.crisis-bar__links { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; align-items: center; }
.crisis-bar a { color: #fff; text-decoration: none; padding: 2px 4px; border-radius: 4px; }
.crisis-bar a strong { color: var(--amber-400); font-weight: 700; }
.crisis-bar a:hover strong, .crisis-bar a:focus-visible strong { text-decoration: underline; }
.crisis-bar__sub { opacity: .85; }
.crisis-bar__sep { opacity: .5; }
.crisis-bar :focus-visible { outline-color: var(--amber-400); }

/* Header / nav */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand__the { font-weight: 400; font-style: italic; color: var(--teal-600); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:not(.btn):hover { background: var(--teal-50); color: var(--teal-900); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--teal-700); box-shadow: inset 0 -3px 0 var(--amber-500); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.site-nav__cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; color: var(--ink); align-items: center; gap: 8px; cursor: pointer; }
.nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; gap: 2px; }
  .site-nav a:not(.btn) { padding: 12px 10px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 4px 0 0 var(--amber-500); border-radius: var(--radius-sm); background: var(--teal-50); }
  .site-nav__cta { margin: 8px 0 0; }
  .site-nav__cta .btn { width: 100%; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 650; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--teal-900); color: #fff; }
.btn--accent { background: var(--amber-500); color: var(--teal-900); }
.btn--accent:hover { background: var(--amber-400); color: var(--teal-900); }
.btn--outline { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn--outline:hover { background: var(--teal-50); color: var(--teal-900); }
.btn--light { background: #fff; color: var(--teal-900); }
.btn--light:hover { background: var(--teal-50); color: var(--teal-900); }
.btn--lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--teal-50); }
.section--dark { background: var(--teal-900); color: #e9f1f3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--amber-400); }
.section--warm { background: var(--amber-50); }
.section__head { max-width: 68ch; margin-bottom: 32px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-700); margin-bottom: 10px; }
.section--dark .eyebrow { color: var(--amber-400); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-50) 0%, var(--bg) 100%); padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,184,75,.22), rgba(242,184,75,0)); pointer-events: none; }
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: 1.22rem; color: var(--muted); max-width: 58ch; }
.hero .btn-row { margin-top: 28px; }
.hero__note { margin-top: 22px; font-size: .95rem; color: var(--muted); }

/* Page header (interior) */
.page-head { background: var(--teal-50); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-bottom: 0; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s; }
.card--link:hover { transform: translateY(-2px); border-color: var(--teal-500); color: inherit; }
.card--link h3 { color: var(--teal-700); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: 6px; }
.card__icon svg { width: 24px; height: 24px; }
.card__more { margin-top: auto; font-weight: 650; color: var(--teal-700); }
.card--accent { border-top: 4px solid var(--amber-500); }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li + li { margin-top: .5em; }
.two-col { display: grid; gap: 40px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 92px; }
.aside .card + .card { margin-top: 16px; }

/* Callouts */
.callout { border-left: 5px solid var(--amber-500); background: var(--amber-50); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.6em 0; }
.callout--teal { border-color: var(--teal-500); background: var(--teal-50); }
.callout p:last-child { margin-bottom: 0; }
.callout--emergency { border-color: var(--danger); background: #fbf0ef; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-100); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: .55em; width: 5px; height: 9px; border: solid var(--teal-700); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--teal-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; }
.steps h3 { margin: .35em 0 .25em; font-size: 1.15rem; }
.steps p:last-child { margin-bottom: 0; }

/* Resource list */
.resource { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.resource:last-child { border-bottom: 1px solid var(--line); }
.resource h3 { margin: 0 0 .25em; font-size: 1.15rem; }
.resource p { margin: 0; color: var(--muted); }
.resource__meta { font-size: .9rem; color: var(--teal-700); font-weight: 600; }
.resource__action { white-space: nowrap; }
@media (max-width: 640px) { .resource { grid-template-columns: 1fr; } }

/* Help strip (above footer) */
.help-strip { background: var(--teal-700); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.help-strip h2 { color: #fff; }
.help-strip > .wrap > p { max-width: 66ch; color: #dbeaed; font-size: 1.08rem; }
.help-strip__cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
.help-card { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 22px 24px; color: #fff; text-decoration: none; transition: background-color .15s; }
.help-card:hover { background: rgba(255,255,255,.14); color: #fff; }
.help-card:focus-visible { outline-color: var(--amber-400); }
.help-card__label { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.help-card__number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--amber-400); }
.help-card__meta { font-size: .92rem; opacity: .9; }

/* Footer */
.site-footer { background: var(--teal-900); color: #c9dadf; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1.3fr; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__the { color: var(--amber-400); }
.site-footer__tag { font-family: var(--font-display); font-style: italic; color: var(--amber-400); }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; }
.site-footer__legal p { margin: 0 0 6px; }
.site-footer__disclaimer { font-size: .85rem; opacity: .8; }

/* Quick exit */
.quick-exit { position: fixed; right: 16px; bottom: 16px; z-index: 100; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: inline-flex; align-items: center; gap: 8px; }
.quick-exit:hover { background: #000; }
.quick-exit:focus-visible { outline-color: var(--amber-400); }

/* Forms */
.form { max-width: 640px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 650; margin-bottom: 6px; }
.form-hint { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.form-input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b7c6ca; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.form-input:focus { border-color: var(--teal-600); outline: 3px solid rgba(42,138,152,.25); outline-offset: 0; }
textarea.form-input { min-height: 160px; resize: vertical; }
.form-required { color: var(--danger); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.alert--error { background: #fbf0ef; border-color: #e5b9b6; color: var(--danger); }
.alert--success { background: #eef7f0; border-color: #bfdcc6; color: #1f5a2f; }

/* Stats */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--teal-700); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.stat__label { color: var(--muted); font-size: .95rem; margin: 0; }
.stat__src { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* Donate */
.donate-embed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.donate-embed iframe { width: 100%; border: 0; min-height: 600px; }
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tier { background: var(--teal-50); border-radius: var(--radius-sm); padding: 16px; }
.tier strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-700); margin-bottom: 4px; }
.tier span { color: var(--muted); font-size: .95rem; }

/* Misc */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-600); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.pill { display: inline-block; background: var(--teal-100); color: var(--teal-900); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 650; }
