/* Deltas for the mental-health campaign flow (/doorstops/mental-health).

   The step system, cards, templates and callouts come from bathroom-flow.css;
   this file re-tints them and adds the five pieces this page has that the
   others don't: the crisis bar, the staffing-ratio readout, the state-programs
   card, the local-funders card, and the per-play blocks in step 5.

   Teal rather than the bathroom flow's blue or the period flow's indigo. The
   obvious choices here are all wrong: green reads wellness-app, and this page
   is an organizing tool rather than a feelings tool. Teal is calm without
   being therapeutic about it. */

:root {
  --bf-accent: hsl(190, 68%, 32%);
  --bf-accent-soft: hsl(190, 58%, 95%);
}

body.mh {
  background: linear-gradient(170deg, #EFF6F8 0%, #F3F8F9 48%, #F0F4FA 100%) fixed;
  background-color: #F1F6F8;
}

/* the shared sheet hard-codes the blue in a few focus rings and borders */
.mh .bf-step.is-open { border-color: hsl(190, 40%, 80%); }
.mh .bf-input:focus { box-shadow: 0 0 0 3px hsla(190, 68%, 32%, 0.16); }
.mh .bf-choice:hover { border-color: hsl(190, 44%, 72%); }
.mh .bf-unsure, .mh .bf-callout { border-color: hsl(190, 34%, 82%); }
.mh .bf-resume { border-color: hsl(190, 34%, 82%); }
.mh .bf-spinner { border-color: hsla(190, 68%, 32%, 0.25); border-top-color: var(--bf-accent); }

.mh .bf-title { max-width: 19ch; margin-left: auto; margin-right: auto; }

#bf-school-status:empty { display: none; }

.mh-checklist { list-style: disc; padding-left: 22px; margin: 6px 0 14px; }
.mh-checklist li { list-style: disc; font-size: 12.5pt; line-height: 1.6; color: var(--bf-soft); margin-bottom: 6px; }

/* --------------------------------------------------------- crisis bar
   Above the fold, above the campaign, on every visit. Amber rather than red:
   it has to be impossible to miss without making the page feel like an
   emergency, because most people reading this are organizers, not in crisis. */

.mh-crisis {
  border: 1px solid hsl(38, 62%, 76%);
  border-left: 4px solid hsl(35, 82%, 48%);
  background: hsl(42, 88%, 96%);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.mh-crisis p { margin: 0; font-size: 12pt; line-height: 1.6; color: var(--bf-ink); }

/* ------------------------------------------------------- staff counts */

.mh-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 12px 0 6px;
}
.mh-counts .bf-field { margin: 0; }

/* ------------------------------------------------------ ratio readout */

.mh-ratios { margin: 14px 0 6px; }
.mh-ratios ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.mh-ratios li {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--bf-line);
  border-left-width: 4px;
  border-radius: 11px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: baseline;
}
.mh-ratios li.is-bad { border-left-color: hsl(4, 66%, 52%); }
.mh-ratios li.is-ok { border-left-color: hsl(152, 52%, 38%); }
.mh-ratio-role {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 12.5pt;
  font-weight: 700;
  color: var(--bf-ink);
}
.mh-ratio-num {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 17pt;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(4, 66%, 46%);
  font-variant-numeric: tabular-nums;
}
.is-ok .mh-ratio-num { color: hsl(152, 52%, 32%); }
.mh-ratio-note { grid-column: 1 / -1; font-size: 11pt; line-height: 1.5; color: var(--bf-soft); }

/* -------------------------------------------- state / funders cards */

.mh-state, .mh-funders {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 4px 0 18px;
  border: 1px solid hsl(150, 40%, 78%);
  background: #EDFBF3;
}
.mh-funders { border-color: hsl(190, 40%, 78%); background: hsl(190, 58%, 96%); }
.mh-state--none, .mh-funders--none { border-color: var(--bf-line); background: #F7F7F9; }

.mh-kicker {
  display: block;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 10.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-done);
  margin: 0 0 4px;
}
.mh-funders .mh-kicker { color: var(--bf-accent); }
.mh-state--none .mh-kicker, .mh-funders--none .mh-kicker { color: var(--bf-soft); }

.mh-state h3, .mh-funders h3 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 15pt;
  color: var(--bf-ink);
  margin: 0 0 8px;
  line-height: 1.25;
}
.mh-state p, .mh-funders p { margin: 0 0 8px; font-size: 12.5pt; line-height: 1.6; color: var(--bf-ink); }
.mh-state a, .mh-funders a { display: inline; color: var(--bf-accent); text-decoration: underline; }

.mh-funder-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.mh-funder-list li {
  list-style: none;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid hsl(190, 34%, 86%);
  border-radius: 10px;
  background: #fff;
  font-size: 11.5pt;
  line-height: 1.55;
  color: var(--bf-soft);
}
.mh-funder-list strong { color: var(--bf-ink); }
.mh-unverified {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 99px;
  background: hsl(42, 88%, 92%);
  color: hsl(30, 72%, 34%);
  font-size: 9.5pt;
  font-weight: 600;
}

/* --------------------------------------------------------- programs */

.mh-programs { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 10px; }
.mh-programs li {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--bf-line);
  border-radius: 11px;
  background: #fff;
  font-size: 12pt;
  line-height: 1.55;
  color: var(--bf-soft);
}
.mh-programs strong { color: var(--bf-ink); }
.mh-programs a { display: inline; color: var(--bf-accent); text-decoration: underline; }
.mh-who {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--bf-accent-soft);
  color: var(--bf-accent);
  font-size: 9.5pt;
  font-weight: 600;
  vertical-align: 1px;
}

/* ------------------------------------------------------------- plays */

.mh-play { position: relative; }
.mh-play-speed {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--bf-accent-soft);
  color: var(--bf-accent);
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mh-play.is-active .mh-play-speed { background: #fff; }

.mh-playblock {
  border-top: 2px solid var(--bf-line);
  margin-top: 26px;
  padding-top: 20px;
}
.mh-playblock:first-child { border-top: none; margin-top: 6px; padding-top: 0; }
.mh-steps { list-style: decimal; padding-left: 22px; margin: 8px 0 14px; }
.mh-steps li { list-style: decimal; font-size: 12.5pt; line-height: 1.6; color: var(--bf-soft); margin-bottom: 8px; }
.mh-sub {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 12pt;
  font-weight: 700;
  color: var(--bf-ink);
  margin: 14px 0 6px;
}

/* ------------------------------------------------------- optional fold */

.mh-optional {
  margin-top: 22px;
  border: 1px dashed hsl(190, 30%, 76%);
  border-radius: 12px;
  background: #fff;
}
.mh-optional > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-family: 'League Spartan', 'Poppins', sans-serif;
  font-size: 13.5pt;
  font-weight: 700;
  color: var(--bf-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mh-optional > summary::-webkit-details-marker { display: none; }
.mh-optional > summary:hover { color: var(--bf-accent); }
.mh-optional-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bf-accent-soft);
  color: var(--bf-accent);
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mh-optional-body { padding: 0 16px 16px; }
.mh-optional-body p { font-size: 12.5pt; line-height: 1.65; color: var(--bf-soft); margin: 0 0 10px; }
.mh-optional-body ul { list-style: disc; padding-left: 22px; margin: 0 0 10px; }
.mh-optional-body li { list-style: disc; font-size: 12.5pt; line-height: 1.6; color: var(--bf-soft); margin-bottom: 6px; }
