/*! BrooksCorp Design Framework (BCDF) v1.0 */

/* ==========================================================================
   BrooksCorp Design Framework (BCDF) — 1. TOKENS
   --------------------------------------------------------------------------
   The ONLY file a new project should need to edit to reskin the whole system.
   Everything downstream (components, layouts, charts) reads from these vars.

   Reskin rule: override --bc-brand-* / --bc-accent-* in a theme file.
   Never hard-code a hex value anywhere else in the codebase.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     1.1  BRAND SCALE  —  deep corporate foundation (default = Nala Navy)
     --------------------------------------------------------------------- */
  --bc-brand-50:  #EEF2F7;
  --bc-brand-100: #D5DEEA;
  --bc-brand-200: #A8B8CE;
  --bc-brand-300: #7189A9;
  --bc-brand-400: #3E5878;
  --bc-brand-500: #1C3556;
  --bc-brand-600: #0B1D3A;   /* PRIMARY — navigation, sidebar, headings, footer */
  --bc-brand-700: #08172F;
  --bc-brand-800: #061224;
  --bc-brand-900: #040D1A;

  /* ---------------------------------------------------------------------
     1.2  ACCENT SCALE  —  action colour (default = Nala Teal)
     Used for: primary CTAs, active nav, sliders, selected states, focus.
     --------------------------------------------------------------------- */
  --bc-accent-50:  #E6F6F5;
  --bc-accent-100: #C0E9E6;
  --bc-accent-200: #8FD8D3;
  --bc-accent-300: #52C2BB;
  --bc-accent-400: #22AFA6;
  --bc-accent-500: #0FA39A;  /* PRIMARY ACCENT */
  --bc-accent-600: #0C8B84;
  --bc-accent-700: #096F6A;
  --bc-accent-800: #075450;
  --bc-accent-900: #043A37;

  /* ---------------------------------------------------------------------
     1.3  SUPPORT SCALE  —  secondary brand colour (default = Nala Green)
     Progress, positive financial states, illustration accents.
     --------------------------------------------------------------------- */
  --bc-support-50:  #EEF9F2;
  --bc-support-100: #D3F0DE;
  --bc-support-200: #A9E2C0;
  --bc-support-300: #62C58A;  /* SUPPORT */
  --bc-support-400: #45B173;
  --bc-support-500: #349A61;

  /* ---------------------------------------------------------------------
     1.4  NEUTRALS
     --------------------------------------------------------------------- */
  --bc-white:      #FFFFFF;
  --bc-grey-25:    #FAFBFC;
  --bc-grey-50:    #F2F4F7;   /* app background */
  --bc-grey-100:   #E8ECF1;
  --bc-grey-200:   #DDE3EB;   /* borders */
  --bc-grey-300:   #C6CEDA;
  --bc-grey-400:   #9AA5B5;
  --bc-grey-500:   #7D8794;   /* muted text */
  --bc-grey-600:   #5B6472;
  --bc-grey-700:   #414A57;
  --bc-grey-800:   #2A323D;
  --bc-grey-900:   #131A24;

  /* Warm surface — optional, for consumer/marketing "explainer" panels */
  --bc-warm-50:    #FBF8F3;
  --bc-warm-100:   #F7F3ED;
  --bc-warm-200:   #EDE5D8;

  /* ---------------------------------------------------------------------
     1.5  SEMANTIC / STATUS
     --------------------------------------------------------------------- */
  --bc-success:      #27AE60;
  --bc-success-bg:   #E7F7EE;
  --bc-success-fg:   #0F7A3E;

  --bc-warning:      #F59E0B;
  --bc-warning-bg:   #FEF3DC;
  --bc-warning-fg:   #8A5A00;

  --bc-danger:       #E74C3C;
  --bc-danger-bg:    #FDECEA;
  --bc-danger-fg:    #A32419;

  --bc-info:         #5E7BD6;
  --bc-info-bg:      #ECF0FB;
  --bc-info-fg:      #33489B;

  --bc-neutral-bg:   #EEF1F5;
  --bc-neutral-fg:   #55606F;

  --bc-purple:       #8B7BD8;
  --bc-purple-bg:    #F0EDFC;
  --bc-purple-fg:    #4F3FA0;

  /* ---------------------------------------------------------------------
     1.6  ROLE ALIASES  —  components reference THESE, not the scales.
     --------------------------------------------------------------------- */
  --bc-bg-app:        var(--bc-grey-50);
  --bc-bg-surface:    var(--bc-white);
  --bc-bg-raised:     var(--bc-white);
  --bc-bg-sunken:     var(--bc-grey-50);
  --bc-bg-inverse:    var(--bc-brand-600);
  --bc-bg-warm:       var(--bc-warm-100);

  --bc-text-strong:   var(--bc-brand-600);
  --bc-text-body:     var(--bc-grey-700);
  --bc-text-muted:    var(--bc-grey-500);
  --bc-text-subtle:   var(--bc-grey-400);
  --bc-text-inverse:  var(--bc-white);
  --bc-text-accent:   var(--bc-accent-500);

  --bc-border:        var(--bc-grey-200);
  --bc-border-strong: var(--bc-grey-300);
  --bc-border-subtle: var(--bc-grey-100);

  --bc-focus-ring:    0 0 0 3px rgba(15,163,154,.28);

  /* ---------------------------------------------------------------------
     1.7  TYPOGRAPHY
     --------------------------------------------------------------------- */
  --bc-font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bc-font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bc-font-mono:    "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;

  --bc-fs-display: 3.5rem;   /* 56 */
  --bc-fs-h1:      2.75rem;  /* 44 */
  --bc-fs-h2:      2rem;     /* 32 */
  --bc-fs-h3:      1.375rem; /* 22 */
  --bc-fs-h4:      1.125rem; /* 18 */
  --bc-fs-lg:      1rem;     /* 16 */
  --bc-fs-base:    .9375rem; /* 15 */
  --bc-fs-sm:      .8125rem; /* 13 */
  --bc-fs-xs:      .75rem;   /* 12 */
  --bc-fs-2xs:     .6875rem; /* 11 */

  --bc-lh-tight: 1.15;
  --bc-lh-snug:  1.35;
  --bc-lh-base:  1.6;

  --bc-fw-regular: 400;
  --bc-fw-medium:  500;
  --bc-fw-semi:    600;
  --bc-fw-bold:    700;

  /* ---------------------------------------------------------------------
     1.8  SPACE  (4px base)
     --------------------------------------------------------------------- */
  --bc-s-1: 4px;   --bc-s-2: 8px;   --bc-s-3: 12px;  --bc-s-4: 16px;
  --bc-s-5: 20px;  --bc-s-6: 24px;  --bc-s-7: 32px;  --bc-s-8: 40px;
  --bc-s-9: 48px;  --bc-s-10: 64px; --bc-s-11: 80px; --bc-s-12: 96px;

  /* ---------------------------------------------------------------------
     1.9  RADIUS  —  structured, not bubbly
     --------------------------------------------------------------------- */
  --bc-r-xs:   6px;
  --bc-r-sm:   8px;
  --bc-r-ctrl: 10px;   /* inputs, selects */
  --bc-r-btn:  10px;   /* buttons */
  --bc-r-card: 16px;   /* standard card */
  --bc-r-lg:   22px;   /* feature card */
  --bc-r-pill: 999px;

  /* ---------------------------------------------------------------------
     1.10 ELEVATION  —  soft, financial-grade. Never harsh.
     --------------------------------------------------------------------- */
  --bc-sh-xs:   0 1px 2px rgba(11,29,58,.06);
  --bc-sh-sm:   0 1px 3px rgba(11,29,58,.07), 0 1px 2px rgba(11,29,58,.04);
  --bc-sh-md:   0 4px 12px rgba(11,29,58,.07), 0 1px 3px rgba(11,29,58,.05);
  --bc-sh-lg:   0 12px 32px rgba(11,29,58,.10), 0 2px 8px rgba(11,29,58,.05);
  --bc-sh-xl:   0 24px 64px rgba(11,29,58,.14), 0 4px 12px rgba(11,29,58,.06);
  --bc-sh-focus: var(--bc-focus-ring);

  /* ---------------------------------------------------------------------
     1.11 LAYOUT
     --------------------------------------------------------------------- */
  --bc-container:      1240px;
  --bc-container-wide: 1560px;
  --bc-form-width:     660px;   /* application wizard card max width */
  --bc-sidebar-w:      248px;
  --bc-sidebar-w-collapsed: 72px;
  --bc-topbar-h:       64px;

  --bc-z-sticky: 100;
  --bc-z-drawer: 400;
  --bc-z-modal:  600;
  --bc-z-toast:  800;

  --bc-transition: 160ms cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   1.12  DARK SURFACE CONTEXT
   Apply .bc-dark to any subtree (staff login, MIS sidebar, inverse panels)
   and every role alias flips. Components need no dark-specific rules.
   ========================================================================== */
.bc-dark {
  --bc-bg-app:        var(--bc-brand-700);
  --bc-bg-surface:    var(--bc-brand-600);
  --bc-bg-raised:     var(--bc-brand-500);
  --bc-bg-sunken:     var(--bc-brand-800);

  --bc-text-strong:   var(--bc-white);
  --bc-text-body:     rgba(255,255,255,.82);
  --bc-text-muted:    rgba(255,255,255,.60);
  --bc-text-subtle:   rgba(255,255,255,.42);
  --bc-text-inverse:  var(--bc-brand-600);

  --bc-border:        rgba(255,255,255,.12);
  --bc-border-strong: rgba(255,255,255,.20);
  --bc-border-subtle: rgba(255,255,255,.07);
}
/* ==========================================================================
   BrooksCorp Design Framework — 2. RESET, BASE & TYPOGRAPHY
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base);
  line-height: var(--bc-lh-base);
  color: var(--bc-text-body);
  background: var(--bc-bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}

h1,h2,h3,h4,h5,h6 {
  margin: 0;
  font-family: var(--bc-font-display);
  color: var(--bc-text-strong);
  line-height: var(--bc-lh-tight);
  letter-spacing: -.02em;
}
h1 { font-size: var(--bc-fs-h1); font-weight: var(--bc-fw-bold); }
h2 { font-size: var(--bc-fs-h2); font-weight: var(--bc-fw-semi); }
h3 { font-size: var(--bc-fs-h3); font-weight: var(--bc-fw-semi); letter-spacing: -.01em; }
h4 { font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi); letter-spacing: -.005em; }
h5 { font-size: var(--bc-fs-lg); font-weight: var(--bc-fw-semi); letter-spacing: 0; }

p  { margin: 0 0 var(--bc-s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--bc-accent-600); text-decoration: none; transition: color var(--bc-transition); }
a:hover { color: var(--bc-accent-700); }

img, svg, video { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--bc-border); margin: var(--bc-s-6) 0; }

::selection { background: var(--bc-accent-100); color: var(--bc-brand-700); }

:focus-visible { outline: none; box-shadow: var(--bc-focus-ring); border-radius: var(--bc-r-xs); }

/* --------------------------------------------------------------------------
   2.1  TYPE UTILITIES
   -------------------------------------------------------------------------- */
.bc-display   { font-family: var(--bc-font-display); font-size: var(--bc-fs-display); font-weight: var(--bc-fw-bold); line-height: 1.06; letter-spacing: -.03em; color: var(--bc-text-strong); }
.bc-eyebrow   { font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); letter-spacing: .10em; text-transform: uppercase; color: var(--bc-text-muted); }
.bc-lead      { font-size: 1.0625rem; line-height: 1.65; color: var(--bc-text-body); }
.bc-small     { font-size: var(--bc-fs-sm); }
.bc-xs        { font-size: var(--bc-fs-xs); }
.bc-muted     { color: var(--bc-text-muted); }
.bc-subtle    { color: var(--bc-text-subtle); }
.bc-strong    { color: var(--bc-text-strong); }
.bc-accent    { color: var(--bc-accent-500); }
.bc-danger-text  { color: var(--bc-danger-fg); }
.bc-success-text { color: var(--bc-success-fg); }
.bc-semi      { font-weight: var(--bc-fw-semi); }
.bc-bold      { font-weight: var(--bc-fw-bold); }
.bc-medium    { font-weight: var(--bc-fw-medium); }
.bc-center    { text-align: center; }
.bc-right     { text-align: right; }
.bc-nowrap    { white-space: nowrap; }
.bc-truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   2.2  FINANCIAL FIGURES
   Money is the most important information on any BrooksCorp screen.
   Tabular numerals so columns of rands align; tight tracking so they read
   as one quantity rather than a string of digits.
   -------------------------------------------------------------------------- */
.bc-money {
  font-family: var(--bc-font-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.02em;
  color: var(--bc-text-strong);
  font-weight: var(--bc-fw-semi);
}
.bc-money--hero { font-size: 2.75rem; font-weight: var(--bc-fw-bold); letter-spacing: -.035em; line-height: 1.05; }
.bc-money--xl   { font-size: 2rem;   font-weight: var(--bc-fw-bold); letter-spacing: -.03em; line-height: 1.1; }
.bc-money--lg   { font-size: 1.5rem; font-weight: var(--bc-fw-bold); letter-spacing: -.025em; }
.bc-money--md   { font-size: 1.125rem; }
.bc-money--sm   { font-size: var(--bc-fs-base); }
.bc-money--neg  { color: var(--bc-danger-fg); }
.bc-money--pos  { color: var(--bc-success-fg); }
.bc-num         { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --------------------------------------------------------------------------
   2.3  LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.bc-container      { width: 100%; max-width: var(--bc-container); margin-inline: auto; padding-inline: var(--bc-s-6); }
.bc-container-wide { width: 100%; max-width: var(--bc-container-wide); margin-inline: auto; padding-inline: var(--bc-s-6); }

.bc-stack   { display: flex; flex-direction: column; }
.bc-row     { display: flex; flex-direction: row; align-items: center; }
.bc-between { justify-content: space-between; }
.bc-middle  { align-items: center; }
.bc-top     { align-items: flex-start; }
.bc-end     { justify-content: flex-end; }
.bc-wrap    { flex-wrap: wrap; }
.bc-grow    { flex: 1 1 auto; min-width: 0; }

.bc-g-1 { gap: var(--bc-s-1); } .bc-g-2 { gap: var(--bc-s-2); }
.bc-g-3 { gap: var(--bc-s-3); } .bc-g-4 { gap: var(--bc-s-4); }
.bc-g-5 { gap: var(--bc-s-5); } .bc-g-6 { gap: var(--bc-s-6); }
.bc-g-7 { gap: var(--bc-s-7); } .bc-g-8 { gap: var(--bc-s-8); }

.bc-mt-1{margin-top:var(--bc-s-1)} .bc-mt-2{margin-top:var(--bc-s-2)} .bc-mt-3{margin-top:var(--bc-s-3)}
.bc-mt-4{margin-top:var(--bc-s-4)} .bc-mt-5{margin-top:var(--bc-s-5)} .bc-mt-6{margin-top:var(--bc-s-6)}
.bc-mt-7{margin-top:var(--bc-s-7)} .bc-mt-8{margin-top:var(--bc-s-8)}
.bc-mb-1{margin-bottom:var(--bc-s-1)} .bc-mb-2{margin-bottom:var(--bc-s-2)} .bc-mb-3{margin-bottom:var(--bc-s-3)}
.bc-mb-4{margin-bottom:var(--bc-s-4)} .bc-mb-5{margin-bottom:var(--bc-s-5)} .bc-mb-6{margin-bottom:var(--bc-s-6)}
.bc-mb-7{margin-bottom:var(--bc-s-7)} .bc-mb-8{margin-bottom:var(--bc-s-8)}
.bc-m-0{margin:0}

.bc-grid { display: grid; gap: var(--bc-s-5); }
.bc-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.bc-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bc-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bc-grid--5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.bc-grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.bc-grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.bc-section    { padding-block: var(--bc-s-12); }
.bc-section--sm{ padding-block: var(--bc-s-9); }
.bc-section--warm  { background: var(--bc-bg-warm); }
.bc-section--grey  { background: var(--bc-grey-50); }
.bc-section--navy  { background: var(--bc-brand-600); }

.bc-hide { display: none !important; }
@media (max-width: 1279px) { .bc-hide-xl { display: none !important; } }
@media (max-width: 1023px) { .bc-hide-lg { display: none !important; } }
@media (max-width: 767px)  { .bc-hide-md { display: none !important; } }
@media (min-width: 1024px) { .bc-only-md { display: none !important; } }
@media (min-width: 768px)  { .bc-only-sm { display: none !important; } }
/* ==========================================================================
   BrooksCorp Design Framework — 3. COMPONENTS
   Covers the full component contract (see docs/BrooksCorp-Design-Standard.md §6)
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1  BUTTONS
   -------------------------------------------------------------------------- */
.bc-btn {
  --_bg: transparent; --_fg: var(--bc-text-strong); --_bd: transparent; --_sh: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bc-s-2);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi);
  line-height: 1; letter-spacing: -.005em;
  padding: 0 var(--bc-s-5); height: 44px;
  border: 1px solid var(--_bd); border-radius: var(--bc-r-btn);
  background: var(--_bg); color: var(--_fg); box-shadow: var(--_sh);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--bc-transition), border-color var(--bc-transition),
              color var(--bc-transition), box-shadow var(--bc-transition), transform var(--bc-transition);
}
.bc-btn:hover  { transform: translateY(-1px); }
.bc-btn:active { transform: translateY(0); }
.bc-btn:focus-visible { box-shadow: var(--bc-focus-ring); }
.bc-btn[disabled], .bc-btn.is-disabled { opacity: .45; pointer-events: none; transform: none; }
.bc-btn svg { width: 18px; height: 18px; flex: none; }

.bc-btn--primary   { --_bg: var(--bc-accent-500); --_fg: #fff; --_sh: 0 2px 8px rgba(15,163,154,.28); }
.bc-btn--primary:hover  { --_bg: var(--bc-accent-600); --_sh: 0 6px 16px rgba(15,163,154,.34); }

.bc-btn--navy      { --_bg: var(--bc-brand-600); --_fg: #fff; --_sh: 0 2px 8px rgba(11,29,58,.22); }
.bc-btn--navy:hover     { --_bg: var(--bc-brand-500); --_sh: 0 6px 16px rgba(11,29,58,.28); }

.bc-btn--secondary { --_bg: var(--bc-bg-surface); --_fg: var(--bc-text-strong); --_bd: var(--bc-border-strong); }
.bc-btn--secondary:hover{ --_bd: var(--bc-accent-400); --_fg: var(--bc-accent-700); }

.bc-btn--ghost     { --_fg: var(--bc-text-body); }
.bc-btn--ghost:hover    { --_bg: var(--bc-grey-100); --_fg: var(--bc-text-strong); }

.bc-btn--success   { --_bg: var(--bc-success); --_fg: #fff; --_sh: 0 2px 8px rgba(39,174,96,.26); }
.bc-btn--success:hover  { --_bg: #219653; }

.bc-btn--danger    { --_bg: var(--bc-danger); --_fg: #fff; }
.bc-btn--danger:hover   { --_bg: #cf3f30; }
.bc-btn--danger-soft { --_bg: var(--bc-danger-bg); --_fg: var(--bc-danger-fg); --_bd: rgba(231,76,60,.22); }

.bc-btn--link      { --_fg: var(--bc-accent-600); height: auto; padding: 0; }
.bc-btn--link:hover     { text-decoration: underline; transform: none; }

.bc-btn--lg   { height: 52px; font-size: var(--bc-fs-lg); padding-inline: var(--bc-s-7); border-radius: 12px; }
.bc-btn--sm   { height: 36px; font-size: var(--bc-fs-sm); padding-inline: var(--bc-s-4); border-radius: var(--bc-r-sm); }
.bc-btn--xs   { height: 30px; font-size: var(--bc-fs-xs); padding-inline: var(--bc-s-3); border-radius: var(--bc-r-xs); gap: 6px; }
.bc-btn--xs svg { width: 14px; height: 14px; }
.bc-btn--block{ width: 100%; }
.bc-btn--icon { width: 40px; padding: 0; }
.bc-btn--icon.bc-btn--sm { width: 36px; }

.bc-btn-group { display: inline-flex; gap: var(--bc-s-2); }

/* --------------------------------------------------------------------------
   3.2  CARDS
   -------------------------------------------------------------------------- */
.bc-card {
  background: var(--bc-bg-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-r-card);
  box-shadow: var(--bc-sh-sm);
}
.bc-card--flat    { box-shadow: none; }
.bc-card--raised  { box-shadow: var(--bc-sh-md); }
.bc-card--float   { box-shadow: var(--bc-sh-xl); border-color: transparent; }
.bc-card--feature { border-radius: var(--bc-r-lg); }
.bc-card--warm    { background: var(--bc-bg-warm); border-color: var(--bc-warm-200); box-shadow: none; }
.bc-card--navy    { background: var(--bc-brand-600); border-color: transparent; color: rgba(255,255,255,.82); }
.bc-card--navy h1,.bc-card--navy h2,.bc-card--navy h3,.bc-card--navy h4 { color: #fff; }
.bc-card--accent  { background: var(--bc-accent-500); border-color: transparent; color: rgba(255,255,255,.88); }
.bc-card--accent h1,.bc-card--accent h2,.bc-card--accent h3,.bc-card--accent h4 { color: #fff; }
.bc-card--interactive { cursor: pointer; transition: box-shadow var(--bc-transition), border-color var(--bc-transition), transform var(--bc-transition); }
.bc-card--interactive:hover { box-shadow: var(--bc-sh-lg); border-color: var(--bc-accent-200); transform: translateY(-2px); }

.bc-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-4);
                 padding: var(--bc-s-5) var(--bc-s-6); border-bottom: 1px solid var(--bc-border-subtle); }
.bc-card__title{ font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
                 color: var(--bc-text-strong); letter-spacing: -.01em; margin: 0; }
.bc-card__body { padding: var(--bc-s-6); }
.bc-card__body--tight { padding: var(--bc-s-4) var(--bc-s-5); }
.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); border-radius: 0 0 var(--bc-r-card) var(--bc-r-card); }

/* --------------------------------------------------------------------------
   3.3  FORM CONTROLS
   -------------------------------------------------------------------------- */
.bc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--bc-s-5); }
.bc-label { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body); }
.bc-label .bc-req { color: var(--bc-danger); margin-left: 2px; }
.bc-help  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); line-height: 1.5; }
.bc-error { font-size: var(--bc-fs-xs); color: var(--bc-danger-fg); display: flex; align-items: center; gap: 5px; }

.bc-input, .bc-select, .bc-textarea {
  width: 100%; font-family: var(--bc-font-body); font-size: var(--bc-fs-base);
  color: var(--bc-text-strong); background: var(--bc-bg-surface);
  border: 1px solid var(--bc-border-strong); border-radius: var(--bc-r-ctrl);
  padding: 0 var(--bc-s-4); height: 46px;
  transition: border-color var(--bc-transition), box-shadow var(--bc-transition), background var(--bc-transition);
}
.bc-textarea { height: auto; min-height: 110px; padding: var(--bc-s-3) var(--bc-s-4); line-height: 1.55; resize: vertical; }
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--bc-text-subtle); }
.bc-input:hover, .bc-select:hover, .bc-textarea:hover { border-color: var(--bc-grey-400); }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus {
  outline: none; border-color: var(--bc-accent-500); box-shadow: var(--bc-focus-ring);
}
.bc-input[readonly], .bc-input[disabled] { background: var(--bc-grey-50); color: var(--bc-text-muted); }
.bc-input.is-invalid, .bc-select.is-invalid { border-color: var(--bc-danger); box-shadow: 0 0 0 3px rgba(231,76,60,.16); }
.bc-input.is-valid { border-color: var(--bc-success); }

.bc-select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237D8794' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* Input with leading affix (R, +27, search icon) */
.bc-input-group { display: flex; align-items: stretch; position: relative; }
.bc-input-group .bc-input { border-radius: var(--bc-r-ctrl); }
.bc-input-group__affix {
  display: flex; align-items: center; padding: 0 var(--bc-s-3);
  background: var(--bc-grey-50); border: 1px solid var(--bc-border-strong); border-right: 0;
  border-radius: var(--bc-r-ctrl) 0 0 var(--bc-r-ctrl);
  font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi); color: var(--bc-text-muted);
}
.bc-input-group__affix + .bc-input { border-radius: 0 var(--bc-r-ctrl) var(--bc-r-ctrl) 0; }
.bc-input--currency { font-family: var(--bc-font-display); font-variant-numeric: tabular-nums; font-weight: var(--bc-fw-semi); letter-spacing: -.01em; }

.bc-input-icon { position: relative; }
.bc-input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--bc-text-subtle); pointer-events: none; }
.bc-input-icon .bc-input { padding-left: 40px; }
.bc-input-icon--trail svg { left: auto; right: 14px; }
.bc-input-icon--trail .bc-input { padding-left: var(--bc-s-4); padding-right: 40px; }

/* Checkbox / radio */
.bc-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--bc-fs-base); color: var(--bc-text-body); }
.bc-check input { appearance: none; margin: 0; flex: none; width: 19px; height: 19px; margin-top: 1px;
  border: 1.5px solid var(--bc-border-strong); border-radius: 5px; background: var(--bc-bg-surface);
  cursor: pointer; transition: all var(--bc-transition); position: relative; }
.bc-check input[type="radio"] { border-radius: 50%; }
.bc-check input:checked { background: var(--bc-accent-500); border-color: var(--bc-accent-500); }
.bc-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bc-check input[type="radio"]:checked::after { content:""; position:absolute; inset:4px; border-radius:50%; background:#fff; }
.bc-check input:focus-visible { box-shadow: var(--bc-focus-ring); }

/* Toggle */
.bc-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.bc-toggle input { appearance: none; margin: 0; width: 42px; height: 24px; border-radius: 999px;
  background: var(--bc-grey-300); cursor: pointer; position: relative; transition: background var(--bc-transition); }
.bc-toggle input::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%;
  background:#fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform var(--bc-transition); }
.bc-toggle input:checked { background: var(--bc-accent-500); }
.bc-toggle input:checked::after { transform: translateX(18px); }

/* Segmented / term selector pills */
.bc-pills { display: flex; gap: var(--bc-s-2); flex-wrap: wrap; }
.bc-pill {
  flex: 1 1 0; min-width: 74px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 var(--bc-s-3);
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body);
  background: var(--bc-bg-surface); border: 1px solid var(--bc-border-strong); border-radius: var(--bc-r-sm);
  cursor: pointer; white-space: nowrap; transition: all var(--bc-transition);
}
.bc-pill:hover { border-color: var(--bc-accent-300); color: var(--bc-accent-700); }
.bc-pill.is-active { background: var(--bc-accent-500); border-color: var(--bc-accent-500); color: #fff; font-weight: var(--bc-fw-semi); box-shadow: 0 2px 8px rgba(15,163,154,.26); }

/* Slider */
.bc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--bc-grey-200); outline: none; cursor: pointer; margin: var(--bc-s-3) 0; }
.bc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bc-accent-500); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,29,58,.28); cursor: grab; }
.bc-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bc-accent-500);
  border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,29,58,.28); cursor: grab; }
.bc-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.bc-slider__scale { display: flex; justify-content: space-between; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); font-variant-numeric: tabular-nums; }

/* OTP */
.bc-otp { display: flex; gap: var(--bc-s-2); justify-content: center; }
.bc-otp input { width: 52px; height: 60px; text-align: center; font-family: var(--bc-font-display);
  font-size: 1.5rem; font-weight: var(--bc-fw-semi); color: var(--bc-text-strong);
  border: 1.5px solid var(--bc-border-strong); border-radius: var(--bc-r-ctrl); background: var(--bc-bg-surface); }
.bc-otp input:focus { outline: none; border-color: var(--bc-accent-500); box-shadow: var(--bc-focus-ring); }
.bc-otp input.is-filled { border-color: var(--bc-accent-500); background: var(--bc-accent-50); }

/* --------------------------------------------------------------------------
   3.4  BADGES / STATUS SYSTEM
   One badge component, one status vocabulary, across MIS + portal.
   -------------------------------------------------------------------------- */
.bc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--bc-r-pill);
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); line-height: 1.5;
  letter-spacing: -.005em; white-space: nowrap;
  background: var(--bc-neutral-bg); color: var(--bc-neutral-fg);
}
.bc-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.bc-badge--sq { border-radius: var(--bc-r-xs); }

.bc-badge--new        { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--info-req   { background: var(--bc-info-bg);    color: var(--bc-info-fg); }
.bc-badge--verify     { background: #E4F1FD;              color: #1B5E9E; }
.bc-badge--afford     { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--credit     { background: var(--bc-purple-bg);  color: var(--bc-purple-fg); }
.bc-badge--approved   { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--offer      { background: var(--bc-accent-50);  color: var(--bc-accent-700); }
.bc-badge--accepted   { background: var(--bc-accent-50);  color: var(--bc-accent-700); }
.bc-badge--declined   { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }
.bc-badge--disbursed  { background: #E7F0FF;              color: #24478F; }
.bc-badge--active     { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--arrears    { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }
.bc-badge--closed     { background: var(--bc-neutral-bg); color: var(--bc-neutral-fg); }
.bc-badge--pending    { background: var(--bc-neutral-bg); color: var(--bc-neutral-fg); }

.bc-badge--risk-low   { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--risk-med   { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--risk-high  { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }

.bc-badge--count { background: var(--bc-danger); color: #fff; min-width: 18px; height: 18px; padding: 0 5px;
  justify-content: center; font-size: var(--bc-fs-2xs); }

/* --------------------------------------------------------------------------
   3.5  KPI / STAT CARD
   -------------------------------------------------------------------------- */
.bc-kpi { background: var(--bc-bg-surface); border: 1px solid var(--bc-border); border-radius: var(--bc-r-card);
  padding: var(--bc-s-5); box-shadow: var(--bc-sh-xs); position: relative; overflow: hidden; }
.bc-kpi__label { font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted);
  text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.bc-kpi__value { font-family: var(--bc-font-display); font-size: 1.75rem; font-weight: var(--bc-fw-bold);
  color: var(--bc-text-strong); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bc-kpi__delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); }
.bc-kpi__delta--up   { color: var(--bc-success-fg); }
.bc-kpi__delta--down { color: var(--bc-danger-fg); }
.bc-kpi__delta--flat { color: var(--bc-text-muted); }
.bc-kpi--accent::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--bc-accent-500); }
.bc-kpi--danger::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--bc-danger); }
.bc-kpi__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bc-accent-50); color: var(--bc-accent-600); flex: none; }
.bc-kpi__icon svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   3.6  DATA TABLE
   -------------------------------------------------------------------------- */
.bc-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--bc-r-card); }
.bc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bc-fs-sm); }
.bc-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bc-grey-25);
  padding: 11px var(--bc-s-4);
  text-align: left; white-space: nowrap;
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); color: var(--bc-text-muted);
  letter-spacing: .02em;
  border-bottom: 1px solid var(--bc-border);
}
.bc-table tbody td {
  padding: 13px var(--bc-s-4);
  border-bottom: 1px solid var(--bc-border-subtle);
  color: var(--bc-text-body); vertical-align: middle;
}
.bc-table tbody tr:last-child td { border-bottom: 0; }
.bc-table tbody tr { transition: background var(--bc-transition); }
.bc-table tbody tr:hover { background: var(--bc-grey-25); }
.bc-table tbody tr.is-selected { background: var(--bc-accent-50); }
.bc-table__id  { font-family: var(--bc-font-mono); font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.bc-table__key { font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-table__num { text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--bc-fw-medium); color: var(--bc-text-strong); }
.bc-table--compact tbody td { padding: 9px var(--bc-s-3); }
.bc-table--compact thead th { padding: 8px var(--bc-s-3); }

/* Filter bar */
.bc-filterbar { display: flex; align-items: center; gap: var(--bc-s-3); flex-wrap: wrap;
  padding: var(--bc-s-4) var(--bc-s-5); border-bottom: 1px solid var(--bc-border-subtle); }
/* Controls inside a filter bar sit side by side, so they must size to content
   rather than inherit the full-width default used in stacked forms. */
.bc-filterbar .bc-select, .bc-filterbar .bc-input { height: 38px; font-size: var(--bc-fs-sm); width: auto; }
.bc-filterbar .bc-select { min-width: 132px; }
.bc-filterbar .bc-input-icon { display: flex; }
.bc-filterbar .bc-input-icon .bc-input { width: 100%; }
.bc-filterbar__search { flex: 1 1 220px; min-width: 180px; max-width: 340px; }

/* Pagination */
.bc-pagination { display: flex; align-items: center; gap: 4px; }
.bc-pagination button, .bc-pagination a {
  min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--bc-r-xs); background: transparent;
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body); cursor: pointer;
  transition: all var(--bc-transition);
}
.bc-pagination button:hover { background: var(--bc-grey-100); color: var(--bc-text-strong); }
.bc-pagination .is-active { background: var(--bc-accent-500); border-color: var(--bc-accent-500); color: #fff; }

/* --------------------------------------------------------------------------
   3.7  TABS
   -------------------------------------------------------------------------- */
.bc-tabs { display: flex; gap: var(--bc-s-6); border-bottom: 1px solid var(--bc-border); overflow-x: auto; scrollbar-width: none; }
.bc-tabs::-webkit-scrollbar { display: none; }
.bc-tab {
  position: relative; padding: 12px 0 13px; background: none; border: 0; cursor: pointer;
  font-family: var(--bc-font-body); font-size: var(--bc-fs-base); font-weight: var(--bc-fw-medium);
  color: var(--bc-text-muted); white-space: nowrap; transition: color var(--bc-transition);
}
.bc-tab:hover { color: var(--bc-text-strong); }
.bc-tab.is-active { color: var(--bc-accent-600); font-weight: var(--bc-fw-semi); }
.bc-tab.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: var(--bc-accent-500); border-radius: 2px 2px 0 0; }
.bc-tab__count { margin-left: 5px; font-size: var(--bc-fs-xs); color: var(--bc-text-subtle); font-weight: var(--bc-fw-regular); }
.bc-tabs--pill { border-bottom: 0; gap: 4px; background: var(--bc-grey-50); padding: 4px; border-radius: var(--bc-r-ctrl); display: inline-flex; }
.bc-tabs--pill .bc-tab { padding: 7px 14px; border-radius: var(--bc-r-sm); font-size: var(--bc-fs-sm); }
.bc-tabs--pill .bc-tab.is-active { background: var(--bc-bg-surface); color: var(--bc-text-strong); box-shadow: var(--bc-sh-xs); }
.bc-tabs--pill .bc-tab.is-active::after { display: none; }

/* --------------------------------------------------------------------------
   3.8  STEPPER (application wizard)
   -------------------------------------------------------------------------- */
.bc-stepper { display: flex; align-items: center; gap: 0; }
.bc-step { display: flex; align-items: center; gap: 9px; flex: none; }
.bc-step__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi);
  background: var(--bc-grey-100); color: var(--bc-text-muted);
  border: 1.5px solid transparent; transition: all var(--bc-transition);
}
.bc-step__label { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); white-space: nowrap; }
.bc-step.is-active .bc-step__dot   { background: var(--bc-accent-500); color: #fff; box-shadow: 0 0 0 4px var(--bc-accent-50); }
.bc-step.is-active .bc-step__label { color: var(--bc-text-strong); font-weight: var(--bc-fw-semi); }
.bc-step.is-done .bc-step__dot { background: var(--bc-accent-50); color: var(--bc-accent-600); border-color: var(--bc-accent-200); }
.bc-step.is-done .bc-step__label { color: var(--bc-text-body); }
.bc-stepper__line { flex: 1 1 auto; height: 1.5px; background: var(--bc-grey-200); margin: 0 var(--bc-s-3); min-width: 18px; }
.bc-stepper__line.is-done { background: var(--bc-accent-200); }

.bc-progress-steps { display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-3); }

/* --------------------------------------------------------------------------
   3.9  PROGRESS
   -------------------------------------------------------------------------- */
.bc-progress { height: 8px; border-radius: 999px; background: var(--bc-grey-100); overflow: hidden; }
.bc-progress__bar { height: 100%; border-radius: 999px; background: var(--bc-support-300); transition: width 400ms ease; }
.bc-progress__bar--accent { background: var(--bc-accent-500); }
.bc-progress__bar--warn   { background: var(--bc-warning); }
.bc-progress__bar--danger { background: var(--bc-danger); }
.bc-progress--sm { height: 5px; }
.bc-progress--lg { height: 12px; }

.bc-ring { --_p: 0; --_size: 92px; --_track: var(--bc-grey-100); --_fill: var(--bc-accent-500);
  width: var(--_size); height: var(--_size); border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--_fill) calc(var(--_p) * 1%), var(--_track) 0); flex: none; }
.bc-ring::before { content:""; position:absolute; inset: 11px; border-radius: 50%; background: var(--bc-bg-surface); }
.bc-ring__val { position: relative; font-family: var(--bc-font-display); font-weight: var(--bc-fw-bold);
  font-size: var(--bc-fs-lg); color: var(--bc-text-strong); line-height: 1.1; text-align: center; }
.bc-ring__val small { display:block; font-size: var(--bc-fs-2xs); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); }
.bc-ring--lg { --_size: 120px; }
.bc-ring--sm { --_size: 64px; }
.bc-ring--sm::before { inset: 8px; }

/* --------------------------------------------------------------------------
   3.10  ALERTS / INFO PANELS
   -------------------------------------------------------------------------- */
.bc-alert { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-4); border-radius: var(--bc-r-ctrl);
  font-size: var(--bc-fs-sm); line-height: 1.55; border: 1px solid transparent; }
.bc-alert__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.bc-alert__title { font-weight: var(--bc-fw-semi); display: block; margin-bottom: 2px; }
.bc-alert--info    { background: var(--bc-info-bg);    color: var(--bc-info-fg);    border-color: rgba(94,123,214,.18); }
.bc-alert--success { background: var(--bc-success-bg); color: var(--bc-success-fg); border-color: rgba(39,174,96,.18); }
.bc-alert--warning { background: var(--bc-warning-bg); color: var(--bc-warning-fg); border-color: rgba(245,158,11,.20); }
.bc-alert--danger  { background: var(--bc-danger-bg);  color: var(--bc-danger-fg);  border-color: rgba(231,76,60,.18); }

/* "Why do we need this?" explainer — consumer-facing plain-English panel */
.bc-explainer { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-4); border-radius: var(--bc-r-ctrl);
  background: var(--bc-warm-100); border: 1px solid var(--bc-warm-200); }
.bc-explainer__icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bc-brand-600); color: var(--bc-accent-300); }
.bc-explainer__icon svg { width: 16px; height: 16px; }
.bc-explainer__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); margin-bottom: 2px; }
.bc-explainer__body  { font-size: var(--bc-fs-sm); color: var(--bc-grey-600); line-height: 1.55; }

/* --------------------------------------------------------------------------
   3.11  TIMELINE
   -------------------------------------------------------------------------- */
.bc-timeline { position: relative; padding-left: 26px; }
.bc-timeline::before { content:""; position:absolute; left: 9px; top: 6px; bottom: 6px; width: 1.5px; background: var(--bc-border); }
.bc-timeline__item { position: relative; padding-bottom: var(--bc-s-5); }
.bc-timeline__item:last-child { padding-bottom: 0; }
.bc-timeline__item::before { content:""; position:absolute; left: -22px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bc-bg-surface); border: 2px solid var(--bc-border-strong); }
.bc-timeline__item.is-done::before   { background: var(--bc-success); border-color: var(--bc-success); }
.bc-timeline__item.is-active::before { background: var(--bc-accent-500); border-color: var(--bc-accent-500); box-shadow: 0 0 0 3px var(--bc-accent-50); }
.bc-timeline__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-timeline__meta  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.12  DEFINITION / SUMMARY LIST
   -------------------------------------------------------------------------- */
.bc-dl { display: grid; gap: 0; }
.bc-dl__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--bc-s-4);
  padding: 9px 0; border-bottom: 1px dashed var(--bc-border-subtle); }
.bc-dl__row:last-child { border-bottom: 0; }
.bc-dl__row--total { border-bottom: 0; border-top: 1px solid var(--bc-border); margin-top: 4px; padding-top: 13px; }
.bc-dl__k { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); }
.bc-dl__v { font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong);
  font-variant-numeric: tabular-nums; text-align: right; }
.bc-dl--grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--bc-s-4) var(--bc-s-6); }
.bc-dl--grid .bc-dl__row { display: block; border: 0; padding: 0; }
.bc-dl--grid .bc-dl__k { display: block; margin-bottom: 2px; font-size: var(--bc-fs-xs); }
.bc-dl--grid .bc-dl__v { text-align: left; font-weight: var(--bc-fw-medium); }

/* --------------------------------------------------------------------------
   3.13  AVATAR
   -------------------------------------------------------------------------- */
.bc-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--bc-accent-100); color: var(--bc-accent-800); font-weight: var(--bc-fw-semi);
  font-size: var(--bc-fs-sm); overflow: hidden; font-family: var(--bc-font-display); }
.bc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bc-avatar--sm { width: 30px; height: 30px; font-size: var(--bc-fs-xs); }
.bc-avatar--lg { width: 56px; height: 56px; font-size: var(--bc-fs-h4); }
.bc-avatar--xl { width: 76px; height: 76px; font-size: var(--bc-fs-h3); }
.bc-avatar--navy { background: var(--bc-brand-600); color: #fff; }

/* --------------------------------------------------------------------------
   3.14  MODAL / DRAWER / TOAST
   -------------------------------------------------------------------------- */
.bc-modal-backdrop { position: fixed; inset: 0; background: rgba(11,29,58,.48); backdrop-filter: blur(2px);
  z-index: var(--bc-z-modal); display: grid; place-items: center; padding: var(--bc-s-5); }
.bc-modal { width: 100%; max-width: 520px; background: var(--bc-bg-surface); border-radius: var(--bc-r-lg);
  box-shadow: var(--bc-sh-xl); overflow: hidden; }
.bc-modal__head { display:flex; align-items:center; justify-content:space-between; gap: var(--bc-s-4);
  padding: var(--bc-s-5) var(--bc-s-6); border-bottom: 1px solid var(--bc-border-subtle); }
.bc-modal__body { padding: var(--bc-s-6); }
.bc-modal__foot { display:flex; justify-content:flex-end; gap: var(--bc-s-3);
  padding: var(--bc-s-4) var(--bc-s-6); background: var(--bc-grey-25); border-top: 1px solid var(--bc-border-subtle); }
.bc-modal--wide { max-width: 800px; }

.bc-toast { display:flex; align-items:flex-start; gap: var(--bc-s-3); width: 360px; padding: var(--bc-s-4);
  background: var(--bc-bg-surface); border: 1px solid var(--bc-border); border-left: 3px solid var(--bc-accent-500);
  border-radius: var(--bc-r-ctrl); box-shadow: var(--bc-sh-lg); }
.bc-toast--success { border-left-color: var(--bc-success); }
.bc-toast--danger  { border-left-color: var(--bc-danger); }
.bc-toast--warning { border-left-color: var(--bc-warning); }
.bc-toast__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-toast__body  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.15  DOCUMENT UPLOAD / FILE ROW
   -------------------------------------------------------------------------- */
.bc-dropzone { border: 1.5px dashed var(--bc-border-strong); border-radius: var(--bc-r-ctrl);
  padding: var(--bc-s-7) var(--bc-s-5); text-align: center; background: var(--bc-grey-25);
  transition: all var(--bc-transition); cursor: pointer; }
.bc-dropzone:hover { border-color: var(--bc-accent-400); background: var(--bc-accent-50); }
.bc-dropzone__icon { width: 42px; height: 42px; margin: 0 auto var(--bc-s-3); border-radius: 11px;
  display: grid; place-items: center; background: var(--bc-accent-50); color: var(--bc-accent-600); }

.bc-file { display: flex; align-items: center; gap: var(--bc-s-3); padding: var(--bc-s-3) var(--bc-s-4);
  border: 1px solid var(--bc-border); border-radius: var(--bc-r-ctrl); background: var(--bc-bg-surface); }
.bc-file__icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--bc-grey-50); color: var(--bc-text-muted); }
.bc-file__name { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-strong); }
.bc-file__meta { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.16  EMPTY / ERROR / SKELETON
   -------------------------------------------------------------------------- */
.bc-empty { text-align: center; padding: var(--bc-s-10) var(--bc-s-5); }
.bc-empty__icon { width: 60px; height: 60px; margin: 0 auto var(--bc-s-4); border-radius: 16px;
  display: grid; place-items: center; background: var(--bc-grey-50); color: var(--bc-text-subtle); }
.bc-empty__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); margin-bottom: 5px; }
.bc-empty__body { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); max-width: 360px; margin: 0 auto var(--bc-s-5); }

.bc-skel { background: linear-gradient(90deg, var(--bc-grey-100) 25%, var(--bc-grey-50) 50%, var(--bc-grey-100) 75%);
  background-size: 200% 100%; animation: bc-shimmer 1.4s infinite; border-radius: var(--bc-r-xs); }
.bc-skel--text { height: 12px; margin-bottom: 8px; }
.bc-skel--title{ height: 20px; width: 45%; margin-bottom: 14px; }
.bc-skel--block{ height: 96px; border-radius: var(--bc-r-ctrl); }
@keyframes bc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   3.17  TRUST STRIP (public marketing)
   -------------------------------------------------------------------------- */
.bc-trust { background: var(--bc-brand-600); color: rgba(255,255,255,.72); }
.bc-trust__grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.bc-trust__item { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-6) var(--bc-s-5);
  border-right: 1px solid rgba(255,255,255,.10); }
.bc-trust__item:last-child { border-right: 0; }
.bc-trust__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.20); color: var(--bc-accent-300); }
.bc-trust__icon svg { width: 17px; height: 17px; }
.bc-trust__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi);
  color: #fff; margin-bottom: 2px; letter-spacing: -.01em; }
.bc-trust__body  { font-size: var(--bc-fs-xs); line-height: 1.5; color: rgba(255,255,255,.62); }

/* --------------------------------------------------------------------------
   3.18  JOURNEY / NUMBERED STEPS (marketing "How it works")
   -------------------------------------------------------------------------- */
.bc-journey { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--bc-s-6); position: relative; }
.bc-journey__item { text-align: left; position: relative; }
.bc-journey__no { font-family: var(--bc-font-display); font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-bold);
  color: var(--bc-accent-500); letter-spacing: .06em; margin-bottom: var(--bc-s-3); }
.bc-journey__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  border: 1.5px solid var(--bc-accent-200); color: var(--bc-accent-600); background: var(--bc-accent-50);
  margin-bottom: var(--bc-s-4); }
.bc-journey__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); margin-bottom: 6px; }
.bc-journey__body { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); line-height: 1.6; }
.bc-journey__connector { position: absolute; top: 88px; left: 62px; right: -24px; height: 1.5px;
  background: linear-gradient(90deg, var(--bc-accent-200), var(--bc-accent-100)); }

/* --------------------------------------------------------------------------
   3.19  CHART SHELL  (SVG charts are hand-rolled; this is the frame)
   -------------------------------------------------------------------------- */
.bc-chart { width: 100%; }
.bc-chart__legend { display: flex; gap: var(--bc-s-4); flex-wrap: wrap; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.bc-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bc-chart__legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.bc-axis  { font-size: 10px; fill: var(--bc-text-subtle); font-family: var(--bc-font-body); }
.bc-gridline { stroke: var(--bc-border-subtle); stroke-width: 1; }
/* ==========================================================================
   BrooksCorp Design Framework — 4. APPLICATION SHELLS
   Three shells cover every BrooksCorp product:
     .bc-public  — marketing / acquisition       (light, warm, spacious)
     .bc-portal  — authenticated client          (light, calm, task-focused)
     .bc-mis     — internal staff MIS            (navy chrome, dense, operational)
   ========================================================================== */

/* --------------------------------------------------------------------------
   4.1  BRAND LOCKUP
   -------------------------------------------------------------------------- */
.bc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.bc-logo__mark { width: 34px; height: 34px; flex: none; }
.bc-logo__text { display: flex; flex-direction: column; line-height: 1; }
.bc-logo__name { font-family: var(--bc-font-display); font-size: 1.05rem; font-weight: var(--bc-fw-bold);
  color: var(--bc-brand-600); letter-spacing: -.02em; }
.bc-logo__name em { font-style: normal; color: var(--bc-accent-600); }
.bc-logo__name sub { font-size: .55em; font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); vertical-align: baseline; }
.bc-logo__tag { font-size: 8.5px; font-weight: var(--bc-fw-medium); letter-spacing: .06em;
  color: var(--bc-accent-600); margin-top: 3px; text-transform: none; }
.bc-logo--inverse .bc-logo__name { color: #fff; }
.bc-logo--inverse .bc-logo__name em { color: var(--bc-accent-300); }
.bc-logo--inverse .bc-logo__name sub { color: rgba(255,255,255,.55); }
.bc-logo--inverse .bc-logo__tag { color: var(--bc-accent-300); }
.bc-logo--sm .bc-logo__mark { width: 27px; height: 27px; }
.bc-logo--sm .bc-logo__name { font-size: .9rem; }
.bc-logo--sm .bc-logo__tag { font-size: 7.5px; }

/* --------------------------------------------------------------------------
   4.2  PUBLIC — TOP NAVIGATION
   -------------------------------------------------------------------------- */
.bc-nav { background: var(--bc-white); border-bottom: 1px solid var(--bc-border-subtle);
  position: sticky; top: 0; z-index: var(--bc-z-sticky); }
.bc-nav__inner { display: flex; align-items: center; gap: var(--bc-s-8); height: 72px; }
.bc-nav__links { display: flex; align-items: center; gap: var(--bc-s-6); margin-left: auto; }
.bc-nav__link { font-size: var(--bc-fs-base); font-weight: var(--bc-fw-medium); color: var(--bc-grey-600);
  text-decoration: none; padding: 6px 0; position: relative; transition: color var(--bc-transition); }
.bc-nav__link:hover, .bc-nav__link.is-active { color: var(--bc-brand-600); }
.bc-nav__link.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--bc-accent-500); border-radius: 2px; }
.bc-nav__actions { display: flex; align-items: center; gap: var(--bc-s-3); margin-left: var(--bc-s-6); }

/* --------------------------------------------------------------------------
   4.3  PUBLIC — HERO
   -------------------------------------------------------------------------- */
/* Default hero = LIGHT. Photography sits in the lower band and fades to white
   under the headline, so the type never fights the image. */
.bc-hero { position: relative; overflow: hidden; background: var(--bc-white); }
.bc-hero__media { position: absolute; left: 0; right: 0; bottom: 0; height: 86%; }
.bc-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Editorial overlay: keeps photography subordinate to the financial information */
.bc-hero__scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 86%;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,.90) 15%, rgba(255,255,255,.52) 38%, rgba(255,255,255,.14) 70%, rgba(255,255,255,.04) 100%),
    linear-gradient(90deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.26) 34%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(15,163,154,0) 55%, rgba(15,163,154,.05) 100%); }
.bc-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0,55fr) minmax(0,45fr);
  gap: var(--bc-s-9); align-items: center; padding-block: var(--bc-s-10) var(--bc-s-11); }
.bc-hero__copy h1 { color: var(--bc-brand-600); font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.032em; }
.bc-hero__copy h1 em { font-style: normal; color: var(--bc-accent-500); display: block; }
.bc-hero__copy p { color: var(--bc-grey-600); font-size: 1.0625rem; line-height: 1.65; max-width: 46ch; margin-top: var(--bc-s-5); }
.bc-hero__cta { display: flex; align-items: center; gap: var(--bc-s-4); margin-top: var(--bc-s-7); flex-wrap: wrap; }

/* Inverse hero — campaign pages, product launches, dark-brand clients */
.bc-hero--dark { background: var(--bc-brand-700); }
.bc-hero--dark .bc-hero__media, .bc-hero--dark .bc-hero__scrim { height: 100%; }
.bc-hero--dark .bc-hero__scrim {
  background:
    linear-gradient(100deg, rgba(11,29,58,.94) 0%, rgba(11,29,58,.86) 34%, rgba(11,29,58,.44) 62%, rgba(11,29,58,.30) 100%),
    linear-gradient(180deg, rgba(15,163,154,.10) 0%, rgba(11,29,58,.24) 100%); }
.bc-hero--dark .bc-hero__copy h1 { color: #fff; }
.bc-hero--dark .bc-hero__copy h1 em { color: var(--bc-accent-300); }
.bc-hero--dark .bc-hero__copy p { color: rgba(255,255,255,.80); }
.bc-hero--dark .bc-hero__cta .bc-btn--ghost { color: #fff; }
.bc-hero--dark .bc-hero__cta .bc-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Floating calculator card */
.bc-calc { background: #fff; border-radius: var(--bc-r-lg); box-shadow: var(--bc-sh-xl); padding: var(--bc-s-6); }
.bc-calc__q { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-body); margin-bottom: var(--bc-s-2); }
.bc-calc__amount { font-family: var(--bc-font-display); font-size: 2.6rem; font-weight: var(--bc-fw-bold);
  color: var(--bc-brand-600); letter-spacing: -.035em; text-align: center; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.bc-calc__summary { background: var(--bc-grey-25); border: 1px solid var(--bc-border-subtle);
  border-radius: var(--bc-r-ctrl); padding: var(--bc-s-4); margin-top: var(--bc-s-5); }

/* --------------------------------------------------------------------------
   4.4  APPLICATION WIZARD SHELL
   -------------------------------------------------------------------------- */
.bc-wizard { background: var(--bc-grey-50); min-height: 100%; }
.bc-wizard__bar { background: #fff; border-bottom: 1px solid var(--bc-border); padding-block: var(--bc-s-5); }
.bc-wizard__card { max-width: var(--bc-form-width); margin: var(--bc-s-8) auto; }
.bc-wizard__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-4);
  margin-top: var(--bc-s-6); }
.bc-wizard__save { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); display: inline-flex; align-items: center; gap: 5px; }

/* --------------------------------------------------------------------------
   4.5  AUTH SHELL
   -------------------------------------------------------------------------- */
.bc-auth { min-height: 100vh; display: grid; place-items: center; padding: var(--bc-s-6); position: relative; overflow: hidden; }
.bc-auth__card { width: 100%; max-width: 424px; position: relative; z-index: 2; }
.bc-auth--light { background: var(--bc-white); }
.bc-auth--light .bc-auth__card { background: #fff; }
.bc-auth--dark { background: var(--bc-brand-700); }
.bc-auth__pattern { position: absolute; inset: 0; opacity: .05; pointer-events: none; }
.bc-auth__flourish { position: absolute; top: -70px; right: -70px; width: 300px; height: 300px; pointer-events: none; opacity: .55; }
.bc-auth__secure { display: flex; align-items: flex-start; gap: 10px; padding-top: var(--bc-s-5);
  margin-top: var(--bc-s-6); border-top: 1px solid var(--bc-border); }
.bc-auth__secure svg { width: 26px; height: 26px; flex: none; color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   4.6  CLIENT PORTAL SHELL
   -------------------------------------------------------------------------- */
.bc-portal { display: grid; grid-template-columns: var(--bc-sidebar-w) minmax(0,1fr); min-height: 100vh; background: var(--bc-grey-50); }
.bc-portal__aside { background: var(--bc-brand-600); display: flex; flex-direction: column; padding: var(--bc-s-6) var(--bc-s-4); gap: var(--bc-s-6); }
.bc-portal__main { min-width: 0; }
.bc-portal__header { padding: var(--bc-s-8) var(--bc-s-8) var(--bc-s-6); }
.bc-portal__content { padding: 0 var(--bc-s-8) var(--bc-s-9); }

/* Vertical nav — shared by portal aside and MIS sidebar */
.bc-vnav { display: flex; flex-direction: column; gap: 2px; }
.bc-vnav__item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--bc-r-sm);
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: rgba(255,255,255,.66);
  text-decoration: none; transition: all var(--bc-transition); cursor: pointer; position: relative; }
.bc-vnav__item svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.bc-vnav__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.bc-vnav__item.is-active { background: rgba(15,163,154,.16); color: #fff; font-weight: var(--bc-fw-semi); }
.bc-vnav__item.is-active svg { color: var(--bc-accent-300); opacity: 1; }
.bc-vnav__item.is-active::before { content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px;
  border-radius: 0 3px 3px 0; background: var(--bc-accent-400); }
.bc-vnav__chev { margin-left: auto; opacity: .4; width: 13px !important; height: 13px !important; }
.bc-vnav__group { font-size: var(--bc-fs-2xs); font-weight: var(--bc-fw-semi); letter-spacing: .10em;
  text-transform: uppercase; color: rgba(255,255,255,.32); padding: var(--bc-s-4) 12px 6px; }
.bc-vnav__badge { margin-left: auto; }

/* Portal support card */
.bc-support-card { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--bc-r-card); padding: var(--bc-s-4); text-align: center; }
.bc-support-card h5 { color: #fff; font-size: var(--bc-fs-sm); margin-bottom: 3px; }
.bc-support-card p { font-size: var(--bc-fs-xs); color: rgba(255,255,255,.58); margin-bottom: var(--bc-s-3); }

/* Mobile bottom navigation */
.bc-bottomnav { display: flex; background: #fff; border-top: 1px solid var(--bc-border); padding: 6px 4px 8px; }
.bc-bottomnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); text-decoration: none; padding: 4px 0; }
.bc-bottomnav__item svg { width: 19px; height: 19px; }
.bc-bottomnav__item.is-active { color: var(--bc-accent-600); }

/* --------------------------------------------------------------------------
   4.7  MIS SHELL
   -------------------------------------------------------------------------- */
.bc-mis { display: grid; grid-template-columns: var(--bc-sidebar-w) minmax(0,1fr); min-height: 100vh; background: var(--bc-grey-50); }
.bc-mis__aside { background: var(--bc-brand-600); display: flex; flex-direction: column; min-height: 0; }
.bc-mis__brand { padding: var(--bc-s-5) var(--bc-s-5) var(--bc-s-4); border-bottom: 1px solid rgba(255,255,255,.08); }
.bc-mis__nav { flex: 1 1 auto; overflow-y: auto; padding: var(--bc-s-3) var(--bc-s-3) var(--bc-s-5); scrollbar-width: thin; }
.bc-mis__nav::-webkit-scrollbar { width: 5px; }
.bc-mis__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.bc-mis__user { border-top: 1px solid rgba(255,255,255,.08); padding: var(--bc-s-4) var(--bc-s-5);
  display: flex; align-items: center; gap: 10px; }
.bc-mis__user-name { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: #fff; line-height: 1.25; }
.bc-mis__user-role { font-size: var(--bc-fs-xs); color: rgba(255,255,255,.52); }

.bc-mis__main { min-width: 0; display: flex; flex-direction: column; }
.bc-mis__topbar { height: var(--bc-topbar-h); background: #fff; border-bottom: 1px solid var(--bc-border);
  display: flex; align-items: center; gap: var(--bc-s-4); padding: 0 var(--bc-s-6);
  position: sticky; top: 0; z-index: var(--bc-z-sticky); }
.bc-mis__topbar .bc-select, .bc-mis__topbar .bc-input { width: auto; }
.bc-mis__topbar .bc-input-icon .bc-input { width: 100%; }
.bc-mis__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h3); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); letter-spacing: -.015em; }
.bc-mis__content { padding: var(--bc-s-6); flex: 1 1 auto; }
.bc-mis__content--flush { padding: 0; }

.bc-iconbtn { width: 36px; height: 36px; border-radius: var(--bc-r-sm); border: 1px solid transparent;
  background: transparent; display: grid; place-items: center; color: var(--bc-text-muted); cursor: pointer;
  transition: all var(--bc-transition); position: relative; }
.bc-iconbtn:hover { background: var(--bc-grey-100); color: var(--bc-text-strong); }
.bc-iconbtn svg { width: 18px; height: 18px; }
.bc-iconbtn__dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bc-danger); border: 1.5px solid #fff; }

/* Page header inside content area */
.bc-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--bc-s-5);
  margin-bottom: var(--bc-s-5); flex-wrap: wrap; }
.bc-pagehead__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h2); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); letter-spacing: -.02em; line-height: 1.2; }
.bc-pagehead__sub { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); margin-top: 3px; }

.bc-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.bc-breadcrumb a { color: var(--bc-text-muted); }
.bc-breadcrumb a:hover { color: var(--bc-accent-600); }

/* Entity header — Customer 360 / Loan 360 */
.bc-entity { background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-r-card); box-shadow: var(--bc-sh-sm); }
.bc-entity__top { display: flex; align-items: flex-start; gap: var(--bc-s-5); padding: var(--bc-s-5) var(--bc-s-6); flex-wrap: wrap; }
.bc-entity__facts { display: flex; gap: var(--bc-s-7); margin-left: auto; flex-wrap: wrap; }
.bc-entity__fact-k { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); margin-bottom: 3px; }
.bc-entity__fact-v { font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); font-variant-numeric: tabular-nums; }
.bc-entity__tabs { padding: 0 var(--bc-s-6); }

/* --------------------------------------------------------------------------
   4.8  MOCKUP DEVICE FRAMES (design-review only — not shipped to production)
   -------------------------------------------------------------------------- */
.bc-device { width: 390px; border-radius: 38px; background: #10151C; padding: 11px; box-shadow: var(--bc-sh-xl); flex: none; }
.bc-device__screen { border-radius: 28px; overflow: hidden; background: #fff; height: 780px; display: flex; flex-direction: column; }
.bc-device__status { display: flex; align-items: center; justify-content: space-between; padding: 9px 20px 5px;
  font-size: 12px; font-weight: 600; color: var(--bc-text-strong); font-family: var(--bc-font-body); flex: none; }
.bc-device__body { flex: 1 1 auto; overflow: hidden; }
.bc-device--sm { width: 330px; }
.bc-device--sm .bc-device__screen { height: 660px; }

.bc-frame { background: #fff; border-radius: var(--bc-r-lg); box-shadow: var(--bc-sh-lg); overflow: hidden; border: 1px solid var(--bc-border); }
.bc-frame__label { display: flex; align-items: center; gap: 8px; margin-bottom: var(--bc-s-3);
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); letter-spacing: .08em; text-transform: uppercase;
  color: var(--bc-text-subtle); }
.bc-frame__label::before { content:""; width: 14px; height: 2px; background: var(--bc-accent-400); border-radius: 2px; }

/* --------------------------------------------------------------------------
   4.9  RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .bc-hero__inner { grid-template-columns: 1fr; gap: var(--bc-s-7); padding-block: var(--bc-s-9); }
  .bc-trust__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .bc-trust__item:nth-child(3n) { border-right: 0; }
  .bc-grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .bc-grid--5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1023px) {
  .bc-portal, .bc-mis { grid-template-columns: 1fr; }
  .bc-portal__aside, .bc-mis__aside { display: none; }
  .bc-journey { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bc-journey__connector { display: none; }
  .bc-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bc-nav__links { display: none; }
}
@media (max-width: 1023px) {
  .bc-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--bc-s-7); }
}
@media (max-width: 767px) {
  /* Safety net. Views legitimately set bespoke column ratios inline (1.6fr 1fr
     and so on); at phone width every one of them must become a single column.
     Inline styles outrank a class selector, so this is the one place in the
     framework where !important is correct. */
  .bc-grid { grid-template-columns: 1fr !important; }
  /* Button/label rows are laid out for desktop; on a phone they must be free
     to wrap rather than force the page wider than the viewport. */
  .bc-row { flex-wrap: wrap; }
  .bc-card, .bc-table-wrap { min-width: 0; }
  .bc-filterbar__search { flex-basis: 100%; max-width: none; min-width: 0; }
  .bc-nav__actions { display: none; }
  .bc-footer__grid { grid-template-columns: 1fr !important; }
  .bc-device { width: 100%; max-width: 390px; }
  :root { --bc-fs-display: 2.4rem; --bc-fs-h1: 2.1rem; --bc-fs-h2: 1.6rem; --bc-fs-h3: 1.2rem; }
  .bc-container, .bc-container-wide { padding-inline: var(--bc-s-4); }
  .bc-section { padding-block: var(--bc-s-9); }
  .bc-trust__grid { grid-template-columns: 1fr; }
  .bc-trust__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); padding-block: var(--bc-s-4); }
  .bc-journey, .bc-grid--2, .bc-grid--3, .bc-grid--4, .bc-grid--5, .bc-grid--6 { grid-template-columns: 1fr; }
  .bc-dl--grid { grid-template-columns: 1fr; }
  .bc-portal__header, .bc-portal__content, .bc-mis__content { padding-inline: var(--bc-s-4); }
  .bc-money--hero { font-size: 2.1rem; }
  .bc-entity__facts { margin-left: 0; gap: var(--bc-s-5); }
}

@media print {
  .bc-nav, .bc-mis__aside, .bc-portal__aside, .bc-mis__topbar, .bc-btn { display: none !important; }
  .bc-card { box-shadow: none; border-color: #ccc; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .bc-btn:hover, .bc-card--interactive:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   4.10  ICON PRIMITIVE
   -------------------------------------------------------------------------- */
.bc-i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.bc-i--xs { width: 13px; height: 13px; }
.bc-i--sm { width: 15px; height: 15px; }
.bc-i--md { width: 20px; height: 20px; }
.bc-i--lg { width: 24px; height: 24px; }
.bc-i--xl { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   4.11  PUBLIC FOOTER
   -------------------------------------------------------------------------- */
.bc-footer { background: var(--bc-brand-700); color: rgba(255,255,255,.62); }
.bc-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--bc-s-8); }
.bc-footer a { display: block; padding: 4px 0; font-size: var(--bc-fs-sm); color: rgba(255,255,255,.62); }
.bc-footer a:hover { color: #fff; }
.bc-footer h6 { margin: 0 0 var(--bc-s-3); font-family: var(--bc-font-display); font-size: var(--bc-fs-sm);
  font-weight: var(--bc-fw-semi); color: #fff; letter-spacing: .02em; }
.bc-footer p { color: rgba(255,255,255,.55); max-width: 38ch; }
.bc-footer hr { border-color: rgba(255,255,255,.10); margin-block: var(--bc-s-7); }
.bc-footer .bc-badge { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.bc-footer .bc-xs { color: rgba(255,255,255,.45); }
.bc-footer .bc-logo__name { color: #fff; }
.bc-footer .bc-logo__name em { color: var(--bc-accent-300); }
.bc-footer .bc-logo__name sub { color: rgba(255,255,255,.55); }
.bc-footer .bc-logo__tag { color: var(--bc-accent-300); }

/* --------------------------------------------------------------------------
   4.12  CTA BAND  (marketing close)
   -------------------------------------------------------------------------- */
.bc-ctaband { background: var(--bc-brand-600); position: relative; overflow: hidden; }
.bc-ctaband h2 { color: #fff; }
.bc-ctaband p  { color: rgba(255,255,255,.68); }
.bc-pattern-layer { position: absolute; inset: 0; color: #fff; opacity: .05; pointer-events: none;
  background: url('../img/pattern-geo.svg') repeat; }

/* --------------------------------------------------------------------------
   4.13  FAQ / DISCLOSURE
   -------------------------------------------------------------------------- */
.bc-faq { border-bottom: 1px solid var(--bc-border); }
.bc-faq > summary { list-style: none; cursor: pointer; padding: var(--bc-s-5) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--bc-s-5);
  font-family: var(--bc-font-display); font-weight: var(--bc-fw-semi); font-size: var(--bc-fs-h4);
  color: var(--bc-text-strong); }
.bc-faq > summary::-webkit-details-marker { display: none; }
.bc-faq > summary svg { transition: transform var(--bc-transition); color: var(--bc-accent-500); }
.bc-faq[open] > summary svg { transform: rotate(180deg); }
.bc-faq__body { padding-bottom: var(--bc-s-5); color: var(--bc-text-muted); max-width: 72ch; }
