/* Page styles for the AITCOH™ Certification Training Academy.
   Shared brand system loads from ./assets/brand/styles/theme.css.
   Shell: Products (Trust Blue). Dealer-track views switch the palette via
   body.division-dealerships (supported natively by the brand kit). */

/* The [hidden] attribute must always win, even over display:flex/grid
   classes below (the UA sheet's [hidden] rule loses to any class selector). */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   NAV — floating pill with signed-in user chip
   ------------------------------------------------------------------ */
.nav-floating.nav-academy-glass {
  --glass-tint: 0.72;
  --glass-border-alpha: 0.5;
  --glass-blur: 24px;
  box-shadow:
    0 16px 38px rgb(var(--glass-rgb-charcoal) / 0.13),
    inset 0 1px 0 rgb(255 255 255 / 0.82);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
/* Kit hides .nav-floating-links under 768px; keep the pill from
   overflowing by dropping the name text on small screens. */
@media (max-width: 767px) {
  .nav-user-name { display: none; }
}
.nav-user-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-charcoal, #333);
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-signout {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--color-trust-blue-dark, #1b477e);
  border: 1.5px solid currentColor;
  background: rgb(255 255 255 / 0.6);
}
.nav-user-signout:hover,
.nav-user-signout:focus-visible {
  background: var(--color-trust-blue-dark, #1b477e);
  color: #fff;
}
body.division-dealerships .nav-user-signout { color: var(--color-dealer-green-dark, #154440); }
body.division-dealerships .nav-user-signout:hover,
body.division-dealerships .nav-user-signout:focus-visible {
  background: var(--color-dealer-green-dark, #154440);
  color: #fff;
}

/* ------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------ */
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn-primary {
  background: var(--color-trust-blue, #255ea0);
  color: #fff;
  box-shadow: 0 10px 24px rgb(var(--glass-rgb-trust-blue) / 0.3);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-trust-blue-dark, #1b477e);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
body.division-dealerships .btn-primary {
  background: var(--color-dealer-green, #20605c);
  box-shadow: 0 10px 24px rgb(var(--glass-rgb-dealer-green) / 0.3);
}
body.division-dealerships .btn-primary:hover,
body.division-dealerships .btn-primary:focus-visible {
  background: var(--color-dealer-green-dark, #154440);
}
.btn-ghost {
  color: var(--color-trust-blue-dark, #1b477e);
  border: 1.5px solid currentColor;
  background: transparent;
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: rgb(var(--glass-rgb-trust-blue) / 0.08); }
body.division-dealerships .btn-ghost { color: var(--color-dealer-green-dark, #154440); }
body.division-dealerships .btn-ghost:hover,
body.division-dealerships .btn-ghost:focus-visible { background: rgb(var(--glass-rgb-dealer-green) / 0.08); }
.btn-block { display: block; width: 100%; }

/* ------------------------------------------------------------------
   LANDING HERO — gradient band, copy + auth card
   ------------------------------------------------------------------ */
.hero-academy-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgb(255 255 255 / 0.16) 0%, transparent 48%),
    radial-gradient(circle at 82% 86%, rgb(var(--glass-rgb-radiant-gold) / 0.16) 0%, transparent 46%),
    linear-gradient(120deg, rgb(255 255 255 / 0.07) 0%, transparent 32%, transparent 68%, rgb(var(--glass-rgb-radiant-gold) / 0.08) 100%),
    linear-gradient(135deg,
      var(--color-trust-blue, #255ea0) 0%,
      var(--color-trust-blue-dark, #1b477e) 100%);
  padding: 9rem var(--space-6) var(--space-16);
}
/* Drifting light glows — one cool white, one warm gold — for a lively
   but calm hero. Static under prefers-reduced-motion. */
.hero-academy-bg::before,
.hero-academy-bg::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  pointer-events: none;
}
.hero-academy-bg::before {
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.14) 0%, transparent 62%);
  animation: hero-glow-drift 18s ease-in-out infinite alternate;
}
.hero-academy-bg::after {
  bottom: -28%;
  right: -14%;
  background: radial-gradient(circle, rgb(var(--glass-rgb-radiant-gold) / 0.15) 0%, transparent 62%);
  animation: hero-glow-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes hero-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6%, 4%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-academy-bg::before,
  .hero-academy-bg::after { animation: none; }
}
.hero-academy-bg > .container { position: relative; z-index: 1; }
.hero-academy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: stretch; /* copy card matches image + gap + auth card height */
}
@media (min-width: 900px) {
  .hero-academy-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.hero-academy-card {
  --glass-tint: 0.78;
  --glass-border-alpha: 0.5;
  --glass-blur: 22px;
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow-pill {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-trust-blue-dark, #1b477e);
  background: rgb(var(--glass-rgb-trust-blue) / 0.1);
  border: 1px solid rgb(var(--glass-rgb-trust-blue) / 0.25);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-5);
}
.hero-academy-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 var(--space-5);
  color: var(--color-charcoal, #333);
}
.hero-academy-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 var(--space-5);
  max-width: 56ch;
}
.hero-academy-points {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.9;
}
.hero-academy-points li::marker { color: var(--color-trust-blue, #255ea0); }

/* Auth card */
.auth-card {
  --glass-tint: 0.85;
  --glass-border-alpha: 0.5;
  --glass-blur: 22px;
  padding: var(--space-8);
}
.auth-title {
  font-size: 1.25rem;
  margin: 0 0 var(--space-5);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  background: rgb(var(--glass-rgb-charcoal) / 0.07);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-6);
}
.auth-tab {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-charcoal, #333);
}
.auth-tab.is-active {
  background: #fff;
  color: var(--color-trust-blue-dark, #1b477e);
  box-shadow: 0 2px 8px rgb(var(--glass-rgb-charcoal) / 0.12);
}
.form-field { margin-bottom: var(--space-5); }
.form-field label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
  color: var(--color-charcoal, #333);
}
.field-hint { font-weight: 400; color: rgb(var(--glass-rgb-charcoal) / 0.65); }
.form-field input,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgb(var(--glass-rgb-charcoal) / 0.25);
  background: #fff;
  font-size: 1rem;
  color: var(--color-charcoal, #333);
}
.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--color-trust-blue, #255ea0);
  outline-offset: 1px;
}
.auth-error,
.quiz-error {
  color: #a52020;
  font-weight: 600;
  margin: 0 0 var(--space-4);
}
.demo-block { border-top: 1px solid rgb(var(--glass-rgb-charcoal) / 0.12); padding-top: var(--space-5); }
#auth-card > .demo-block:first-of-type { border-top: none; padding-top: 0; }
.demo-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgb(var(--glass-rgb-charcoal) / 0.75);
  margin: 0 0 var(--space-5);
}

/* ------------------------------------------------------------------
   HERO SIDE COLUMN — compact training-room photo stacked directly
   above the auth (Get Started) card
   ------------------------------------------------------------------ */
.hero-side {
  display: grid;
  gap: var(--space-6);
  grid-template-rows: auto 1fr; /* auth card absorbs slack so both columns always read full height */
}
.hero-side-media {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  line-height: 0;
  box-shadow:
    0 16px 40px rgb(var(--glass-rgb-charcoal) / 0.25),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.hero-side-media img {
  display: block;
  width: 100%;
  height: auto; /* release the height attribute so aspect-ratio governs */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
}

/* ------------------------------------------------------------------
   LANDING BODY — tracks + steps
   ------------------------------------------------------------------ */
.landing-body { padding: var(--space-16) var(--space-6); }
.landing-section + .landing-section { margin-top: var(--space-16); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 var(--space-3);
  color: var(--color-charcoal, #333);
}
.section-lead {
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 var(--space-8);
}
.track-grid,
.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 820px) {
  .track-grid, .dash-grid { grid-template-columns: 1fr 1fr; }
}
.track-card,
.dash-card {
  --glass-tint: 0.8;
  padding: var(--space-8);
  border-top: 5px solid var(--color-trust-blue, #255ea0);
}
.track-card-green { border-top-color: var(--color-dealer-green, #20605c); }
.track-card-blue  { border-top-color: var(--color-trust-blue, #255ea0); }
.track-eyebrow {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--glass-rgb-charcoal) / 0.6);
  margin: 0 0 var(--space-2);
}
.track-card h3, .dash-card h2 {
  font-size: 1.3rem;
  margin: 0 0 var(--space-2);
}
.track-tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--color-trust-blue-dark, #1b477e);
  margin: 0 0 var(--space-3);
}
.track-card-green .track-tagline { color: var(--color-dealer-green-dark, #154440); }
.track-meta {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgb(var(--glass-rgb-charcoal) / 0.7);
  margin-bottom: 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 820px) {
  .steps-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.step-card {
  --glass-tint: 0.8;
  padding: var(--space-8);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-radiant-gold, #fdd841);
  color: var(--color-charcoal, #333);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.step-card h3 { font-size: 1.1rem; margin: 0 0 var(--space-2); }
.step-card p { margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------------
   APP VIEWS — shared
   ------------------------------------------------------------------ */
#view-app { padding: 8.5rem var(--space-6) var(--space-16); }
.app-container { }
.app-narrow { max-width: 560px; }
.app-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 var(--space-3);
  color: var(--color-charcoal, #333);
}
.app-title:focus { outline: none; }
.app-lead { font-size: 1.05rem; margin: 0 0 var(--space-8); max-width: 62ch; }
.back-link {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-trust-blue-dark, #1b477e);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
body.division-dealerships .back-link { color: var(--color-dealer-green-dark, #154440); }
.back-link:hover { text-decoration: underline; }

/* Dashboard */
.dash-card p { line-height: 1.6; }
.progress-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.progress-bar {
  flex: 1;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgb(var(--glass-rgb-charcoal) / 0.12);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-radiant-gold, #fdd841), #f0b429);
  transition: width 400ms ease;
}
.progress-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  color: rgb(var(--glass-rgb-charcoal) / 0.75);
}
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ------------------------------------------------------------------
   MODULE PLAYER
   ------------------------------------------------------------------ */
.module-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 900px) {
  .module-layout { grid-template-columns: 280px 1fr; }
  .module-sidebar { position: sticky; top: 7.5rem; }
}
.sidebar-title { font-size: 1rem; margin: 0 0 var(--space-4); }
.mod-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.mod-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-charcoal, #333);
  font-size: 0.92rem;
  line-height: 1.35;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(var(--glass-rgb-charcoal) / 0.08);
}
.mod-link:hover { background: rgb(255 255 255 / 0.85); }
.mod-link.is-current {
  background: #fff;
  border-color: var(--color-trust-blue, #255ea0);
  font-weight: 700;
}
body.division-dealerships .mod-link.is-current { border-color: var(--color-dealer-green, #20605c); }
.mod-link.is-locked { opacity: 0.6; }
.mod-num, .mod-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgb(var(--glass-rgb-charcoal) / 0.08);
  color: rgb(var(--glass-rgb-charcoal) / 0.7);
}
.mod-check {
  background: var(--color-radiant-gold, #fdd841);
  color: var(--color-charcoal, #333);
}
.module-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 var(--space-3); }
.module-title:focus { outline: none; }
.module-summary {
  font-size: 1.08rem;
  color: rgb(var(--glass-rgb-charcoal) / 0.78);
  margin: 0 0 var(--space-6);
  max-width: 62ch;
}
.video-slot {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow: 0 16px 40px rgb(var(--glass-rgb-charcoal) / 0.12);
}
.video-slot video, .video-slot iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.video-slot-empty {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, rgb(var(--glass-rgb-trust-blue) / 0.1), rgb(var(--glass-rgb-trust-blue) / 0.04));
  border: 1.5px dashed rgb(var(--glass-rgb-trust-blue) / 0.4);
  box-shadow: none;
}
body.division-dealerships .video-slot-empty {
  background: linear-gradient(135deg, rgb(var(--glass-rgb-dealer-green) / 0.1), rgb(var(--glass-rgb-dealer-green) / 0.04));
  border-color: rgb(var(--glass-rgb-dealer-green) / 0.4);
}
.video-slot-empty p { margin: 0; line-height: 1.5; }
.video-slot-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  color: var(--color-trust-blue-dark, #1b477e);
  font-size: 1.1rem;
}
body.division-dealerships .video-slot-icon { color: var(--color-dealer-green-dark, #154440); }
.lesson { margin-bottom: var(--space-10); }
.lesson h2 {
  font-size: 1.35rem;
  margin: 0 0 var(--space-4);
  color: var(--color-charcoal, #333);
}
.lesson p { line-height: 1.7; max-width: 68ch; }
.lesson-points {
  background: rgb(255 255 255 / 0.65);
  border-left: 4px solid var(--color-radiant-gold, #fdd841);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-5);
}
.lesson-points h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  color: rgb(var(--glass-rgb-charcoal) / 0.65);
}
.lesson-points ul { margin: 0; padding-left: 1.2rem; line-height: 1.8; }

/* ------------------------------------------------------------------
   QUIZ
   ------------------------------------------------------------------ */
.quiz, .quiz-locked, .verify-card {
  --glass-tint: 0.85;
  padding: var(--space-8);
}
.quiz h2, .quiz-locked h2 { margin: 0 0 var(--space-2); font-size: 1.4rem; }
.quiz-rules { color: rgb(var(--glass-rgb-charcoal) / 0.7); margin: 0 0 var(--space-6); }
.quiz-passed-note {
  font-weight: 600;
  color: var(--color-dealer-green-dark, #154440);
  background: rgb(var(--glass-rgb-dealer-green) / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}
.quiz-q {
  border: none;
  margin: 0 0 var(--space-6);
  padding: 0 0 var(--space-6);
  border-bottom: 1px solid rgb(var(--glass-rgb-charcoal) / 0.1);
}
.quiz-q legend {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: var(--space-4);
  color: var(--color-charcoal, #333);
}
.quiz-opt {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgb(var(--glass-rgb-charcoal) / 0.15);
  background: #fff;
  margin-bottom: var(--space-2);
  cursor: pointer;
  line-height: 1.45;
}
.quiz-opt:hover { border-color: var(--color-trust-blue, #255ea0); }
body.division-dealerships .quiz-opt:hover { border-color: var(--color-dealer-green, #20605c); }
.quiz-opt:has(input:checked) {
  border-color: var(--color-trust-blue, #255ea0);
  background: rgb(var(--glass-rgb-trust-blue) / 0.06);
}
body.division-dealerships .quiz-opt:has(input:checked) {
  border-color: var(--color-dealer-green, #20605c);
  background: rgb(var(--glass-rgb-dealer-green) / 0.06);
}
.quiz-opt input { margin-top: 3px; accent-color: var(--color-trust-blue, #255ea0); }
body.division-dealerships .quiz-opt input { accent-color: var(--color-dealer-green, #20605c); }
.quiz-result {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
}
.quiz-result h3 { margin: 0 0 var(--space-2); font-size: 1.2rem; }
.quiz-result p { margin: 0; line-height: 1.6; }
.quiz-result .dash-actions { margin-top: var(--space-4); }
.quiz-result-pass {
  background: rgb(var(--glass-rgb-dealer-green) / 0.1);
  border: 1.5px solid rgb(var(--glass-rgb-dealer-green) / 0.35);
}
.quiz-result-fail {
  background: rgb(253 216 65 / 0.14);
  border: 1.5px solid rgb(240 180 41 / 0.5);
}

/* ------------------------------------------------------------------
   CERTIFICATE
   ------------------------------------------------------------------ */
.cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.cert-toolbar .back-link { margin-bottom: 0; }
.certificate {
  background: #fffdf6;
  border-radius: var(--radius-lg);
  padding: 10px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgb(var(--glass-rgb-charcoal) / 0.18);
}
.cert-inner {
  border: 3px solid var(--color-radiant-gold, #fdd841);
  outline: 1.5px solid var(--color-trust-blue-dark, #1b477e);
  outline-offset: 6px;
  padding: clamp(1.8rem, 5vw, 4rem) clamp(1.2rem, 5vw, 3.5rem);
  text-align: center;
  margin: 8px;
}
.cert-logo {
  height: 52px;
  width: auto;
  margin: 0 auto var(--space-6);
}
.cert-academy {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(var(--glass-rgb-charcoal) / 0.6);
  margin: 0 0 var(--space-4);
}
.cert-heading {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 var(--space-6);
  color: var(--color-trust-blue-dark, #1b477e);
}
body.division-dealerships .cert-heading { color: var(--color-dealer-green-dark, #154440); }
.cert-presents, .cert-body {
  font-size: 1rem;
  color: rgb(var(--glass-rgb-charcoal) / 0.75);
  margin: 0 0 var(--space-3);
}
.cert-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--color-charcoal, #333);
  margin: 0 0 var(--space-4);
  border-bottom: 2px solid var(--color-radiant-gold, #fdd841);
  display: inline-block;
  padding: 0 var(--space-8) var(--space-2);
}
.cert-track {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-trust-blue-dark, #1b477e);
  margin: 0 0 var(--space-3);
}
body.division-dealerships .cert-track { color: var(--color-dealer-green-dark, #154440); }
.cert-date {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-8);
}
.cert-sigs {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 6rem);
  margin-bottom: var(--space-8);
}
.cert-sig {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgb(var(--glass-rgb-charcoal) / 0.7);
}
.cert-sig-line {
  display: block;
  width: 180px;
  max-width: 34vw;
  border-bottom: 1.5px solid rgb(var(--glass-rgb-charcoal) / 0.5);
  height: 2rem;
}
.cert-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgb(var(--glass-rgb-charcoal) / 0.65);
  max-width: 60ch;
  margin: 0 auto var(--space-4);
}
.cert-code {
  font-size: 0.9rem;
  margin: 0;
  color: rgb(var(--glass-rgb-charcoal) / 0.8);
}

/* ------------------------------------------------------------------
   FOOTER extensions
   ------------------------------------------------------------------ */
.academy-footer .footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .academy-footer .footer-grid { grid-template-columns: 1.2fr 0.8fr 1.4fr; }
}
.academy-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.95);
  margin: 0 0 var(--space-4);
}
.academy-footer .footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.academy-footer .footer-links a,
.academy-footer .footer-brand a {
  color: rgb(255 255 255 / 0.82);
  text-decoration: none;
}
.academy-footer .footer-links a:hover,
.academy-footer .footer-brand a:hover { color: #fff; text-decoration: underline; }
.footer-logo-img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.footer-disclaimer p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.7);
  margin: 0;
}
.footer-legal {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.15);
}
.footer-legal p { font-size: 0.85rem; color: rgb(255 255 255 / 0.65); margin: 0; }
.noscript-note {
  padding: var(--space-6);
  text-align: center;
  font-weight: 600;
  background: var(--color-radiant-gold, #fdd841);
  color: var(--color-charcoal, #333);
}

/* ------------------------------------------------------------------
   PRINT — certificate only
   ------------------------------------------------------------------ */
@media print {
  @page { size: letter landscape; margin: 0.4in; }
  body.route-certificate .nav-floating,
  body.route-certificate .academy-footer,
  body.route-certificate .cert-toolbar,
  body.route-certificate .skip-link,
  body.route-certificate #view-landing { display: none !important; }
  body.route-certificate { background: #fff !important; }
  body.route-certificate #view-app { padding: 0; }
  body.route-certificate .certificate {
    box-shadow: none;
    max-width: none;
    background: #fff;
  }
  body.route-certificate .cert-inner {
    border-color: #d4af37;
    outline-color: var(--color-trust-blue-dark, #1b477e);
  }
}
