/* CSS Overrides Top Start */
@import url('/Styles/styles-v2/icons/fontawesome-icon.css?v=4232385967');
@import url('/Styles/styles-v2/icons/fontawesome-solid.css?v=4137481333');
@import url('/Styles/styles-v2/icons/tabler-icon.css?v=116410291');
/* CSS Overrides Top End */

/* ==========================================================================
   Bethany theme (NextGen). Hand-written CSS, no build step.

   Rock rewrites this file on every Theme save: it adds a "CSS Overrides Top"
   block (icon sets) above and a "CSS Overrides Bottom" block (the Theme
   Styler's values as :root variables, plus custom CSS) below, and keeps
   everything in between untouched. So:
     - every rule here reads var(--token), never a literal colour
     - the defaults below mirror theme.json; a value set in the Styler wins
       by source order
   Edit the SOURCE copy in ~/Development/rock/theme/Bethany, then upload.
   ========================================================================== */

@import '../../../Styles/styles-v2/core.css?v=519567025';

/* --------------------------------------------------------------------------
   1. Defaults (mirror theme.json)
   -------------------------------------------------------------------------- */
:root {
  --base-primary: #003149;
  --bb-primary-dark: #1a8fd9;
  --bb-accent: #0088b0;
  --bb-spark: #d6006c;

  --base-link: #0088b0;
  --base-secondary: #4e5a72;
  --base-critical: #ee7625;
  --base-danger: #c62828;
  --base-info: #0088b0;
  --base-success: #1d7a44;
  --base-warning: #b7791f;

  --base-interface-strongest: #0e1118;
  --base-interface-stronger: #1b2231;
  --base-interface-strong: #4e5a72;
  --base-interface-medium: #8e9bb5;
  --base-interface-soft: #d3dbeb;
  --base-interface-softer: #f4f7fd;
  --base-interface-softest: #ffffff;

  --font-family-title: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-family-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-small: 14px;
  --font-size-regular: 16px;
  --font-size-h1: 40px;
  --font-size-h2: 30px;
  --font-size-h3: 24px;
  --font-size-h4: 20px;

  --bb-radius-button: 999px;
  --bb-radius-input: 999px;
  --bb-radius-card: 14px;
  --bb-content-width: 1160px;

  /* What the rest of this file paints with. Dark mode swaps --bb-brand only. */
  --bb-brand: var(--base-primary);
}

/* Dark mode. Rock's core.css already flips the interface scale for both the OS
   setting (no `theme` attribute, or theme="system") and theme="dark". Navy does
   not survive a dark page, so the brand colour swaps too - same two selectors. */
@media (prefers-color-scheme: dark) {
  :root:not([theme]), [theme=system] { --bb-brand: var(--bb-primary-dark); }
}
[theme=dark] { --bb-brand: var(--bb-primary-dark); }

/* --------------------------------------------------------------------------
   2. Compatibility with blocks built for Compass
   Our Lava reads Bootstrap 5 tokens (CLAUDE.md rule 6). Point them at Rock's
   interface scale so those blocks flip with dark mode here too.
   `.ignore-compass` becomes a harmless no-op class; strip it at leisure.
   -------------------------------------------------------------------------- */
:root {
  --bs-body-color: var(--color-interface-stronger);
  --bs-body-bg: var(--color-interface-softest);
  --bs-primary: var(--bb-brand);
  --bs-gray-200: var(--color-interface-softer);
  --bs-gray-300: var(--color-interface-soft);
  --bs-gray-600: var(--color-interface-strong);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html { -webkit-font-smoothing: antialiased; }
body {
  background: var(--color-interface-softest);
  color: var(--color-interface-stronger);
  font-family: var(--font-family-body);
  font-size: var(--font-size-regular);
  line-height: 1.55;
}
h1, h2, h3, h4, h5, h6, .pagetitle {
  font-family: var(--font-family-title);
  color: var(--color-interface-stronger);
  text-wrap: balance;
}
a { color: var(--color-link); }
:focus-visible { outline: 3px solid var(--bb-accent); outline-offset: 2px; }

.bb-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 10px 16px; background: var(--bb-brand); color: #fff;
}
.bb-skip:focus { left: 16px; top: 16px; }

.bb-wrap { max-width: var(--bb-content-width); margin-inline: auto; padding-inline: 16px; }

/* --------------------------------------------------------------------------
   4. Frame: header, page title, footer
   The header's CONTENT is Lava in the site-level Nav zone (block 2004), so
   this only sizes the bar it sits in.
   -------------------------------------------------------------------------- */
.bb-header { background: var(--bb-brand); color: #fff; }
.bb-header a { color: inherit; }

.bb-page-title { padding-block: 28px 8px; }
.bb-page-title .pagetitle { margin: 0; font-size: var(--font-size-h1); line-height: 1.15; }
.bb-page-title .breadcrumb { margin: 8px 0 0; padding: 0; background: none; font-size: var(--font-size-small); }

.bb-main { padding-block: 16px 64px; display: grid; gap: 24px; }

.bb-sidebar-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .bb-sidebar-layout.is-left  { grid-template-columns: 260px minmax(0, 1fr); }
  .bb-sidebar-layout.is-right { grid-template-columns: minmax(0, 1fr) 300px; }
}

.bb-footer {
  border-top: 1px solid var(--color-interface-soft);
  background: var(--color-interface-softer);
  padding-block: 32px;
  font-size: var(--font-size-small);
  color: var(--color-interface-strong);
}

.bb-narrow { max-width: 440px; margin-inline: auto; padding: 48px 16px; }

/* --------------------------------------------------------------------------
   5. Shapes on Rock's own controls (stock blocks)
   -------------------------------------------------------------------------- */
.btn { border-radius: var(--bb-radius-button); }
.btn-primary { background-color: var(--bb-brand); border-color: var(--bb-brand); }
.form-control { border-radius: var(--bb-radius-input); }
textarea.form-control { border-radius: 12px; }
.panel, .card { border-radius: var(--bb-radius-card); }
.required-indicator::after, .required .control-label::after { color: var(--bb-spark); }

/* Theme toggle (Site.Master) */
.bb-theme-toggle {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  border: 1px solid var(--color-interface-soft); background: var(--color-interface-softest);
}
.bb-theme-toggle button {
  font: inherit; font-size: 13px; border: 0; background: none; cursor: pointer;
  padding: 4px 10px; border-radius: 999px; color: var(--color-interface-strong);
}
.bb-theme-toggle button[aria-pressed="true"] { background: var(--bb-brand); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* CSS Overrides Bottom Start */
:root {
    --base-primary: #003149;
    --bb-primary-dark: #1a8fd9;
    --bb-accent: #0088b0;
    --bb-spark: #d6006c;
    --base-link: #0088b0;
    --base-secondary: #4e5a72;
    --base-critical: #ee7625;
    --base-danger: #c62828;
    --base-info: #0088b0;
    --base-success: #1d7a44;
    --base-warning: #b7791f;
    --base-interface-strongest: #0e1118;
    --base-interface-stronger: #1b2231;
    --base-interface-strong: #4e5a72;
    --base-interface-medium: #8e9bb5;
    --base-interface-soft: #d3dbeb;
    --base-interface-softer: #f4f7fd;
    --base-interface-softest: #ffffff;
    --font-family-title: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-family-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-size-small: 14px;
    --font-size-regular: 16px;
    --font-size-h1: 40px;
    --font-size-h2: 30px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --bb-radius-button: 999px;
    --bb-radius-input: 999px;
    --bb-radius-card: 14px;
    --bb-content-width: 1160px;
}

/* ============================================================================
   Bethany design system, vendored into the Rock theme (2026-09-29).

   SOURCE: Claude Design project "Small groups page mockups"
   (146a8d0b-7220-44e0-a903-a8feb7fbce72), _ds/bethany-.../styles.css, plus the
   project's CLAUDE.md additions (context banner, textarea, dark header) and the
   shared bits every page helmet carries. Re-vendor from there; do not fork.

   DELIVERY: pushed into Theme 17's CustomOverrides by tools/theme_ds_push.py.
   Rock's save hook bakes it into Styles/theme.css ("CSS Overrides Bottom"), so
   no File Manager upload is needed for design changes.

   Differences from the design-system file, all on purpose:
   - No @import of fonts: Site.Master loads Public Sans from Google Fonts.
   - Bare-element rules that would restyle Rock's own blocks (p max-width,
     img display:block, :focus outline:none) are scoped to .bb-root, the class
     our Lava blocks put on their outermost element.
   - Frame fixes at the end (§F) adapt Site.Master's header/footer wrappers.
   ========================================================================== */

:root {
  --bb-navy: #003149;
  --bb-navy-hover: #004961;
  --bb-midnight-navy: #001b2a;
  --bb-blue: #0088b0;
  --bb-blue-hover: #1186ac;
  --bb-sky: #38a6e8;
  --bb-link: #0a7ac4;
  --bb-coral: #e4704e;
  --bb-white: #ffffff;
  --bb-surface: #f4f7fd;
  --bb-card: #fbfcfe;
  --bb-cream: #f7f2e8;
  --bb-slate: #5b6b7c;
  --bb-magenta: #d6006c;
  --bb-divider: #e0e6f2;
  --bb-hover: #e9f3fb;
  --bb-open-bg: #dff3e6;
  --bb-open-fg: #1d5c33;
  --bb-info-bg: #e6f2fa;
  --bb-info-border: #cfe4f3;

  --bb-dark-bg: #0e1118;
  --bb-dark-card: #161b25;
  --bb-dark-pill: #1a8fd9;
  --bb-dark-text: #f4f6fb;
  --bb-dark-muted: #c3ccdc;
  --bb-dark-link: #8fd0fa;
  --bb-dark-magenta: #ff5c9d;
  --bb-dark-border: rgba(160, 180, 215, 0.14);

  --bb-n100: #f4f7fd; --bb-n200: #e4eaf6; --bb-n300: #d3dbeb;
  --bb-n400: #b3bfd6; --bb-n500: #8e9bb5; --bb-n600: #6b7791;
  --bb-n700: #4e5a72; --bb-n800: #35405a; --bb-n900: #1f2740;

  --bb-font: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --bb-w-display: 800;
  --bb-w-label: 600;
  --bb-w-ui: 500;
  --bb-w-body: 400;

  --bb-glow-navy: radial-gradient(1400px 800px at 10% -10%, rgba(56,166,232,.18), transparent 60%);
  --bb-glow-surface: radial-gradient(1400px 800px at 10% -10%, rgba(10,138,212,.07), transparent 60%);
  --bb-glow-dark: radial-gradient(1400px 800px at 10% -10%, rgba(26,143,217,.22), transparent 60%);
  --bb-glow-blue: radial-gradient(1400px 800px at 90% 110%, rgba(255,255,255,.28), transparent 60%);
  --bb-card-gradient: linear-gradient(180deg, #ffffff, #fbfcfe 60%);
  --bb-dark-card-gradient: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 45%);
  --bb-sheen: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  --bb-sheen-chip: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  --bb-scrim-side: linear-gradient(90deg, rgba(0,49,73,.94) 0%, rgba(0,49,73,.86) 55%, rgba(0,49,73,.55) 100%);
  --bb-scrim-bottom: linear-gradient(0deg, rgba(0,49,73,.96) 0%, rgba(0,49,73,.82) 50%, rgba(0,49,73,.35) 100%);

  --bb-shadow-sm: 0 1px 2px rgba(45,43,43,.14);
  --bb-shadow-md: 0 3px 10px rgba(45,43,43,.16), inset 0 1px 0 #ffffff;
  --bb-shadow-lg: 0 12px 32px rgba(0,49,73,.10);
  --bb-shadow-btn: 0 4px 14px rgba(0,49,73,.22);
  --bb-shadow-pressed: 0 3px 12px rgba(0,136,176,.30);
  --bb-shadow-slide-card: 0 16px 40px rgba(0,49,73,.28);
  --bb-shadow-dark-md: 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  --bb-shadow-dark-lg: 0 16px 40px rgba(0,0,0,.55);
  --bb-ring-dark: 0 0 0 1px rgba(56,166,232,.25), 0 6px 18px rgba(26,143,217,.35);
  --bb-focus-ring: 0 0 0 4px rgba(0,136,176,.25);

  --bb-radius-pill: 999px;
  --bb-radius-card: 16px;
  --bb-radius-slide-card: 32px;
  --bb-radius-input: 999px;
  --bb-radius-textarea: 14px;

  --bb-s1: 4px;  --bb-s2: 8px;  --bb-s3: 12px; --bb-s4: 16px;
  --bb-s5: 24px; --bb-s6: 32px; --bb-s7: 48px; --bb-s8: 64px;

  --bb-slide-margin: 120px;
  --bb-slide-logo-h: 64px;

  --bb-ground: var(--bb-white);
  --bb-ink: var(--bb-navy);
  --bb-accent: var(--bb-blue);

  /* Design project CLAUDE.md: context banner. */
  --bb-ctx-bg: linear-gradient(180deg,#eef5fc 0%,#e2eef9 100%);
  --bb-ctx-border: #cfe4f3;
  --bb-ctx-icon: #0088b0;
  --bb-ctx-link: #0088b0;
  /* Footer.dc.html helmet. */
  --bb-foot-glow: radial-gradient(ellipse 55% 100% at 0% 100%, rgba(0,136,176,.16), transparent 70%);
  --bb-foot-bg: #003149;
  --bb-foot-border: transparent;
  --bb-foot-chip: rgba(255,255,255,.12);
  /* Theme frame width (was --bb-content-width in theme.css). */
  --bb-content-width: 1240px;
}

/* ============================ Base ============================ */

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

body {
  margin: 0;
  background: var(--bb-surface);
  color: var(--bb-ink);
  font: var(--bb-w-body) 16px/1.55 var(--bb-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bb-font);
  font-weight: var(--bb-w-display);
  color: inherit;
  margin: 0 0 var(--bb-s3);
  text-wrap: pretty;
}
h1 { font-size: 48px; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: 32px; line-height: 1.1;  letter-spacing: -.02em; }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.25; }
h5 { font-size: 16px; line-height: 1.3; }
h6 { font-size: 13px; line-height: 1.3; }

.bb-root p { margin: 0 0 var(--bb-s3); max-width: 70ch; }
.bb-root small { font-size: 13px; }
.bb-root img { display: block; max-width: 100%; }
.bb-root figure { margin: 0; }

a { color: var(--bb-link); text-underline-offset: 3px; }
a:hover { color: var(--bb-navy); }

.bb-kicker {
  font: var(--bb-w-label) 12px/1 var(--bb-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bb-slate);
}
.bb-meta { font: var(--bb-w-body) 13px/1.45 var(--bb-font); color: var(--bb-slate); }
.bb-spark { color: var(--bb-coral); font-weight: var(--bb-w-label); }

.bb-root :focus { outline: none; }
:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; }
::selection { background: var(--bb-hover); color: var(--bb-navy); }

/* ====================== Ground modes ====================== */

.bb-navy {
  background: var(--bb-glow-navy), var(--bb-navy);
  --bb-ground: var(--bb-navy); --bb-ink: var(--bb-white); --bb-accent: var(--bb-sky);
  color: var(--bb-white);
}
.bb-blue {
  background: var(--bb-glow-blue), var(--bb-blue);
  --bb-ground: var(--bb-blue); --bb-ink: var(--bb-white); --bb-accent: var(--bb-white);
  color: var(--bb-white);
}
.bb-surface {
  background: var(--bb-surface);
  --bb-ground: var(--bb-surface); --bb-ink: var(--bb-navy); --bb-accent: var(--bb-blue);
  color: var(--bb-navy);
}
.bb-cream {
  background: var(--bb-cream);
  --bb-ground: var(--bb-cream); --bb-ink: var(--bb-navy); --bb-accent: var(--bb-navy);
  color: var(--bb-navy);
}
.bb-midnight {
  background: var(--bb-glow-dark), var(--bb-dark-bg);
  --bb-ground: var(--bb-dark-bg); --bb-ink: var(--bb-white); --bb-accent: var(--bb-sky);
  color: var(--bb-white);
}
.bb-photo {
  position: relative; overflow: hidden;
  --bb-ground: var(--bb-navy); --bb-ink: var(--bb-white); --bb-accent: var(--bb-sky);
  color: var(--bb-white);
}
.bb-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--bb-scrim-side);
}
.bb-photo.bb-scrim-bottom::after { background: var(--bb-scrim-bottom); }
.bb-photo > *:not(img) { position: relative; z-index: 1; }

.bb-slide {
  aspect-ratio: 16 / 9; container-type: inline-size;
  padding: calc(var(--bb-slide-margin) / 16 * 1em);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}

/* ========================= Motifs ========================= */

.bb-dots {
  width: 240px; height: 160px;
  background-image: radial-gradient(circle, var(--bb-accent) 2.5px, transparent 3px);
  background-size: 40px 40px;
}
.bb-quarter { border-radius: 50%; background: var(--bb-accent); }
.bb-tick { display: inline-block; width: 28px; height: 28px; background: var(--bb-accent); }
.bb-rule { width: 4px; align-self: stretch; background: var(--bb-accent); }

.bb-datepill {
  display: inline-flex; align-items: center;
  background: var(--bb-white); color: var(--bb-navy);
  font: var(--bb-w-ui) 14px/1 var(--bb-font);
  padding: 8px 14px; border-radius: var(--bb-radius-pill);
  box-shadow: var(--bb-shadow-btn);
}
.bb-surface .bb-datepill, .bb-cream .bb-datepill { background: var(--bb-navy); color: var(--bb-white); }
.bb-midnight .bb-datepill { background: var(--bb-dark-pill); color: var(--bb-white); box-shadow: var(--bb-ring-dark); }

/* ========================= Buttons ========================= */

.bb-btn, .bb-chip, .bb-tag { white-space: nowrap; }
.bb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bb-s2);
  font: var(--bb-w-label) 14px/1 var(--bb-font);
  padding: 12px 20px; border-radius: var(--bb-radius-pill);
  border: 0; cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s, border-color .15s, transform .12s;
}
.bb-btn:hover { text-decoration: none; }
.bb-btn:active { transform: scale(.98); }
.bb-btn:disabled { opacity: .45; cursor: not-allowed; }
.bb-btn svg { display: block; flex: none; }

.bb-btn-primary {
  background: var(--bb-sheen), var(--bb-navy);
  color: var(--bb-white);
  box-shadow: var(--bb-shadow-btn);
}
.bb-btn-primary:hover { background: var(--bb-sheen), var(--bb-navy-hover); color: var(--bb-white); }

.bb-btn-blue {
  background: var(--bb-sheen), var(--bb-blue);
  color: var(--bb-white);
  box-shadow: var(--bb-shadow-pressed);
}
.bb-btn-blue:hover { background: var(--bb-sheen), var(--bb-blue-hover); color: var(--bb-white); }

.bb-btn-secondary {
  background: transparent; color: var(--bb-navy);
  border: 1.5px solid var(--bb-n400);
  padding: 10.5px 20px;
  font-weight: var(--bb-w-ui);
}
.bb-btn-secondary:hover { background: var(--bb-hover); border-color: var(--bb-blue); color: var(--bb-navy); }

.bb-btn-ghost {
  background: transparent; color: var(--bb-link);
  padding-inline: var(--bb-s2);
}
.bb-btn-ghost:hover { background: var(--bb-hover); }

.bb-btn-block { width: 100%; }

.bb-navy .bb-btn-secondary, .bb-midnight .bb-btn-secondary, .bb-photo .bb-btn-secondary,
.bb-blue .bb-btn-secondary {
  color: var(--bb-white); border-color: var(--bb-white);
}
.bb-navy .bb-btn-secondary:hover, .bb-midnight .bb-btn-secondary:hover,
.bb-photo .bb-btn-secondary:hover, .bb-blue .bb-btn-secondary:hover {
  background: rgba(255,255,255,.12); border-color: var(--bb-white);
}
.bb-navy .bb-btn-ghost, .bb-midnight .bb-btn-ghost, .bb-photo .bb-btn-ghost {
  color: var(--bb-dark-link);
}

/* ===================== The form language ===================== */

.bb-field { display: grid; gap: var(--bb-s2); }
.bb-field > label {
  font: var(--bb-w-label) 15px/1.3 var(--bb-font);
  color: var(--bb-ink);
  display: inline-flex; align-items: center; gap: var(--bb-s2);
  margin: 0;
}
.bb-req { color: var(--bb-magenta); font-size: 15px; line-height: 1; }
.bb-note {
  display: flex; align-items: flex-start; gap: 6px;
  font: var(--bb-w-body) 13px/1.45 var(--bb-font);
  color: var(--bb-magenta);
}
.bb-note svg { flex: none; margin-top: 2px; }

.bb-input {
  font: var(--bb-w-body) 15px/1 var(--bb-font);
  color: var(--bb-navy);
  background: var(--bb-card-gradient);
  border: 1px solid var(--bb-n400);
  border-radius: var(--bb-radius-input);
  padding: 13px 18px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.bb-input::placeholder { color: var(--bb-n600); opacity: 1; }
.bb-input:hover { border-color: var(--bb-n600); }
.bb-input:focus-visible {
  outline: none;
  border-color: var(--bb-blue);
  box-shadow: var(--bb-focus-ring);
}
textarea.bb-input {
  border-radius: var(--bb-radius-textarea); min-height: 92px; resize: vertical; line-height: 1.5;
  overflow-x: hidden; overflow-wrap: break-word; white-space: pre-wrap; width: 100%;
  box-sizing: border-box; scrollbar-width: none;
}
textarea.bb-input::-webkit-scrollbar { display: none; }

.bb-chips { display: flex; flex-wrap: wrap; gap: var(--bb-s2); }
.bb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: var(--bb-w-ui) 14px/1 var(--bb-font);
  color: var(--bb-navy); background: transparent;
  border: 1.5px solid var(--bb-n400);
  border-radius: var(--bb-radius-pill);
  padding: 10px 18px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.bb-chip:hover { border-color: var(--bb-blue); background: var(--bb-hover); }
.bb-chip:active { transform: scale(.96); }
.bb-chip[aria-pressed="true"] {
  background: var(--bb-sheen-chip), var(--bb-blue);
  border-color: var(--bb-blue);
  color: var(--bb-white);
  box-shadow: var(--bb-shadow-pressed);
}
.bb-chip[aria-pressed="true"] svg { display: block; }
.bb-chip svg { display: none; }

.bb-switch {
  display: inline-flex; align-items: center; flex: none;
  width: 52px; height: 30px; padding: 3px;
  background: var(--bb-n300); border: 0;
  border-radius: var(--bb-radius-pill);
  cursor: pointer; transition: background .2s;
}
.bb-switch > span {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bb-white);
  box-shadow: var(--bb-shadow-sm);
  transition: transform .25s cubic-bezier(.2,1.4,.4,1);
}
.bb-switch[aria-checked="true"] { background: var(--bb-blue); box-shadow: var(--bb-shadow-pressed); }
.bb-switch[aria-checked="true"] > span { transform: translateX(22px); }
.bb-switchrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--bb-s4); padding: var(--bb-s3) 0;
}
.bb-switchrow + .bb-switchrow { border-top: 1px solid var(--bb-divider); }

.bb-stepper { display: inline-flex; align-items: center; gap: var(--bb-s3); }
.bb-stepper > output {
  font: var(--bb-w-display) 18px/1 var(--bb-font);
  min-width: 2ch; text-align: center;
}
.bb-stepper .bb-btn-secondary { width: 40px; height: 40px; padding: 0; font-size: 18px; }

/* ===================== Cards, tags, tables ===================== */

.bb-card {
  background: var(--bb-card-gradient);
  border: 1px solid var(--bb-divider);
  border-radius: var(--bb-radius-card);
  box-shadow: var(--bb-shadow-md);
  padding: var(--bb-s5);
  color: var(--bb-navy);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bb-card-link:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-lg); }
.bb-slide .bb-card { border-radius: var(--bb-radius-slide-card); box-shadow: var(--bb-shadow-slide-card); }

.bb-info {
  background: var(--bb-info-bg);
  border: 1px solid var(--bb-info-border);
  border-radius: var(--bb-radius-card);
  padding: var(--bb-s4);
  color: var(--bb-navy);
  font-size: 14px;
}

.bb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: var(--bb-w-label) 12px/1 var(--bb-font);
  padding: 6px 12px; border-radius: var(--bb-radius-pill);
}
.bb-tag-open { background: var(--bb-open-bg); color: var(--bb-open-fg); }
.bb-tag-neutral { background: var(--bb-n200); color: var(--bb-n800); }
.bb-tag-blue { background: var(--bb-hover); color: var(--bb-navy); }
.bb-tag-outline { border: 1px solid var(--bb-n400); color: var(--bb-navy); }

.bb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bb-table th {
  font: var(--bb-w-label) 13px/1.3 var(--bb-font);
  color: var(--bb-navy); text-align: left;
  padding: var(--bb-s3); border-bottom: 1px solid var(--bb-divider);
}
.bb-table td { padding: var(--bb-s3); border-bottom: 1px solid var(--bb-divider); }
.bb-table tbody tr:hover { background: var(--bb-hover); }

/* ====================== Header & footer ====================== */

.bb-nav {
  display: flex; align-items: center; gap: var(--bb-s4);
  background: var(--bb-navy);
  border-radius: var(--bb-radius-pill);
  padding: var(--bb-s2) var(--bb-s3) var(--bb-s2) var(--bb-s5);
  color: var(--bb-white);
}
.bb-nav-brand { display: flex; align-items: center; flex: none; }
.bb-nav-brand img { height: 26px; width: auto; }
.bb-nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.bb-navlink {
  color: var(--bb-white); text-decoration: none;
  font: var(--bb-w-ui) 16px/1 var(--bb-font);
  padding: 8px 14px; border-radius: var(--bb-radius-pill);
  transition: background .15s;
}
.bb-navlink:hover, .bb-navlink[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--bb-white); text-decoration: none; }
.bb-nav-account {
  background: var(--bb-white); color: var(--bb-navy);
  font: var(--bb-w-ui) 14px/1 var(--bb-font);
  padding: 10px 16px; border-radius: var(--bb-radius-pill);
  text-decoration: none; flex: none;
}
.bb-nav-account:hover { color: var(--bb-navy); text-decoration: none; }

/* .bb-footer is Site.Master's outer <footer>; the design's footer card is
   .bb-foot inside it (footer.lava). See §F. */

/* ========================= Dark mode ========================= */

html[data-theme="dark"] {
  --bb-ground: var(--bb-dark-bg);
  --bb-ink: var(--bb-dark-text);
  --bb-accent: var(--bb-sky);
  --bb-link: var(--bb-dark-link);
  --bb-magenta: var(--bb-dark-magenta);
  --bb-divider: var(--bb-dark-border);
  --bb-slate: var(--bb-dark-muted);
  --bb-hover: rgba(56,166,232,.12);
  --bb-card-gradient: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 45%), #161b25;
  --bb-shadow-md: var(--bb-shadow-dark-md);
  --bb-shadow-lg: var(--bb-shadow-dark-lg);
  --bb-focus-ring: 0 0 0 4px rgba(56,166,232,.28);
  --bb-ctx-bg: linear-gradient(180deg,#15314b 0%,#102338 100%);
  --bb-ctx-border: rgba(56,166,232,.35);
  --bb-ctx-icon: #38a6e8;
  --bb-ctx-link: #38a6e8;
  --bb-foot-glow: radial-gradient(ellipse 55% 100% at 0% 100%, rgba(56,166,232,.32), transparent 70%);
  --bb-foot-bg: #161b25;
  --bb-foot-border: rgba(255,255,255,.08);
  --bb-foot-chip: rgba(255,255,255,.1);
}
html[data-theme="dark"] body { background: var(--bb-glow-dark), var(--bb-dark-bg); color: var(--bb-dark-text); }
html[data-theme="dark"] .bb-card,
html[data-theme="dark"] .bb-input { color: var(--bb-dark-text); border-color: var(--bb-dark-border); }
html[data-theme="dark"] .bb-input::placeholder { color: var(--bb-dark-muted); }
html[data-theme="dark"] .bb-chip { color: var(--bb-dark-text); border-color: var(--bb-dark-border); }
html[data-theme="dark"] .bb-chip:not([aria-pressed="true"]) { border-color: rgba(255,255,255,.5); }
html[data-theme="dark"] .bb-chip[aria-pressed="true"] {
  background: var(--bb-sheen-chip), var(--bb-dark-pill);
  border-color: transparent; box-shadow: var(--bb-ring-dark);
}
html[data-theme="dark"] .bb-switch { background: #33475f; }
html[data-theme="dark"] .bb-switch[aria-checked="true"] { background: var(--bb-dark-pill); box-shadow: var(--bb-ring-dark); }
/* Design project CLAUDE.md: the dark header is #0a7ac4, not the DS default. */
html[data-theme="dark"] .bb-nav { background: #0a7ac4; }
html[data-theme="dark"] .bb-info { background: rgba(56,166,232,.10); border-color: rgba(56,166,232,.28); color: var(--bb-dark-text); }
html[data-theme="dark"] .bb-tag-neutral { background: rgba(255,255,255,.1); color: var(--bb-dark-text); }
html[data-theme="dark"] .bb-tag-outline { color: var(--bb-dark-text); border-color: var(--bb-dark-border); }
html[data-theme="dark"] .bb-tag-blue { background: rgba(56,166,232,.22); color: var(--bb-dark-text); }
html[data-theme="dark"] .bb-btn-primary { background: var(--bb-sheen), var(--bb-dark-pill); box-shadow: var(--bb-ring-dark); }
html[data-theme="dark"] .bb-btn-secondary { color: var(--bb-dark-text); border-color: var(--bb-dark-border); }
html[data-theme="dark"] .bb-btn-secondary:hover { background: rgba(255,255,255,.06); border-color: var(--bb-sky); }
html[data-theme="dark"] .bb-datepill { background: var(--bb-dark-pill); color: var(--bb-white); box-shadow: var(--bb-ring-dark); }
html[data-theme="dark"] a:hover { color: var(--bb-white); }

/* ================= §F. Frame (Site.Master wrappers) =================
   Site.Master: <header class="bb-header"> holds the Nav zone, <footer
   class="bb-footer"> holds the Footer zone + the Light/System/Dark toggle.
   theme.css paints both as full-width bars; the design wants the page ground
   to run edge to edge with a pill header and a card footer inside the frame. */

.bb-wrap { max-width: var(--bb-content-width); margin-inline: auto; padding-inline: var(--bb-s6); }
.bb-header { background: transparent; color: inherit; padding: var(--bb-s5) 0 0; }
.bb-header a { color: inherit; }
.bb-header .bb-nav-account, .bb-header .bb-nav-account:hover { color: var(--bb-navy); }
.bb-main { padding-block: var(--bb-s4) var(--bb-s7); gap: var(--bb-s5); }
.bb-page-title { padding-block: var(--bb-s6) 0; }
.bb-page-title .pagetitle { font-size: 48px; line-height: 1.05; letter-spacing: -.02em; font-weight: var(--bb-w-display); color: inherit; }
footer.bb-footer {
  background: var(--bb-foot-glow); border: 0; color: inherit;
  padding: var(--bb-s6) 0 var(--bb-s7); margin-top: auto; font-size: 16px;
}
footer.bb-footer .bb-theme-toggle { margin-top: var(--bb-s4); }
.bb-theme-toggle { border-color: var(--bb-divider); background: transparent; }
.bb-theme-toggle button { color: var(--bb-slate); }
.bb-theme-toggle button[aria-pressed="true"] { background: var(--bb-navy); color: var(--bb-white); }
html[data-theme="dark"] .bb-theme-toggle button[aria-pressed="true"] { background: var(--bb-dark-pill); }
#form1 { min-height: 100vh; display: flex; flex-direction: column; }

/* The `hidden` attribute must always win. Compass's Bootstrap carried this rule, so our Lava
   toggles visibility with el.hidden while giving the same element display:flex/grid; without it
   the author display beats the browser's [hidden] default and the element never hides (home
   hidden-widgets chip + gear menus, cookie OK button). Added 2026-09-29 after the cutover. */
[hidden] { display: none !important; }

/* Light/System/Dark switch hidden for everyone (Tyler 2026-09-29): the site follows the device.
   Site.Master still renders it; header.lava resets any saved choice to System. Possible future home:
   a preference in the person's account (see NEXT_STEPS). */
.bb-theme-toggle { display: none !important; }

/* Dark mode: Rock's own primary colour. core.css paints .btn.btn-primary, .text-primary and .btn-link
   from --color-primary (navy), and .btn.btn-primary outranks theme.css's .btn-primary, so on a dark page
   they stayed navy on near-black (Directory note, Search, Clear). Swap the token itself to the dark
   brand blue; data-theme is always the resolved mode (theme.js). 2026-09-29. */
html[data-theme="dark"] {
  --color-primary: var(--bb-primary-dark, #1a8fd9);
  --color-primary-shade: #1476b8;
  --color-primary-tint: #5aafe8;
}

@media (max-width: 767px) {
  .bb-wrap { padding-inline: var(--bb-s4); }
  h1, .bb-page-title .pagetitle { font-size: 36px; }
  h2 { font-size: 28px; }
}
/* CSS Overrides Bottom End */
