/* ==========================================================================
   SmartAdmit parent portal - BASE
   --------------------------------------------------------------------------
   BCDF's brookscorp.base.css with its element reset REPLACED. Sections 2.1
   onward (type, money, layout utilities) are verbatim.

   Why the reset is not ported: the portal keeps rendering pages written for
   Bootstrap 5.1 - the learner and registration wizards alone are 400 KB of
   markup - and BCDF's reset zeroes every heading and paragraph margin and
   turns every img/svg into a block. That is right for a greenfield BCDF app
   and would quietly re-flow every legacy form. Only the parts that set the
   typeface, the colours and the focus ring are kept; they are the look, the
   rest is layout the old pages depend on.

   Loaded only by the new layouts, so element selectors here never reach the
   classic site.
   ========================================================================== */

body.sa-shell {
  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";
}

/* :where() keeps this at element specificity, so a component's own heading
   colour (.bc-footer h6, .bc-support-card h5, a dark band's h2) still wins. */
:where(body.sa-shell) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--bc-font-display);
  color: var(--bc-text-strong);
  letter-spacing: -.015em;
}

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

::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; } }
