/* suicidesupports.org shared layer: tokens, nav, crisis bar, buttons.
   Palette and type from the original Kalgoorlie page; buttons from
   ics.ceo/library/docs/best-button (Marrs green, gold trim). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --fg-light: #777;
  --bg: #fcfcfc;
  --bg-alt: #EEF4F9;
  --line: #DCE6EE;
  --card: #fff;
  --marrs: #2c5878;
  --marrs-hover: #0866A8;
  --marrs-active: #134A72;
  --marrs-tint: #e6ebef;
  --gold-trim: linear-gradient(135deg, #b8c4ce 0%, #2c5878 45%, #134A72 80%, #dfe7ee 100%);
  --gold: #2c5878;
  --glass: rgba(255, 255, 255, 0.55);
  /* From the dogs (Tia, 2 Nov 2026): navy bands, blue line, coral. --charcoal is the old name for navy. */
  --charcoal: #0E3A5C;
  --stripe: #2c5878;
  --coral: #b8c4ce;
  --on-dark: #F2F7FB;
  --on-dark-muted: rgba(242, 247, 251, .74);
  --radius: 8px;
  --max-w: 1100px;
  --serif: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.7; font-size: 17px; }
a { color: var(--marrs); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; margin: 0 auto; }

/* Crisis bar: styled once, in tools/chrome.mjs (chromeCss), for every page. */

/* Nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--marrs); padding: 2px; box-shadow: 0 0 0 2px #2c5878; }
.nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.nav ul a { color: var(--fg-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--fg); }

/* Marrs button: gold-trim wrapper, green face, acrylic gloss */
.mbtn {
  position: relative; display: inline-flex; border-radius: 999px; padding: 2.5px;
  background: var(--gold-trim); border: 0; cursor: pointer; text-decoration: none; user-select: none;
  box-shadow: 10px 18px 28px -4px rgba(0,40,40,.28), 4px 8px 12px -2px rgba(0,30,30,.18), 0 0 0 1px rgba(19,74,114,.3);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  font: inherit;
}
.mbtn > span {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: inherit; background: var(--marrs); color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .025em; text-transform: uppercase;
  padding: 14px 30px; transition: background-color .2s ease; width: 100%;
}
.mbtn > span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 40%, rgba(255,255,255,0) 60%);
}
.mbtn:hover { transform: translateY(-3px) scale(1.01); box-shadow: 14px 24px 36px -4px rgba(0,40,40,.32), 6px 12px 16px -2px rgba(0,30,30,.22), 0 0 14px rgba(255,255,255,.25); }
.mbtn:hover > span { background: var(--marrs-hover); }
.mbtn:active { transform: translateY(3px) scale(.98); box-shadow: 3px 6px 10px -2px rgba(0,40,40,.25), 1px 2px 4px -1px rgba(0,30,30,.15); }
.mbtn:active > span { background: var(--marrs-active); }
.mbtn:focus-visible { outline: 3px solid var(--marrs); outline-offset: 4px; }
.mbtn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.mbtn.big > span { font-size: 19px; padding: 20px 40px; }
.mbtn.round { border-radius: 50%; }
.mbtn.round > span { width: 220px; height: 220px; padding: 0; flex-direction: column; gap: 8px; font-size: 20px; }
/* Every button is the library one: no plain or white variants. */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* Shared type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); border: 1px solid #ccc; border-radius: 100px; padding: 6px 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.section { padding: 80px 24px; }

/* Page head: navy band, coral eyebrow, blue-to-coral stripe, as the home. */
.workhead { position: relative; text-align: center; background: var(--charcoal); color: var(--on-dark); padding: clamp(40px, 8vw, 80px) 24px clamp(36px, 6vw, 56px); }
.workhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--stripe), var(--coral)); }
.workhead h1 { color: #fff; }
.workhead h1 em { color: var(--coral); font-style: italic; }
.workhead p { color: var(--on-dark-muted); }
.workhead .eyebrow { color: var(--coral); border-color: rgba(184,196,206, .5); }
.section-alt { background: var(--bg-alt); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 24px; color: var(--fg-muted); font-size: 14px; text-align: center; }
.foot a { color: var(--fg-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
