/* Optional public style: preserve Courseware's structure while following the active theme. */
body.cb-style-theme.cb-academy-page,
body.cb-style-theme .cb-academy {
  --cb-paper: var(--wp--preset--color--base, transparent) !important;
  --cb-ink: var(--wp--preset--color--contrast, inherit) !important;
  --cb-navy: var(--wp--preset--color--contrast, currentColor) !important;
  --cb-gold: var(--wp--preset--color--primary, currentColor) !important;
  --cb-muted: color-mix(in srgb, currentColor 72%, transparent) !important;
  --cb-rule: color-mix(in srgb, currentColor 18%, transparent) !important;
  --cb-theme-font: var(--wp--preset--font-family--body, var(--wp--preset--font-family--primary, var(--wp--preset--font-family--manrope, var(--wp--preset--font-family--system-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif))));
  background: var(--wp--preset--color--base, transparent);
  color: var(--wp--preset--color--contrast, inherit);
  font-family: var(--cb-theme-font);
}
body.cb-style-theme :is(.cb-academy h1,.cb-academy h2,.cb-academy h3,.cb-course h2,.cb-lesson h2,.cb-academy-hero h1,.cb-standalone-hero h2) {
  color: inherit;
  font-family: var(--wp--preset--font-family--heading, var(--cb-theme-font));
  letter-spacing: normal;
}
body.cb-style-theme :is(.cb-academy-header,.cb-academy-footer,.cb-academy-hero,.cb-standalone-hero,.cb-academy-content,.cb-course-action,.cb-completion,.cb-card,.cb-lesson-sidebar,.cb-locked) {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  box-shadow: none;
}
body.cb-style-theme :is(.cb-academy-header a,.cb-academy-footer a,.cb-academy-hero h1,.cb-standalone-hero h2,.cb-academy-hero p,.cb-standalone-hero p,.cb-card h3,.cb-lesson-sidebar h3) {
  color: inherit;
  font-family: inherit;
}
body.cb-style-theme :is(.cb-academy-brand,.cb-academy-brand small,.cb-academy-kicker,.cb-standalone-hero small,.cb-brand-mark) {
  color: inherit;
  border-color: currentColor;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
}
body.cb-style-theme .cb-academy-hero,
body.cb-style-theme .cb-standalone-hero { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
body.cb-style-theme .cb-button {
  background: var(--wp--preset--color--contrast, transparent);
  color: var(--wp--preset--color--base, inherit) !important;
  border: 1px solid currentColor;
  border-radius: var(--wp--custom--border--radius, .5rem);
  font: inherit;
}
body.cb-style-theme .cb-button:hover,
body.cb-style-theme .cb-button:focus-visible { opacity: .85; }
body.cb-style-theme :is(.cb-academy a,.cb-course a,.cb-lesson a):focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
/* Academiepagina's (cursusaanbod, Mijn cursussen, cursus, les, community) krijgen de brede maat van het thema (wideSize),
   met minstens 960px. De leesbreedte van het thema (contentSize, vaak 720px) is te smal voor kaarten en een les met zijbalk.
   De lestekst zelf houdt zijn leesbreedte (.cb-lesson-main, Pagina’s ontwerpen > Leesbreedte). */
body.cb-style-theme .cb-academy-shell { width: min(max(var(--wp--style--global--wide-size, 1180px), 960px), calc(100% - 40px)); }
@media (max-width: 750px) { body.cb-style-theme .cb-academy-shell { width: calc(100% - 30px); } }
