/* =========================================================
   New York Institute of Banking and Finance — Design System
   Palette: deep navy / teal accent / seafoam / warm neutral
   Type: Fraunces (display) + Inter (body) + JetBrains Mono (data)
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-2: #0F3358;
  --teal: #0FBFA4;
  --teal-dark: #0A9683;
  --seafoam: #8FE8D8;
  --bg: #F6F8F7;
  --paper: #FFFFFF;
  --ink: #0D1B2A;
  --ink-soft: #4A5D6B;
  --line: #DCE3E1;
  --gold: #C9A24B; /* used sparingly, credential-seal accent */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 4px;
  --container: 1180px;
  --header-h: 88px; /* keep in step with .header-inner padding + .brand-logo */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover { background: var(--seafoam); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--paper); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* The logo art has its own navy baked in, a shade lighter than the header.
   Rounding it and adding a hairline ring makes that read as a deliberate
   plaque rather than a mismatched rectangle. */
.brand-logo {
  height: 62px;
  width: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.brand:hover .brand-logo { box-shadow: 0 0 0 1px var(--seafoam); }

.brand-logo-footer {
  height: 78px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .header-inner { padding: 10px 18px; }
  .brand-logo { height: 50px; }
  .brand-logo-footer { height: 62px; }
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--seafoam));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--seafoam);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--seafoam); }
.header-actions { display: flex; gap: 14px; align-items: center; }

/* Hamburger. Hidden on desktop; the mobile query below reveals it and
   js/auth.js injects the button itself, so no page markup needs editing. */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle:hover { border-color: var(--seafoam); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}
.nav-toggle span + span { margin-top: 4px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* row-gap 0 because the panel supplies its own spacing; the inherited
     24px gap would leave a visible void under the bar when open. */
  .header-inner { flex-wrap: wrap; row-gap: 0; }

  /* The links and the action buttons drop onto their own full-width rows
     below the bar, and stay collapsed until the hamburger is pressed. */
  nav.main-nav,
  .header-actions {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }
  .site-header.nav-open nav.main-nav,
  .site-header.nav-open .header-actions { display: flex; }

  nav.main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  nav.main-nav a {
    padding: 13px 2px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0 4px;
  }
  .header-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(ellipse at top right, var(--navy-2), var(--navy) 65%);
  color: var(--paper);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,191,164,0.18), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 { color: var(--paper); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--seafoam);
  font-weight: 700;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-visual img { height: 420px; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(10,37,64,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--seafoam);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { height: 280px; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; max-width: 50ch; }

/* ---------- ledger course cards (signature element) ---------- */
.ledger {
  border-top: 2px solid var(--navy);
}
.ledger-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1fr 140px 130px;
  gap: 20px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.ledger-row:hover { background: rgba(15,191,164,0.05); }
.ledger-row .code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 700;
}
.ledger-row h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 600;
}
.ledger-row .topic-tag {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.ledger-row .fmt {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.ledger-row .price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}
.ledger-row .cta-link {
  text-align: right;
}
.ledger-row .cta-link a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--teal-dark);
  padding-bottom: 2px;
}
.ledger-head {
  display: grid;
  grid-template-columns: 90px 1.4fr 1fr 140px 130px;
  gap: 20px;
  padding: 0 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .ledger-row, .ledger-head { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  .ledger-row .price, .ledger-row .cta-link { text-align: left; }
  .ledger-head { display: none; }
  .ledger-row { padding: 18px 4px; }
}

/* ---------- topic grid ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.topic-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.topic-card .count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal-dark);
}
.topic-card h4 { margin: 6px 0 0; font-size: 1rem; }

/* ---------- certificate feature cards ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cert-card img { height: 170px; object-fit: cover; }
.cert-card .body { padding: 22px; }
.cert-card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cert-card h3 { font-size: 1.1rem; margin: 8px 0 8px; }
.cert-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ---------- schedule strip ---------- */
.schedule-list { display: flex; flex-direction: column; }
.schedule-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-item .date-block {
  font-family: var(--font-mono);
  background: var(--navy);
  color: var(--seafoam);
  border-radius: 4px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.3;
}
.schedule-item .date-block strong { display: block; font-size: 1.2rem; color: var(--paper); }
.schedule-item h4 { margin: 0 0 4px; font-size: 1rem; }
.schedule-item .time { font-size: 0.82rem; color: var(--ink-soft); }
/* Grid items default to min-content width, so a long unbroken course title
   can push the row wider than its container. */
.schedule-item > div { min-width: 0; }

@media (max-width: 700px) {
  /* 110px + 1fr + a ~114px button does not fit a phone: the button was
     overflowing the viewport by a couple of pixels and causing a sideways
     scroll. Date and title share the first row, button spans the second. */
  .schedule-item {
    grid-template-columns: 84px 1fr;
    gap: 8px 14px;
  }
  .schedule-item .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ---------- testimonial / logos ---------- */
.dark-band {
  background: var(--navy);
  color: var(--paper);
}
.dark-band h2 { color: var(--paper); }
.dark-band p { color: rgba(255,255,255,0.68); }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 36px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.quote-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 28px;
}
.quote-card p.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
  font-style: italic;
}
.quote-card .who { font-size: 0.85rem; color: var(--seafoam); }

/* ---------- placement band (homepage) ---------- */
.placement-band {
  background: radial-gradient(ellipse at top left, var(--navy-2), var(--navy) 68%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.placement-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: start;
}
.placement-points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 16px; }
.placement-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,0.78);
  font-size: 0.93rem;
  line-height: 1.65;
}
.placement-points li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--seafoam);
  font-weight: 700;
}
.placement-points strong { color: #fff; }
.placement-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 900px) {
  .placement-grid { grid-template-columns: 1fr; gap: 30px; }
  .placement-cta .btn { width: 100%; justify-content: center; }
}

/* Text-and-image rows on about.html. Explicitly two columns rather than
   auto-fit: auto-fit fitted a third track that collapsed to 0px and still
   claimed its gap, leaving 32px of dead space on the right and pulling the
   content off-centre. */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
}

/* Section photos. These had no height at all, so they rendered at whatever
   the source happened to be and looked undersized beside the text. A fixed
   aspect-ratio gives them real presence and keeps both the same shape —
   and unlike a height attribute it cannot force a wrong ratio. */
.about-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.18);
}
@media (max-width: 900px) {
  .about-photo { aspect-ratio: 16 / 10; }
}

/* ---------- global presence globe (about.html) ---------- */
.globe-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 30px;
}
.globe { width: 100%; height: auto; max-width: 460px; }

/* Landmasses. Deliberately static — the graticule used to drift, but once
   real coastlines are drawn a moving grid over fixed continents reads as a
   bug rather than rotation. The pulsing markers carry the movement instead. */
.globe .land {
  fill: rgba(125, 226, 209, 0.16);
  stroke: rgba(125, 226, 209, 0.45);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.globe .city circle { fill: var(--seafoam); }
.globe .city .halo {
  fill: none;
  stroke: var(--seafoam);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: city-pulse 2.8s ease-out infinite;
}
.globe .city:nth-of-type(2) .halo { animation-delay: 0.7s; }
.globe .city:nth-of-type(3) .halo { animation-delay: 1.4s; }
.globe .city:nth-of-type(4) .halo { animation-delay: 2.1s; }
@keyframes city-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .globe .city .halo { animation: none; opacity: 0.35; }
}

.city-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
/* Three rows now — city, cohort types, street address. The dot spans the
   full height rather than centring, so it aligns with the city name. */
.city-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.city-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.city-list .dot {
  grid-row: 1 / -1;
  margin-top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--seafoam);
  box-shadow: 0 0 0 4px rgba(125,226,209,0.18);
}
.city-list strong { color: #fff; font-size: 1.05rem; }
.city-list small { color: var(--seafoam); font-size: 0.82rem; margin-top: 2px; }
.city-list address {
  font-style: normal;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 5px;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .globe-wrap { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .city-list { width: 100%; max-width: 460px; }
}

/* Membership row. Sits on the light paper band, so it needs the opposite
   treatment to .logo-row, which is white-on-navy. */
.member-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 52px;
  margin-top: 34px;
}
.member-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
/* Badge artwork, once assets/member-*.png exist. Capped so a tall hexagon
   and a wide wordmark sit on the same visual line. */
.member-badge img {
  height: 74px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
/* Text fallback. Hidden as soon as a badge image is actually present —
   :has() means no JavaScript is needed to make the swap. */
.member-badge b {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.member-badge:has(img) b { display: none; }
.member-badge small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 22ch;
}

/* ---------- lesson prose tables ----------
   renderMarkdown wraps every table in .table-scroll so a wide comparison
   table scrolls inside itself instead of forcing the whole page sideways
   on a phone. Applies to both the enrolled viewer and the free sample. */
.prose .table-scroll { overflow-x: auto; margin: 0 0 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--wash); font-weight: 600; color: var(--navy); }

/* Firm name under a faculty member's former role. Sits on a light card, so
   teal-dark rather than the seafoam used for attribution on the dark bands. */
.fac-firm {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  margin: 6px 0 10px;
}

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid li { font-size: 0.88rem; margin-bottom: 8px; display: block; }
.footer-grid a:hover { color: var(--seafoam); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom a:hover { color: var(--seafoam); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  /* Four link columns become two, with the brand block across the top.
     Without this the five desktop columns stay put and each one is about
     55px wide on a phone. */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 30px;
  }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; gap: 8px; }
}

/* ---------- utility ---------- */
.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(15,191,164,0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(15,191,164,0.3);
}

/* ---------- filter sidebar (course database page) ---------- */
.db-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}
.filter-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 96px;
}
.filter-panel h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 20px 0 10px;
}
.filter-panel h5:first-child { margin-top: 0; }
.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--ink);
}
.search-box {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
/* Format explainer above the catalog. "Self-paced" vs "Virtual" vs "Live"
   decides whether a working professional can actually take the course, and
   it was never spelled out anywhere a buyer would see it. */
.format-legend {
  display: grid;
  gap: 6px 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 5px;
  background: var(--paper);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.format-legend strong { color: var(--navy); }

.results-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .db-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
