/*
  Academy programme: the programme timeline, week pages and session read mode.
  Loaded only on Academy pages, after site.css; uses its tokens and shared components
  (.kicker, .chips, .button, .reading-layout, .lesson-card).
*/

/* Shared bits ------------------------------------------------------------ */
.back-link {
  display: block;
  width: fit-content;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.back-link:hover {
  color: var(--ink);
}
.preview-notice {
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
}
.preview-badge {
  color: #8a5a00;
}
.empty-note {
  color: var(--muted);
}
.session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}
.week-session-intro .session-actions {
  margin-top: 0;
}
.session-actions > span {
  font-size: 13px;
  color: var(--muted);
}

/* Programme (Academy index) ---------------------------------------------- */
.programme-section {
  background: #fff;
}
.programme-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.programme-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 26px 24px;
}
.programme-stats > div + div {
  border-left: 1px solid var(--line);
}
.programme-stats dt {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.programme-stats dd {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
}
/* MVPAI: the method section on the Academy page, and the route on week and session pages */
.mvpai-section {
  background: var(--paper);
}
.mvpai-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.mvpai-phases > li {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.mvpai-letter {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 28px;
  font-weight: 800;
}
.mvpai-phases h3 {
  margin: 18px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.mvpai-phases p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.mvpai-phases ul {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.mvpai-phases ul span {
  display: inline-block;
  min-width: 28px;
  font: 600 12px var(--mono, monospace);
  color: var(--muted);
}
.mvpai-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 0;
}
.mvpai-gates > div {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #f3f5fa;
}
.mvpai-gates dt {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}
.mvpai-gates dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.mvpai-route {
  margin-top: 26px;
}
.mvpai-route ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mvpai-route li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.mvpai-route li b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 12px;
}
.mvpai-route li.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.mvpai-route li.is-current b {
  background: var(--yellow);
}
.mvpai-route p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.programme-week-route {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.programme-rhythm {
  margin: -14px 0 44px;
}
.programme-weeks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.programme-weeks li {
  border-bottom: 1px solid var(--line);
}
.programme-week {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 18px;
  transition: background 0.2s var(--ease-out);
}
a.programme-week:hover {
  background: var(--paper);
}
.programme-week-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--blue);
}
.programme-week h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.035em;
}
.programme-week p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.programme-week b {
  font-size: 13px;
  white-space: nowrap;
}
.programme-week.is-upcoming .programme-week-number,
.programme-week.is-upcoming h3 {
  color: #9aa2ae;
}
.programme-week .coming-soon {
  color: var(--muted);
  font-weight: 700;
}
.programme-week-lab {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -12px 0 24px 126px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.programme-week-lab span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.programme-week-lab:hover,
.programme-week-lab:focus-visible {
  border-color: var(--ink);
  background: var(--paper);
}

/* Week page --------------------------------------------------------------- */
.week-sessions .shell {
  display: grid;
  gap: 28px;
}
.week-session {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.07);
}
.week-session h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 14px 0 16px;
}
.week-session-intro p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}
.week-session-outcomes {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 48px);
}

/* Session read mode ------------------------------------------------------ */
.session-hero h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
}
.session-body .reading-layout {
  grid-template-columns: 240px minmax(0, 780px);
}
.session-outline {
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.session-outline ol {
  margin: 0;
  padding: 0 0 0 1.4em;
  display: grid;
  gap: 8px;
  color: #8a94a3;
  font-size: 13px;
  line-height: 1.35;
}
.session-outline a {
  color: #37445a;
}
.session-outline a:hover {
  color: var(--blue);
}
.session-slides {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.slide-section {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 52px);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.06);
  scroll-margin-top: 110px;
}
.slide-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.slide-number {
  font-size: 11px;
  font-weight: 800;
  color: #a0a7b2;
  letter-spacing: 0.1em;
}
.slide-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 12px 0 22px;
}
.slide-section ul,
.slide-section ol {
  margin: 0;
}
.slide-section li {
  line-height: 1.55;
}
.slide-lede {
  font-size: 18px;
  line-height: 1.6;
  color: #37445a;
}
.slide-subhead {
  margin: 28px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.slide-takeaway {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #eef0ff;
  color: #1f2a6b;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
}
.slide-output {
  margin: 24px 0 0;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Lists with a marker: outcomes, checks, gates */
.slide-checklist,
.slide-gate {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.slide-checklist li,
.slide-gate li {
  position: relative;
  padding-left: 32px;
}
.slide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a1020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.slide-gate li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 2px solid var(--ink);
}
.slide-gate li {
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.slide-gate li::before {
  left: 16px;
  top: 16px;
}
.slide-questions {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

/* Split: before / after */
.slide-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.slide-compare > div {
  padding: 22px;
  border-radius: 18px;
}
.slide-compare h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.slide-compare ul {
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.compare-before {
  background: #f3f1ec;
  color: #4a5262;
}
.compare-after {
  background: var(--ink);
  color: #fff;
}

/* Case: starting point -> reframe */
.slide-case {
  display: grid;
  gap: 12px;
}
.slide-case > div {
  padding: 20px 22px;
  border-radius: 18px;
}
.slide-case span {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
}
.slide-case p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.case-before {
  background: #f3f1ec;
  color: #5a6170;
}
.case-after {
  background: #e3fbf1;
  color: #0b3d2b;
}

/* Framework steps and lifecycle stages */
.slide-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.slide-steps li {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.slide-steps b {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.slide-cycle {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.slide-cycle li {
  padding: 16px;
  border-radius: 16px;
  background: #f4f1ff;
  display: grid;
  gap: 4px;
}
.slide-cycle li:nth-child(4n + 2) {
  background: #eaf7ff;
}
.slide-cycle li:nth-child(4n + 3) {
  background: #e9fbf3;
}
.slide-cycle li:nth-child(4n + 4) {
  background: #fff5e8;
}
.slide-cycle b {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.slide-cycle span {
  font-size: 14px;
  color: #4a5262;
}

/* Activity and Claude exercises */
.slide-tasks {
  padding-left: 1.3em;
  display: grid;
  gap: 10px;
}
.slide-deliverable {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff4a8;
}
.slide-deliverable p {
  margin: 6px 0 0;
}
.claude-prompt {
  margin: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #e6eaf2;
  padding: 20px 22px;
}
.claude-prompt .kicker {
  color: #aab7ce;
}
.claude-prompt pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Previous / next */
.session-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.session-pager a {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.session-pager a:hover {
  border-color: var(--ink);
}
.session-pager .is-next {
  grid-column: 2;
  text-align: right;
}
.session-pager b {
  font-size: 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .mvpai-phases,
  .mvpai-gates {
    grid-template-columns: minmax(0, 1fr);
  }
  .programme-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .programme-stats > div:nth-child(3) {
    border-left: 0;
  }
  .programme-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .week-session {
    grid-template-columns: 1fr;
  }
  .week-session-outcomes {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
  }
  .slide-cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .session-body .reading-layout {
    grid-template-columns: 1fr;
  }
  /* The slide list is long; on small screens the slides themselves are the outline. */
  .session-outline {
    display: none;
  }
}
@media (max-width: 600px) {
  .programme-week {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 4px;
  }
  .programme-week > b {
    grid-column: 2;
  }
  .programme-week-lab {
    margin: -8px 4px 20px 72px;
    border-radius: 18px;
  }
  .programme-week-number {
    font-size: 34px;
  }
  .slide-compare,
  .session-pager {
    grid-template-columns: 1fr;
  }
  .session-pager .is-next {
    grid-column: auto;
  }
  .slide-steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Pricing ---------------------------------------------------------------- */
.pricing-section {
  padding-top: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.pricing-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.pricing-card h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.pricing-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-card.is-featured .pricing-badge {
  background: var(--yellow);
  border-color: var(--yellow);
}
.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}
.pricing-price strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(52px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-price span,
.pricing-note {
  color: var(--muted);
}
.pricing-price span {
  font-weight: 700;
}
.pricing-note {
  margin: 0;
}
.pricing-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}
.pricing-list li {
  position: relative;
  padding-left: 26px;
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}
.pricing-card .button {
  width: fit-content;
  margin-top: auto;
}
.pricing-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}
.pricing-facts div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pricing-facts dt {
  font-weight: 800;
  margin-bottom: 6px;
}
.pricing-facts dd {
  margin: 0;
  color: var(--muted);
}
.pricing-footnote {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.pricing-footnote a,
.programme-pricing a {
  font-weight: 700;
}
.programme-pricing {
  margin-top: 36px;
}
.pricing-addon {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink2);
  line-height: 1.6;
}
.pricing-addon a {
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .pricing-grid,
  .pricing-facts {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 26px;
  }
}

/* Copyright and course terms ------------------------------------------- */
.course-copyright {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.course-copyright a {
  font-weight: 700;
  color: var(--ink);
}
.terms-section {
  padding-top: 0;
}
.terms h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.terms p,
.terms li {
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.65;
}
.terms ul {
  padding-left: 22px;
}
.terms a {
  font-weight: 700;
  text-decoration: underline;
}
.terms-updated {
  color: var(--muted);
  font-size: 14px;
}

/* Lab sheet --------------------------------------------------------------- */
.lab-section {
  padding-top: 0;
}
.lab h2 {
  margin: 56px 0 14px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.lab h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 40px 0 12px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.lab-minutes {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.lab p,
.lab li {
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.65;
}
.lab ul,
.lab ol {
  padding-left: 22px;
}
.lab a {
  font-weight: 700;
  text-decoration: underline;
}
.lab code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--paper);
  font: 0.9em ui-monospace, SFMono-Regular, Consolas, monospace;
}
.lab-prompt {
  margin: 18px 0;
}
.lab-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lab-copy {
  padding: 6px 12px;
  border: 1px solid #3a4560;
  border-radius: 999px;
  background: transparent;
  color: #e6eaf2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.lab-copy:hover,
.lab-copy:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}
.lab-check {
  margin: 14px 0 22px;
  padding: 14px 18px;
  border-left: 4px solid var(--ink);
  border-radius: 0 14px 14px 0;
  background: var(--paper);
}
.lab-table {
  margin: 18px 0;
  overflow-x: auto;
}
.lab table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.lab th,
.lab td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.lab thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.lab tbody th {
  font-weight: 700;
  white-space: nowrap;
}
.lab-rule {
  margin: 56px 0 0;
  border: 0;
}
.lab-code {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--paper);
  white-space: pre-wrap;
}
.lab-instructor {
  margin-top: 56px;
  padding: 22px 24px;
  border: 2px dashed var(--line);
  border-radius: 16px;
}
.lab-instructor h2 {
  margin-top: 0;
  border: 0;
}
@media (max-width: 600px) {
  .lab tbody th {
    white-space: normal;
  }
}

/* Graduation -------------------------------------------------------------- */
.graduation table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.graduation th,
.graduation td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.graduation thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
}
.graduation-points {
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.graduation .programme-pricing {
  margin-top: 40px;
}

/* Lock panel: the end of a preview (academy/access.py) ------------------- */
.lock-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin: 40px 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--ink);
  color: #e6eaf2;
}
.lock-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}
.lock-panel p {
  margin: 0;
  max-width: 620px;
  color: #c3cad8;
  line-height: 1.6;
}
.lock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}
.lock-icon svg {
  width: 22px;
  height: 22px;
}
.lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.lock-panel .button-dark {
  background: var(--yellow);
  color: var(--ink);
}
.lock-panel .button-outline {
  border-color: #3a4560;
  color: #fff;
}
.session-outline .is-locked a {
  color: var(--muted);
}
.unlock-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.unlock-form input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 600 18px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.unlock-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-weight: 600;
}
.academy-messages {
  padding-top: 18px;
}

/* MVPAI in a Week ------------------------------------------------------- */
.in-a-week-callout {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 36px;
  padding: 28px 32px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}
.in-a-week-callout h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.in-a-week-callout p {
  margin: 0;
  max-width: 680px;
  color: var(--ink2);
  line-height: 1.6;
}
.terms .programme-weeks {
  padding-left: 0;
}
.terms .programme-weeks a,
.terms .in-a-week-pricing a {
  font-weight: inherit;
  text-decoration: none;
}
.terms .programme-weeks p {
  font-size: 14px;
}
.in-a-week-pricing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.in-a-week-pricing .pricing-card {
  padding: 28px;
}
@media (max-width: 800px) {
  .in-a-week-pricing {
    grid-template-columns: 1fr;
  }
}

/* Courses on the Academy page: each course leads, its lessons fold away --- */
.courses {
  display: grid;
  gap: 28px;
}
.course {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.course-head {
  display: grid;
  gap: 16px;
  padding: 36px 40px 28px;
}
.course-head h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.course-lede {
  margin: 0;
  max-width: 760px;
  color: var(--ink2);
  font-size: 18px;
  line-height: 1.6;
}
.course-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.course-facts div {
  padding: 16px 0;
}
.course-facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.course-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.course-facts dd {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.course-rhythm {
  margin: 0;
  color: var(--muted);
}
.course .programme-rhythm {
  margin: 0;
}
.course-price {
  margin: 0;
  color: var(--ink2);
}
.course-price strong {
  font-size: 22px;
  color: var(--ink);
}
.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.course-lessons {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.course-lessons summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
}
.course-lessons summary::-webkit-details-marker {
  display: none;
}
.course-lessons summary small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.course-lessons summary:hover .course-toggle,
.course-lessons summary:focus-visible .course-toggle {
  background: var(--ink);
  color: #fff;
}
.course-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s;
}
.course-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.course-lessons[open] .course-toggle {
  transform: rotate(180deg);
}
.course-lessons .programme-weeks {
  margin: 0 40px 28px;
  background: var(--white);
}
@media (max-width: 800px) {
  .course-head {
    padding: 26px 20px 22px;
  }
  .course-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .course-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .course-lessons summary {
    padding: 18px 20px;
  }
  .course-lessons .programme-weeks {
    margin: 0 12px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .course-toggle {
    transition: none;
  }
}

/* Build with AI: First Steps -------------------------------------------- */
.course-free {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.course-free .course-head {
  background: #fff8d6;
}
.free-badge {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Facilitator guide: a premium page for charities ----------------------- */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background: var(--ink);
  color: #e9edf6;
}
.guide-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -55% 40%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(83, 104, 255, 0.45), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(255, 215, 90, 0.18), transparent);
  pointer-events: none;
}
.guide-hero .shell {
  position: relative;
  display: grid;
  gap: 22px;
  justify-items: start;
}
.guide-hero .back-link {
  color: #b6bfd2;
}
.guide-kicker {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.guide-hero h1 {
  margin: 0;
  max-width: 980px;
  color: #fff;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.guide-hero h1 em {
  color: var(--yellow);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.guide-lede {
  margin: 0;
  max-width: 720px;
  color: #c9d0de;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}
.guide-lede strong {
  color: #fff;
}
.guide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.guide-badges li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef1f8;
  font-size: 14px;
  font-weight: 600;
}
.guide-badges li::before {
  content: "\2713";
  margin-right: 8px;
  color: var(--mint);
  font-weight: 800;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.guide-button-primary {
  border: 0;
  background: var(--yellow);
  color: var(--ink);
}
.guide-button-primary:hover,
.guide-button-primary:focus-visible {
  background: #fff;
}
.guide-button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.guide-button-ghost:hover,
.guide-button-ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.guide-facts {
  position: relative;
  margin-top: -40px;
}
.guide-facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guide-facts dl > div {
  padding: 24px 26px;
}
.guide-facts dl > div + div {
  border-left: 1px solid var(--line);
}
.guide-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-facts dd {
  margin: 6px 0 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.guide-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-kit {
  padding: 76px 0 24px;
}
.guide-kit h2 {
  margin: 10px 0 28px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}
.guide-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.guide-kit-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s;
}
.guide-kit-card:hover,
.guide-kit-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.guide-kit-card h3 {
  margin: 6px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.guide-kit-card p {
  margin: 0;
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.55;
}
.guide-kit-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper);
}
.guide-kit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-main {
  padding: 48px 0 40px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}
.guide-toc > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guide-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.guide-toc li a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.35;
}
.guide-toc li a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font: 600 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.guide-toc li a:hover,
.guide-toc li a[aria-current] {
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}
.guide-toc li a[aria-current]::before {
  color: var(--blue);
}
.guide-toc-cta {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.guide-body {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.guide-section {
  position: relative;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  scroll-margin-top: 96px;
}
.lab .guide-section h2 {
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.035em;
}
.guide-step {
  color: var(--blue);
  font: 600 13px ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}
.guide-section > *:last-child {
  margin-bottom: 0;
}
.guide-section.is-glance {
  background: var(--paper);
}
.guide-section.is-safeguarding {
  border: 0;
  background: #fff6d6;
  box-shadow: inset 6px 0 0 var(--yellow);
}
.guide-section.is-safeguarding .guide-step {
  color: #8a6500;
}
.guide-section.is-safeguarding li {
  margin-bottom: 8px;
}
.guide-section.is-handout {
  background: linear-gradient(180deg, var(--paper), var(--white) 220px);
}
.guide-section-tools {
  margin: 0 0 6px;
}
.guide-section.is-licence {
  border-color: var(--ink);
}
.guide-credit {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin: 22px 0 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--paper);
}
.guide-credit figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-credit p {
  margin: 0;
  color: var(--ink);
  font: 500 15px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.guide-cta {
  margin: 40px 0 0;
  padding: 72px 0;
  background: var(--ink);
  color: #c9d0de;
  text-align: center;
}
.guide-cta .shell {
  display: grid;
  gap: 16px;
  justify-items: center;
}
.guide-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 54px);
  letter-spacing: -0.05em;
}
.guide-cta p {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.6;
}
.guide-cta .guide-actions {
  justify-content: center;
}

@media (max-width: 1100px) {
  .guide-kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .guide-toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
  }
  .guide-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-facts dl > div:nth-child(3) {
    border-left: 0;
  }
  .guide-facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .guide-hero {
    padding: 44px 0 76px;
  }
  .guide-kit-grid {
    grid-template-columns: 1fr;
  }
  .guide-section {
    padding: 24px 20px;
  }
  .guide-facts dl > div {
    padding: 18px;
  }
  .guide-facts dd {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-kit-card {
    transition: none;
  }
}
@media print {
  .guide-page .guide-hero,
  .guide-page .guide-kit,
  .guide-page .guide-toc,
  .guide-page .guide-cta,
  .guide-page .guide-facts,
  .guide-page .lab-copy {
    display: none !important;
  }
  .guide-page .guide-layout {
    display: block;
  }
  .guide-page .guide-section {
    margin-bottom: 18px;
    border: 1px solid #999;
    box-shadow: none;
    break-inside: avoid-page;
  }
  .guide-page .lab-prompt {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }
  .guide-page .lab-prompt pre {
    font-size: 15px;
  }
  .print-handout .guide-section:not(.is-handout) {
    display: none !important;
  }
  .print-handout .guide-section.is-handout {
    border: 0;
    font-size: 18px;
  }
}

/* Certificate of Participation ------------------------------------------- */
/* The certificate is sized in cqw (1% of its own width), so it looks the same on a phone, a laptop
   and printed A4 landscape. */
.certificate-section {
  padding-top: 40px;
}
.certificate-intro {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 40px;
}
.certificate-intro h1 {
  margin: 6px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.certificate-intro h1 em {
  color: var(--blue);
  font-family: var(--font-serif);
  font-weight: 400;
}
.certificate-intro p {
  margin: 0;
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.6;
}
.certificate-fields {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 14px;
}
.certificate-fields label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.certificate-fields small {
  color: var(--muted);
  font-weight: 500;
}
.certificate-fields input {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-weight: 500;
}
.certificate-fields input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.certificate-actions span {
  color: var(--muted);
  font-size: 14px;
}

.cert-stage {
  max-width: 1120px;
  margin: 0 auto;
}
.cert {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 297 / 210;
  padding: 2.4cqw;
  border-radius: 0.6cqw;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(255, 215, 90, 0.28) 0 0.08cqw, transparent 0.08cqw 0.55cqw),
    repeating-radial-gradient(circle at 100% 100%, rgba(155, 217, 255, 0.24) 0 0.08cqw, transparent 0.08cqw 0.55cqw),
    linear-gradient(135deg, #0a1020, #1d2760 55%, #0a1020);
  box-shadow: 0 40px 90px rgba(10, 16, 32, 0.28), 0 6px 18px rgba(10, 16, 32, 0.18);
  color: #0a1020;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.cert-paper {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140'%3E%3Ctext x='10' y='80' transform='rotate(-18 150 70)' font-family='Inter,Arial,sans-serif' font-size='13' font-weight='800' letter-spacing='5' fill='%230a1020' fill-opacity='0.045'%3EMVP STUDIOS ACADEMY%3C/text%3E%3C/svg%3E"),
    url("../images/grain.eea6c2a91296.png"),
    radial-gradient(ellipse at 50% 35%, #fffdf6, #fbf3df 70%, #f3e6c4);
  background-size: 24cqw auto, 128px, auto;
  box-shadow:
    inset 0 0 0 0.22cqw #c9962f,
    inset 0 0 0 0.62cqw #fbf3df,
    inset 0 0 0 0.74cqw #0a1020,
    inset 0 0 4cqw rgba(201, 150, 47, 0.18);
}
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46cqw;
  transform: translate(-50%, -54%);
  fill: none;
  stroke: #c9962f;
  stroke-width: 0.6;
  opacity: 0.16;
}
.cert-corner {
  position: absolute;
  width: 6.5cqw;
  fill: none;
  stroke: #c9962f;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.cert-corner circle {
  fill: #c9962f;
  stroke: none;
}
.cert-corner.is-tl {
  top: 1.4cqw;
  left: 1.4cqw;
}
.cert-corner.is-tr {
  top: 1.4cqw;
  right: 1.4cqw;
  transform: scaleX(-1);
}
.cert-corner.is-bl {
  bottom: 1.4cqw;
  left: 1.4cqw;
  transform: scaleY(-1);
}
.cert-corner.is-br {
  right: 1.4cqw;
  bottom: 1.4cqw;
  transform: scale(-1);
}
.cert-content {
  position: absolute;
  inset: 4.2cqw 8cqw 2.6cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cert-content p {
  margin: 0;
}
.cert-org {
  font-size: 1.25cqw;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.cert-org b {
  font-weight: 900;
}
.cert-title {
  margin: 1.4cqw 0 0;
  font-family: var(--font-serif);
  font-size: 6.2cqw;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.cert-title span {
  display: block;
  margin-top: 0.8cqw;
  color: #8a6418;
  font-family: var(--font-sans);
  font-size: 1.45cqw;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.cert-line {
  margin-top: 1.9cqw !important;
  color: #3a4256;
  font-family: var(--font-serif);
  font-size: 1.75cqw;
  font-style: italic;
}
.cert-name {
  min-width: 50cqw;
  margin-top: 0.6cqw !important;
  padding: 0 2cqw 0.6cqw;
  border-bottom: 0.18cqw solid #c9962f;
  color: #0a1020;
  font-family: var(--font-serif);
  font-size: 5.4cqw;
  font-style: italic;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.cert-course {
  margin-top: 0.7cqw !important;
  color: #2b3bd1;
  font-size: 2.5cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cert-body {
  max-width: 64cqw;
  margin-top: 0.9cqw !important;
  color: #3a4256;
  font-size: 1.3cqw;
  line-height: 1.55;
}
.cert-made {
  margin-top: 0.7cqw !important;
  color: #0a1020;
  font-size: 1.35cqw;
  font-weight: 700;
}
.cert-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 4cqw;
  width: 100%;
  margin-top: auto;
}
.cert-sign {
  display: grid;
  gap: 0.6cqw;
  padding-bottom: 1.2cqw;
}
.cert-sign-value {
  min-height: 2.6cqw;
  padding-bottom: 0.5cqw;
  border-bottom: 0.12cqw solid #0a1020;
  font-size: 1.6cqw;
  font-weight: 700;
}
.cert-sign-value.is-signature {
  color: #1d2760;
  font-family: var(--font-hand);
  font-size: 2.7cqw;
  font-weight: 700;
  line-height: 1;
}
.cert-sign-label {
  color: #5e6879;
  font-size: 0.95cqw;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cert-emblem {
  width: 14cqw;
  margin-bottom: -1.4cqw;
  filter: drop-shadow(0 0.5cqw 0.8cqw rgba(10, 16, 32, 0.25));
}
.cert-emblem .ribbon-pink {
  fill: #ff7fb8;
}
.cert-emblem .ribbon-blue {
  fill: #5368ff;
}
.cert-emblem .emblem-ring {
  fill: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.cert-note {
  margin-top: 1.4cqw !important;
  color: #7a8090;
  font-size: 0.85cqw;
}

@media (max-width: 800px) {
  .certificate-fields {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }
  .certificate-page .site-nav,
  .certificate-page .site-footer,
  .certificate-page .mobile-drawer,
  .certificate-page .skip-link,
  .certificate-page .print-hide {
    display: none !important;
  }
  .certificate-page,
  .certificate-page main {
    margin: 0;
    padding: 0;
    background: #fff;
  }
  .certificate-page .certificate-section,
  .certificate-page .certificate-section .shell {
    width: 297mm;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .certificate-page .cert-stage {
    width: 297mm;
    max-width: none;
  }
  .certificate-page .cert {
    width: 297mm;
    height: 210mm;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Academy articles: an academic reading layout --------------------------- */
.lesson-card .read-more {
  color: var(--blue);
}
.article-shell {
  max-width: 920px;
}
.article-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--paper));
}
.article-hero .shell {
  display: grid;
  gap: 16px;
}
.article-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.article-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-meta dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.article-meta a {
  text-decoration: underline;
}
.article-abstract {
  padding: 32px 0 8px;
}
.article-abstract .shell {
  padding: 28px 32px;
  border-left: 5px solid var(--ink);
  border-radius: 0 20px 20px 0;
  background: var(--white);
}
.article-abstract h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.article-abstract p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.55;
}
.article-layout {
  padding: 40px 0 80px;
}
.article-body {
  min-width: 0;
  max-width: 760px;
}
.lab .article-section h2 {
  margin: 44px 0 14px;
  padding-top: 0;
  border-top: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.article-section {
  scroll-margin-top: 96px;
}
.article-section:first-child h2 {
  margin-top: 0;
}
.lab.article-body p,
.lab.article-body li {
  font-size: 18px;
  line-height: 1.75;
}
.article-body .cite {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.article-body .cite:hover {
  text-decoration: underline;
}
.article-figure {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.article-figure-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.article-figure figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}
.article-references p,
.article-references li {
  padding-left: 2em;
  text-indent: -2em;
  font-size: 15px !important;
  line-height: 1.6 !important;
}
.article-references ul {
  padding-left: 0;
  list-style: none;
}
.article-cite {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.lab .article-cite h2,
.lab .article-next h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 20px;
}
.article-cite p[data-citation] {
  margin: 0 0 16px;
  font: 500 15px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.article-licence {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px !important;
}
.article-next {
  margin-top: 40px;
}
.article-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lab .article-next-grid a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}
.article-next-grid a:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.article-next-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-next-grid small {
  color: var(--ink2);
  font-size: 14px;
}
button.guide-toc-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

/* The diagrams */
.fig text {
  font-family: var(--font-sans);
  fill: #0a1020;
  text-anchor: middle;
}
.fig .fig-node {
  font-size: 22px;
  font-weight: 800;
}
.fig .fig-node.is-sm {
  font-size: 17px;
}
.fig .fig-small {
  fill: #5e6879;
  font-size: 13px;
}
.fig .fig-left {
  text-anchor: start;
}
.fig .fig-right {
  text-anchor: end;
}
.fig .fig-verb {
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}
.fig .fig-verb.is-blue {
  fill: #5368ff;
}
.fig .fig-verb.is-bad,
.fig .fig-label.is-bad,
.fig .fig-mark.is-bad {
  fill: #c2410c;
}
.fig .fig-label.is-good,
.fig .fig-mark.is-good {
  fill: #0f8a5f;
}
.fig .fig-centre {
  fill: #5e6879;
  font-size: 16px;
  font-weight: 600;
}
.fig .fig-label {
  font-size: 20px;
  font-weight: 800;
  text-anchor: start;
}
.fig .fig-mark {
  font-size: 22px;
  font-weight: 800;
}
.fig .fig-quad {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-anchor: start;
  text-transform: uppercase;
}
.fig .fig-quad.is-hot {
  fill: #8a6500;
}
.fig .fig-quad.is-quiet {
  fill: #8b93a3;
}
.fig .fig-note text {
  font-size: 15px;
  font-weight: 700;
}
.fig .fig-axis-label {
  fill: #5e6879;
  font-size: 15px;
  font-weight: 700;
}
.fig .fig-step {
  font-size: 18px;
  font-weight: 800;
}
.fig .fig-quote {
  fill: #142033;
  font-size: 14px;
  font-style: italic;
}
.fig .fig-band {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.fig .fig-band.is-light {
  fill: #fff;
}
.fig .fig-dot text {
  font-size: 15px;
  font-weight: 700;
  text-anchor: start;
}
.fig-arc {
  fill: none;
  stroke: #0a1020;
  stroke-width: 2.5;
}
.fig-arc.is-blue {
  stroke: #5368ff;
  stroke-width: 3;
}
.fig-arc.is-dashed {
  stroke-dasharray: 7 6;
}
.fig-axis {
  stroke: #0a1020;
  stroke-width: 2;
}
.fig-rule {
  stroke: #dedfdc;
  stroke-width: 2;
  stroke-dasharray: 6 6;
}
.fig-wheel {
  fill: #0a1020;
}
.fig-stroke {
  fill: none;
  stroke: #ff9bcb;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig-stroke.is-mint {
  stroke: #0f8a5f;
}
.fig-stroke.is-orange {
  stroke: #e07a2f;
}
.fig-box {
  fill: #fff;
  stroke: #0a1020;
  stroke-width: 2;
}
.fig-box.is-assemble {
  fill: #e9fbf3;
}
.fig-box.is-ignite {
  fill: #fff6d6;
}
.fig-decision {
  fill: #ffd75a;
  stroke: #0a1020;
  stroke-width: 2;
}

@media (max-width: 800px) {
  .article-next-grid {
    grid-template-columns: 1fr;
  }
  .article-figure {
    padding: 14px;
  }
  .lab.article-body p,
  .lab.article-body li {
    font-size: 17px;
  }
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 6px;
}
.article-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.article-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-actions span {
  color: var(--muted);
  font-size: 14px;
}
.article-cite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.print-only {
  display: none;
}
@media print {
  @page {
    size: A4;
    margin: 18mm 17mm 20mm;
  }
  .article-page {
    background: #fff;
  }
  .article-page .site-nav,
  .article-page .site-footer,
  .article-page .mobile-drawer,
  .article-page .skip-link,
  .article-page .guide-toc,
  .article-page .print-hide,
  .article-page .back-link {
    display: none !important;
  }
  .article-page .print-only {
    display: block;
  }
  .article-page .shell {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .article-page .article-hero {
    padding: 0 0 8mm;
    border-bottom: 1.5pt solid #0a1020;
    background: none;
  }
  .article-page .article-hero h1 {
    font-size: 26pt;
  }
  .article-page .article-meta {
    gap: 2mm 8mm;
    padding-top: 3mm;
    font-size: 9.5pt;
  }
  .article-page .article-print-source {
    margin: 2mm 0 0;
    color: #5e6879;
    font-size: 8.5pt;
  }
  .article-page .article-abstract {
    padding: 6mm 0 0;
  }
  .article-page .article-abstract .shell {
    padding: 0 0 0 5mm;
    border-left: 2pt solid #0a1020;
    border-radius: 0;
    background: none;
  }
  .article-page .article-abstract p {
    font-size: 12pt;
  }
  .article-page .guide-layout {
    display: block;
    padding: 2mm 0 0;
  }
  .article-page .article-body {
    max-width: none;
  }
  .article-page .lab.article-body p,
  .article-page .lab.article-body li,
  .article-page .lab.article-body td,
  .article-page .lab.article-body th {
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .article-page .lab .article-section h2 {
    margin: 8mm 0 3mm;
    font-size: 17pt;
    break-after: avoid;
  }
  .article-page .lab .article-section h3 {
    break-after: avoid;
  }
  .article-page .article-body p {
    orphans: 3;
    widows: 3;
  }
  .article-page .article-figure {
    margin: 5mm 0;
    padding: 4mm;
    border: 0.75pt solid #c9ccd3;
    border-radius: 3mm;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .article-page .article-figure figcaption {
    font-size: 9pt;
  }
  .article-page .lab-table,
  .article-page .lab table {
    break-inside: avoid;
  }
  .article-page .article-body .cite {
    color: #0a1020;
    font-weight: 600;
  }
  .article-page .article-references {
    break-before: page;
  }
  .article-page .article-references p,
  .article-page .article-references li {
    font-size: 9.5pt !important;
  }
  .article-page .article-cite {
    margin-top: 8mm;
    padding: 4mm 5mm;
    border: 0.75pt solid #c9ccd3;
    background: none;
    break-inside: avoid;
  }
  .article-page .article-cite p[data-citation] {
    font-size: 9pt;
  }
}
