/* MCM Robotics: the Education page (/education), restructured 21 Oct 2026.
   Everything is scoped to .edp-page and uses the site's tokens from main.css. No inline styles in education.php. */

.edp-page { --edp-bar-h: 60px; }
.edp-page [id] { scroll-margin-top: calc(var(--nav-h) + var(--edp-bar-h) + 12px); }
.edp-anchor { display: block; height: 0; } /* old #tiers and #benchmark links land here (scroll-margin above) */

/* ---- 1. hero: the message, visible at once (no animation hides it) ---- */
.edp-hero { min-height: min(84svh, 780px); }
.edp-h1 { margin-top: 14px; max-width: 16ch; }
.edp-accent { color: var(--void-accent); }
.edp-lead { margin-top: 16px; max-width: 58ch; }
.edp-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.edp-cta-center { justify-content: center; }
.edp-proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 0.88rem; color: #dbe7ff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65); }
.edp-proof li { display: flex; gap: 8px; align-items: baseline; }
.edp-proof li::before { content: "✓"; color: var(--void-accent); font-weight: 700; }

/* ---- the in-page menu: a blue band in the brand colour, large and bold (Johan 21 Oct: "too small and will not
   get attention"); the section in view is underlined (a small script in education.php sets aria-current) ---- */
.edp-bar { position: sticky; top: var(--nav-h); z-index: 40; background: var(--primary);
  box-shadow: 0 8px 22px -12px rgba(13, 17, 23, 0.55); }
.edp-bar-in { display: flex; gap: 6px 34px; align-items: center; min-height: var(--edp-bar-h); overflow-x: auto;
  scrollbar-width: none; white-space: nowrap; }
.edp-bar-in::-webkit-scrollbar { display: none; }
.edp-bar a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.01em; padding: 10px 0 7px; border-bottom: 3px solid transparent; }
.edp-bar a:hover { border-bottom-color: rgba(255, 255, 255, 0.55); }
.edp-bar a[aria-current="true"] { border-bottom-color: #fff; }
.edp-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- shared section head ---- */
.edp-head { margin-bottom: 28px; max-width: 760px; }
.edp-head .body-mute { max-width: 62ch; }

/* ---- 2. four doors ---- */
.edp-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.edp-door { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); }
.edp-door-title { font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; line-height: 1.2; }
.edp-door-start { list-style: none; margin: 2px 0 0; padding: 0; border-top: 1px solid var(--line); }
.edp-door-start li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.edp-door-start .mono { white-space: nowrap; font-weight: 600; }
.edp-door-links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.edp-door-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); margin-right: 2px; }
.edp-pill { display: inline-block; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  font-size: 0.82rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--bg); }
.edp-pill:hover { border-color: var(--primary); color: var(--primary); }
.edp-door-more { flex-basis: 100%; margin-top: 4px; font-size: 0.84rem; font-weight: 600; color: var(--primary);
  text-decoration: none; }
.edp-door-more:hover { text-decoration: underline; }

/* ---- 3. four steps ---- */
.edp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  counter-reset: none; }
.edp-step { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border-top: 2px solid var(--primary);
  background: var(--surface); }
.edp-step-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--primary);
  font-weight: 700; }
.edp-step-num::before { content: "STEP "; }
.edp-step-title { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; }
.edp-step-link { margin-top: auto; font-size: 0.86rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.edp-step-link:hover { text-decoration: underline; }

/* ---- 4. MCM Educator ---- */
.edp-educator { max-width: 760px; }
.edp-educator .body-mute { max-width: 62ch; }

/* ---- 5. lab kits by level ---- */
.edp-group { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line); }
.edp-group:first-of-type { margin-top: 0; }
.edp-group-head { margin-bottom: 16px; max-width: 820px; }
.edp-group-title { font-family: var(--font-display); font-weight: 750; font-size: 1.3rem; margin-bottom: 6px; }
.edp-inline { font-weight: 600; color: var(--primary); text-decoration: none; margin-left: 4px; white-space: nowrap; }
.edp-inline:hover { text-decoration: underline; }
.edp-inline::after { content: " →"; }
.edp-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.edp-kit .p-body { gap: 10px; }
.edp-kit-top { display: flex; gap: 14px; align-items: center; }
.edp-kit-top img { width: 64px; height: 64px; object-fit: contain; flex: none; background: var(--surface-2);
  border-radius: var(--r-card); padding: 4px; }
.edp-kit .p-name { font-size: 1.15rem; margin-top: 2px; }
.edp-lines { list-style: none; margin: 2px 0 0; padding: 0; border-top: 1px solid var(--line); }
.edp-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 0.84rem; font-weight: 550; }
.edp-lines .mono { white-space: nowrap; font-weight: 500; }
.edp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.edp-total > span:first-child { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.64rem; color: var(--muted); }
.edp-total .price { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }

/* ---- fold-outs (native <details>: they work without JavaScript) ---- */
.edp-fold { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.edp-fold > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-family: var(--font-display);
  font-weight: 650; display: flex; justify-content: space-between; gap: 12px; }
.edp-fold > summary::-webkit-details-marker { display: none; }
.edp-fold > summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); transition: transform 0.2s; }
.edp-fold[open] > summary::after { transform: rotate(45deg); }
.edp-fold > :not(summary) { margin: 0 18px 16px; }
.edp-spec, .edp-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); }
.edp-spec > div, .edp-figures > div { background: var(--surface); padding: 12px 14px; }
.edp-spec dt, .edp-figures dd { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); margin: 0; }
.edp-spec dd { margin: 4px 0 0; font-size: 0.9rem; font-weight: 550; }
.edp-figures dt { font-family: var(--font-display); font-weight: 750; font-size: 1.5rem; }
.edp-figures dd { margin-top: 4px; }
.edp-semester { padding-left: 20px; display: grid; gap: 8px; font-size: 0.9rem; }
.edp-ladder { list-style: none; padding: 0; }
.edp-ladder li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.edp-ladder .mono { color: var(--primary); font-weight: 700; }

/* ---- 6. why now ---- */
.edp-stats { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edp-stats li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); font-size: 0.88rem; color: var(--muted); }
.edp-stat-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--ink);
  line-height: 1; }

/* ---- 7. questions and the closing band ---- */
.edp-faq { max-width: 860px; }
.edp-close { text-align: center; max-width: 820px; }
.edp-close .eyebrow { justify-content: center; }
.edp-close .body-mute { margin-inline: auto; max-width: 54ch; }

/* ---- the education videos (/education-videos/) and the Watch links ---- */
.edv-top { padding-top: calc(var(--nav-h) + clamp(36px, 5vw, 64px)); }
.edv-wrap { max-width: 1040px; }
.edv-wrap .crumbs { display: flex; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.edv-wrap .crumbs a { color: var(--muted); }
.edv-player { border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: #0b0e16; }
.edv-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b0e16; }
.edv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.edv-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.edv-thumb { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.edv-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.edv-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: var(--r-btn); background: rgba(5, 7, 11, 0.82);
  color: #fff; font-family: var(--font-mono); font-size: 0.74rem; }
.edv-len:empty { display: none; }
.edv-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.edv-card:hover .edv-title { color: var(--primary); }
.edp-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--primary);
  text-decoration: none; }
.edp-watch::before { content: "▶"; font-size: 0.7rem; }
.edp-watch:hover { text-decoration: underline; }
.edp-watches { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.edp-educator .edp-watch { color: #fff; }

/* ---- narrower screens ---- */
@media (max-width: 1080px) {
  .edp-doors, .edp-steps { grid-template-columns: repeat(2, 1fr); }
}
.edp-swipe { display: none; }
@media (max-width: 700px) {
  /* phones: the same content in fewer screens */
  .edp-page { --edp-bar-h: 52px; }
  .edp-bar-in { gap: 6px 24px; }
  .edp-bar a { font-size: 0.98rem; }
  .edp-page .section { padding-top: 40px; padding-bottom: 40px; }
  .edp-hero { min-height: min(78svh, 680px); }
  .edp-head { margin-bottom: 18px; }
  .edp-doors, .edp-steps { grid-template-columns: 1fr; gap: 10px; }
  .edp-spec, .edp-figures { grid-template-columns: 1fr 1fr; }
  .edp-door { padding: 14px; gap: 8px; }
  .edp-door-title { font-size: 1.05rem; }
  .edp-door-start { border-top: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .edp-door-start li { padding: 0; border-bottom: 0; gap: 6px; font-size: 0.82rem; }
  .edp-door-label { display: none; }
  .edp-pill { padding: 5px 8px; font-size: 0.78rem; }
  .edp-door-more { margin-top: 2px; }
  .edp-step { padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: baseline; }
  .edp-step > p, .edp-step-link, .edp-step > .edp-watch { grid-column: 1 / -1; }
  .edp-group { padding-top: 18px; margin-top: 18px; }
  /* several kits in a level: one swipeable row instead of a tall stack */
  .edp-swipe { display: block; margin: -6px 0 8px; font-size: 0.8rem; color: var(--faint); }
  .edp-kits-many { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .edp-kits-many > .edp-kit { scroll-snap-align: start; }
  .edp-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .edp-stats li { padding: 10px; font-size: 0.74rem; }
  .edp-stat-n { font-size: 1.35rem; }
}
@media (max-width: 420px) {
  .edp-spec, .edp-figures { grid-template-columns: 1fr; }
}
@media print {
  .edp-bar, .edp-hero video { display: none !important; }
}
