@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/karla-normal-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/karla-italic-latin.woff2") format("woff2");
}

:root {
  --burgundy: #730305;
  --burgundy-dark: #570103;
  --yellow: #fecb2d;
  --magenta: #e52091;
  --magenta-dark: #dc1d92;
  --pale: #f4ebeb;
  --pink-soft: #f3c1dc;
  --ink: #111318;
  --muted: #526070;
  --line: #e8dede;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(45, 20, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Karla", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.player-page {
  height: 100vh;
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: 35;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(254, 203, 45, 0.18), rgba(229, 32, 145, 0.2)),
    transparent;
  transform: scale(1.02);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

body.role-transitioning::before {
  opacity: 1;
  transform: scale(1);
}

body.drawer-open,
body.account-open,
body.filters-open,
body.scorm-expanded {
  overflow: hidden;
}

.platform-trail,
main,
.site-footer {
  animation: page-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer {
  animation-delay: 0.04s;
}

.page-transition {
  position: fixed;
  z-index: 95;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 235, 235, 0.96)),
    var(--white);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, backdrop-filter 0.2s ease;
}

.mockup-notice {
  position: fixed;
  z-index: 47;
  right: max(18px, 2vw);
  bottom: 24px;
}

body.player-page .mockup-notice {
  display: none;
}

.mockup-notice-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--burgundy);
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(45, 20, 25, 0.18);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mockup-notice-toggle img {
  width: 18px;
  height: 18px;
}

.mockup-notice-toggle:hover,
.mockup-notice-toggle:focus-visible,
.mockup-notice.is-open .mockup-notice-toggle {
  color: #000000;
  background: var(--yellow);
  box-shadow: 0 16px 38px rgba(45, 20, 25, 0.24);
  transform: translateY(-2px);
}

.mockup-notice-card {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(390px, calc(100vw - 36px));
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(45, 20, 25, 0.22);
  transform: translateY(12px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mockup-notice.is-open .mockup-notice-card {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mockup-notice-card::after {
  position: absolute;
  right: 18px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  content: "";
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.mockup-notice-card h2 {
  max-width: 300px;
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: 24px;
  line-height: 1.1;
}

.mockup-notice-card p:not(.eyebrow) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mockup-notice-card .notice-fineprint {
  font-weight: 500;
}

.mockup-notice-card p:last-child {
  margin-bottom: 0;
}

.mockup-notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--burgundy);
  background: var(--pale);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.theme-edit-controls {
  position: fixed;
  z-index: 48;
  right: calc(max(18px, 2vw) + 52px);
  bottom: 24px;
  display: none;
  align-items: center;
  gap: 8px;
}

body.role-admin[data-editable-page="true"] .theme-edit-controls {
  display: flex;
}

.theme-edit-start,
.theme-edit-save,
.theme-edit-exit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  color: #000000;
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(45, 20, 25, 0.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.theme-edit-start img {
  width: 16px;
  height: 16px;
}

.theme-edit-save,
.theme-edit-exit {
  display: none;
}

.theme-edit-save {
  color: var(--white);
  background: var(--burgundy);
}

.theme-edit-exit {
  color: var(--burgundy);
  background: var(--white);
  border: 1px solid var(--line);
}

body.theme-editing .theme-edit-start {
  display: none;
}

body.theme-editing .theme-edit-save,
body.theme-editing .theme-edit-exit {
  display: inline-flex;
}

[data-theme-setting] {
  transition: background 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

body.theme-editing [data-theme-setting] {
  outline: 2px dashed rgba(254, 203, 45, 0.95);
  outline-offset: 5px;
  background: rgba(255, 248, 217, 0.64);
  border-radius: 4px;
  cursor: text;
}

body.theme-editing [data-theme-setting]:focus {
  outline-color: var(--magenta);
  box-shadow: 0 0 0 7px rgba(229, 32, 145, 0.13);
}

.theme-edit-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 14px;
  visibility: hidden;
  opacity: 0;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 900;
  transform: translateY(6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.theme-edit-toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.page-transition::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--yellow), var(--magenta), var(--burgundy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-is-leaving .page-transition {
  visibility: visible;
  opacity: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.page-is-leaving .page-transition::before {
  transform: scaleX(1);
}

body.page-is-leaving main,
body.page-is-leaving .platform-trail,
body.page-is-leaving .site-footer {
  opacity: 0.82;
  transform: scale(0.996);
  transform-origin: center top;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: scale(0.996);
    transform-origin: center top;
  }

  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-trail,
  main,
  .site-footer {
    animation: none;
  }

  .page-transition,
  .page-transition::before,
  body.page-is-leaving main,
  body.page-is-leaving .platform-trail,
  body.page-is-leaving .site-footer {
    transition: none;
  }
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 230px 1fr auto auto auto auto;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 18px 7vw;
  color: var(--white);
  background: var(--burgundy);
}

.site-logo img {
  width: 230px;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  font-weight: 800;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  background: var(--yellow);
  content: "";
  opacity: 0;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  opacity: 1;
}

.platform-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 7vw;
  color: var(--muted);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.platform-trail a {
  color: var(--burgundy);
}

.platform-trail a:hover,
.platform-trail a:focus-visible {
  color: var(--magenta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.platform-trail .trail-parent::before,
.platform-trail span::before,
.platform-trail strong::before {
  margin-right: 10px;
  color: #c8b8b8;
  content: "/";
}

.platform-trail strong {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-pill,
.btn-yellow,
.btn-burgundy,
.btn-ghost,
.course-action,
.filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.role-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.role-switch::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--yellow);
  border-radius: 999px;
  content: "";
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.role-admin .role-switch::before {
  transform: translateX(calc(100% + 4px));
}

html[data-role-boot="admin"] .role-switch::before {
  transform: translateX(calc(100% + 4px));
}

.role-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.role-switch button.is-active {
  color: #000000;
  background: transparent;
}

html[data-role-boot="admin"] .role-switch button[data-role-switch="student"] {
  color: var(--white);
}

html[data-role-boot="admin"] .role-switch button[data-role-switch="admin"],
html[data-role-boot="student"] .role-switch button[data-role-switch="student"] {
  color: #000000;
}

html[data-role-boot="student"] .role-switch button[data-role-switch="admin"] {
  color: var(--white);
}

.role-switch img {
  width: 16px;
  height: 16px;
}

.language-menu {
  position: relative;
}

.language-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.language-menu-toggle:hover,
.language-menu-toggle:focus-visible,
.language-menu.is-open .language-menu-toggle {
  color: #000000;
  background: var(--yellow);
}

.language-menu-toggle img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.language-menu-toggle:hover img,
.language-menu-toggle:focus-visible img,
.language-menu.is-open .language-menu-toggle img {
  filter: none;
}

.language-menu-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(45, 20, 25, 0.18);
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.language-menu.is-open .language-menu-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.language-menu-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.language-menu-panel button:hover,
.language-menu-panel button:focus-visible,
.language-menu-panel button.is-active {
  color: var(--burgundy);
  background: var(--pale);
}

.language-menu-panel span {
  color: var(--magenta);
  font-size: 12px;
}

.account-pill,
.btn-yellow {
  color: #000000;
  background: var(--yellow);
}

.account-pill:hover,
.btn-yellow:hover,
.btn-yellow:focus-visible {
  color: var(--white);
  background: var(--magenta-dark);
}

.btn-burgundy,
.course-action {
  color: var(--white);
  background: var(--burgundy);
}

.btn-burgundy:hover,
.course-action:hover {
  background: var(--magenta-dark);
}

.btn-ghost {
  color: var(--burgundy);
  background: var(--white);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

.menu-toggle,
.drawer-close {
  display: none;
}

.drawer,
.account-drawer {
  display: none;
}

[data-role-view="admin"] {
  display: none;
}

body.role-admin [data-role-view="student"] {
  display: none;
}

body.role-admin [data-role-view="admin"] {
  display: block;
  animation: roleViewIn 0.38s ease both;
}

body.role-student [data-role-view="student"] {
  display: block;
  animation: roleViewIn 0.38s ease both;
}

.role-transition {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transform: scale(1.03);
  transition: opacity 0.24s ease, transform 0.24s ease, backdrop-filter 0.24s ease;
}

.role-transition-card {
  min-width: min(420px, 82vw);
  padding: 32px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(115, 3, 5, 0.98), rgba(229, 32, 145, 0.9)),
    var(--burgundy);
  border: 2px solid rgba(254, 203, 45, 0.75);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(35, 0, 8, 0.35);
}

.role-transition-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  color: #000000;
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 800;
}

.role-transition-card strong {
  display: block;
  font-size: 38px;
  line-height: 1.05;
}

body.role-transitioning .role-transition {
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: scale(1);
}

@keyframes roleViewIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 64px;
  min-height: 520px;
  padding: 32px 7vw 24px;
}

.hero-copy {
  max-width: 720px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
}

h1 span {
  color: var(--magenta);
}

h2 {
  margin-bottom: 26px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
}

h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.hero-copy p,
.split-section p,
.course-detail-hero p,
.contact-grid p {
  max-width: 620px;
  color: #434343;
  font-size: 20px;
  font-weight: 700;
}

.find-section,
.testimonials,
.offer-section {
  position: relative;
  padding: 70px 7vw;
  background: var(--pale);
  overflow: hidden;
}

.page-banner::before,
.page-banner::after {
  position: absolute;
  width: 190px;
  height: 170px;
  background-image: url("/assets/di4y/cta-pixel-module.png");
  background-size: 620px auto;
  background-position: left top;
  content: "";
  opacity: 0.95;
  pointer-events: none;
}

.find-section h2,
.testimonials h2,
.offer-section h2 {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-grid article {
  text-align: center;
}

.feature-grid img {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.feature-grid p,
.quote-grid blockquote,
.offer-grid p {
  color: #222222;
  font-weight: 700;
}

.cta-band {
  display: grid;
  align-items: center;
  min-height: clamp(360px, 31vw, 441px);
  padding: 0 7vw;
  color: var(--white);
  background-color: var(--magenta);
  background-image: url("/assets/di4y/cta-pixel-module.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
}

.cta-band div {
  width: min(520px, 100%);
  margin-left: auto;
}

.cta-band p {
  font-size: 24px;
  font-weight: 800;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 48px auto 0;
}

.quote-grid blockquote,
.offer-grid article,
.contact-grid article,
.mock-form,
.course-summary-card,
.recommendation-row article {
  margin: 0;
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-grid strong {
  display: block;
  margin-top: 22px;
  font-weight: 800;
}

.partner-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 36px 7vw;
  background: var(--white);
}

.partner-strip img {
  width: auto;
  max-width: 180px;
  max-height: 54px;
  object-fit: contain;
}

.site-footer {
  padding: 54px 7vw 44px;
  color: var(--white);
  background: var(--burgundy);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.footer-inner img {
  width: 230px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-weight: 800;
}

.site-footer p {
  margin: 28px 0 0;
  color: #ffe3e3;
}

.photo-hero,
.page-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 64px 7vw;
  text-align: center;
  overflow: hidden;
}

.photo-hero {
  min-height: 420px;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.photo-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  content: "";
}

.photo-hero div {
  position: relative;
}

.photo-hero p,
.page-banner p {
  margin-bottom: 0;
  color: var(--magenta);
  font-size: 22px;
  font-weight: 800;
}

.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 72px;
  padding: 80px 7vw;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--magenta);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.offer-grid article {
  min-height: 190px;
  text-align: center;
}

.yellow-band {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 50px 7vw;
  background: var(--yellow) url("/assets/di4y/cta-pixel-module.png") center / cover no-repeat;
}

.yellow-band h2 {
  margin: 0;
}

.who-page-hero {
  position: relative;
  display: grid;
  min-height: clamp(330px, 29.8vw, 429px);
  place-items: center;
  padding: 72px 7vw;
  color: var(--white);
  text-align: center;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.who-page-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  content: "";
}

.who-page-hero div {
  position: relative;
  z-index: 1;
}

.who-page-hero h1 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(34px, 3.1vw, 52px);
}

.who-page-hero p {
  margin: 0;
  color: #f06ea9;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 800;
}

.who-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(360px, 520px);
  justify-content: center;
  align-items: center;
  gap: 84px;
  padding: 88px 7vw;
  background: var(--white);
}

.who-intro-copy h2,
.who-where-section h2 {
  margin-bottom: 34px;
  font-size: clamp(30px, 2.15vw, 38px);
}

.who-intro-copy p,
.who-where-section p {
  margin-bottom: 30px;
  color: #333333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.who-video-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.who-video-card img {
  display: block;
  width: 100%;
}

.who-video-card span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  place-items: center;
  background: var(--magenta);
  box-shadow: 0 18px 38px rgba(229, 32, 145, 0.3);
  transform: translate(-50%, -50%);
}

.who-video-card span::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 18px solid var(--white);
  content: "";
}

.who-offers-section {
  position: relative;
  padding: 76px 7vw 96px;
  background-color: var(--pale);
  background-image: url("/assets/di4y/who/who-offers-module.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.who-offers-section h2 {
  margin-bottom: 72px;
  text-align: center;
  font-size: clamp(30px, 2.15vw, 38px);
}

.who-offer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.who-offer-grid article {
  grid-column: span 2;
  min-height: 270px;
  padding: 38px 28px 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 55px rgba(70, 38, 38, 0.08);
  text-align: center;
}

.who-offer-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.who-offer-grid article:nth-child(5) {
  grid-column: 4 / span 2;
}

.who-offer-grid img {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.who-offer-grid h3 {
  max-width: 170px;
  margin: 0 auto 20px;
  font-size: 24px;
}

.who-offer-grid p {
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.who-where-section {
  display: grid;
  grid-template-columns: minmax(0, 410px) minmax(0, 520px);
  justify-content: center;
  gap: 100px;
  padding: 72px 7vw 92px;
  background: var(--white);
}

.who-yellow-cta {
  display: grid;
  min-height: clamp(245px, 21.8vw, 303px);
  padding: 54px 7vw;
  place-items: center;
  background-color: var(--yellow);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.who-yellow-cta h2 {
  margin: 0 0 0 min(32vw, 440px);
  color: var(--ink);
  font-size: clamp(30px, 2.45vw, 44px);
  text-align: center;
}

.page-banner {
  color: var(--ink);
  background: #efc6e5;
}

.page-banner::before {
  left: -30px;
  top: -35px;
  background-position: right top;
}

.page-banner::after {
  right: -25px;
  bottom: -45px;
  background-position: right top;
  transform: rotate(180deg);
}

.partners-hero {
  display: grid;
  min-height: clamp(240px, 24.4vw, 352px);
  padding: 64px 7vw;
  place-items: center;
  color: var(--ink);
  background-color: #efc6e5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.partners-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(42px, 4.2vw, 68px);
}

.partners-hero p {
  margin: 0;
  color: var(--magenta);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 800;
}

.partners-official-page {
  display: grid;
  gap: 70px;
  padding: 78px 7vw 86px;
  background: var(--white);
}

.partners-official-row {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 860px);
  align-items: start;
  justify-content: center;
  gap: 70px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.partners-logo-link {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: flex-start;
}

.partners-logo-link img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.partners-logo-vodafone img {
  max-height: 118px;
}

.partners-logo-amref img {
  max-height: 132px;
}

.partners-logo-safaricom img {
  max-height: 138px;
}

.partners-official-copy {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.partners-official-copy p {
  margin: 0;
  color: #2f333a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.72;
}

.partners-yellow-cta {
  display: grid;
  min-height: clamp(245px, 21.8vw, 303px);
  padding: 54px 7vw;
  place-items: center;
  background-color: var(--yellow);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.partners-yellow-cta h2 {
  margin: 0 0 0 min(32vw, 440px);
  color: var(--ink);
  font-size: clamp(30px, 2.45vw, 44px);
  text-align: center;
}

.contact-hero {
  display: grid;
  min-height: 325px;
  padding: 82px 7vw;
  place-items: center;
  background-color: #fff2c7;
  background-repeat: repeat;
  background-position: 0 0;
  background-size: auto;
  text-align: center;
  align-content: center;
  justify-items: center;
  row-gap: 18px;
}

.contact-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
}

.contact-hero p {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.contact-official-page {
  display: grid;
  min-height: 181px;
  padding: 36px 7vw 22px;
  place-items: center;
  background: var(--white);
  text-align: center;
}

.contact-official-page p {
  max-width: 1180px;
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.73;
}

.contact-email-inline {
  color: var(--burgundy);
  font-weight: 900;
  white-space: nowrap;
}

.contact-yellow-cta {
  display: grid;
  min-height: 513px;
  padding: 54px 7vw;
  place-items: center;
  background-color: #fff2c7;
  background-repeat: repeat-x;
  background-position: -250px -10px;
  background-size: cover;
}

.contact-yellow-cta h2 {
  width: min(780px, 100%);
  margin: 0 24px 0 auto;
  color: var(--ink);
  font-size: 50px;
  line-height: 1.73;
  text-align: left;
}

.partners-page {
  display: grid;
  gap: 34px;
  padding: 72px 7vw 88px;
  background: var(--white);
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner-logo-panel {
  display: grid;
  min-height: 210px;
  padding: 28px;
  place-items: center;
  background: var(--pale);
  border-radius: 8px;
}

.partner-logo-panel img {
  width: auto;
  max-width: min(290px, 100%);
  max-height: 138px;
  object-fit: contain;
}

.partner-card:nth-child(2) .partner-logo-panel img {
  max-width: 220px;
  max-height: 120px;
}

.partner-card:nth-child(3) .partner-logo-panel img {
  max-width: min(330px, 100%);
}

.partner-copy h2 {
  margin-bottom: 14px;
  color: var(--burgundy);
}

.partner-copy p {
  max-width: 780px;
  color: #3f3f3f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}

.contact-simple {
  display: grid;
  padding: 82px 7vw 96px;
  place-items: center;
  background: var(--white);
}

.contact-simple article {
  width: min(860px, 100%);
  padding: 52px;
  text-align: center;
  background: var(--pale);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-simple p:not(.section-kicker) {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  color: #434343;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 24px;
  color: var(--burgundy);
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 800;
}

.where-work-section {
  padding: 78px 7vw;
  background: var(--white);
}

.where-work-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: 56px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.where-work-inner p:not(.section-kicker) {
  max-width: 660px;
  color: #434343;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.where-work-inner img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.static-pink-cta {
  display: grid;
  min-height: 240px;
  padding: 54px 7vw;
  place-items: center;
  text-align: center;
  background-color: var(--magenta);
  background-image: url("/assets/di4y/cta-pixel-module.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.static-pink-cta h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: 40px;
}

.catalogue-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 7vw 100px;
  background: var(--pale);
}

.filters-panel {
  align-self: start;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filters-panel h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

.search-label,
.check-row,
.mock-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

.search-label input,
.mock-form input,
.mock-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mock-form textarea {
  min-height: 130px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row span {
  margin-left: auto;
  color: var(--burgundy);
}

.filters-panel .btn-burgundy,
.filters-panel .btn-ghost {
  width: 100%;
  margin-top: 10px;
}

.catalogue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.catalogue-top p {
  margin: 0;
  font-weight: 800;
}

.filter-toggle {
  display: none;
  color: var(--ink);
  background: var(--white);
}

.catalogue-actions,
.admin-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-course-actions[data-role-view="admin"] {
  display: none;
}

body.role-admin .admin-course-actions[data-role-view="admin"] {
  display: flex;
}

.course-grid,
.dashboard-courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.course-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.course-card.is-hidden {
  display: none;
}

.course-image-link img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
}

.course-card-body {
  padding: 24px;
}

.course-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.tag,
.course-category {
  display: inline-flex;
  padding: 5px 10px;
  color: #ad214f;
  background: #f9d7e5;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.course-format-badge {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--burgundy);
  background: #fff8d9;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.course-category {
  margin-bottom: 14px;
}

.course-card h3 {
  min-height: 56px;
  margin-bottom: 12px;
  font-size: 22px;
}

.course-card p {
  min-height: 78px;
  color: var(--muted);
  font-weight: 600;
}

.course-meta,
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-row {
  margin-top: 18px;
  color: var(--burgundy);
}

.progress-track {
  height: 10px;
  margin: 8px 0 18px;
  overflow: hidden;
  background: #ececf2;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.course-action {
  width: 100%;
  border-radius: 6px;
}

.empty-state {
  display: none;
  margin-top: 32px;
  padding: 22px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 56px;
  padding: 70px 7vw;
  background: var(--pale);
}

.course-detail-hero img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.breadcrumb,
.eyebrow {
  color: var(--magenta);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  padding: 70px 7vw;
}

.tick-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  font-weight: 700;
}

.course-summary-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course-summary-card dt {
  color: var(--muted);
  font-weight: 800;
}

.course-summary-card dd {
  margin: 0;
  font-weight: 800;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 7vw;
  background: var(--pale);
}

.student-hero,
.admin-hero {
  min-height: 230px;
}

.admin-hero {
  background:
    linear-gradient(90deg, rgba(115, 3, 5, 0.94), rgba(115, 3, 5, 0.72)),
    url("/assets/di4y/cta-pixel-module.png") center / cover no-repeat;
  color: var(--white);
}

.admin-hero p:last-child {
  color: #ffe3ee;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.export-excel-button {
  box-shadow: 0 12px 28px rgba(45, 20, 25, 0.16);
}

.admin-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 1fr));
  align-items: stretch;
  padding: 0 7vw;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.account-summary > * {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 20px 26px;
  border-left: 1px solid var(--line);
}

.account-summary > *:first-child {
  border-left: 0;
}

.account-summary strong {
  color: #0f2238;
  font-size: 25px;
  font-weight: 800;
}

.account-summary span,
.account-summary a {
  color: var(--muted);
  font-weight: 800;
}

.account-name a {
  color: #c47a00;
}

.admin-summary strong {
  color: var(--burgundy);
}

.dashboard-hero h1 {
  margin-bottom: 8px;
}

.dashboard-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-hero.admin-hero p:last-child {
  color: var(--yellow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 7vw;
  background: var(--line);
}

.stats-row article {
  padding: 28px;
  text-align: center;
  background: var(--white);
}

.stats-row strong {
  display: block;
  color: var(--burgundy);
  font-size: 32px;
}

.stats-row span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 54px 7vw;
}

.learner-dashboard {
  grid-template-columns: minmax(0, 1fr);
}

.coach-dashboard,
.admin-dashboard {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-main {
  min-width: 0;
}

.learner-focus {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 30px;
}

.focus-card,
.report-card,
.viz-card,
.table-card,
.admin-actions article,
.course-builder-grid article,
.journey-list article,
.insight-grid article {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.focus-card h2 {
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: 52px;
}

.focus-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-side {
  align-self: start;
}

.dashboard-side h2 {
  margin: 28px 0 12px;
  color: #7d8792;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-side h2:first-child {
  margin-top: 0;
}

.dashboard-side a {
  display: block;
  padding: 12px 0;
  color: #14263a;
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  padding: 0 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.tabs button.is-active {
  color: #b58100;
  border-color: var(--yellow);
}

.tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  place-items: center;
  background: #edf1f7;
  border-radius: 999px;
  font-size: 13px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 0 7vw 70px;
}

.dashboard-insights {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  padding: 0 7vw 76px;
}

.journey-list,
.insight-grid {
  display: grid;
  gap: 18px;
}

.journey-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 18px;
}

.journey-list span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  color: var(--burgundy);
  background: #f8ddec;
  border-radius: 999px;
  font-weight: 800;
}

.journey-list .is-complete span {
  color: #0d4c1b;
  background: #dff6e2;
}

.journey-list .is-active span {
  color: #000000;
  background: var(--yellow);
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.admin-operations {
  margin-bottom: 30px;
}

.admin-operations .section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.admin-operations .section-heading h2 {
  margin-bottom: 8px;
  color: var(--burgundy);
  font-size: 34px;
}

.admin-operations .section-heading p:last-child {
  color: var(--muted);
  font-weight: 800;
}

.admin-operations .coach-filters {
  margin-bottom: 18px;
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-actions img {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
}

.admin-actions article {
  padding: 22px;
}

.admin-actions h3 {
  font-size: 22px;
}

.admin-actions p,
.course-builder-grid p,
.report-card span,
.table-card td {
  color: var(--muted);
  font-weight: 700;
}

.admin-action-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(115, 3, 5, 0.16);
  font-weight: 900;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-action-button:hover,
.admin-action-button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 14px 24px rgba(115, 3, 5, 0.2);
  transform: translateY(-2px);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-report-grid,
.course-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.course-builder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 54px 7vw 76px;
  background: var(--pale);
}

.advanced-summary {
  margin-bottom: 0;
}

.advanced-wide {
  grid-column: 1 / -1;
}

.viz-card {
  overflow: hidden;
}

.viz-card h2,
.report-card h2,
.table-card h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 28px;
}

.viz-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.viz-card-head h2 {
  margin-bottom: 0;
}

.viz-card-head > strong {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 8px 16px;
  color: var(--white);
  background: var(--magenta);
  border-radius: 999px;
  white-space: nowrap;
}

.viz-card-head > span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.viz-explainer {
  margin-top: -8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.legend-dot.magenta {
  background: var(--magenta);
}

.legend-dot.yellow {
  background: var(--yellow);
  border: 1px solid rgba(115, 3, 5, 0.18);
}

.funnel-chart {
  display: grid;
  gap: 16px;
}

.funnel-row,
.outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: end;
}

.funnel-row strong,
.outcome-row strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.funnel-row span,
.outcome-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.funnel-row b,
.outcome-row b {
  color: var(--burgundy);
  font-size: 24px;
}

.funnel-row i,
.outcome-row i {
  grid-column: 1 / -1;
  display: block;
  height: 18px;
  background: var(--magenta);
  border-radius: 999px;
}

.stacked-share {
  display: flex;
  height: 28px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #ececf2;
  border-radius: 999px;
}

.stacked-share i {
  display: block;
  min-width: 4px;
}

.stacked-share .digital {
  background: var(--magenta);
}

.stacked-share .life {
  background: #ef6cb7;
}

.stacked-share .finance {
  background: #f3a4cf;
}

.stacked-share .planet {
  background: #f8ddec;
}

.column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 260px;
  padding-top: 12px;
}

.column-chart div {
  display: grid;
  grid-template-rows: auto 180px auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  text-align: center;
}

.column-chart strong {
  color: var(--burgundy);
  font-size: 14px;
}

.column-chart i {
  display: block;
  width: 100%;
  background: var(--magenta);
  border-radius: 999px 999px 4px 4px;
}

.column-chart div:nth-child(even) i {
  background: var(--magenta);
}

.column-chart div:last-child i {
  background: var(--burgundy);
}

.column-chart span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.centre-visual-list {
  display: grid;
  gap: 18px;
}

.centre-visual-list article {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--pale);
  border-radius: 8px;
}

.centre-visual-title strong {
  display: block;
  color: var(--burgundy);
  font-size: 20px;
}

.centre-visual-title span,
.dual-bars label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dual-bars {
  display: grid;
  grid-template-columns: minmax(168px, 0.22fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.dual-bars label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.dual-bars label b {
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}

.completion-bar,
.support-bar {
  height: 14px;
  overflow: hidden;
  background: var(--white);
  border-radius: 999px;
}

.completion-bar i,
.support-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.completion-bar i {
  background: var(--magenta);
}

.support-bar i {
  background: var(--yellow);
}

.support-heatmap {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(4, minmax(82px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.heatmap-heading,
.support-heatmap strong,
.support-cell {
  min-height: 42px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: capitalize;
}

.heatmap-heading {
  color: var(--burgundy);
  background: #f8ddec;
}

.support-heatmap strong {
  color: var(--ink);
  background: var(--pale);
}

.support-cell {
  display: grid;
  place-items: center;
}

.support-cell.low {
  color: var(--muted);
  background: var(--pale);
}

.support-cell.medium {
  color: #5c4300;
  background: #fff2bd;
}

.support-cell.high {
  color: var(--white);
  background: var(--burgundy);
}

.metric-row,
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.metric-row:first-of-type,
.bar-row:first-of-type {
  border-top: 0;
}

.metric-row strong,
.bar-row span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.bar-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-row b,
.bar-row b {
  color: var(--burgundy);
  font-size: 22px;
}

.bar-row {
  grid-template-columns: 160px minmax(0, 1fr) 54px;
}

.bar-row div {
  height: 12px;
  overflow: hidden;
  background: #ececf2;
  border-radius: 999px;
}

.bar-row i {
  display: block;
  height: 100%;
  background: var(--magenta);
}

.table-card {
  overflow-x: auto;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table-card th,
.table-card td {
  padding: 16px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.table-card th {
  color: var(--burgundy);
  font-weight: 800;
}

.enrolment-manager {
  padding: 44px 7vw 90px;
  background: var(--pale);
  overflow-x: clip;
}

.enrolment-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.enrolment-toolbar .search-label {
  margin-bottom: 0;
}

.enrolment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.course-publish-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.course-publish-grid article {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-publish-grid span,
.course-publish-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.course-publish-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--burgundy);
  font-size: 22px;
}

.enrolment-matrix {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  contain: inline-size;
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.matrix-head h2 {
  margin-bottom: 0;
}

.matrix-head > strong {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  color: var(--burgundy);
  background: var(--pale);
  border-radius: 999px;
}

.enrolment-matrix table {
  min-width: 1120px;
}

.enrolment-matrix td:first-child strong,
.enrolment-matrix td:first-child span {
  display: block;
}

.enrolment-matrix td:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.matrix-check {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  cursor: pointer;
}

.matrix-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--burgundy);
}

.matrix-check span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.enrolment-matrix tr.is-filtered {
  display: none;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--burgundy);
  font-weight: 800;
}

.builder-mode-tabs {
  display: flex;
  gap: 10px;
  padding: 28px 7vw 0;
  background: var(--pale);
}

.builder-mode-tabs button {
  min-height: 44px;
  padding: 10px 18px;
  color: var(--burgundy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(45, 20, 25, 0.08);
}

.builder-mode-tabs button.is-active {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.course-wizard {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 34px;
  padding: 54px 7vw 76px;
  background: var(--pale);
}

.builder-mode-panel:not(.is-active) {
  display: none;
}

.course-wizard-progress,
.course-wizard-stage {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-wizard-progress {
  align-self: start;
  padding: 26px;
}

.course-wizard-progress > img {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  padding: 8px;
  background: var(--yellow);
  border-radius: 999px;
}

.course-wizard-progress ol {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.course-wizard-progress li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  background: var(--pale);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.course-wizard-progress li span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--burgundy);
  background: #f8ddec;
  border-radius: 999px;
}

.course-wizard-progress li.is-active {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.course-wizard-progress li.is-complete {
  color: var(--burgundy);
  background: #fff8d9;
}

.course-wizard-progress li.is-active span,
.course-wizard-progress li.is-complete span {
  color: var(--white);
  background: var(--burgundy);
}

.wizard-mini-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--burgundy);
  border-radius: 8px;
}

.wizard-mini-summary span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.wizard-mini-summary strong {
  color: var(--white);
  line-height: 1.2;
}

.course-wizard-stage {
  min-width: 0;
  padding: 34px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: block;
  animation: wizard-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizard-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-panel h2 {
  max-width: 760px;
  color: var(--burgundy);
  font-size: 42px;
}

.wizard-panel > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-weight: 800;
}

.wizard-field {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 900;
}

.wizard-field.compact {
  max-width: 420px;
}

.wizard-field input,
.wizard-field select,
.section-list input {
  width: 100%;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.wizard-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.wizard-choice {
  display: grid;
  min-height: 250px;
  align-content: start;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(70, 13, 13, 0.08);
}

.wizard-choice:hover,
.wizard-choice:focus-visible,
.wizard-choice.is-active {
  border-color: var(--yellow);
  box-shadow: 0 18px 40px rgba(115, 3, 5, 0.16);
}

.wizard-choice.is-active {
  background: #fff9dd;
}

.wizard-choice img {
  width: 52px;
  height: 52px;
  padding: 12px;
  background: var(--yellow);
  border-radius: 999px;
}

.wizard-choice strong {
  color: var(--burgundy);
  font-size: 24px;
  line-height: 1.1;
}

.wizard-choice span {
  color: var(--muted);
  font-weight: 800;
}

.mode-panel {
  display: none;
  margin-top: 24px;
}

.mode-panel.is-active {
  display: block;
}

.scorm-dropzone {
  display: grid;
  min-height: 260px;
  place-items: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
  background: #fff9dd;
  border: 2px dashed var(--yellow);
  border-radius: 8px;
  cursor: pointer;
}

.scorm-dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.scorm-dropzone img {
  width: 54px;
  height: 54px;
}

.scorm-dropzone strong {
  color: var(--burgundy);
  font-size: 28px;
}

.scorm-dropzone span {
  color: var(--muted);
  font-weight: 800;
}

.wizard-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.wizard-publish-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.wizard-checklist article,
.wizard-publish-summary article {
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
}

.wizard-checklist strong,
.wizard-publish-summary strong {
  display: block;
  color: var(--burgundy);
}

.wizard-checklist span,
.wizard-publish-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.section-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-builder-head h3 {
  margin-bottom: 6px;
  color: var(--burgundy);
  font-size: 28px;
}

.section-builder-head p {
  color: var(--muted);
  font-weight: 800;
}

.section-list {
  display: grid;
  gap: 12px;
}

.section-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--pale);
  border-radius: 8px;
}

.section-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 999px;
  font-weight: 900;
}

.section-list button {
  color: var(--burgundy);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.activity-choice-list,
.section-activity-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.activity-choice-list label {
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
  font-weight: 900;
}

.section-activity-list article {
  padding: 18px;
  background: var(--pale);
  border-radius: 8px;
}

.section-activity-list h3 {
  margin-bottom: 14px;
  color: var(--burgundy);
  font-size: 22px;
}

.activity-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.activity-chip-grid label {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.activity-chip-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.moodle-edit-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
  padding: 16px;
  background: #f7f5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-course-index {
  align-self: start;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-course-index > div {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.moodle-course-index span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.moodle-course-index strong {
  display: block;
  color: var(--burgundy);
  line-height: 1.2;
}

.moodle-course-index nav {
  display: grid;
  gap: 8px;
}

.moodle-course-index button {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: var(--pale);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.moodle-course-index button:hover,
.moodle-course-index button:focus-visible {
  border-color: var(--yellow);
  background: #fff8d9;
}

.moodle-course-edit-page {
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-edit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
}

.moodle-edit-toolbar h3 {
  color: var(--burgundy);
  font-size: 26px;
}

.moodle-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.moodle-edit-actions button,
.moodle-add-activity,
.moodle-activity-chooser button,
.moodle-edit-section header button,
.moodle-edit-activities button {
  cursor: pointer;
  font-weight: 900;
}

.moodle-edit-actions button {
  padding: 10px 14px;
  color: var(--burgundy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.moodle-edit-actions .is-on {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.moodle-section-stack {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.section-activity-list .moodle-edit-section,
.moodle-edit-section {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-edit-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.moodle-edit-section header > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.moodle-edit-section h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 22px;
}

.moodle-edit-section header img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.moodle-drag-handle {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
  background: var(--pale);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.moodle-edit-section header button,
.moodle-edit-activities button,
.moodle-activity-chooser-head button {
  padding: 8px 10px;
  color: var(--burgundy);
  background: var(--pale);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
}

.moodle-edit-activities {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moodle-edit-activities li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fbfbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-edit-activities img {
  width: 34px;
  height: 34px;
  padding: 8px;
  background: #fff8d9;
  border-radius: 999px;
}

.moodle-edit-activities strong,
.moodle-edit-activities small {
  display: block;
}

.moodle-edit-activities strong {
  color: var(--ink);
}

.moodle-edit-activities small,
.moodle-section-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.moodle-section-empty {
  margin: 0;
  padding: 14px;
  background: var(--pale);
  border-radius: 8px;
}

.moodle-add-activity {
  justify-self: start;
  padding: 10px 14px;
  color: var(--burgundy);
  background: #fff8d9;
  border: 1px solid var(--yellow);
  border-radius: 999px;
}

.moodle-add-activity:hover,
.moodle-add-activity:focus-visible {
  color: #000000;
  background: var(--yellow);
}

.moodle-activity-chooser {
  display: none;
  padding: 14px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-activity-chooser.is-visible {
  display: grid;
  gap: 12px;
}

.moodle-activity-chooser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.moodle-activity-chooser-head strong {
  color: var(--burgundy);
}

.moodle-activity-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.moodle-activity-chooser-grid button {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.moodle-activity-chooser-grid button:hover,
.moodle-activity-chooser-grid button:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 10px 24px rgba(45, 20, 25, 0.1);
}

.moodle-activity-chooser-grid strong {
  color: var(--ink);
}

.moodle-activity-chooser-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wizard-actions span {
  color: var(--muted);
  font-weight: 900;
}

.existing-course-manager,
.account-create-shell {
  padding: 54px 7vw 76px;
  background: var(--pale);
}

.existing-course-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 28px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.existing-course-head h2 {
  color: var(--burgundy);
  font-size: 34px;
}

.existing-course-head p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-weight: 800;
}

.existing-course-grid,
.account-create-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
}

.existing-course-list {
  display: grid;
  align-self: start;
  gap: 10px;
}

.existing-course-list button {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(45, 20, 25, 0.08);
}

.existing-course-list button.is-active,
.existing-course-list button:hover,
.existing-course-list button:focus-visible {
  border-color: var(--yellow);
  background: #fff8d9;
}

.existing-course-list span,
.existing-course-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.existing-course-editor {
  min-width: 0;
  padding: 30px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.manage-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.manage-action-grid article,
.h5p-proof-card,
.account-create-preview article {
  padding: 18px;
  background: var(--pale);
  border-radius: 8px;
}

.manage-action-grid h3,
.h5p-proof-card h3 {
  margin-bottom: 8px;
  color: var(--burgundy);
  font-size: 22px;
}

.manage-action-grid p,
.h5p-proof-card p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.compact-dropzone {
  min-height: 180px;
  margin-top: 18px;
}

.compact-dropzone strong {
  font-size: 22px;
}

.h5p-proof-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  border: 2px solid transparent;
}

.h5p-proof-card.is-added {
  background: #fff8d9;
  border-color: var(--yellow);
}

.account-create-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.account-create-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-create-preview strong {
  display: block;
  margin-top: 4px;
  color: var(--burgundy);
}

.account-enrolment-options {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.account-enrolment-options h3 {
  margin-bottom: 6px;
  color: var(--burgundy);
  font-size: 24px;
}

.account-enrolment-options p {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 800;
}

.account-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.account-option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.account-option-card span {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: var(--pale);
  border: 2px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-option-card strong {
  color: var(--ink);
  font-size: 17px;
}

.account-option-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-option-card:hover span,
.account-option-card:focus-within span {
  transform: translateY(-2px);
  border-color: rgba(254, 203, 45, 0.8);
  box-shadow: 0 12px 28px rgba(45, 20, 25, 0.12);
}

.account-option-card input:checked + span {
  background: #fff8d9;
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(115, 3, 5, 0.08);
}

.profile-panel,
.coach-filters,
.builder-preview,
.publish-panel {
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
}

.profile-panel h2 {
  margin-bottom: 10px;
  color: var(--burgundy);
  font-size: 34px;
}

.profile-grid,
.publish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-grid article,
.publish-grid label {
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
  font-weight: 800;
}

.profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.publish-centre-grid {
  margin-top: 24px;
}

.publish-grid label.publish-centre-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(45, 20, 25, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.publish-grid label.publish-centre-card:hover,
.publish-grid label.publish-centre-card:focus-within {
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.publish-grid label.publish-centre-card.is-selected {
  background: #fff8d9;
  border-color: var(--yellow);
  box-shadow: 0 16px 34px rgba(115, 3, 5, 0.13);
}

.publish-centre-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.publish-card-check {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--white);
  border: 2px solid #d8c8c8;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.publish-card-check::after {
  width: 10px;
  height: 16px;
  content: "";
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(45deg) translate(-1px, -2px);
}

.publish-centre-card.is-selected .publish-card-check {
  background: var(--yellow);
  border-color: var(--burgundy);
}

.publish-centre-card.is-selected .publish-card-check::after {
  border-color: var(--burgundy);
}

.publish-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.publish-card-copy strong {
  color: var(--burgundy);
  font-size: 18px;
  line-height: 1.15;
}

.publish-card-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.publish-card-copy b {
  color: #7a3940;
  font-size: 12px;
  font-weight: 900;
}

.publish-centre-card em {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--pale);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.publish-centre-card.is-selected em {
  color: var(--burgundy);
  background: var(--yellow);
}

.profile-grid strong {
  display: block;
  margin-top: 4px;
}

.compact-insights {
  padding-top: 0;
}

.intake-shell,
.builder-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  padding: 54px 7vw 76px;
  background: var(--pale);
}

.intake-steps {
  display: grid;
  align-self: start;
  gap: 10px;
}

.intake-steps button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.intake-steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--burgundy);
  background: #f8ddec;
  border-radius: 999px;
}

.intake-steps button.is-active {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.intake-steps button.is-active span {
  color: var(--white);
  background: var(--burgundy);
}

.intake-card,
.builder-stage {
  min-width: 0;
  padding: 34px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-create-card {
  display: flex;
  min-height: 660px;
  flex-direction: column;
}

.account-create-card .step-panel.is-active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.account-create-card .form-grid {
  margin-bottom: auto;
}

.account-create-card .account-create-preview {
  margin-top: auto;
}

.builder-intro {
  margin-bottom: 26px;
  padding: 22px;
  background: var(--pale);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
}

.builder-intro h2 {
  margin-bottom: 8px;
  color: var(--burgundy);
  font-size: 30px;
}

.builder-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

.builder-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.builder-field-grid article {
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
}

.builder-field-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.builder-field-grid strong {
  display: block;
  color: var(--burgundy);
}

.form-grid,
.coach-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label,
.coach-filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.form-grid input,
.coach-filters select {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-actions span {
  color: var(--muted);
  font-weight: 800;
}

.learner-list {
  display: grid;
  gap: 18px;
}

.learner-list article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.7fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.learner-list article.is-hidden {
  display: none;
}

.learner-list h3,
.learner-list p {
  margin-bottom: 6px;
}

.learner-progress strong {
  color: var(--burgundy);
  font-size: 28px;
}

.learner-drawer-backdrop {
  position: fixed;
  z-index: 68;
  inset: 0;
  display: none;
  background: rgba(20, 8, 8, 0.32);
  border: 0;
  cursor: pointer;
}

body.learner-open {
  overflow: hidden;
}

body.learner-open .learner-drawer-backdrop {
  display: block;
}

.learner-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(420px, 92vw);
  padding: 32px;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  box-shadow: -20px 0 55px rgba(0, 0, 0, 0.28);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.learner-drawer.is-open {
  transform: translateX(0);
}

.learner-drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--burgundy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.learner-drawer dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.learner-drawer dt {
  color: var(--muted);
  font-weight: 800;
}

.learner-drawer dd {
  margin: 0;
  font-weight: 800;
}

.builder-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 24px;
}

.builder-panel {
  display: grid;
  gap: 14px;
}

.builder-panel article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--pale);
  border-radius: 8px;
}

.builder-panel h3,
.builder-panel p {
  grid-column: 1;
  margin-bottom: 0;
}

.builder-panel button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.builder-panel button.is-added {
  color: #103515;
  background: #dff6e2;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.activity-section {
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.activity-section h3 {
  margin-bottom: 16px;
}

.activity-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.activity-row span {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  color: var(--burgundy);
  background: #f8ddec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.activity-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.activity-row.is-complete em {
  color: #0d4c1b;
}

.activity-row.is-active span {
  color: #000000;
  background: var(--yellow);
}

.activity-row.is-locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.module-list {
  list-style: none;
  padding: 0;
}

.module-list li {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.module-list span,
.player-support span {
  font-size: 13px;
  font-weight: 800;
}

.player-support {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.player-support article {
  padding: 14px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
}

.player-support strong {
  display: block;
}

.player-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: calc(100vh - 92px);
}

.player-sidebar {
  padding: 38px;
  color: var(--white);
  background: var(--burgundy);
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--yellow);
  font-weight: 800;
}

.player-sidebar h1 {
  font-size: 30px;
}

.player-sidebar ol {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 24px;
  font-weight: 800;
}

.player-sidebar li {
  padding: 12px;
  border-radius: 6px;
}

.player-sidebar li.is-active {
  color: #000000;
  background: var(--yellow);
}

.player-sidebar li.is-complete {
  color: #d9ffdd;
}

.player-stage {
  padding: 52px 7vw;
  background: var(--pale);
}

.audit-grid,
.scorm-package-grid,
.life-curriculum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.audit-grid article,
.scorm-package-grid article,
.life-curriculum article {
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.audit-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.audit-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--burgundy);
  font-size: 22px;
  line-height: 1.2;
}

.player-panel {
  display: none;
}

.player-panel.is-active {
  display: block;
}

.activity-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.activity-window img {
  border-radius: 8px;
}

.completion-toast {
  display: none;
  margin-top: 20px;
  padding: 18px 22px;
  color: #103515;
  background: #dff6e2;
  border-radius: 8px;
  font-weight: 800;
}

.completion-toast.is-visible {
  display: block;
}

.export-toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  margin-top: 0;
  box-shadow: 0 18px 48px rgba(45, 20, 25, 0.18);
}

.di4y-player-shell {
  min-height: 100vh;
  color: var(--ink);
  background: #f7f7f8;
}

.di4y-player-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(118px, auto);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 5px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e0e2;
  box-shadow: 0 8px 18px rgba(41, 0, 4, 0.06);
}

.di4y-player-header h1 {
  margin-bottom: 0;
  color: var(--burgundy);
  font-size: 15px;
  line-height: 1.1;
}

.di4y-player-shell.is-scorm .di4y-player-header {
  grid-template-columns: auto minmax(0, 1fr);
}

.di4y-player-header .eyebrow {
  margin-bottom: 2px;
  color: var(--yellow);
}

.player-back,
.player-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #000000;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.player-status-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--ink);
  background: #f6f2f3;
  border: 1px solid #e5dadd;
  border-radius: 8px;
}

.player-status-card span,
.player-status-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.player-status-card small {
  display: none;
}

.player-status-card strong {
  color: var(--burgundy);
  font-size: 15px;
  line-height: 1;
}

.di4y-player-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  height: calc(100vh - 46px);
  min-height: 520px;
}

.player-curriculum {
  overflow: auto;
  padding: 12px;
  color: var(--ink);
  background: #f4f4f5;
  border-right: 1px solid #e1dddf;
  font-size: 12px;
}

.player-curriculum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  color: var(--burgundy);
  border-bottom: 1px solid #ddd7da;
}

.player-curriculum-head span,
.player-curriculum-head strong {
  font-size: 12px;
  font-weight: 800;
}

.player-curriculum .module-list li {
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #e5e0e2;
  border-radius: 8px;
  overflow: hidden;
}

.player-curriculum .module-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.player-curriculum .module-list button:hover,
.player-curriculum .module-list button:focus-visible {
  outline: 0;
  background: #f9edf3;
}

.player-curriculum .module-list li.is-active {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.player-curriculum .module-list li.is-complete {
  color: #103515;
  background: #dff6e2;
  border-color: #dff6e2;
}

.player-curriculum .module-list li.is-locked,
.player-curriculum .module-list li.is-muted {
  opacity: 0.62;
}

.player-curriculum .player-support article {
  color: #000000;
  background: #f9dadd;
}

.player-secondary-link {
  width: 100%;
  margin-top: 20px;
}

.scorm-player-stage,
.life-player-stage {
  min-width: 0;
}

.scorm-player-stage {
  padding: 0;
}

.life-player-stage {
  padding: 8px;
}

.scorm-player-stage {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.scorm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid #e5e0e2;
  font-size: 12px;
}

.scorm-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.scorm-toolbar strong {
  display: block;
  color: var(--burgundy);
  font-size: 13px;
}

.scorm-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.scorm-controls button {
  min-height: 26px;
  padding: 4px 8px;
  color: var(--burgundy);
  background: #f7f2f4;
  border: 1px solid #e4d7dc;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.scorm-controls button.is-primary,
.scorm-controls [data-complete-activity] {
  color: #000000;
  background: var(--yellow);
  border-color: var(--yellow);
}

.scorm-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 0;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.scorm-frame-wrap.is-expanded {
  position: fixed;
  z-index: 90;
  inset: 18px;
  height: auto;
  min-height: 0;
  border-radius: 8px;
}

.scorm-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.player-alert {
  display: none;
  margin: 0;
  padding: 9px 12px;
  color: #103515;
  background: #dff6e2;
  border-top: 1px solid #c8e8ce;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
}

.player-alert.is-visible {
  display: block;
}

.player-proof-grid,
.migration-map-grid,
.migration-builder-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.player-proof-grid article,
.migration-map-grid article,
.migration-builder-table article,
.life-lesson-view {
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.player-proof-grid span,
.migration-map-grid span,
.migration-builder-table span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.player-proof-grid strong,
.migration-map-grid strong,
.migration-builder-table strong {
  display: block;
  color: var(--burgundy);
  overflow-wrap: anywhere;
}

.migration-builder-table em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.life-player-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.life-lesson-view h2 {
  color: var(--burgundy);
  font-size: 38px;
}

.reflection-box {
  margin: 24px 0;
  padding: 18px;
  background: var(--pale);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
}

.reflection-box span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.reflection-box strong {
  display: block;
  margin-top: 5px;
}

.life-curriculum article.is-active {
  border: 2px solid var(--yellow);
}

.life-curriculum article > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--burgundy);
  background: #f8ddec;
  border-radius: 999px;
  font-weight: 800;
}

.migration-proof-section,
.migration-builder-panel {
  padding: 54px 7vw 76px;
  background: var(--white);
}

.migration-builder-panel {
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.builder-step-label {
  margin: 0 0 10px;
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.builder-path-switch {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.builder-path-switch button {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px;
}

.builder-path-switch span {
  width: auto;
  height: auto;
  place-items: start;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.25;
}

.builder-path-switch button.is-active span {
  color: #2b2100;
  background: transparent;
}

.course-action.secondary {
  margin-left: 12px;
  color: var(--burgundy);
  background: #f8ddec;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 210px 1fr auto auto auto auto;
    gap: 18px;
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .desktop-nav {
    gap: 18px;
  }

  .platform-trail {
    padding-right: 4vw;
    padding-left: 4vw;
  }

  .role-switch button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .home-hero,
  .course-detail-hero,
  .split-section {
    grid-template-columns: 1fr 420px;
  }

  .course-grid,
  .dashboard-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 82px;
  }

  .who-intro-section,
  .who-where-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .who-offer-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .who-offer-grid article,
  .who-offer-grid article:nth-child(4),
  .who-offer-grid article:nth-child(5) {
    grid-column: auto;
  }

  .who-yellow-cta {
    min-height: 250px;
    background-position: left center;
  }

  .who-yellow-cta h2 {
    margin-left: 0;
    padding-left: min(34vw, 220px);
  }

  .partners-official-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .partners-logo-link {
    justify-content: center;
    min-height: 96px;
  }

  .partners-yellow-cta {
    min-height: 250px;
    background-position: left center;
  }

  .partners-yellow-cta h2 {
    margin-left: 0;
    padding-left: min(34vw, 220px);
  }

  .contact-yellow-cta {
    min-height: 250px;
    background-position: left center;
  }

  .contact-yellow-cta h2 {
    margin-left: 0;
    padding-left: min(34vw, 220px);
  }

  body.player-page {
    padding-bottom: 0;
    height: auto;
    overflow: auto;
  }

  .site-header {
    grid-template-columns: 190px 1fr auto auto;
    min-height: 82px;
  }

  .desktop-nav,
  .account-pill {
    display: none;
  }

  .role-switch {
    justify-self: end;
  }

  .language-menu {
    justify-self: end;
  }

  .language-menu-toggle {
    min-width: 42px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .language-menu-toggle span {
    display: none;
  }

  .site-logo img {
    width: 190px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: 0;
  }

  .menu-toggle span {
    display: block;
    height: 4px;
    background: var(--yellow);
    border-radius: 999px;
  }

  .drawer,
  .account-drawer {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(340px, 88vw);
    padding: 28px;
    flex-direction: column;
    gap: 20px;
    color: var(--white);
    background: var(--burgundy);
    box-shadow: -20px 0 55px rgba(0, 0, 0, 0.28);
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }

  .drawer.is-open,
  .account-drawer.is-open {
    transform: translateX(0);
  }

  .drawer-logo {
    width: 190px;
    margin-bottom: 18px;
  }

  .drawer a,
  .account-drawer a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 20px;
    font-weight: 800;
  }

  .drawer-close {
    display: inline-flex;
    align-self: flex-end;
    color: #000000;
    background: var(--yellow);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 14px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .home-hero,
  .course-detail-hero,
  .split-section,
  .contact-grid,
  .partner-card,
  .where-work-inner,
  .activity-window {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-copy p,
  .split-section p,
  .course-detail-hero p,
  .contact-grid p,
  .contact-simple p:not(.section-kicker),
  .where-work-inner p:not(.section-kicker) {
    font-size: 18px;
  }

  .feature-grid,
  .quote-grid,
  .offer-grid,
  .stats-row,
  .recommendation-row,
  .account-summary,
  .learner-focus,
  .dashboard-insights,
  .admin-actions,
  .admin-report-grid,
  .course-builder-grid,
  .profile-panel,
  .profile-grid,
  .intake-shell,
  .builder-shell,
  .form-grid,
  .enrolment-toolbar,
  .course-publish-grid,
  .coach-filters,
  .builder-preview,
  .activity-grid,
  .publish-grid,
  .moodle-edit-shell,
  .audit-grid,
  .scorm-package-grid,
  .life-curriculum,
  .di4y-player-header,
  .di4y-player-body,
  .life-player-stage,
  .player-proof-grid,
  .migration-map-grid,
  .migration-builder-table,
  .existing-course-grid,
  .account-create-shell,
  .manage-action-grid,
  .account-create-preview,
  .account-option-grid {
    grid-template-columns: 1fr;
  }

  .di4y-player-header {
    position: static;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .di4y-player-header h1 {
    font-size: 14px;
  }

  .player-status-card {
    width: auto;
  }

  .player-curriculum {
    max-height: 180px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #e1dddf;
  }

  .di4y-player-body {
    height: auto;
    min-height: calc(100vh - 46px);
  }

  .scorm-player-stage {
    min-height: calc(100vh - 226px);
    padding: 0;
  }

  .life-player-stage {
    padding: 22px;
  }

  .scorm-toolbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .scorm-controls {
    justify-content: flex-start;
  }

  .scorm-frame-wrap {
    height: 68vh;
    min-height: 420px;
    flex: none;
  }

  .account-summary {
    padding: 0;
  }

  .account-summary > * {
    min-height: 0;
    padding: 18px 7vw;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .account-summary > *:first-child {
    border-top: 0;
  }

  .catalogue-shell,
  .dashboard-grid,
  .course-detail-grid,
  .player-layout,
  .advanced-dashboard {
    grid-template-columns: 1fr;
  }

  .advanced-wide {
    grid-column: auto;
  }

  .builder-field-grid {
    grid-template-columns: 1fr;
  }

  .course-wizard {
    grid-template-columns: 1fr;
  }

  .existing-course-head,
  .h5p-proof-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-wizard-progress ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .course-wizard-progress li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .wizard-choice-grid,
  .wizard-checklist,
  .wizard-publish-summary,
  .activity-chip-grid,
  .moodle-activity-chooser-grid {
    grid-template-columns: 1fr;
  }

  .moodle-edit-toolbar,
  .moodle-edit-section header {
    align-items: flex-start;
    flex-direction: column;
  }

  .moodle-edit-actions {
    justify-content: flex-start;
  }

  .section-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .section-list button {
    grid-column: 2;
    justify-self: start;
  }

  .viz-card-head,
  .centre-visual-list article {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .viz-card-head > span {
    max-width: none;
    text-align: left;
  }

  .dual-bars {
    grid-template-columns: 1fr;
  }

  .support-heatmap {
    grid-template-columns: minmax(120px, 1fr) repeat(4, minmax(78px, 0.8fr));
  }

  .intake-card,
  .builder-stage {
    padding: 24px;
  }

  .learner-list article {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .builder-panel article,
  .activity-row {
    grid-template-columns: 1fr;
  }

  .builder-panel h3,
  .builder-panel p,
  .builder-panel button {
    grid-column: auto;
    grid-row: auto;
  }

  .filters-panel {
    position: fixed;
    z-index: 55;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 88vw);
    overflow: auto;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .filters-open .filters-panel {
    transform: translateX(0);
  }

  .filter-toggle {
    display: inline-flex;
  }

  .course-grid,
  .dashboard-courses {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .partner-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-strip {
    gap: 28px;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 45;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 74px;
    padding: 8px 6px 10px;
    background: var(--white);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-tabbar .is-active {
    color: var(--burgundy);
  }

  .mobile-tabbar img {
    width: 22px;
    height: 22px;
    opacity: 0.78;
  }

  .mobile-tabbar .is-active img {
    opacity: 1;
  }

  .mockup-notice {
    right: 14px;
    bottom: 92px;
  }

  .theme-edit-controls {
    right: 68px;
    bottom: 92px;
    align-items: flex-end;
    flex-direction: row;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .di4y-player-body {
    grid-template-columns: 190px minmax(0, 1fr);
    height: calc(100vh - 46px);
    min-height: 520px;
  }

  .player-curriculum {
    max-height: none;
    border-right: 1px solid #e1dddf;
    border-bottom: 0;
  }

  .scorm-player-stage {
    min-height: 0;
  }

  .scorm-frame-wrap {
    height: auto;
    min-height: 0;
    flex: 1;
  }
}

@media (min-width: 861px) {
  .mobile-tabbar {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header,
  .home-hero,
  .find-section,
  .testimonials,
  .offer-section,
  .cta-band,
  .who-page-hero,
  .who-intro-section,
  .who-offers-section,
  .who-where-section,
  .who-yellow-cta,
  .partners-hero,
  .partners-official-page,
  .partners-yellow-cta,
  .contact-hero,
  .contact-official-page,
  .contact-yellow-cta,
  .photo-hero,
  .page-banner,
  .split-section,
  .contact-grid,
  .partners-page,
  .contact-simple,
  .where-work-section,
  .catalogue-shell,
  .enrolment-manager,
  .course-detail-hero,
  .course-detail-grid,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-insights,
  .advanced-dashboard,
  .intake-shell,
  .builder-shell,
  .builder-mode-tabs,
  .account-create-shell,
  .existing-course-manager,
  .course-wizard,
  .recommendation-row,
  .player-stage,
  .migration-proof-section,
  .site-footer,
  .partner-strip {
    padding-right: 22px;
    padding-left: 22px;
  }

  .platform-trail {
    padding-right: 22px;
    padding-left: 22px;
    font-size: 13px;
  }

  .site-header {
    grid-template-columns: 150px minmax(0, 1fr) auto auto;
  }

  .site-logo img {
    width: 150px;
  }

  .who-page-hero {
    min-height: 260px;
  }

  .who-intro-section {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .who-offers-section {
    padding-top: 54px;
    padding-bottom: 64px;
    background-size: auto 100%;
  }

  .who-offer-grid article {
    min-height: 0;
  }

  .who-where-section {
    padding-top: 48px;
    padding-bottom: 62px;
  }

  .who-yellow-cta {
    min-height: 220px;
    background-size: auto 100%;
  }

  .who-yellow-cta h2 {
    padding-left: 24vw;
    font-size: 28px;
  }

  .partners-hero {
    min-height: 230px;
  }

  .partners-official-page {
    gap: 48px;
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .partners-official-copy p {
    font-size: 15px;
    line-height: 1.62;
  }

  .partners-logo-vodafone img {
    max-height: 92px;
  }

  .partners-logo-amref img,
  .partners-logo-safaricom img {
    max-height: 104px;
  }

  .partners-yellow-cta {
    min-height: 220px;
    background-size: auto 100%;
  }

  .partners-yellow-cta h2 {
    padding-left: 24vw;
    font-size: 28px;
  }

  .contact-hero {
    min-height: 230px;
  }

  .contact-official-page {
    min-height: 220px;
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .contact-official-page p {
    font-size: 23px;
  }

  .contact-yellow-cta {
    min-height: 220px;
    background-size: auto 100%;
  }

  .contact-yellow-cta h2 {
    padding-left: 24vw;
    font-size: 28px;
  }

  .role-switch button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .language-menu-toggle {
    min-height: 34px;
    padding: 8px;
  }

  .role-switch img {
    width: 14px;
    height: 14px;
  }

  .catalogue-top,
  .dashboard-hero,
  .matrix-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-actions,
  .admin-course-actions,
  .enrolment-actions {
    justify-content: flex-start;
  }

  .quote-grid blockquote,
  .offer-grid article,
  .contact-grid article,
  .partner-card,
  .contact-simple article,
  .mock-form,
  .course-summary-card,
  .recommendation-row article,
  .course-card-body {
    padding: 24px;
  }

  .partner-logo-panel {
    min-height: 150px;
    padding: 22px;
  }

  .partner-logo-panel img {
    max-height: 98px;
  }

  .static-pink-cta h2 {
    font-size: 30px;
  }

  .enrolment-matrix {
    padding: 14px;
  }

  .enrolment-matrix table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .enrolment-matrix th,
  .enrolment-matrix td {
    padding: 8px 4px;
    font-size: 11px;
  }

  .enrolment-matrix th:first-child,
  .enrolment-matrix td:first-child {
    width: 96px;
  }

  .enrolment-matrix th:nth-child(2),
  .enrolment-matrix td:nth-child(2),
  .enrolment-matrix th:last-child,
  .enrolment-matrix td:last-child {
    width: 42px;
  }

  .enrolment-matrix td:first-child span {
    font-size: 10px;
  }

  .matrix-check {
    min-width: 24px;
    min-height: 24px;
  }

  .matrix-check input {
    width: 17px;
    height: 17px;
  }
}
