/* ==========================================================================
   Baatcheet / The Yanai Foundation — site stylesheet
   Plain CSS. No framework, no build step, no external requests.
   Drop into your theme and enqueue it.

   Everything is driven by the custom properties in :root — change the six
   colour values there and the whole site follows.
   ========================================================================== */

:root {
  /* Brand — change these six and you've rebranded the site */
  --bc-accent:        #5c3566;
  --bc-accent-dark:   #472850;
  --bc-tint:          #f4eef7;
  --bc-tint-2:        #eef4f7;
  --bc-surface:       #faf8fb;
  --bc-border:        #e5d8ec;

  /* Text */
  --bc-ink:           #1f1a22;
  --bc-ink-soft:      #55505a;
  --bc-ink-faint:     #77717c;
  --bc-on-accent:     #ffffff;

  /* Status */
  --bc-danger:        #a94442;
  --bc-danger-bg:     #f9eaea;
  --bc-warn:          #8a6d3b;
  --bc-warn-bg:       #fcf8e3;
  --bc-info:          #2c6b8a;
  --bc-info-bg:       #eef6fa;

  /* Scale */
  --bc-wrap:          1140px;
  --bc-wrap-narrow:   760px;
  --bc-radius:        8px;
  --bc-gap:           1.5rem;

  --bc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

.bc {
  font-family: var(--bc-font);
  color: var(--bc-ink);
  font-size: 17px;
  line-height: 1.65;
}

.bc h1, .bc h2, .bc h3, .bc h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--bc-ink);
  font-weight: 700;
}

.bc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); }
.bc h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.bc h3 { font-size: 1.25rem; }
.bc h4 { font-size: 1.05rem; }

.bc p, .bc ul, .bc ol { margin: 0 0 1rem; }
.bc ul, .bc ol { padding-left: 1.25rem; }
.bc li { margin-bottom: 0.4rem; }

.bc a { color: var(--bc-accent); text-decoration: underline; text-underline-offset: 2px; }
.bc a:hover { color: var(--bc-accent-dark); }

/* Visible focus for keyboard users. Do not remove — a lot of this site's
   audience relies on it. */
.bc a:focus-visible,
.bc button:focus-visible,
.bc summary:focus-visible,
.bc input:focus-visible,
.bc select:focus-visible,
.bc textarea:focus-visible {
  outline: 3px solid var(--bc-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.bc img { max-width: 100%; height: auto; }

/* Screen-reader-only text */
.bc-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.bc-section { padding: 3.5rem 1.25rem; }
.bc-section--tight  { padding-block: 2rem; }
.bc-section--tint   { background: var(--bc-surface); }
.bc-section--panel  { background: var(--bc-tint); }
.bc-section--accent { background: var(--bc-accent); color: var(--bc-on-accent); }

.bc-section--accent h1,
.bc-section--accent h2,
.bc-section--accent h3 { color: var(--bc-on-accent); }
.bc-section--accent a  { color: var(--bc-on-accent); }
/* Same trap as the crisis banner: `.bc a:hover` would otherwise repaint these
   accent-dark against an accent background. */
.bc-section--accent a:hover,
.bc-section--accent a:focus { color: var(--bc-on-accent); }

.bc-wrap   { max-width: var(--bc-wrap); margin-inline: auto; }
.bc-narrow { max-width: var(--bc-wrap-narrow); margin-inline: auto; }
.bc-center { text-align: center; }

.bc-grid { display: grid; gap: var(--bc-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .bc-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .bc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .bc-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .bc-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .bc-grid--sidebar { grid-template-columns: 2fr 1fr; }
}

.bc-lede { font-size: 1.2rem; line-height: 1.6; color: var(--bc-ink-soft); }
.bc-eyebrow { color: var(--bc-ink-faint); font-size: 1.05rem; margin-top: -0.25rem; }
.bc-footnote { font-size: 0.85rem; color: var(--bc-ink-faint); }
.bc-footnote a { color: var(--bc-ink-faint); }

/* --------------------------------------------------------------------------
   Crisis banner — the most important component on the site.
   Never hide it, never make it dismissible.
   -------------------------------------------------------------------------- */

.bc-crisis {
  background: var(--bc-accent);
  color: var(--bc-on-accent);
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 1rem;
}
.bc-crisis p { margin: 0; }
.bc-crisis a { color: var(--bc-on-accent); text-decoration: underline; font-weight: 700; }

/* The banner wrapper carries both `bc` and `bc-crisis`, so `.bc a:hover`
   (0,2,1) out-specifies `.bc-crisis a` (0,1,1) and repaints these numbers
   accent-dark on accent — a 1.28:1 contrast on the one element that must never
   be hard to read. Matching specificity here, placed after `.bc a:hover`. */
.bc-crisis a:hover,
.bc-crisis a:focus { color: var(--bc-on-accent); }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.bc-alert {
  border: 1px solid var(--bc-border);
  border-left-width: 4px;
  border-left-color: var(--bc-accent);
  background: var(--bc-tint);
  border-radius: var(--bc-radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.bc-alert :last-child { margin-bottom: 0; }

.bc-alert--danger { background: var(--bc-danger-bg); border-color: #e6c9c9; border-left-color: var(--bc-danger); }
.bc-alert--warn   { background: var(--bc-warn-bg);   border-color: #e6dcb8; border-left-color: var(--bc-warn); }
.bc-alert--info   { background: var(--bc-info-bg);   border-color: #c6dde8; border-left-color: var(--bc-info); }

/* Editorial placeholder — deliberately loud so it can't ship unnoticed */
.bc-placeholder {
  background: repeating-linear-gradient(45deg, var(--bc-warn-bg), var(--bc-warn-bg) 10px, #f7f1d8 10px, #f7f1d8 20px);
  border: 2px dashed var(--bc-warn);
  border-radius: var(--bc-radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: #6b5528;
}
.bc-placeholder :last-child { margin-bottom: 0; }

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

.bc-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--bc-radius);
  background: var(--bc-accent);
  color: var(--bc-on-accent);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--bc-accent);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.bc-btn:hover { background: var(--bc-accent-dark); border-color: var(--bc-accent-dark); color: var(--bc-on-accent); }

.bc-btn--outline { background: transparent; color: var(--bc-accent); }
.bc-btn--outline:hover { background: var(--bc-accent); color: var(--bc-on-accent); }

.bc-btn--invert { background: #fff; color: var(--bc-accent); border-color: #fff; }
.bc-btn--invert:hover { background: transparent; color: #fff; }

/* --------------------------------------------------------------------------
   Button colour, specificity-corrected. Do not simplify these selectors.

   `.bc a` (0,1,1 — class + element) out-specifies `.bc-btn` (0,1,0 — class
   only), so a bare `.bc-btn { color: … }` loses to the generic link colour.
   Every solid anchor button then renders accent-on-accent and disappears.
   `.bc-section--accent a` (0,1,1) does the same thing to `.bc-btn--invert`,
   giving white-on-white.

   Each rule below carries the element type so it matches or beats those, and
   the block sits after both of them so ties resolve here. Drop the `a` from
   any selector and that button silently becomes invisible again.
   -------------------------------------------------------------------------- */

.bc a.bc-btn,
.bc button.bc-btn { color: var(--bc-on-accent); }
.bc a.bc-btn:hover { color: var(--bc-on-accent); }

/* `.bc a` also carries `text-decoration: underline`, which beats `.bc-btn`'s
   `none` for the same reason and leaves every button underlined. */
.bc a.bc-btn,
.bc a.bc-btn:hover { text-decoration: none; }

/* The variants must cover <button> as well as <a>: `.bc button.bc-btn` above is
   (0,2,1) and would otherwise paint an outline *button* white on white. */
.bc a.bc-btn--outline,
.bc button.bc-btn--outline { color: var(--bc-accent); }
.bc a.bc-btn--outline:hover,
.bc button.bc-btn--outline:hover { color: var(--bc-on-accent); }

.bc a.bc-btn--invert,
.bc button.bc-btn--invert { color: var(--bc-accent); }
.bc a.bc-btn--invert:hover,
.bc button.bc-btn--invert:hover { color: #fff; }

/* Inside an accent section the page is already accent-coloured, so a solid
   button has no contrast against it and an outline button's border vanishes.
   Flip both to the inverted treatment. */
.bc-section--accent a.bc-btn,
.bc-section--accent button.bc-btn {
  background: #fff;
  color: var(--bc-accent);
  border-color: #fff;
}
.bc-section--accent a.bc-btn:hover,
.bc-section--accent button.bc-btn:hover {
  background: transparent;
  color: var(--bc-on-accent);
  border-color: var(--bc-on-accent);
}

.bc-section--accent a.bc-btn--outline {
  background: transparent;
  color: var(--bc-on-accent);
  border-color: var(--bc-on-accent);
}
.bc-section--accent a.bc-btn--outline:hover {
  background: var(--bc-on-accent);
  color: var(--bc-accent);
}

.bc-btn--lg { font-size: 1.1rem; padding: 1rem 1.9rem; }

.bc-btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.bc-btn-row--center { justify-content: center; }

/* Tap-to-dial — big, unmissable, thumb-sized */
.bc-btn--call { font-size: 1.25rem; padding: 1.1rem 2rem; width: 100%; text-align: center; }
@media (min-width: 480px) { .bc-btn--call { width: auto; } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.bc-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 1.5rem;
}
.bc-card :last-child { margin-bottom: 0; }
.bc-card h3 { margin-top: 0; }

.bc-card--tint   { background: var(--bc-tint); border-color: transparent; }
.bc-card--tint-2 { background: var(--bc-tint-2); border-color: transparent; }

/* Whole-card link */
.bc-card--link { transition: box-shadow .15s ease, transform .15s ease; }
.bc-card--link:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.bc-card--link a::after { content: ""; position: absolute; inset: 0; }
.bc-card--link { position: relative; }

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.bc-checklist { list-style: none; padding: 0; margin: 1rem 0; }
.bc-checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.9rem;
  border-bottom: 1px solid var(--bc-border);
}
.bc-checklist li:last-child { border-bottom: 0; }
.bc-checklist li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bc-accent);
}
.bc-checklist--tick li::before {
  content: "✓";
  background: none; color: var(--bc-accent);
  font-weight: 700; width: auto; height: auto; top: 0.55rem;
}

/* --------------------------------------------------------------------------
   Tables — must scroll on mobile, never overflow the page
   -------------------------------------------------------------------------- */

.bc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; }
.bc-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.bc-table th, .bc-table td {
  text-align: left; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bc-border);
  vertical-align: top;
}
.bc-table thead th { background: var(--bc-tint); font-weight: 700; }
.bc-table tbody tr:nth-child(even) { background: var(--bc-surface); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.bc-stat {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 1.5rem;
}
.bc-stat__value {
  display: block;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--bc-accent);
  margin-bottom: 0.5rem;
}
.bc-stat__body { margin: 0 0 0.6rem; }
.bc-stat__source { font-size: 0.8rem; color: var(--bc-ink-faint); font-style: italic; }

/* --------------------------------------------------------------------------
   Tabs — ARIA tablist. Without JS every panel is simply visible, which is a
   perfectly good fallback. See baatcheet.js.
   -------------------------------------------------------------------------- */

.bc-tabs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.bc-tabs__tab {
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  background: var(--bc-tint);
  color: var(--bc-ink);
  font: inherit; font-weight: 600;
  cursor: pointer;
}
.bc-tabs__tab[aria-selected="true"] { background: var(--bc-accent); color: var(--bc-on-accent); border-color: var(--bc-accent); }
.bc-tabs__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Accordion — native <details>. No JS, accessible by default.
   -------------------------------------------------------------------------- */

.bc-accordion { border: 1px solid var(--bc-border); border-radius: var(--bc-radius); overflow: hidden; margin: 1.25rem 0; }
.bc-accordion + .bc-accordion { margin-top: -1px; }
.bc-accordion > summary {
  padding: 1rem 1.25rem;
  background: var(--bc-tint);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.bc-accordion > summary::-webkit-details-marker { display: none; }
.bc-accordion > summary::before { content: "▸ "; color: var(--bc-accent); font-weight: 700; }
.bc-accordion[open] > summary::before { content: "▾ "; }
.bc-accordion__body { padding: 1.25rem; }
.bc-accordion__body :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */

.bc-person { text-align: center; }
.bc-person__photo {
  width: 100%; max-width: 200px; aspect-ratio: 1/1;
  object-fit: cover; border-radius: var(--bc-radius);
  margin: 0 auto 0.85rem; display: block; background: var(--bc-tint);
}
.bc-person__name { margin: 0 0 0.2rem; font-size: 1.1rem; }
.bc-person__role { margin: 0; color: var(--bc-ink-faint); font-size: 0.95rem; }
.bc-person--bio { text-align: left; }
.bc-person--bio .bc-person__photo { margin-inline: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.bc-form { max-width: 680px; }
.bc-field { margin-bottom: 1.35rem; }
.bc-field > label,
.bc-fieldset > legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.bc-hint { display: block; font-size: 0.87rem; color: var(--bc-ink-faint); margin-bottom: 0.4rem; font-weight: 400; }

.bc-field input[type="text"],
.bc-field input[type="email"],
.bc-field input[type="tel"],
.bc-field input[type="number"],
.bc-field input[type="url"],
.bc-field input[type="file"],
.bc-field select,
.bc-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c9c2ce;
  border-radius: var(--bc-radius);
  font: inherit;
  background: #fff;
  color: var(--bc-ink);
}
.bc-field textarea { min-height: 130px; resize: vertical; }

.bc-fieldset { border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 1rem 1.25rem; margin-bottom: 1.35rem; }

.bc-choice { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; font-weight: 400; }
.bc-choice input { margin-top: 0.3rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }

.bc-required { color: var(--bc-danger); font-weight: 700; }

/* Honeypot — must stay invisible to humans but reachable by bots */
.bc-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.bc-error { color: var(--bc-danger); font-size: 0.9rem; margin-top: 0.3rem; }

/* A field the server rejected. Colour alone is not the signal — the notice at
   the top of the form says what to do, and the border is a locator. */
.bc-field--error > label,
.bc-fieldset.bc-field--error > legend { color: var(--bc-danger); }
.bc-field--error input,
.bc-field--error select,
.bc-field--error textarea,
.bc-fieldset.bc-field--error { border-color: var(--bc-danger); border-width: 2px; }

/* Submission outcome */
.bc-notice {
  border: 1px solid var(--bc-border);
  border-left-width: 4px;
  border-radius: var(--bc-radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  max-width: 680px;
}
.bc-notice :last-child { margin-bottom: 0; }
.bc-notice:focus { outline: 3px solid var(--bc-accent); outline-offset: 2px; }

.bc-notice--success { background: var(--bc-tint-2); border-color: #c6dde8; border-left-color: var(--bc-info); }
.bc-notice--error   { background: var(--bc-danger-bg); border-color: #e6c9c9; border-left-color: var(--bc-danger); }

/* Conditional blocks are visible by default and only collapse once the script
   that manages them is running — see template-parts/forms/apply-to-join.php. */
.bc-conditional[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.bc-gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; }
@media (min-width: 700px) { .bc-gallery { grid-template-columns: repeat(4, 1fr); } }
/* Square thumbnails. Event photos come off phones in both orientations, and a
   square crop is the only ratio that treats portrait and landscape equally.
   The crop favours the upper half, where faces usually sit. */
.bc-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 4px;
  display: block;
  background: var(--bc-tint);
}
.bc-gallery a { display: block; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Motion — respect the user's preference
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .bc *, .bc *::before, .bc *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Psychologist directory
   -------------------------------------------------------------------------- */

.bc-directory__filters { max-width: none; margin-bottom: 2rem; }
.bc-directory__filters .bc-field { margin-bottom: 0; }

.bc-statelist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.bc-statelist li { margin: 0; }
.bc-statelist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  text-decoration: none;
  font-weight: 600;
  background: #fff;
}
.bc-statelist a:hover { background: var(--bc-tint); }
.bc-statelist__n {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bc-ink-faint);
  background: var(--bc-tint);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.bc-directory__table th[scope="row"] { display: block; }
.bc-directory__cat,
.bc-directory__table .bc-footnote { display: block; font-weight: 400; }
.bc-directory__cat { font-size: 0.85rem; color: var(--bc-ink-soft); }
.bc-directory__tel { display: block; white-space: nowrap; font-weight: 600; }

/* --------------------------------------------------------------------------
   Site header & primary navigation

   Note these selectors are NOT scoped to .bc — the header sits outside
   <main class="bc">, same as the crisis banner.

   No-JS contract: with JavaScript off, the nav renders as a plain stacked
   list with every submenu open. Nothing is hidden behind a control that
   isn't wired up. JS adds .bc-nav--enhanced, and only then do the compact
   dropdown and the mobile toggle come into play.
   -------------------------------------------------------------------------- */

.bc-site-header {
  background: #fff;
  border-bottom: 1px solid var(--bc-border);
  font-family: var(--bc-font);
}

.bc-site-header > .bc-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
}

.bc-site-title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.bc-site-title a { color: var(--bc-accent); text-decoration: none; }
.bc-site-title a:hover { color: var(--bc-accent-dark); }

.bc-nav { width: 100%; }
.bc-nav__list,
.bc-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.bc-nav li { margin: 0; }

.bc-nav a,
.bc-nav__disclosure {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--bc-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  line-height: 1.3;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.bc-nav a:hover,
.bc-nav__disclosure:hover { background: var(--bc-tint); color: var(--bc-accent); }

.bc-nav .sub-menu a { font-weight: 500; color: var(--bc-ink-soft); padding-left: 1.75rem; }

.bc-nav .current-menu-item > a { color: var(--bc-accent); }

/* Toggles only exist once JS has wired them up */
.bc-nav__toggle { display: none; }

.bc-nav__chev {
  display: inline-block;
  width: 0.45em; height: 0.45em;
  margin-left: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-0.1em, -0.1em);
  transition: transform .15s ease;
}
.bc-nav .bc-open > .bc-nav__disclosure .bc-nav__chev { transform: rotate(-135deg) translate(-0.1em, -0.1em); }

/* ---- Enhanced: mobile ---- */
@media (max-width: 899px) {
  .bc-nav--enhanced .bc-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.6rem 0.9rem;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    color: var(--bc-accent);
    background: none;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius);
    cursor: pointer;
  }
  .bc-nav--enhanced .bc-nav__list { display: none; padding-top: 0.5rem; }
  .bc-nav--enhanced.bc-nav--open .bc-nav__list { display: block; }
  .bc-nav--enhanced .sub-menu { display: none; }
  .bc-nav--enhanced .bc-open > .sub-menu { display: block; }

  .bc-nav__bars { position: relative; width: 1.1em; height: 2px; background: currentColor; }
  .bc-nav__bars::before,
  .bc-nav__bars::after {
    content: ""; position: absolute; left: 0;
    width: 100%; height: 2px; background: currentColor;
  }
  .bc-nav__bars::before { top: -6px; }
  .bc-nav__bars::after  { top: 6px; }
}

/* ---- Enhanced: desktop ---- */
@media (min-width: 900px) {
  .bc-site-header > .bc-wrap { flex-wrap: nowrap; }
  .bc-nav { width: auto; }
  .bc-nav__list { display: flex; align-items: center; gap: 0.1rem; }
  .bc-nav__list > li { position: relative; }
  .bc-nav a, .bc-nav__disclosure { white-space: nowrap; width: auto; }

  .bc-nav--enhanced .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 250px;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: 0 8px 24px rgba(31, 26, 34, .12);
    display: none;
    z-index: 60;
  }
  .bc-nav--enhanced .bc-open > .sub-menu,
  .bc-nav--enhanced li:focus-within > .sub-menu { display: block; }
  .bc-nav--enhanced .sub-menu a { padding-left: 0.75rem; white-space: normal; }
}

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */

.bc-site-footer { border-top: 1px solid var(--bc-border); margin-top: 2rem; }
.bc-site-footer h2 { font-size: 1.15rem; }
.bc-site-footer .bc-section--tight { border-top: 1px solid var(--bc-border); }

.bc-legal-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.bc-legal-list li { margin: 0; }
.bc-legal-list a { font-size: 0.85rem; color: var(--bc-ink-faint); }

/* --------------------------------------------------------------------------
   Print — the helplines page should print usefully on one sheet
   -------------------------------------------------------------------------- */

@media print {
  .bc { font-size: 12pt; color: #000; }
  .bc-section { padding: 0.5rem 0; background: #fff !important; color: #000 !important; }
  .bc-section--accent, .bc-crisis { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .bc-btn { border: 1px solid #000; color: #000 !important; background: #fff !important; padding: 0.2rem 0.4rem; }
  .bc-no-print { display: none !important; }
  .bc-accordion { break-inside: avoid; }
  .bc-accordion > summary::before { content: ""; }
  .bc-accordion__body { display: block !important; }
  /* Print the phone number next to each tel: link */
  .bc a[href^="tel:"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
