/* ==========================================================================
   SmartAdmit parent site - PARENT LAYER  (sa.parent.css)
   --------------------------------------------------------------------------
   The shared presentation rules the parent refresh adds ON TOP of BCDF.
   bc.tokens / bc.components / bc.layouts stay verbatim; this file is the
   "parent.css" the October 2026 handoff pack registers: six parent tokens and
   the bc-parent-* / --parent modifiers, each a reusable BCDF modifier rather
   than a one-off page style.

   Scope: everything is under body.sa-shell, so nothing here reaches the
   classic site (flag off).

   Sections
     1. tokens and type scale     (16 / 15 / 13, headings 32-27 / 22 / 18)
     2. controls and focus        (48px fields, 44px targets, two-part ring)
     3. surfaces                  (flat cards, hairlines, no decorative shadow)
     4. KPI row                   (bc-parent-kpis: 6 at 1440, 3 at 768, 2 at 390)
     5. tables that stack         (bc-parent-table: rows -> cards below 768)
     6. entity header             (bc-entity modifiers for the profile pages)
     7. full-width forms          (bc-parent-form-layout: rail + surface + actions)
     8. states                    (skeleton, empty, notices)
     9. accessibility helpers     (bc-skip, bc-sr-only)
   No colour literals except pure white and the handoff's scrim value; every
   colour is a --bc-* token that sa.brand.css maps onto the province.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS AND TYPE SCALE
   -------------------------------------------------------------------------- */
body.sa-shell {
  /* the six parent tokens from the handoff register */
  --bc-parent-control:   46px;   /* minimum control box; fields are 48px */
  --bc-parent-bottomnav: 76px;   /* phone bottom navigation, before safe area */
  --bc-parent-rail:      228px;  /* sticky step / section rail from 1024px */
  --bc-parent-label:     220px;  /* question column from 1200px */
  --bc-parent-section:   32px;   /* between unrelated groups (24px on phones) */
  --bc-parent-scrim:     rgba(5,17,28,.77);

  /* readable parent type: body 16, supporting 15, metadata 13 */
  --bc-fs-lg:   1.0625rem;
  --bc-fs-base: 1rem;
  --bc-fs-sm:   .9375rem;
  --bc-fs-xs:   .8125rem;
  --bc-fs-2xs:  .75rem;
  --bc-fs-h1:   2rem;       /* 32 page title */
  --bc-fs-h2:   1.75rem;    /* 28 */
  --bc-fs-h3:   1.375rem;   /* 22 section heading */
  --bc-fs-h4:   1.125rem;   /* 18 card heading */
  --bc-lh-base: 1.55;

  --bc-topbar-h: 80px;
  --bc-r-ctrl: 10px;

  /* two-part focus ring: a white gap, then the province colour */
  --bc-focus-ring: 0 0 0 2px #fff, 0 0 0 5px var(--bc-accent-600);
}
@media (max-width: 767px) {
  body.sa-shell { --bc-parent-section: 24px; --bc-fs-h1: 1.6875rem; /* 27 */ }
}

body.sa-shell { font-size: var(--bc-fs-base); line-height: var(--bc-lh-base); }
/* element-level defaults (:where keeps them at zero specificity, so any
   component or page rule wins without a fight) */
:where(body.sa-shell) :is(h1, .sa-h1) { font-size: var(--bc-fs-h1); line-height: 1.15; font-weight: var(--bc-fw-semi); letter-spacing: -.02em; margin: 0; }
:where(body.sa-shell) :is(h2, .sa-h2) { font-size: var(--bc-fs-h3); line-height: 1.25; font-weight: var(--bc-fw-semi); letter-spacing: -.015em; margin: 0; }
:where(body.sa-shell) :is(h3, h4, .sa-h3, .sa-h4) { font-size: var(--bc-fs-h4); line-height: 1.3; font-weight: var(--bc-fw-semi); margin: 0; }
:where(body.sa-shell) p { margin: 0; }
:where(body.sa-shell) p + p { margin-top: var(--bc-s-4); }
.sa-measure { max-width: 64ch; }
.sa-muted { color: var(--bc-text-muted); }
.sa-meta  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.sa-support { font-size: var(--bc-fs-sm); color: var(--bc-text-body); }
.sa-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* page sections: 32px between unrelated groups, 16-20 inside a group */
.sa-stack > * + * { margin-top: var(--bc-parent-section); }
.sa-group > * + * { margin-top: var(--bc-s-4); }
.sa-rule { border: 0; border-top: 1px solid var(--bc-border); margin: 0; }

/* --------------------------------------------------------------------------
   2. CONTROLS AND FOCUS
   BCDF's buttons are 40px and its auth form is 424px wide. Parents fill these
   forms on phones with one thumb: 48px fields, 44px minimum targets, and
   checkbox labels that are themselves the target.
   -------------------------------------------------------------------------- */
body.sa-shell :focus-visible { outline: none; box-shadow: var(--bc-focus-ring); border-radius: var(--bc-r-xs); }
body.sa-shell .bc-btn { min-height: 44px; font-size: var(--bc-fs-sm); padding: 10px 18px; box-shadow: none; }
body.sa-shell .bc-btn--sm { min-height: 40px; padding: 8px 14px; font-size: var(--bc-fs-xs); }
body.sa-shell .bc-btn--lg { min-height: 52px; padding: 13px 24px; font-size: var(--bc-fs-base); }
body.sa-shell .bc-btn--primary { box-shadow: none; }
body.sa-shell .bc-btn--primary:hover { box-shadow: none; transform: none; }
body.sa-shell .bc-btn--secondary { background: #fff; }
body.sa-shell .bc-btn--link { min-height: 0; padding: 4px 0; }
body.sa-shell .bc-iconbtn { width: 44px; height: 44px; }
body.sa-shell :is(.bc-input, .bc-select, .bc-textarea) { min-height: 48px; font-size: var(--bc-fs-base); border-radius: var(--bc-r-ctrl); }
body.sa-shell .bc-textarea { min-height: 112px; }
body.sa-shell .bc-label { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); margin-bottom: 6px; display: block; }
body.sa-shell .bc-help { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); margin-top: 6px; }
body.sa-shell .bc-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: var(--bc-r-ctrl);
  cursor: pointer; font-size: var(--bc-fs-sm); color: var(--bc-text-body); }
body.sa-shell .bc-check:hover { background: var(--bc-grey-50); }
body.sa-shell .bc-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--bc-accent-500); }

/* Bootstrap controls on the un-rewritten pages take the same sizes */
.sa-content :is(.form-control, .form-select), .sa-legacy-page :is(.form-control, .form-select), .sa-auth__form :is(.form-control, .form-select) {
  min-height: 48px; font-size: var(--bc-fs-base); }
.sa-content .btn, .sa-legacy-page .btn, .sa-auth__form .btn { min-height: 44px; }
.sa-content .form-check { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 0; }
.sa-content .form-check .form-check-input { width: 20px; height: 20px; margin: 0; flex: none; }
.sa-content .form-check .form-check-label { cursor: pointer; }

/* --------------------------------------------------------------------------
   3. SURFACES
   Hairline borders carry the structure; shadows are not decoration. BCDF's
   16px card radius stays; the lift it adds is removed inside the parent site.
   -------------------------------------------------------------------------- */
body.sa-shell .bc-card { box-shadow: none; border: 1px solid var(--bc-border); }
body.sa-shell .bc-card__head { padding: var(--bc-s-5) var(--bc-s-6) var(--bc-s-4); border-bottom: 1px solid var(--bc-border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-4); }
body.sa-shell .bc-card__title { font-size: var(--bc-fs-h4); margin: 0; }
body.sa-shell .bc-card__body { padding: var(--bc-s-5) var(--bc-s-6); }
body.sa-shell .bc-card__foot { padding: var(--bc-s-4) var(--bc-s-6); border-top: 1px solid var(--bc-border-subtle); background: var(--bc-grey-25); }
body.sa-shell .bc-badge { font-size: var(--bc-fs-2xs); padding: 4px 10px; font-weight: var(--bc-fw-semi); letter-spacing: .01em; white-space: nowrap; }
body.sa-shell .bc-alert { border-radius: var(--bc-r-card); padding: var(--bc-s-4) var(--bc-s-5); font-size: var(--bc-fs-sm); display: flex; gap: 12px; align-items: flex-start; }
body.sa-shell .bc-alert__icon { flex: none; margin-top: 2px; }
body.sa-shell .bc-alert__title { font-weight: var(--bc-fw-semi); display: block; margin-bottom: 2px; }
@media (max-width: 767px) {
  body.sa-shell .bc-card__head, body.sa-shell .bc-card__body, body.sa-shell .bc-card__foot { padding-inline: var(--bc-s-4); }
}

/* --------------------------------------------------------------------------
   4. KPI ROW  (bc-parent-kpis)
   BCDF's generic grid collapses to one column on phones; six single-column
   tiles is a page of scrolling before the first real information. 6 / 3 / 2.
   -------------------------------------------------------------------------- */
.bc-parent-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--bc-s-4); }
.bc-parent-kpis .bc-kpi { position: relative; display: flex; flex-direction: column; min-height: 132px; padding: var(--bc-s-5); box-shadow: none; overflow: hidden; }
.bc-parent-kpis .bc-kpi__label { font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); letter-spacing: 0; text-transform: none; margin: 0 0 6px; order: 2; }
.bc-parent-kpis .bc-kpi__value { font-size: 2rem; line-height: 1; order: 1; margin: 0 0 8px; color: var(--bc-text-strong); }
.bc-parent-kpis .bc-kpi__hint { order: 3; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); margin-top: auto; padding-top: 10px; line-height: 1.4; }
.bc-parent-kpis .bc-kpi__hint a { color: var(--bc-accent-600); font-weight: var(--bc-fw-semi); }
.bc-parent-kpis .bc-kpi--accent .bc-kpi__value { color: var(--bc-accent-600); }
.bc-parent-kpis .bc-kpi--danger .bc-kpi__value { color: var(--bc-danger-fg); }
.bc-parent-kpis .bc-kpi--accent::after, .bc-parent-kpis .bc-kpi--danger::after { width: 4px; }
.bc-parent-kpis .bc-kpi--quiet .bc-kpi__value { color: var(--bc-text-muted); }
.bc-parent-kpis a.bc-kpi { color: inherit; text-decoration: none; transition: border-color var(--bc-transition); }
.bc-parent-kpis a.bc-kpi:hover { border-color: var(--bc-accent-300); color: inherit; }
@media (max-width: 1279px) { .bc-parent-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bc-parent-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bc-s-3); }
  .bc-parent-kpis .bc-kpi { min-height: 112px; padding: var(--bc-s-4); }
  .bc-parent-kpis .bc-kpi__value { font-size: 1.75rem; } }

/* --------------------------------------------------------------------------
   5. TABLES THAT STACK  (bc-parent-table)
   The same <table>, the same cells and actions; below 768px each row becomes
   a card and each cell prints its heading (data-label) before its value.
   -------------------------------------------------------------------------- */
body.sa-shell .bc-table { font-size: var(--bc-fs-sm); }
body.sa-shell .bc-table th { font-size: var(--bc-fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--bc-text-muted); font-weight: var(--bc-fw-semi);
  padding: 12px 16px; background: var(--bc-grey-25); border-bottom: 1px solid var(--bc-border); white-space: nowrap; }
body.sa-shell .bc-table td { padding: 14px 16px; border-bottom: 1px solid var(--bc-border-subtle); vertical-align: middle; color: var(--bc-text-body); }
body.sa-shell .bc-table tbody tr:last-child td { border-bottom: 0; }
body.sa-shell .bc-table__id { font-family: var(--bc-font-mono); font-size: var(--bc-fs-xs); color: var(--bc-text-strong); white-space: nowrap; }
body.sa-shell .bc-table__key { font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
body.sa-shell .bc-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.sa-shell .bc-table__act { text-align: right; white-space: nowrap; width: 1%; }
body.sa-shell .bc-table-wrap { overflow-x: auto; border: 0; border-radius: 0; }
.bc-parent-table .bc-table__sub { display: block; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); margin-top: 2px; font-weight: var(--bc-fw-regular); }
@media (max-width: 767px) {
  .bc-parent-table .bc-table, .bc-parent-table .bc-table tbody, .bc-parent-table .bc-table tr, .bc-parent-table .bc-table td { display: block; }
  .bc-parent-table .bc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bc-parent-table .bc-table tr { padding: var(--bc-s-4); border-bottom: 1px solid var(--bc-border-subtle); }
  .bc-parent-table .bc-table tbody tr:last-child { border-bottom: 0; }
  .bc-parent-table .bc-table td { padding: 6px 0; border: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--bc-s-3); align-items: start; text-align: left; }
  .bc-parent-table .bc-table td::before { content: attr(data-label); font-size: var(--bc-fs-2xs); letter-spacing: .06em; text-transform: uppercase;
    color: var(--bc-text-muted); font-weight: var(--bc-fw-semi); padding-top: 3px; }
  .bc-parent-table .bc-table td:not([data-label])::before { content: none; }
  .bc-parent-table .bc-table td:not([data-label]) { grid-template-columns: 1fr; }
  .bc-parent-table .bc-table td.bc-table__act { padding-top: var(--bc-s-3); }
  .bc-parent-table .bc-table td.bc-table__act .bc-btn { width: 100%; }
  .bc-parent-table .bc-table__num { text-align: left; }
}

/* --------------------------------------------------------------------------
   6. ENTITY HEADER  (profile pages)
   Initials, name, role, a wrapping fact strip (reference, masked ID, contact)
   and horizontally scrolling tabs. Facts wrap rather than truncate.
   -------------------------------------------------------------------------- */
body.sa-shell .bc-entity { box-shadow: none; }
body.sa-shell .bc-entity__top { gap: var(--bc-s-5); padding: var(--bc-s-6); align-items: center; }
.bc-entity__who { display: flex; align-items: center; gap: var(--bc-s-4); min-width: 0; }
.bc-entity__name { font-size: var(--bc-fs-h1); line-height: 1.15; margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bc-entity__role { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sa-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bc-accent-50); color: var(--bc-accent-700);
  font-family: var(--bc-font-display); font-weight: var(--bc-fw-semi); font-size: 1.375rem; letter-spacing: .02em; }
.sa-avatar--sm { width: 36px; height: 36px; font-size: .875rem; }
.sa-avatar--ink { background: var(--bc-brand-600); color: #fff; }
body.sa-shell .bc-entity__facts { gap: var(--bc-s-4) var(--bc-s-7); margin-left: auto; }
body.sa-shell .bc-entity__fact-k { font-size: var(--bc-fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: var(--bc-fw-semi); margin-bottom: 4px; }
body.sa-shell .bc-entity__fact-v { font-size: var(--bc-fs-sm); overflow-wrap: anywhere; }
body.sa-shell .bc-entity__tabs { padding: 0 var(--bc-s-6); border-top: 1px solid var(--bc-border-subtle); }
body.sa-shell .bc-tabs { gap: var(--bc-s-5); overflow-x: auto; }
body.sa-shell .bc-tab { min-height: 48px; padding: 12px 2px; font-size: var(--bc-fs-sm); white-space: nowrap; }
@media (max-width: 1023px) {
  body.sa-shell .bc-entity__top { padding: var(--bc-s-5) var(--bc-s-4); }
  body.sa-shell .bc-entity__facts { margin-left: 0; width: 100%; padding-top: var(--bc-s-4); border-top: 1px solid var(--bc-border-subtle); gap: var(--bc-s-3) var(--bc-s-6); }
  body.sa-shell .bc-entity__tabs { padding-inline: var(--bc-s-4); }
  .bc-entity__name { font-size: 1.5rem; }
  .sa-avatar { width: 52px; height: 52px; font-size: 1.125rem; }
}

/* --------------------------------------------------------------------------
   7. FULL-WIDTH FORMS  (bc-parent-form-layout)
   BCDF's wizard is a 660px centred card. Parents' forms span the content
   area instead: from 1024px a sticky 228px rail on the left (the steps or the
   sections, with one-line descriptions, and the help line) and the form as
   one surface on the right; from 1200px each question's label sits in a
   220px column beside its answers; below 768px Back/Next are fixed above
   the bottom navigation.
   -------------------------------------------------------------------------- */
.bc-parent-form-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bc-s-6); align-items: start; }
.bc-parent-form__rail { display: none; }
.bc-parent-form { background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-r-card); min-width: 0; }
.bc-parent-form__intro { padding: var(--bc-s-6) var(--bc-s-7) var(--bc-s-5); border-bottom: 1px solid var(--bc-border-subtle); }
.bc-parent-form__intro h2 { margin: 0; }
.bc-parent-form__intro p { margin-top: 6px; color: var(--bc-text-muted); font-size: var(--bc-fs-sm); }
.bc-parent-form__section { padding: var(--bc-s-7); border-bottom: 1px solid var(--bc-border-subtle); scroll-margin-top: calc(var(--bc-topbar-h) + var(--bc-s-4)); }
.bc-parent-form__section:last-of-type { border-bottom: 0; }
.bc-parent-form__head { margin-bottom: var(--bc-s-5); }
.bc-parent-form__head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.bc-parent-form__head h3 svg { color: var(--bc-accent-600); flex: none; }
.bc-parent-form__head p { margin-top: 6px; font-size: var(--bc-fs-sm); color: var(--bc-text-muted); max-width: 60ch; }
.bc-parent-form__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bc-s-5) var(--bc-s-5); min-width: 0; }
.bc-parent-form__answers > .is-wide { grid-column: 1 / -1; }
.bc-parent-form__choice { display: grid; gap: 8px; }
.bc-parent-form__note { grid-column: 1 / -1; }
.bc-parent-form__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--bc-s-3); flex-wrap: wrap;
  padding: var(--bc-s-5) var(--bc-s-7); border-top: 1px solid var(--bc-border); background: var(--bc-grey-25);
  border-radius: 0 0 var(--bc-r-card) var(--bc-r-card); }
.bc-parent-form__actions .bc-btn, .bc-parent-form__actions .btn { min-width: 160px; }
.bc-parent-form__actions > .is-end { margin-left: auto; display: flex; gap: var(--bc-s-3); flex-wrap: wrap; }

/* the rail: sections as a list, current one marked, help line at the foot */
.bc-parent-rail { display: flex; flex-direction: column; gap: var(--bc-s-5); }
.bc-parent-rail__title { font-size: var(--bc-fs-2xs); letter-spacing: .10em; text-transform: uppercase; font-weight: var(--bc-fw-semi); color: var(--bc-text-muted); }
.bc-parent-rail__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bc-parent-rail__item { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--bc-r-sm); color: var(--bc-text-body); font-size: var(--bc-fs-sm); line-height: 1.35; }
.bc-parent-rail__item:hover { background: #fff; color: var(--bc-text-strong); }
.bc-parent-rail__item.is-active { background: #fff; color: var(--bc-text-strong); font-weight: var(--bc-fw-semi); box-shadow: inset 3px 0 0 var(--bc-accent-500); }
.bc-parent-rail__no { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--bc-border-strong); display: grid; place-items: center; flex: none;
  font-size: var(--bc-fs-2xs); font-weight: var(--bc-fw-semi); color: var(--bc-text-muted); margin-top: 1px; }
.bc-parent-rail__item.is-active .bc-parent-rail__no { border-color: var(--bc-accent-500); background: var(--bc-accent-500); color: #fff; }
.bc-parent-rail__item.is-done .bc-parent-rail__no { border-color: var(--bc-accent-200); background: var(--bc-accent-50); color: var(--bc-accent-700); }
.bc-parent-rail__sub { display: block; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); font-weight: var(--bc-fw-regular); margin-top: 2px; }
.bc-parent-rail__help { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); padding: var(--bc-s-4); border: 1px solid var(--bc-border); border-radius: var(--bc-r-card); background: #fff; }
.bc-parent-rail__help a { display: flex; align-items: center; gap: 8px; color: var(--bc-text-strong); font-weight: var(--bc-fw-semi); margin-top: 8px; font-size: var(--bc-fs-sm); }
.bc-parent-rail__help svg { color: var(--bc-accent-600); }

@media (min-width: 1024px) {
  .bc-parent-form-layout { grid-template-columns: var(--bc-parent-rail) minmax(0, 1fr); gap: var(--bc-s-7); }
  .bc-parent-form__rail { display: block; position: sticky; top: calc(var(--bc-topbar-h) + var(--bc-s-6)); }
}
@media (min-width: 1200px) {
  .bc-parent-form__section { display: grid; grid-template-columns: var(--bc-parent-label) minmax(0, 1fr); gap: var(--bc-s-7); align-items: start; }
  .bc-parent-form__head { margin-bottom: 0; }
  .bc-parent-form__head h3 { font-size: var(--bc-fs-base); }
}
@media (max-width: 1023px) {
  .bc-parent-form__intro, .bc-parent-form__section, .bc-parent-form__actions { padding-inline: var(--bc-s-5); }
}
@media (max-width: 767px) {
  .bc-parent-form { border-radius: var(--bc-r-card); }
  .bc-parent-form__intro, .bc-parent-form__section { padding: var(--bc-s-5) var(--bc-s-4); }
  .bc-parent-form__answers { grid-template-columns: 1fr; gap: var(--bc-s-4); }
  /* actions pinned above the bottom navigation, clear of the safe area */
  .bc-parent-form__actions { position: fixed; left: 0; right: 0; bottom: calc(var(--bc-parent-bottomnav) + env(safe-area-inset-bottom, 0px));
    z-index: calc(var(--bc-z-sticky) - 1); border-radius: 0; padding: var(--bc-s-3) var(--bc-s-4); background: #fff;
    border-top: 1px solid var(--bc-border); flex-wrap: nowrap; }
  .bc-parent-form__actions .bc-btn, .bc-parent-form__actions .btn { min-width: 0; flex: 1 1 0; }
  .bc-parent-form__actions > .is-end { margin-left: 0; flex: 1 1 0; }
  .bc-parent-form__actions > .is-end .btn, .bc-parent-form__actions > .is-end .bc-btn { flex: 1 1 0; }
  .sa-has-fixed-actions .sa-content, .sa-has-fixed-actions .sa-site-main { padding-bottom: calc(var(--bc-parent-bottomnav) + 88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 768px) {
  .sa-site .bc-parent-form__actions { position: static; }
}

/* --------------------------------------------------------------------------
   8. STATES
   A static skeleton (no shimmer to announce), an empty state with one real
   next action, and notices that read as text first and colour second.
   -------------------------------------------------------------------------- */
body.sa-shell .bc-skel { background: var(--bc-grey-100); animation: none; border-radius: var(--bc-r-xs); }
.sa-loading[aria-busy="true"] { position: relative; }
body.sa-shell .bc-empty { padding: var(--bc-s-7) var(--bc-s-5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
body.sa-shell .bc-empty__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bc-grey-50); color: var(--bc-text-muted); margin-bottom: 4px; }
body.sa-shell .bc-empty__title { font-family: var(--bc-font-display); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); font-size: var(--bc-fs-h4); }
body.sa-shell .bc-empty__body { color: var(--bc-text-muted); font-size: var(--bc-fs-sm); max-width: 44ch; }
body.sa-shell .bc-empty .bc-btn { margin-top: var(--bc-s-3); }
.sa-statusline { display: inline-flex; align-items: center; gap: 8px; font-size: var(--bc-fs-sm); color: var(--bc-text-body); }
.sa-statusline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bc-text-subtle); flex: none; }
.sa-statusline.is-open::before { background: var(--bc-success); }
.sa-statusline.is-soon::before { background: var(--bc-warning); }
.sa-statusline.is-closed::before { background: var(--bc-danger); }

/* --------------------------------------------------------------------------
   9. ACCESSIBILITY HELPERS
   -------------------------------------------------------------------------- */
.bc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bc-skip { position: absolute; left: var(--bc-s-4); top: -100px; z-index: calc(var(--bc-z-toast) + 1); padding: 12px 16px; background: var(--bc-brand-600); color: #fff;
  border-radius: var(--bc-r-btn); font-weight: var(--bc-fw-semi); font-size: var(--bc-fs-sm); }
.bc-skip:focus { top: var(--bc-s-4); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  body.sa-shell *, body.sa-shell *::before, body.sa-shell *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
