/* ============================================================
   MCM ROBOTICS v3 — /education-navigator/ (Robotics Education Navigator)
   Page-only components, all under .edn-page with the edn- prefix.
   Colours, fonts, buttons, .container, .eyebrow and bands come from
   main.css; fonts are the self-hosted Archivo / Geist (no CDN).
   ============================================================ */

.edn-page {
  --edn-signal: #f2b705;
  --edn-signal-wash: #fff4cc;
  --edn-on-signal: #1a1400;
  --edn-r-s: 3px;
  --edn-r-m: 8px;
  --edn-bar-h: 48px;
  overflow-x: clip;
  color: var(--ink);
}
.edn-page [id] { scroll-margin-top: calc(var(--nav-h) + var(--edn-bar-h) + 12px); }
/* content links; :where() keeps this at (0,1,1) so component links (choosers, cards, bar) override it */
.edn-page a:where(:not(.btn)) { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.edn-page a:where(:not(.btn)):hover { text-decoration-thickness: 2px; }
.edn-page .crumbs a { color: inherit; text-decoration: none; }
.edn-page .crumbs a:hover { color: var(--ink); }

/* JS-only controls stay hidden until the script is running */
.edn-page:not(.edn-ready) .edn-js { display: none !important; }

.edn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edn-note { font-size: 0.88rem; color: var(--muted); }
.edn-read { line-height: 1.62; }
.edn-h1 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 92%;
  font-size: clamp(2.2rem, 1.2rem + 4.2vw, 4.2rem); line-height: 0.98; letter-spacing: -0.01em;
  margin: 18px 0 22px; text-wrap: balance;
}
.edn-h2 {
  font-family: var(--font-display); font-weight: 780; font-stretch: 92%;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.45rem); line-height: 1.05; letter-spacing: -0.005em; text-wrap: balance;
}
.edn-page h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.edn-page h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.edn-h3-gap { margin-top: 28px; }
.edn-subhead { margin: 40px 0 16px; font-size: 1.35rem !important; }
.edn-btn-sm { padding: 8px 14px; font-size: 0.86rem; gap: 6px; }

/* sections */
.edn-sec { padding-block: clamp(56px, 7vw, 96px) clamp(16px, 3vw, 32px); }
.edn-sec-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 780px; }
.edn-sec-head p { color: var(--muted); line-height: 1.62; }
.edn-panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--edn-r-m); position: relative; }
.edn-pad { padding: 18px 22px; }
.edn-pad ul { margin: 0 0 10px; padding-left: 1.1em; }

/* ---------- hero ---------- */
.edn-hero { padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(32px, 4vw, 48px); }
.edn-hero .crumbs { margin-bottom: 22px; }
.edn-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .edn-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.edn-lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; margin-bottom: 20px; }
.edn-mission { border-left: 3px solid var(--edn-signal); padding: 8px 0 8px 16px; max-width: 40em; color: var(--muted); background: linear-gradient(90deg, var(--surface), transparent); }
.edn-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.edn-titleblock { background: var(--surface); border: 2px solid var(--ink); font-size: 0.9rem; }
.edn-titleblock table { width: 100%; border-collapse: collapse; }
.edn-titleblock th, .edn-titleblock td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.edn-titleblock th { width: 34%; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.edn-titleblock td { font-weight: 600; }
.edn-titleblock caption { caption-side: top; text-align: left; padding: 10px 10px 8px; font-family: var(--font-display); font-weight: 800; border-bottom: 2px solid var(--ink); font-size: 1rem; }
.edn-tb-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 2px solid var(--ink); font-size: 0.78rem; color: var(--muted); }

/* family strip */
.edn-fam-cap { margin: 48px 0 12px; font-size: 0.9rem; color: var(--muted); }
.edn-family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.edn-fig { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.edn-page .edn-fig a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.edn-fig .edn-pic { height: 160px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 2px solid var(--ink); padding: 0 4px 6px; margin-bottom: 8px; }
.edn-fig .edn-pic img { max-height: 152px; max-width: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.2s var(--ease-out); }
.edn-fig a:hover .edn-pic img { transform: translateY(-3px); }
.edn-fig-n { font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono); }
.edn-fig b { font-family: var(--font-display); font-size: 1.04rem; }
.edn-role { font-size: 0.84rem; color: var(--muted); line-height: 1.35; min-height: 2.7em; }
.edn-from { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.edn-codes { font-size: 0.84rem; color: var(--good); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
  .edn-family { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 40vw); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .edn-fig { scroll-snap-align: start; }
  .edn-fig .edn-pic { height: 136px; } .edn-fig .edn-pic img { max-height: 128px; }
}

/* section bar */
.edn-bar { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(245, 247, 250, 0.94); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.edn-bar-in { display: flex; gap: 6px 18px; align-items: center; min-height: var(--edn-bar-h); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.edn-bar-in::-webkit-scrollbar { display: none; }
.edn-page .edn-bar a { color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 550; padding: 6px 0; }
.edn-page .edn-bar a:hover { color: var(--primary); }
.edn-page .edn-bar .edn-bar-plan { margin-left: auto; background: var(--primary); color: var(--on-primary); padding: 6px 12px; border-radius: var(--r-btn); }
.edn-page .edn-bar .edn-bar-plan:hover { background: var(--primary-strong); color: var(--on-primary); }

/* ---------- navigator ---------- */
.edn-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.edn-step:last-child { border-bottom: 0; }
.edn-step h3 { margin-bottom: 12px; }
.edn-step .edn-note { margin-top: 8px; }
@media (max-width: 600px) { .edn-step { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; } }
.edn-stepno { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.edn-rail { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 2px 12px; margin: 0 -8px; }
.edn-page .edn-joint { flex: 1 0 116px; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; padding: 6px 6px 4px; text-align: center; }
.edn-joint::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line-2); z-index: 0; }
.edn-joint:first-child::before { display: none; }
.edn-dot { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--primary); background: var(--surface); position: relative; z-index: 1; transition: transform 0.15s; }
.edn-lv { font-weight: 700; font-size: 0.92rem; line-height: 1.15; }
.edn-gr { font-size: 0.78rem; color: var(--muted); line-height: 1.2; }
.edn-joint[aria-current="true"] .edn-dot { background: var(--primary); box-shadow: 0 0 0 6px var(--primary-subtle); transform: scale(1.08); }
.edn-joint[aria-current="true"] .edn-lv { color: var(--primary-strong); }
.edn-joint.edn-on-path::before { background: var(--primary); }
@media (hover: hover) { .edn-joint:hover .edn-dot { transform: scale(1.12); } }
.edn-purposes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.edn-page .edn-pchip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; color: var(--ink); text-decoration: none; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--edn-r-m); padding: 10px 12px; transition: border-color 0.15s, background-color 0.15s; }
.edn-pchip b { font-size: 0.98rem; }
.edn-pchip span { font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.edn-pchip[aria-current="true"] { border-color: var(--primary); background: var(--primary-subtle); }
@media (hover: hover) { .edn-pchip:hover { border-color: var(--primary); } }
.edn-budgets { display: flex; flex-wrap: wrap; gap: 8px; }
.edn-page .edn-bchip { font: inherit; font-size: 0.9rem; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.edn-bchip[aria-current="true"], .edn-bchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg) !important; }

/* results */
.edn-results { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .edn-results { grid-template-columns: minmax(0, 1fr); } }
.edn-frame { position: relative; background: var(--surface); border: 2px solid var(--ink); padding: 24px; outline: 1px solid var(--line-2); outline-offset: 5px; margin: 6px; }
.edn-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; background: var(--edn-signal); color: var(--edn-on-signal); padding: 3px 8px; border-radius: var(--edn-r-s); margin-bottom: 12px; }
.edn-prod-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.edn-prod-head h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem) !important; font-weight: 780 !important; }
.edn-prod-kind { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.edn-prod-icon { width: 96px; color: var(--primary); }
.edn-prod-icon.edn-ph { width: 140px; height: 128px; display: flex; align-items: flex-end; justify-content: center; }
.edn-prod-icon.edn-ph img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) { .edn-prod-icon.edn-ph { width: 96px; height: 96px; } }
.edn-price { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.edn-price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.edn-why { font-size: 1.02rem; line-height: 1.55; margin: 12px 0 16px; }
.edn-specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 16px; }
.edn-specs th, .edn-specs td { padding: 7px 0; border-top: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.edn-specs th { width: 38%; font-weight: 500; color: var(--muted); padding-right: 12px; }
.edn-yes { color: var(--good); font-weight: 700; }
.edn-no { color: var(--warn); font-weight: 700; }
.edn-maybe { color: var(--primary-strong); font-weight: 700; }
.edn-kbuy { background: var(--edn-signal-wash); border-left: 4px solid var(--edn-signal); padding: 10px 12px; font-size: 0.92rem; margin-bottom: 16px; }
/* Watch links to the education videos (/education-videos/), as on /education. */
.edn-watchrow { margin: 10px 0 0; }
.edn-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.edn-watch::before { content: "▶"; font-size: 0.7rem; }
.edn-watch:hover { text-decoration: underline; }
.edn-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.edn-side .edn-panel { padding: 16px 20px; margin-bottom: 16px; }
.edn-alt { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.edn-panel h4 + .edn-alt { border-top: 0; }
.edn-alt .edn-ic { width: 44px; color: var(--primary); }
.edn-alt .edn-ic.edn-ph { display: flex; align-items: center; justify-content: center; height: 46px; }
.edn-alt .edn-ic.edn-ph img { max-width: 44px; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.edn-alt b { display: block; font-size: 0.96rem; }
.edn-sub { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.edn-ap { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.edn-fit { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: var(--edn-r-s); margin-left: 6px; vertical-align: 1px; }
.edn-fit.edn-in { background: var(--primary-subtle); color: var(--primary-strong); }
.edn-fit.edn-over { background: var(--edn-signal-wash); color: var(--warn); }
.edn-does { margin: 8px 0; padding-left: 1.1em; font-size: 0.97rem; }
.edn-does li { margin-bottom: 6px; }
.edn-x { border: 0; background: none; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 0.85rem; text-decoration: underline; padding: 2px; }
.edn-x[aria-pressed="true"], .btn[data-cmp][aria-pressed="true"] { background: var(--primary-subtle); border-color: var(--primary); }
.edn-swap { animation: edn-swap 0.22s ease-out; }
@keyframes edn-swap { from { opacity: 0.25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.edn-empty { padding: 24px; }
.edn-empty h3 { margin-bottom: 8px; }

/* matrix */
.edn-matrix { margin-top: 28px; border: 1px solid var(--line-2); border-radius: var(--edn-r-m); background: var(--surface); }
.edn-matrix > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--primary-strong); }
.edn-matrix[open] > summary { border-bottom: 1px solid var(--line-2); }
.edn-matrix .edn-tscroll { padding: 0 8px; }
.edn-matrix table { min-width: 900px; font-size: 0.84rem; }
.edn-matrix td, .edn-matrix th { vertical-align: top; }
.edn-matrix > .edn-note { padding: 10px 16px 14px; }
.edn-mprice { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

/* ---------- tables ---------- */
.edn-tscroll { overflow-x: auto; position: relative; }
.edn-data { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.edn-data th, .edn-data td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.edn-data thead th { font-weight: 650; color: var(--muted); font-size: 0.82rem; border-bottom: 2px solid var(--ink); }
.edn-data .edn-n { text-align: right; white-space: nowrap; }
.edn-data caption:not(.edn-sr) { text-align: left; font-weight: 750; font-size: 1.05rem; padding-bottom: 8px; font-family: var(--font-display); }
.edn-data tr.edn-grp th { background: var(--surface-2); font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- plan ---------- */
.edn-plan-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .edn-plan-grid { grid-template-columns: minmax(0, 1fr); } }
.edn-kitlist { list-style: none; margin: 12px 0 0; padding: 0; }
.edn-kitlist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.edn-kitlist li > span:first-child { display: grid; gap: 2px; }
.edn-kitlist-r { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.edn-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--edn-r-s); }
.edn-qty button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.edn-qty output { min-width: 28px; text-align: center; font-weight: 700; }
.edn-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.edn-plan-foot { padding: 12px 14px; border-top: 1px solid var(--line-2); }
.edn-totals { padding: 24px; }
.edn-totals dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.edn-totals dt { color: var(--muted); }
.edn-totals dd { margin: 0; text-align: right; font-weight: 650; }
.edn-totals .edn-grand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.edn-field { display: grid; gap: 4px; margin-bottom: 12px; }
.edn-field label { font-size: 0.85rem; font-weight: 600; }
.edn-field input, .edn-field select, .edn-kb-search input, .edn-seg-row input[type=number] {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--edn-r-s); padding: 8px 10px; width: 100%; min-width: 0;
}
.edn-field input:focus, .edn-field select:focus, .edn-kb-search input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-subtle); }
.edn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edn-perlearner { background: var(--primary-subtle); border-radius: var(--edn-r-s); padding: 10px 12px; margin-bottom: 16px; font-size: 0.95rem; }
.edn-perlearner b { font-size: 1.2rem; }
.edn-copybox { width: 100%; min-height: 160px; font: inherit; font-size: 0.85rem; margin-top: 12px; display: none; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); padding: 8px; }
details.edn-tco { margin: 16px 0; border-top: 1px solid var(--line-2); padding-top: 12px; }
details.edn-tco > summary { cursor: pointer; font-weight: 700; color: var(--primary-strong); margin-bottom: 8px; }
.edn-tco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 480px) { .edn-tco-grid { grid-template-columns: minmax(0, 1fr); } }
.edn-tco-grid label .edn-note { font-weight: 500; font-size: 0.78rem; }
dl.edn-tco-out { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
dl.edn-tco-out dt { color: var(--muted); } dl.edn-tco-out dd { margin: 0; text-align: right; font-weight: 650; }
dl.edn-tco-out .edn-grand { font-weight: 800; color: var(--ink); font-size: 1.06rem; }
.edn-print-head { display: none; }

/* quotation request form (B2) */
.edn-quote { margin-top: 24px; padding: 22px 24px; }
.edn-quote[hidden] { display: none; }
.edn-quote h3 { margin-bottom: 6px; }
.edn-quote > .edn-note { margin-bottom: 14px; max-width: 70ch; }
.edn-quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.edn-span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .edn-quote-grid { grid-template-columns: minmax(0, 1fr); } }
.edn-field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--edn-r-s); padding: 8px 10px; width: 100%; resize: vertical; }
.edn-field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-subtle); }
.edn-field [aria-invalid="true"] { border-color: var(--neg); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12); }
.edn-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; margin: 6px 0 10px; max-width: 80ch; }
.edn-check input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.edn-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.edn-quote-msg { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.edn-quote-msg.edn-ok { color: var(--good); } .edn-quote-msg.edn-err { color: var(--neg); }
.edn-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--edn-r-s); font-weight: 600; font-size: 0.92rem; transition: opacity 0.2s, transform 0.2s; z-index: 95; pointer-events: none; }
.edn-toast.edn-show { opacity: 1; transform: translateX(-50%) translateY(0); }
html.edn-cmp-on .edn-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- why ---------- */
.edn-why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .edn-why-grid { grid-template-columns: minmax(0, 1fr); } }
.edn-datasheet { background: var(--surface); border: 2px solid var(--ink); }
.edn-datasheet h3 { padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.edn-ds-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.edn-ds-row:last-child { border-bottom: 0; }
.edn-k { color: var(--muted); font-size: 0.9rem; }
.edn-v { font-weight: 700; }
.edn-v small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.edn-adv { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.edn-adv li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.96rem; }
.edn-adv li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border: 2.5px solid var(--primary); transform: rotate(45deg); }
.edn-honest { margin-top: 32px; border: 2px dashed var(--edn-signal); border-radius: var(--edn-r-m); padding: 24px; background: var(--surface); }
.edn-honest h3 { margin-bottom: 12px; }
.edn-honest ul { margin: 0; padding-left: 1.1em; }
.edn-honest li { margin-bottom: 6px; }
.edn-evid td:first-child { min-width: 150px; }

/* ---------- ladder + courses ---------- */
.edn-ladder { position: relative; display: grid; gap: 16px; }
.edn-stage { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; position: relative; }
.edn-stage .edn-n { position: relative; display: flex; flex-direction: column; align-items: center; }
.edn-stage .edn-n span { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; position: relative; z-index: 1; }
.edn-stage .edn-n::after { content: ""; position: absolute; top: 48px; bottom: -16px; width: 3px; background: var(--primary); opacity: 0.5; }
.edn-stage:last-child .edn-n::after { display: none; }
.edn-stage .edn-body { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--edn-r-m); padding: 16px 22px; }
.edn-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; color: var(--muted); margin: 4px 0 12px; }
.edn-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) {
  .edn-stage { grid-template-columns: 52px minmax(0, 1fr); }
  .edn-stage .edn-n span { width: 40px; height: 40px; } .edn-stage .edn-n::after { top: 40px; }
  .edn-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.edn-stage ul { margin: 0; padding-left: 1.1em; font-size: 0.97rem; }
.edn-stage li { margin-bottom: 4px; }
.edn-evidence { margin-top: 10px; font-size: 0.96rem; }
.edn-fw { font-size: 0.86rem; }
.edn-fw div { padding: 6px 0; border-top: 1px solid var(--line-2); }
.edn-fw div:first-child { border-top: 0; }
.edn-fw b { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.edn-stage.edn-hl .edn-body { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }
details.edn-course { margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--edn-r-m); background: var(--surface); }
details.edn-course > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--primary-strong); }
details.edn-course[open] > summary { border-bottom: 1px solid var(--line-2); }
.edn-course-body { padding: 12px 14px 14px; }
.edn-course-body .edn-hrs { text-align: right; white-space: nowrap; width: 70px; }
.edn-cap { margin: 12px 0 4px; }
.edn-assess { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0 8px; }
.edn-assess span { display: block; height: 100%; }
.edn-stage ul.edn-assess-key, ul.edn-assess-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; font-size: 0.86rem; }
.edn-assess-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.edn-strip4 { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--surface); }
.edn-strip4 li { padding: 16px 22px; border-right: 1px solid var(--line-2); }
.edn-strip4 li:last-child { border-right: 0; }
.edn-d { display: block; font-family: var(--font-display); font-weight: 800; color: var(--primary-strong); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.edn-strip4 b { display: block; margin-bottom: 6px; }
.edn-strip4 p { font-size: 0.96rem; margin: 0; }
@media (max-width: 900px) { .edn-strip4 { grid-template-columns: minmax(0, 1fr); } .edn-strip4 li { border-right: 0; border-bottom: 1px solid var(--line-2); } .edn-strip4 li:last-child { border-bottom: 0; } }
.edn-kpis { columns: 2 260px; column-gap: 32px; margin: 8px 0 12px; padding-left: 1.1em; }
.edn-kpis li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- try it ---------- */
.edn-lab { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .edn-lab { grid-template-columns: minmax(0, 1fr); } }
.edn-board-wrap { position: relative; border: 2px solid var(--ink); background: var(--surface); outline: 1px solid var(--line-2); outline-offset: 5px; margin: 6px; }
.edn-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); aspect-ratio: 7 / 5; }
.edn-cell { border-right: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.edn-cell:nth-child(7n) { border-right: 0; } .edn-cell:nth-last-child(-n+7) { border-bottom: 0; }
.edn-cell svg { width: 58%; height: auto; }
.edn-cell.edn-goal { background: var(--primary-subtle); }
.edn-cell.edn-bad { background: #ffd7d2; }
.edn-bot { position: absolute; width: calc(100% / 7); height: calc(100% / 5); display: flex; align-items: center; justify-content: center; transition: left 0.3s ease, top 0.3s ease, transform 0.3s ease; pointer-events: none; }
.edn-bot svg { width: 64%; height: auto; filter: drop-shadow(0 2px 2px rgba(4, 17, 42, 0.25)); }
.edn-labmsg { font-weight: 650; min-height: 3em; margin: 16px 0 12px; }
.edn-labmsg.edn-ok { color: var(--good); } .edn-labmsg.edn-err { color: var(--warn); }
.edn-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.edn-palette .btn { min-width: 118px; }
.edn-prog-h { margin: 0 0 8px; font-size: 1.02rem !important; }
.edn-prog { list-style: none; margin: 0 0 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; min-height: 56px; border: 1.5px dashed var(--line-2); border-radius: var(--edn-r-s); background: var(--surface); }
.edn-prog li button { font: inherit; font-size: 0.86rem; font-weight: 650; padding: 6px 10px; border-radius: var(--edn-r-s); border: 1.5px solid var(--primary); background: var(--primary-subtle); color: var(--primary-strong); cursor: pointer; }
.edn-prog li button:hover { text-decoration: line-through; }
.edn-prog li.edn-on button { background: var(--edn-signal); border-color: var(--edn-signal); color: var(--edn-on-signal); }
.edn-prog .edn-hint { color: var(--muted); font-size: 0.9rem; align-self: center; }
pre.edn-code { margin: 0 0 8px; background: var(--void-2); color: #dce7ff; padding: 16px; border-radius: var(--edn-r-m); font: 500 0.86rem/1.55 var(--font-mono); overflow: auto; white-space: pre; min-height: 260px; border: 1px solid #22447f; }
.edn-lab .edn-panel { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .edn-bot, .edn-cell { transition: none; } .edn-swap { animation: none; } }

/* ---------- curriculum ---------- */
.edn-timeline { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
@media (max-width: 900px) { .edn-timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--ink); } }
.edn-timeline li { padding: 16px 12px 0 0; position: relative; }
.edn-timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; background: var(--bg); border: 3px solid var(--ink); border-radius: 50%; }
@media (max-width: 900px) { .edn-timeline li { padding: 0 0 16px 16px; } .edn-timeline li::before { top: 4px; left: -8px; } }
.edn-timeline b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.edn-timeline span { font-size: 0.92rem; color: var(--muted); display: block; }
.edn-gap-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 16px; }
@media (max-width: 900px) { .edn-gap-note { grid-template-columns: minmax(0, 1fr); } }
.edn-gap-note h3 { margin-bottom: 8px; }
.edn-readymade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .edn-readymade { grid-template-columns: minmax(0, 1fr); } }
.edn-readymade .edn-read { font-size: 0.96rem; margin: 0; }
.edn-uni-list { columns: 2 300px; column-gap: 32px; }
.edn-uni-list p { break-inside: avoid; margin-bottom: 12px; line-height: 1.6; }

/* ---------- national ---------- */
.edn-nat { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .edn-nat { grid-template-columns: minmax(0, 1fr); } }
.edn-seg { display: grid; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.edn-seg:last-child { border-bottom: 0; }
.edn-seg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.edn-seg-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: center; }
.edn-seg-row input[type=range] { width: 100%; accent-color: var(--primary); }
.edn-seg .edn-two { align-items: end; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 560px) { .edn-seg .edn-two { grid-template-columns: minmax(0, 1fr); } }
.edn-nat-out { padding: 24px; position: sticky; top: calc(var(--nav-h) + var(--edn-bar-h) + 16px); }
.edn-big { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; line-height: 1.05; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.edn-nat-dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 16px 0; }
.edn-nat-dl dt { color: var(--muted); } .edn-nat-dl dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- knowledge base ---------- */
.edn-kb-tools { display: grid; gap: 12px; margin-bottom: 24px; }
.edn-kb-search { max-width: 560px; }
.edn-kb-search input { padding: 12px 14px; font-size: 1rem; }
.edn-kb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.edn-kb-count { font-size: 0.88rem; color: var(--muted); }
.edn-kb-sec { margin-bottom: 24px; }
.edn-kb-sec > h3 { margin: 0 0 8px; font-size: 1.15rem !important; color: var(--primary-strong); }
details.edn-kb { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--edn-r-s); margin-bottom: 6px; }
details.edn-kb > summary { cursor: pointer; padding: 12px 14px; font-weight: 650; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; }
details.edn-kb > summary::-webkit-details-marker { display: none; }
details.edn-kb > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); justify-self: center; transition: transform 0.15s; }
details.edn-kb[open] > summary::after { transform: rotate(-135deg); }
details.edn-kb[open] { border-color: var(--primary); }
.edn-ans { padding: 0 14px 14px; line-height: 1.6; max-width: 76ch; }
.edn-ans p { margin-bottom: 10px; }
.edn-ans ul, .edn-ans ol { padding-left: 1.2em; margin: 0 0 12px; }
.edn-ans li { margin-bottom: 4px; }
.edn-ans pre { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--edn-r-s); padding: 10px 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.5; white-space: pre; margin-bottom: 10px; }
.edn-ans .edn-tscroll { margin-bottom: 10px; }

/* ---------- next step + sources ---------- */
.edn-cta-band { padding-block: clamp(48px, 6vw, 80px); margin-top: clamp(32px, 4vw, 56px); }
.edn-cta-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.edn-cta-in p { color: var(--void-muted); margin-top: 14px; max-width: 56ch; line-height: 1.6; }
.edn-cta-in .edn-h2 { margin-top: 14px; }
@media (max-width: 900px) { .edn-cta-in { grid-template-columns: minmax(0, 1fr); } }
.edn-sources ol { font-size: 0.88rem; columns: 2 360px; column-gap: 32px; padding-left: 1.3em; }
.edn-sources li { margin-bottom: 6px; break-inside: avoid; }
.edn-disclaim { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; font-size: 0.8rem; color: var(--muted); max-width: 110ch; }

/* ---------- compare ---------- */
.edn-cmpbar { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 92; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 14px; border-radius: var(--edn-r-m); box-shadow: var(--shadow-float); font-weight: 650; font-size: 0.92rem; max-width: calc(100vw - 24px); }
.edn-cmpbar[hidden] { display: none; }
.edn-cmpbar .btn-ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
@media (max-width: 600px) { .edn-cmpbar { left: 12px; right: 12px; justify-content: space-between; } }
dialog.edn-cmp { width: min(1080px, 94vw); max-height: 88vh; padding: 0; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: var(--edn-r-m); }
dialog.edn-cmp::backdrop { background: rgba(4, 17, 42, 0.6); }
.edn-cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.edn-cmp-body { padding: 8px 18px 18px; overflow: auto; }
table.edn-cmpt { min-width: 640px; }
table.edn-cmpt th[scope="row"] { width: 150px; color: var(--muted); font-weight: 600; vertical-align: top; }
table.edn-cmpt td { vertical-align: top; }
table.edn-cmpt .edn-pic { height: 110px; display: flex; align-items: flex-end; }
table.edn-cmpt .edn-pic img { max-height: 104px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
table.edn-cmpt .edn-pr { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- print ---------- */
@media print {
  .nav, .footer, .edn-bar, .edn-cmpbar, dialog.edn-cmp, .edn-toast, .edn-cta, .edn-row-actions, .edn-quick, .edn-kb-tools, .edn-x, .edn-qty button, .edn-quote { display: none !important; }
  .edn-page a:not(.btn) { color: inherit; text-decoration: none; }
  body { background: #fff; }
  details.edn-kb, details.edn-course { break-inside: avoid; }
  body.edn-print-plan main > *:not(.edn-page), body.edn-print-plan .edn-page > section:not(#plan) { display: none !important; }
  body.edn-print-plan #plan { padding-top: 0; }
  body.edn-print-plan .edn-print-head { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 16px; }
  body.edn-print-plan .edn-print-head img { height: 28px; width: auto; }
  body.edn-print-plan .edn-sec-head { display: none; }
  body.edn-print-plan .edn-plan-grid { grid-template-columns: minmax(0, 1fr); }
  body.edn-print-plan input, body.edn-print-plan select { border: 0 !important; padding: 0 !important; }
}
