/*
 * Big 5 Capital: the Crypto School.
 * A light, calm learning surface under the corporate header. Styles only: every element here is the Crypto School
 * plugin's own markup, unchanged. Loaded only on the school's pages, courses and lessons, after the plugin's stylesheet.
 *
 * Specificity: every rule starts with body.b5c-theme.big5-school, one class more than the plugin's rules
 * (body.b5c-school-app ...) and the owner's WPCode contrast snippet (body.page-id-NNNN ...), which stays in place and
 * still applies under any other theme. The snippet styles dark cards for a white page; on this light surface those
 * colours would fail contrast, so the rules it sets are restated here with the same !important.
 */

body.b5c-theme.big5-school { background: var(--paper); }
body.b5c-theme.big5-school .site-main { background: var(--paper); color: var(--ink); }
body.b5c-theme.big5-school .site-main :focus-visible { outline-color: var(--brass); }

/* The school's own bar under the corporate header */
.school-bar { background: var(--sheet); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--hair); color: var(--ink); }
.school-bar :focus-visible { outline-color: var(--brass); }
.school-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; min-height: 52px; }
.school-bar__name { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1rem; font-weight: 650; font-stretch: 112%; color: var(--ink); }
.school-bar__name::before { content: ""; width: 8px; height: 8px; background: var(--gold); }
.school-bar__nav { min-width: 0; max-width: 100%; }
.school-bar__nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.school-bar__nav a {
  display: inline-block;
  margin-bottom: -1px;
  padding: 0.9rem 0 calc(0.9rem - 1px);
  border-bottom: 2px solid transparent;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.school-bar__nav a:hover { color: var(--ink); }
.school-bar__nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 719px) {
  body.b5c-theme.big5-school .site-header { position: relative; top: 0; }
  .school-bar__inner { gap: 0 1.25rem; }
  .school-bar__name { padding-top: 0.75rem; }
}

/* The plugin's layout container: centred in the theme's own column (the plugin's full-bleed 100vw rule is for themes
   with narrow content columns). */
body.b5c-theme.big5-school .b5c-wrap {
  width: auto !important;
  max-width: calc(var(--wrap) + 2 * var(--gutter)) !important;
  margin: 0 auto !important;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px) !important;
  color: var(--ink);
  font-family: var(--font-sans);
}
body.b5c-theme.big5-school .b5c-wrap.b5c-auth { max-width: calc(40rem + 2 * var(--gutter)) !important; }
/* The plugin caps and centres each child at 1180px; here they share the theme's content width so every block aligns. */
body.b5c-theme.big5-school .b5c-wrap > * { max-width: none; }
body.b5c-theme.big5-school .b5c-wrap h1 {
  margin: 0.35rem 0 1rem;
  max-width: 22ch;
  color: var(--ink);
  font-size: var(--step-4);
  font-weight: 650;
  font-stretch: 114%;
  line-height: 1.04;
}
body.b5c-theme.big5-school .b5c-wrap h2 { margin: 0.35rem 0 0.75rem; color: var(--ink); font-size: var(--step-3); }
body.b5c-theme.big5-school .b5c-wrap h3 { color: var(--ink); }
body.b5c-theme.big5-school .b5c-wrap p { color: var(--slate); }
body.b5c-theme.big5-school .b5c-kicker,
body.b5c-theme .b5c-modal .b5c-kicker { display: inline-block; color: var(--brass); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; }

/* Buttons */
body.b5c-theme.big5-school .b5c-btn,
body.b5c-theme .b5c-modal .b5c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.35em;
  border: 0;
  border-radius: 2px !important;
  background: var(--gold) !important;
  color: #17130a !important;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
body.b5c-theme.big5-school .b5c-btn:hover,
body.b5c-theme .b5c-modal .b5c-btn:hover { background: var(--gold-hi) !important; }
body.b5c-theme.big5-school .b5c-btn[disabled] { opacity: 0.6; cursor: progress; }

/* School home */
body.b5c-theme.big5-school .b5c-hero { margin: 0 !important; padding: 0.5rem 0 clamp(40px, 5vw, 64px) !important; border-bottom: 1px solid var(--hair); }
body.b5c-theme.big5-school .b5c-hero h1 { max-width: 20ch; }
body.b5c-theme.big5-school .b5c-hero p { max-width: 40rem; margin: 0 0 1.75rem; font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-section { padding-top: clamp(40px, 5vw, 64px); }
body.b5c-theme.big5-school .b5c-section-head { max-width: 44rem; margin-bottom: 2rem; }
body.b5c-theme.big5-school .b5c-section-head p { margin: 0; }

/* Course cards (school home and My Crypto School) */
body.b5c-theme.big5-school .b5c-grid { gap: 16px; }
@media (min-width: 801px) and (max-width: 1079px) {
  body.b5c-theme.big5-school .b5c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.b5c-theme.big5-school .b5c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 22px 22px 20px !important;
  background: var(--sheet) !important;
  color: var(--ink) !important;
  border: 1px solid var(--hair) !important;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.b5c-theme.big5-school .b5c-card:hover { border-color: #b9bcb1 !important; box-shadow: 0 10px 24px -18px rgba(26, 27, 23, 0.45); }
body.b5c-theme.big5-school .b5c-card.locked { background: #fafaf7 !important; }
body.b5c-theme.big5-school .b5c-card .b5c-level { color: var(--brass) !important; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; }
body.b5c-theme.big5-school .b5c-card h3 { margin: 0; color: var(--ink) !important; font-size: var(--step-1); font-stretch: 106%; line-height: 1.25; }
body.b5c-theme.big5-school .b5c-card p { margin: 0; color: var(--slate) !important; font-size: 0.9375rem; }
body.b5c-theme.big5-school .b5c-card .b5c-meta { margin-top: auto; padding-top: 0.5rem; color: var(--slate) !important; font-size: 0.8125rem; }
body.b5c-theme.big5-school .b5c-card .b5c-link { color: var(--brass) !important; font-size: 0.875rem; font-weight: 650 !important; letter-spacing: 0.02em; text-decoration: none; }
body.b5c-theme.big5-school .b5c-card .b5c-link::after { content: ""; position: absolute; inset: 0; }
body.b5c-theme.big5-school .b5c-card .b5c-link:hover { color: var(--ink) !important; text-decoration: underline; }
body.b5c-theme.big5-school .b5c-progress { height: 6px; margin: 0.25rem 0; overflow: hidden; background: #e4e6de !important; border-radius: 99px; }
body.b5c-theme.big5-school .b5c-progress span { display: block; height: 100%; background: var(--gold) !important; border-radius: inherit; }

/* Access notices */
body.b5c-theme.big5-school .b5c-paywall {
  margin: 24px 0;
  padding: 24px 26px !important;
  background: var(--sheet);
  border: 1px solid var(--hair) !important;
  border-left: 3px solid var(--gold) !important;
  border-radius: 4px;
  color: var(--ink);
}
body.b5c-theme.big5-school .b5c-paywall h2,
body.b5c-theme.big5-school .b5c-paywall h3 { margin: 0.25rem 0 0.5rem; font-size: var(--step-2); }
body.b5c-theme.big5-school .b5c-paywall p { max-width: 40rem; margin: 0 0 1.25rem; }

/* Course page */
body.b5c-theme.big5-school .b5c-course-head { margin-bottom: 8px; padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--hair); }
body.b5c-theme.big5-school .b5c-course-description { max-width: 46rem; color: var(--slate); font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-course-description p { margin: 0 0 0.75em; }
body.b5c-theme.big5-school .b5c-course-stats { color: var(--slate); font-size: 0.9375rem; font-weight: 500; }
body.b5c-theme.big5-school .b5c-lesson-list { margin-top: 24px; padding: 0 4px; background: var(--sheet); border: 1px solid var(--hair); border-radius: 4px; }
body.b5c-theme.big5-school .b5c-lesson-row {
  position: relative;
  display: grid !important;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 0.25rem 1rem !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--hair) !important;
  transition: background-color 0.12s ease;
}
body.b5c-theme.big5-school .b5c-lesson-row:last-of-type { border-bottom: 0 !important; }
body.b5c-theme.big5-school .b5c-lesson-row:not(.is-locked):hover { background: #fafaf6; }
body.b5c-theme.big5-school .b5c-lesson-row .status {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--acacia);
  font-size: 0.8125rem;
  line-height: 1;
}
body.b5c-theme.big5-school .b5c-lesson-info strong { color: var(--ink); font-weight: 600; }
body.b5c-theme.big5-school .b5c-lesson-info small { color: var(--slate); font-size: 0.8125rem; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-lesson-row.is-locked .b5c-lesson-info strong { color: var(--slate); }
body.b5c-theme.big5-school .b5c-lesson-row > a { color: var(--brass); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
body.b5c-theme.big5-school .b5c-lesson-row > a::after { content: ""; position: absolute; inset: 0; }
body.b5c-theme.big5-school .b5c-lesson-row > a:hover { text-decoration: underline; }
body.b5c-theme.big5-school .b5c-lesson-row .muted { color: var(--slate); font-size: 0.75rem; letter-spacing: 0.06em; }
@media (max-width: 599px) {
  body.b5c-theme.big5-school .b5c-lesson-row { grid-template-columns: 2rem minmax(0, 1fr); padding: 14px 12px !important; }
  body.b5c-theme.big5-school .b5c-lesson-row > a,
  body.b5c-theme.big5-school .b5c-lesson-row .muted { grid-column: 2; }
}

/* Lesson */
body.b5c-theme.big5-school .b5c-reading { max-width: 45rem; margin: 0 auto; }
body.b5c-theme.big5-school .b5c-reading h1 { max-width: none; }
body.b5c-theme.big5-school .b5c-breadcrumb { margin-bottom: 1.5rem !important; font-size: 0.9375rem; }
body.b5c-theme.big5-school .b5c-breadcrumb a { color: var(--brass) !important; font-weight: 600 !important; text-decoration: none; }
body.b5c-theme.big5-school .b5c-breadcrumb a:hover { color: var(--ink) !important; text-decoration: underline; }
body.b5c-theme.big5-school .b5c-learning-time {
  display: inline-flex !important;
  margin: 0.5rem 0 2.25rem !important;
  padding: 0.45rem 0.8rem;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--slate);
  font-size: 0.875rem;
}
body.b5c-theme.big5-school .b5c-learning-time strong { color: var(--ink); font-weight: 600; }
body.b5c-theme.big5-school .b5c-content {
  color: #262722;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem) !important;
  font-optical-sizing: auto;
  line-height: 1.72 !important;
}
body.b5c-theme.big5-school .b5c-content p { margin: 0 0 1.15em; color: #262722; }
body.b5c-theme.big5-school .b5c-content ul,
body.b5c-theme.big5-school .b5c-content ol { margin: 0 0 1.15em; padding-left: 1.3em; }
body.b5c-theme.big5-school .b5c-content li { margin: 0.35em 0; }
body.b5c-theme.big5-school .b5c-content li::marker { color: var(--brass); }
body.b5c-theme.big5-school .b5c-content h2,
body.b5c-theme.big5-school .b5c-content h3,
body.b5c-theme.big5-school .b5c-content h4 { color: var(--ink); font-family: var(--font-sans); font-stretch: 108%; line-height: 1.2; }
body.b5c-theme.big5-school .b5c-content h2 { margin: 2.2em 0 0.6em; font-size: var(--step-2); }
body.b5c-theme.big5-school .b5c-content > :first-child { margin-top: 0; }
body.b5c-theme.big5-school .b5c-content h3 { margin: 2em 0 0.5em; font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-content strong { color: var(--ink); }
body.b5c-theme.big5-school .b5c-content a { color: var(--ink); text-decoration-color: var(--brass); }
body.b5c-theme.big5-school .b5c-content blockquote { margin: 1.5em 0; padding: 0.75em 1.25em; background: var(--sheet); border-left: 3px solid var(--gold); color: var(--ink); }
body.b5c-theme.big5-school .b5c-content table { display: block; width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.9375rem; }
body.b5c-theme.big5-school .b5c-content th,
body.b5c-theme.big5-school .b5c-content td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
body.b5c-theme.big5-school .b5c-lesson-visual { border-radius: 6px; }
body.b5c-theme.big5-school .b5c-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.9375rem;
}

/* Knowledge checks and level exams */
body.b5c-theme.big5-school .b5c-lesson-assessment,
body.b5c-theme.big5-school .b5c-exam-gate {
  margin: 48px 0 0 !important;
  padding: clamp(22px, 3vw, 32px) !important;
  background: var(--sheet) !important;
  border: 1px solid var(--hair) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 4px;
  color: var(--ink);
}
body.b5c-theme.big5-school .b5c-lesson-assessment h2,
body.b5c-theme.big5-school .b5c-exam-gate h2 { margin: 0.35rem 0 0.5rem !important; font-size: var(--step-2); }
body.b5c-theme.big5-school .b5c-lesson-assessment p,
body.b5c-theme.big5-school .b5c-exam-gate p { color: var(--slate); opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-inline-quiz { margin-top: 1.5rem; }
body.b5c-theme .b5c-question { margin: 0; padding: 22px 0 !important; border: 0; border-top: 1px solid var(--hair) !important; }
body.b5c-theme .b5c-question legend { padding: 0 0 0.35rem !important; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
body.b5c-theme .b5c-question label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.4rem 0;
  padding: 0.75rem 0.9rem !important;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
body.b5c-theme .b5c-question label:hover { border-color: #b5b8ad; }
body.b5c-theme .b5c-question label:has(input:checked) { border-color: var(--brass); background: #fbf6ea; }
body.b5c-theme .b5c-question label:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
body.b5c-theme .b5c-question input[type="radio"] { flex: none; width: 1.05rem; height: 1.05rem; margin: 0.2rem 0 0 !important; accent-color: var(--brass); }
body.b5c-theme .b5c-question input[type="radio"]:focus-visible { outline: none; }
body.b5c-theme .b5c-pass {
  padding: 16px 18px !important;
  background: #eef5f0 !important;
  border: 1px solid rgba(46, 107, 78, 0.35) !important;
  border-left: 4px solid var(--acacia) !important;
  border-radius: 2px;
  color: var(--ink) !important;
}
body.b5c-theme .b5c-fail {
  padding: 16px 18px !important;
  background: #fbf0ee !important;
  border: 1px solid rgba(163, 54, 42, 0.3) !important;
  border-left: 4px solid var(--brick) !important;
  border-radius: 2px;
  color: var(--ink) !important;
}
body.b5c-theme.big5-school .b5c-complete.done {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.7rem 1.1rem;
  background: #eef5f0;
  border: 1px solid rgba(46, 107, 78, 0.45) !important;
  border-radius: 2px;
  color: var(--acacia);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

/* My Crypto School, Student Profile, Certificates */
body.b5c-theme.big5-school .b5c-dashboard-head { margin: 0 0 28px !important; padding-bottom: 24px; border-bottom: 1px solid var(--hair); }
body.b5c-theme.big5-school .b5c-dashboard-head h1 { font-size: var(--step-4); }
body.b5c-theme.big5-school .b5c-dashboard-head p { color: var(--slate); opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-profile-card { background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: 4px; color: var(--ink) !important; }
body.b5c-theme.big5-school .b5c-profile-card strong { color: var(--ink) !important; font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-profile-card span,
body.b5c-theme.big5-school .b5c-profile-card .b5c-profile-card-meta { color: var(--slate) !important; }
body.b5c-theme.big5-school .b5c-profile-card a,
body.b5c-theme.big5-school .b5c-profile-card .b5c-link { color: var(--brass) !important; font-weight: 650 !important; text-decoration: none; }
body.b5c-theme.big5-school .b5c-profile-card .b5c-link:hover { color: var(--ink) !important; text-decoration: underline; }
body.b5c-theme.big5-school .b5c-profile-card .b5c-profile-label,
body.b5c-theme.big5-school .b5c-profile-label { color: var(--brass) !important; font-weight: 600; }
body.b5c-theme.big5-school .b5c-status-pill { border-color: var(--hair) !important; color: var(--ink) !important; font-weight: 600; }
body.b5c-theme.big5-school .b5c-status-pill.active { background: #eef5f0; border-color: rgba(46, 107, 78, 0.45) !important; color: var(--acacia) !important; }
body.b5c-theme.big5-school .b5c-status-pill.inactive { background: #fbf3f1; border-color: #d9c3bf !important; color: #7a3f37 !important; }
body.b5c-theme.big5-school .b5c-profile-panel { background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: 4px !important; color: var(--ink) !important; }
body.b5c-theme.big5-school .b5c-panel-heading span { color: var(--brass) !important; font-weight: 600; }
body.b5c-theme.big5-school .b5c-panel-heading strong { color: var(--ink) !important; font-size: var(--step-2); font-stretch: 108%; }
body.b5c-theme.big5-school .b5c-profile-form label { color: var(--ink) !important; font-size: 0.875rem; font-weight: 600; }
body.b5c-theme.big5-school .b5c-profile-form input,
body.b5c-theme.big5-school .b5c-form input:not([type="checkbox"]) {
  padding: 0.75rem 0.85rem !important;
  background: var(--sheet) !important;
  color: var(--ink) !important;
  border: 1px solid #8a8e83 !important;
  border-radius: 2px !important;
  font: inherit;
  font-weight: 400;
}
body.b5c-theme.big5-school .b5c-profile-form input::placeholder,
body.b5c-theme.big5-school .b5c-form input::placeholder { color: #6f7268 !important; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-profile-form input:focus-visible,
body.b5c-theme.big5-school .b5c-form input:focus-visible { border-color: var(--brass) !important; outline: 3px solid rgba(135, 91, 0, 0.35); outline-offset: 1px; }
body.b5c-theme.big5-school .b5c-form-note { color: var(--slate) !important; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-detail-list > div { border-bottom: 1px solid var(--hair) !important; }
body.b5c-theme.big5-school .b5c-detail-list span { color: var(--slate) !important; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-detail-list strong { color: var(--ink) !important; }
body.b5c-theme.big5-school .b5c-progress-item span { color: var(--slate) !important; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-progress-item strong,
body.b5c-theme.big5-school .b5c-progress-item b { color: var(--ink) !important; }
body.b5c-theme.big5-school .b5c-progress-meter { background: #e4e6de !important; }
body.b5c-theme.big5-school .b5c-progress-meter > div { background: var(--gold) !important; }
body.b5c-theme.big5-school .b5c-empty { background: var(--sheet); border: 1px dashed #c5c8be !important; border-radius: 4px; color: var(--slate) !important; opacity: 1 !important; }
body.b5c-theme.big5-school .b5c-cert { background: var(--sheet) !important; border: 1px solid var(--hair) !important; border-radius: 4px; color: var(--ink); }
body.b5c-theme.big5-school .b5c-cert-mark { background: #fbf6ea; border-color: var(--gold) !important; color: var(--brass); }
body.b5c-theme.big5-school .b5c-cert h2,
body.b5c-theme.big5-school .b5c-cert h3 { color: var(--ink); font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-cert p { color: var(--slate); opacity: 1 !important; }

/* Registration */
body.b5c-theme.big5-school .b5c-auth > p { font-size: var(--step-1); }
body.b5c-theme.big5-school .b5c-form {
  max-width: none;
  gap: 1rem !important;
  margin-top: 2rem;
  padding: clamp(20px, 3vw, 32px);
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 4px;
}
body.b5c-theme.big5-school .b5c-form label { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
body.b5c-theme.big5-school .b5c-form label.check { display: flex !important; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
body.b5c-theme.big5-school .b5c-form label.check input { margin-top: 0.25rem; accent-color: var(--brass); }
body.b5c-theme.big5-school .b5c-form .b5c-btn { justify-self: start; }
body.b5c-theme.big5-school .b5c-error { margin: 1rem 0; padding: 12px 16px; background: #fbf0ee; border: 1px solid rgba(163, 54, 42, 0.3); border-left: 4px solid var(--brick); color: var(--ink); }
.school-aside { max-width: calc(40rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); color: var(--slate); }
.school-aside a { color: var(--ink); font-weight: 600; text-decoration-color: var(--brass); }

/* Premium plans and assessment windows (the plugin adds these to the page body) */
body.b5c-theme .b5c-modal-backdrop { background: rgba(15, 15, 13, 0.72) !important; }
body.b5c-theme .b5c-modal {
  position: relative;
  padding: clamp(24px, 4vw, 36px) !important;
  background: var(--sheet) !important;
  color: var(--ink) !important;
  border: 1px solid var(--hair) !important;
  border-radius: 6px !important;
  font-family: var(--font-sans);
}
body.b5c-theme .b5c-modal :focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
body.b5c-theme .b5c-modal h2 { margin: 0.35rem 0 0.5rem; color: var(--ink); font-size: var(--step-3); }
body.b5c-theme .b5c-modal p { color: var(--slate); }
body.b5c-theme .b5c-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
body.b5c-theme .b5c-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 20px !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1px solid var(--hair) !important;
  border-radius: 4px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.b5c-theme .b5c-plan:hover { background: #fbf6ea !important; border-color: var(--brass) !important; }
body.b5c-theme .b5c-plan[disabled] { opacity: 0.6; cursor: progress; }
body.b5c-theme .b5c-plan strong { font-size: var(--step-2); font-stretch: 110%; }
body.b5c-theme .b5c-plan span { color: var(--slate); font-size: 0.875rem; }
body.b5c-theme .b5c-small { color: var(--slate); font-size: 0.8125rem; }

/* Previous and next lesson (theme) */
.lesson-nav { max-width: calc(45rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.lesson-nav__position { margin: 0 0 1rem; color: var(--slate); font-size: 0.9375rem; }
.lesson-nav__position a { color: var(--ink); font-weight: 600; text-decoration-color: var(--brass); }
.lesson-nav__links { display: grid; gap: 12px; }
@media (min-width: 600px) {
  .lesson-nav__links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lesson-nav__link--next { grid-column: 2; text-align: right; }
}
.lesson-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 16px 18px;
  background: var(--sheet);
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.12s ease;
}
.lesson-nav__link:hover { border-color: var(--brass); color: var(--ink); }
.lesson-nav__label { color: var(--brass); font-size: 0.8125rem; font-weight: 600; }
.lesson-nav__title { font-weight: 600; line-height: 1.35; }
