/* Suicide Prevention Month — stylesheet
   Palette follows the teal + purple suicide-prevention awareness ribbon. */

:root {
  --teal:       #1b7f79;
  --teal-deep:  #125f5a;
  --teal-light: #8fd4cc;
  --teal-wash:  #eef7f6;

  --purple:       #5b2c6f;
  --purple-deep:  #3d1d4b;
  --purple-light: #c4a5d9;
  --purple-wash:  #f5f0f8;

  --ink:      #1c1b22;
  --ink-soft: #4a4854;
  --ink-mute: #6c6a78;

  --bg:      #fbfaf9;
  --surface: #ffffff;
  --line:    #e5e2e8;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;

  --wrap: 1120px;
  --prose: 68ch;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--purple-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
a { color: var(--teal-deep); text-underline-offset: 2px; }
a:hover { color: var(--purple); }

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.prose { max-width: var(--prose); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Crisis bar ---------- */

.crisis-bar {
  background: var(--purple-deep);
  color: #f3ecf7;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 9px 0;
}
.crisis-bar .wrap {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  align-items: baseline; justify-content: center; text-align: center;
}
.crisis-bar strong { font-weight: 600; color: #fff; }
.crisis-bar a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.crisis-bar a:hover { color: var(--teal-light); }
.crisis-bar .sep { opacity: .4; }

/* ---------- Header ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 600;
  color: var(--purple-deep); text-decoration: none; line-height: 1.25;
}
.brand:hover { color: var(--teal-deep); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 8px 13px; border-radius: 7px; font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
}
.nav a:hover { background: var(--teal-wash); color: var(--teal-deep); }
.nav a[aria-current="page"] { color: var(--purple); background: var(--purple-wash); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 8px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--purple); border-color: var(--purple-light); }
.btn-secondary:hover { background: var(--purple-wash); color: var(--purple-deep); }
.btn-sm { padding: 8px 15px; font-size: .875rem; }

/* ---------- Sections ---------- */

.section { padding: 68px 0; }
.section-tight { padding: 46px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 650;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep);
  margin: 0 0 12px;
}

.lede { font-size: 1.16rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 400px at 15% -10%, var(--purple-wash), transparent 70%),
    radial-gradient(760px 380px at 88% 8%, var(--teal-wash), transparent 68%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.24rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  background: var(--teal-wash); color: var(--teal-deep);
  font-size: .88rem; font-weight: 700;
}

/* ---------- Featured CTA module ---------- */

.feature {
  background: linear-gradient(135deg, var(--purple-deep), var(--teal-deep));
  border-radius: 14px; padding: 46px; color: #fff;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 38px; align-items: center;
}
.feature h2 { color: #fff; margin-bottom: .35em; }
.feature p { color: rgba(255,255,255,.9); }
.feature .btn-primary { background: #fff; color: var(--purple-deep); }
.feature .btn-primary:hover { background: var(--teal-light); color: var(--purple-deep); }
.feature-list { list-style: none; margin: 0; padding: 0; font-size: .96rem; }
.feature-list li { padding: 7px 0 7px 26px; position: relative; color: rgba(255,255,255,.92); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 12px; height: 2px; border-radius: 2px; background: var(--teal-light);
}
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; padding: 32px; } }

/* ---------- Org list ---------- */

.org-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.org {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
  align-items: start; padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.org:last-child { border-bottom: 0; }
.org h3 { margin: 0 0 4px; font-size: 1.05rem; }
.org p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.org .region {
  display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 20px;
  background: var(--purple-wash); color: var(--purple);
  font-size: .74rem; font-weight: 600; letter-spacing: .03em;
}
@media (max-width: 620px) { .org { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-deep); color: rgba(255,255,255,.82);
  padding: 56px 0 34px; font-size: .92rem; margin-top: 0;
}
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.site-footer a:hover { color: var(--teal-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 38px; }
.footer-bottom {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.6);
}
.footer-bottom p { margin-bottom: .8em; }
.footer-bottom a { color: rgba(255,255,255,.82); }

/* ---------- Utilities ---------- */

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--purple-deep); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

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

/* ================= Media resources page ================= */

/* Jump nav */
.jumpnav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0; border-block: 1px solid var(--line); background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.jumpnav .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jumpnav a {
  padding: 6px 13px; border-radius: 20px; font-size: .875rem; font-weight: 500;
  text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line);
}
.jumpnav a:hover { background: var(--teal-wash); border-color: var(--teal-light); color: var(--teal-deep); }

/* Notice */
.notice {
  border: 1px solid var(--purple-light); background: var(--purple-wash);
  border-radius: var(--radius); padding: 18px 22px; font-size: .94rem; color: var(--purple-deep);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { font-weight: 650; }

/* Asset cards */
.asset-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.asset {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.asset-thumb {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 18px; display: flex; align-items: center; justify-content: center;
  min-height: 168px;
}
.asset-thumb img { max-height: 190px; width: auto; border-radius: 3px; }
.asset-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.asset-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; color: var(--ink); margin: 0; }
.asset-meta { font-size: .82rem; color: var(--ink-mute); margin: 0; }
.asset-desc { font-size: .89rem; color: var(--ink-soft); margin: 6px 0 0; }
.asset-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.asset-dl a {
  font-size: .8rem; font-weight: 600; text-decoration: none;
  padding: 6px 12px; border-radius: 6px;
  background: var(--teal-wash); color: var(--teal-deep); border: 1px solid transparent;
}
.asset-dl a:hover { background: var(--teal); color: #fff; }

/* Color palette */
.swatch-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.swatch {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.swatch-chip { height: 92px; }
.swatch-info { padding: 13px 15px 15px; }
.swatch-info h4 { margin: 0 0 3px; font-size: .92rem; font-weight: 650; color: var(--ink); }
.swatch-info .role { font-size: .78rem; color: var(--ink-mute); margin: 0 0 10px; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 7px 11px; border-radius: 6px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  text-align: left; transition: background .15s ease, border-color .15s ease;
}
.copy-btn:hover { background: var(--teal-wash); border-color: var(--teal-light); }
.copy-btn .ico { margin-left: auto; font-size: .72rem; color: var(--ink-mute); font-family: var(--sans); }
.copy-btn.copied { background: var(--teal); color: #fff; border-color: var(--teal); }
.copy-btn.copied .ico { color: rgba(255,255,255,.85); }

/* Palette strip / code block */
.codeblock {
  background: #241a2c; color: #e9e2ee; border-radius: var(--radius);
  padding: 20px 22px; overflow-x: auto; white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.75;
}
.codeblock .c { color: #9c8fa8; }
.codeblock .k { color: var(--teal-light); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; }
.section-head .lede { max-width: 62ch; }

/* Definition-style spec list */
.spec { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.spec li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec li:last-child { border-bottom: 0; }
.spec dt, .spec .term { font-weight: 600; color: var(--ink); min-width: 148px; flex: none; }
.spec .val { color: var(--ink-soft); }

@media (max-width: 460px) {
  .brand { font-size: .95rem; }
  .brand span { white-space: normal; max-width: 12ch; }
  .site-header .wrap { min-height: 64px; }
}

/* ================= Key dates timeline =================
   Three nested spans on one shared September scale, so the containment
   (month > week > day) is visible rather than described. The track is a
   30-column grid, one column per day, so spans land on exact dates. */

.dates {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px 24px;
}

.tl-row {
  display: grid;
  grid-template-columns: 232px 1fr;
  align-items: center;
  gap: 24px;
  padding: 9px 0;
}

.tl-name { min-width: 0; }
.tl-name h3 {
  font-family: var(--sans); font-size: .97rem; font-weight: 650;
  color: var(--ink); margin: 0 0 1px; line-height: 1.3;
}
.tl-name p { margin: 0; font-size: .82rem; color: var(--ink-mute); }

.tl-track {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  align-items: center;
  min-height: 38px;
}

.tl-bar {
  grid-row: 1;
  display: flex; align-items: center;
  height: 34px; padding: 0 14px; border-radius: 6px;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.tl-month { grid-column: 1 / -1; background: var(--teal-wash); color: var(--teal-deep); box-shadow: inset 0 0 0 1px var(--teal-light); }
.tl-week  { grid-column: 6 / 13; background: var(--purple-light); color: var(--purple-deep); justify-content: center; padding: 0 8px; }

/* The day is a point, not a span: a dot on the same scale. */
.tl-day {
  grid-row: 1; grid-column: 10 / 11;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.tl-day::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 4px var(--purple-wash);
}
.tl-day span {
  position: absolute; left: 50%; transform: translateX(-50%); top: 22px;
  font-size: .74rem; font-weight: 650; color: var(--purple); white-space: nowrap;
}

/* Day-number axis */
.tl-axis {
  display: grid; grid-template-columns: repeat(30, 1fr);
  margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--line);
}
.tl-axis span { font-size: .72rem; color: var(--ink-mute); text-align: center; }
.tl-axis .lead { text-align: left; }
.tl-axis .trail { text-align: right; }

/* The label column collapses on narrow screens; the shared scale is the point,
   so the track keeps its proportions and the names stack above it. */
@media (max-width: 720px) {
  .dates { padding: 24px 20px 20px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .tl-bar { font-size: .76rem; padding: 0 9px; }
  .tl-week { font-size: 0; padding: 0; }
  .tl-day span { font-size: .7rem; }
}
