/* Maple Bridge Language Academy — identity.
   White + deep navy + maple red, Bricolage Grotesque + Figtree.
   Signature motif: the "route line" (transit-map stations for levels, modules, dates). */
:root {
  --bg: #fff; --paper: #f5f7fb; --lilac: #e8eef8; --line: #dbe2ee;
  --ink: #0b1a33; --text: #18233a; --muted: #4f5b70;
  --plum: #12284f; --plum-2: #1f3d72; --plum-3: #4a6aa8;
  --maple: #c62d22; --maple-d: #a3221a; --maple-l: #ff9a90; --sun: #ffffff; --sky: #a9d8ea;
  --c-general: #c62d22; --c-exam: #1f5fa8; --c-study: #0f766e; --c-french: #86368c; --c-coaching: #8a5c00;
  --r: 14px; --r-sm: 8px; --wrap: 1200px; --hd-h: 76px;
  --f-head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 44px -24px rgba(11, 26, 51, .45);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #1f5fa8;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); text-underline-offset: 3px; }
a:hover { color: var(--maple); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--maple); margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 6px; border-radius: 6px; background: var(--maple); box-shadow: 28px 0 0 0 var(--plum-3); margin-right: 26px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }

/* Buttons */
.btn { --b: var(--maple); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm); border: 2px solid var(--b); background: var(--b); color: #fff; font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--maple-d); border-color: var(--maple-d); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(192, 41, 31, .8); }
.btn svg { width: 18px; height: 18px; }
.btn--plum { --b: var(--plum); }
.btn--plum:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 22px -12px rgba(18, 40, 79, .8); }
.btn--line { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn--line:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn--sun { --b: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffe9e6; border-color: #ffe9e6; color: var(--ink); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.link-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--plum-2); text-decoration: none; }
.link-go svg { width: 16px; height: 16px; transition: transform .15s; }
.link-go:hover svg { transform: translateX(3px); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar + header */
.topbar { background: var(--ink); color: #d3dbea; font-size: .86rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar b { color: var(--maple-l); font-weight: 700; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__r { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__r span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ico { width: 15px; height: 15px; }
.hd { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 18px; height: var(--hd-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo__t { display: flex; flex-direction: column; line-height: 1; }
.logo__t b { font: 800 1.42rem/1 var(--f-head); letter-spacing: -.03em; }
.logo__t small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 5px; display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.nav a { display: block; padding: 9px 13px; border-radius: 8px; font-weight: 600; font-size: .96rem; color: var(--text); text-decoration: none; }
.nav a:hover { background: #fff; color: var(--plum); }
.nav a[aria-current="page"] { background: var(--plum); color: #fff; }
.hd__cta { display: none; }
.burger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--plum); background: #fff; border-radius: var(--r-sm); color: var(--plum); font: 700 .95rem var(--f-body); cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 1140px) { .nav, .hd__cta { display: block; } .burger { display: none; } }
.mnav { position: fixed; inset: 0; z-index: 120; background: var(--plum); color: #fff; padding: 22px 20px 40px; overflow-y: auto; display: none; }
.menu-open .mnav { display: block; }
.menu-open { overflow: hidden; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mnav__top b { font: 800 1.3rem var(--f-head); }
.mnav__close { min-height: 44px; min-width: 44px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 8px; background: transparent; color: #fff; font: 700 .95rem var(--f-body); cursor: pointer; padding: 0 14px; }
.mnav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mnav li a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font: 700 1.3rem var(--f-head); }
.mnav li a[aria-current="page"] { color: var(--maple-l); }
.mnav .btn { width: 100%; margin-top: 10px; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--paper { background: var(--paper); }
.sec--plum { background: var(--plum); color: #e9e1f5; }
.sec--plum h2, .sec--plum h3 { color: #fff; }
.sec--plum .kicker { color: var(--maple-l); }
.sec--plum .muted, .sec--plum .lead { color: #c9d3e6; }
.sec--plum a:not(.btn) { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.sec-head > div { max-width: 720px; }
.sec-head h2 { margin-bottom: .3em; }
.sec-head p { margin: 0; }
.grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

/* Hero */
.hero { background: var(--plum); color: #e6ecf6; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .045); }
.hero .wrap { position: relative; display: grid; gap: 40px; padding: clamp(40px, 6vw, 84px) 0 0; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.hero h1 { color: #fff; }
.hero h1 .hl { color: #fff; background: var(--maple); padding: 0 .14em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .kicker { color: var(--maple-l); }
.hero .lead { color: #cdd7ea; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: .92rem; color: #f2ecfa; }
.hero__chips .ico { width: 16px; height: 16px; color: var(--maple-l); }
.routecard { background: #fff; color: var(--text); border-radius: var(--r); padding: 26px 26px 22px; box-shadow: var(--shadow); position: relative; }
.routecard h2 { font-size: 1.3rem; margin: 0 0 4px; }
.routecard > p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 8px; border-radius: 8px; background: linear-gradient(var(--maple), var(--plum-3) 55%, var(--plum)); }
.route li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 7px 0; }
.route .st { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); display: grid; place-items: center; font: 800 .78rem var(--f-head); color: var(--ink); z-index: 1; }
.route b { display: block; font-size: 1rem; color: var(--ink); }
.route span { font-size: .88rem; color: var(--muted); }
.routecard__cta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 14px; }
.hero__photos { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; align-items: end; margin-top: 8px; }
.hero__photos figure { margin: 0; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--plum-2); }
.hero__photos img { width: 100%; height: 100%; object-fit: cover; }
.hero__photos figure:nth-child(1) { aspect-ratio: 16 / 8; }
.hero__photos figure:nth-child(2) { aspect-ratio: 4 / 4.2; }
.hero__photos figure:nth-child(3) { aspect-ratio: 4 / 3.4; }
@media (max-width: 699px) { .hero__photos { grid-template-columns: 1fr 1fr; } .hero__photos figure:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } .hero__photos figure:nth-child(2), .hero__photos figure:nth-child(3) { aspect-ratio: 1; } }

/* Page hero (inner pages) */
.phero { background: var(--plum); color: #dfe6f3; padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--maple) 0 46%, var(--plum-3) 46% 76%, var(--sky) 76%); }
.phero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; }
.phero .lead { color: #cdd7ea; }
.phero .kicker { color: var(--maple-l); }
.crumbs { font-size: .9rem; margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9fb0cf; }
.crumbs a { color: #e6ecf6; }
.crumbs [aria-current] { color: #b9c6de; }
.phero--split .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .phero--split .wrap { grid-template-columns: 1.2fr .8fr; } }
.phero__img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 6px solid rgba(255, 255, 255, .1); }
.phero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Next starts strip */
.starts { margin-top: -1px; background: var(--ink); color: #e6ecf6; }
.starts .wrap { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .starts .wrap { grid-template-columns: auto repeat(4, 1fr); } }
.starts__lbl { padding: 20px 24px 20px 0; font: 800 1.05rem/1.2 var(--f-head); color: var(--maple-l); display: flex; flex-direction: column; justify-content: center; }
.starts a { display: block; padding: 18px 20px; border-left: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.starts a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.starts a small { display: block; font-size: .8rem; color: #b9c6de; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.starts a b { display: block; font-size: 1rem; margin: 2px 0; }
.starts a span { font-size: .9rem; color: #cdd7ea; }
@media (max-width: 759px) { .starts a { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-left: 0; } }

/* Line badges + course cards */
.lb { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--plum)); }
.lb::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid currentColor; background: #fff; }
.l-general { --c: var(--c-general); } .l-exam { --c: var(--c-exam); } .l-study { --c: var(--c-study); } .l-french { --c: var(--c-french); } .l-coaching { --c: var(--c-coaching); }
.cc-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c, var(--plum)); z-index: 1; }
.cc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cc-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lilac); }
.cc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cc-card__b { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-card h2, .cc-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.01em; }
.cc-card h2 a, .cc-card h3 a { color: var(--ink); text-decoration: none; }
.cc-card h2 a::after, .cc-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cc-card h2 a:focus-visible, .cc-card h3 a:focus-visible { box-shadow: none; }
.cc-card:focus-within { box-shadow: var(--focus); }
.cc-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.meta li { font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: var(--paper); color: var(--plum); border: 1px solid var(--line); }
.cc-card__ft { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font: 800 1.35rem/1 var(--f-head); color: var(--ink); }
.price small { font: 600 .8rem var(--f-body); color: var(--muted); }
.cc-card__next { font-size: .85rem; color: var(--muted); text-align: right; }

/* Pathways */
.paths { display: grid; gap: 16px; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .paths { grid-template-columns: repeat(4, 1fr); } }
.path { background: #fff; border-radius: var(--r); padding: 24px; border: 1px solid var(--line); border-top: 8px solid var(--c); display: flex; flex-direction: column; gap: 10px; }
.path h3 { margin: 0; }
.path ul { list-style: none; padding: 0; margin: 0; }
.path li a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.path li a:hover { color: var(--c); }
.path li a span { color: var(--muted); font-weight: 500; font-size: .9rem; white-space: nowrap; }

/* Exam cards */
.exams { display: grid; gap: 18px; }
@media (min-width: 900px) { .exams { grid-template-columns: repeat(3, 1fr); } }
.exam { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.exam__tag { font: 800 2rem/1 var(--f-head); color: var(--maple-l); letter-spacing: -.02em; }
.exam ul { margin: 0; padding-left: 1.1em; color: #d6deec; }
.exam .btn { margin-top: auto; align-self: start; }
.note { border-left: 6px solid var(--maple); background: #fdf3f2; color: #3b1512; padding: 16px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .97rem; }
.note a { color: #8f1d16; font-weight: 700; }
.sec--plum .note { background: rgba(255, 255, 255, .07); color: #eef2f9; border-color: var(--maple-l); }
.sec--plum .note a { color: #fff; }
.note--info { border-color: var(--c-work); background: #eef5fc; color: #15324f; }
.note--warn { border-color: var(--maple); background: #fdf0ee; color: #4a1410; }
.note p:last-child { margin: 0; }

/* Split / media */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--r > :first-child { order: 2; } }
.media { position: relative; }
.media img { border-radius: var(--r); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.media__badge { position: absolute; right: 16px; bottom: -18px; background: #fff; border-left: 6px solid var(--maple); color: var(--ink); border-radius: 10px; padding: 12px 16px; font-weight: 700; box-shadow: var(--shadow); max-width: 260px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312284f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.sec--plum .ticks li::before { background-color: #fff; }

/* Formats */
.fmt { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.fmt__i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac); color: var(--plum); margin-bottom: 14px; }
.fmt__i .ico { width: 24px; height: 24px; }
.fmt h3 { margin-bottom: 6px; }
.fmt p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Week board (Sunday-first) */
.board-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.board { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.board caption { text-align: left; padding: 14px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.board th { background: var(--paper); font: 700 .86rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--plum); padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.board th[scope="row"] { width: 110px; text-transform: none; letter-spacing: 0; font-size: .92rem; background: #fff; vertical-align: top; }
.board td { vertical-align: top; padding: 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board tr:last-child td, .board tr:last-child th { border-bottom: 0; }
.board th.wkend, .board td.wkend { background: #f8fafd; }
.chip { display: block; text-decoration: none; padding: 8px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); margin-bottom: 6px; font-size: .82rem; line-height: 1.35; color: var(--text); }
.chip:hover { border-color: var(--c); color: var(--text); }
.chip b { display: block; font-size: .86rem; color: var(--ink); }
.chip span { color: var(--muted); }
.chip[hidden] { display: none; }

/* Mini calendar */
.cals { display: grid; gap: 20px; }
@media (min-width: 760px) { .cals { grid-template-columns: repeat(3, 1fr); } }
.cal { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: #fff; }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: .9rem; }
.cal caption { font: 800 1.05rem var(--f-head); color: var(--ink); text-align: left; padding: 0 4px 10px; }
.cal th { font-size: .74rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal td { padding: 3px 0; }
.cal td span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.cal td.is-start span { background: var(--maple); color: #fff; font-weight: 800; }
.cal td.is-off span { color: #9a91aa; text-decoration: line-through; }

/* Filters / catalogue */
.cat { display: grid; gap: 28px; }
@media (min-width: 1000px) { .cat { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--hd-h) + 16px); max-height: calc(100vh - var(--hd-h) - 32px); overflow: auto; } }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font: 800 .95rem var(--f-head); color: var(--ink); margin-bottom: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 7px 11px; border-radius: 8px; background: #fff; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--text); }
.opt input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); }
.opt input:focus-visible + span { box-shadow: var(--focus); }
.opt input:hover + span { border-color: var(--plum-3); }
.filters__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters__top h2 { font-size: 1.2rem; margin: 0; }
.linkbtn { background: none; border: 0; color: var(--plum-2); font: 700 .92rem var(--f-body); text-decoration: underline; cursor: pointer; padding: 6px; min-height: 32px; }
.cat__bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cat__count { font-weight: 700; color: var(--ink); }
.cat__list { display: grid; gap: 20px; }
@media (min-width: 700px) { .cat__list { grid-template-columns: repeat(2, 1fr); } }
.empty { padding: 36px; text-align: center; border: 2px dashed var(--line); border-radius: var(--r); }
[hidden] { display: none !important; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .fs-legend { font-weight: 700; color: var(--ink); font-size: .96rem; }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: -2px; }
.req { color: var(--maple); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid #b9afc9; border-radius: var(--r-sm); padding: 11px 13px; min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--plum-2); }
[aria-invalid="true"] { border-color: var(--maple) !important; background: #fff8f7; }
.err { color: var(--maple-d); font-size: .88rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: 12px; font-size: .94rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--plum); }
.check .err { grid-column: 2; }
.formgrid { display: grid; gap: 0 18px; }
@media (min-width: 700px) { .formgrid { grid-template-columns: 1fr 1fr; } .formgrid .full { grid-column: 1 / -1; } }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); box-shadow: 0 30px 60px -50px rgba(11, 26, 51, .5); }
.form-msg { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-sm); font-weight: 600; }
.form-msg--ok { background: #eef8f2; border: 1.5px solid #23805f; color: #134a36; }
.form-msg--err { background: #fdf0ee; border: 1.5px solid var(--maple); color: #6c140e; }
.form-msg ul { margin: 6px 0 0; padding-left: 1.2em; font-weight: 500; }

/* Course page */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 700 1.08rem/1.3 var(--f-head); color: var(--ink); }
.cp { display: grid; gap: 40px; }
@media (min-width: 1000px) { .cp { grid-template-columns: 1fr 360px; align-items: start; } .cp aside { position: sticky; top: calc(var(--hd-h) + 16px); } }
.buy { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.buy h2 { font-size: 1.3rem; }
.buy .price { font-size: 2rem; }
.buy dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .94rem; margin: 14px 0; }
.buy dd { margin: 0; text-align: right; font-weight: 700; }
.buy .btn { width: 100%; margin-top: 8px; }
.opts-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.opts-table th, .opts-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.opts-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tbl table { min-width: 640px; }
.vroute { list-style: none; padding: 0; margin: 0; position: relative; counter-reset: st; }
.vroute::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 6px; border-radius: 6px; background: var(--c, var(--plum)); opacity: .9; }
.vroute li { position: relative; padding: 6px 0 14px 46px; counter-increment: st; }
.vroute li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); display: grid; place-items: center; font: 800 .8rem var(--f-head); color: var(--ink); }
.datelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.datelist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.datelist b { color: var(--ink); }

/* Pricing */
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ptable thead th { background: var(--paper); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--plum); }
.ptable td.num, .ptable th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.packs { display: grid; gap: 18px; }
@media (min-width: 760px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; }
.pack--hi { border: 2px solid var(--plum); position: relative; }
.pack--hi::before { content: "Most chosen"; position: absolute; top: -13px; left: 20px; background: var(--maple); color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 6px; }
.pack .price { font-size: 2.1rem; display: block; margin: 10px 0 4px; }

/* Teachers */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tcard img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.tcard__b { padding: 18px; }
.tcard h3 { margin: 0 0 2px; font-size: 1.15rem; }
.tcard .role { color: var(--maple); font-weight: 700; font-size: .92rem; margin: 0 0 8px; }
.tcard p { font-size: .93rem; color: var(--muted); margin: 0 0 6px; }

/* Reviews */
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.review blockquote { margin: 0; font: 600 1.12rem/1.5 var(--f-head); color: var(--ink); letter-spacing: -.01em; }
.review figcaption { font-size: .92rem; color: var(--muted); margin-top: auto; }
.review figcaption b { color: var(--ink); display: block; }
.sample { align-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--maple-d); background: #fdf0ee; border: 1px solid #f2c9c4; border-radius: 6px; padding: 3px 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312284f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; color: var(--text); }
.faq details > div p:last-child { margin: 0; }
.faq h2 { font-size: 1.5rem; margin: 22px 0 8px; }

/* Level test */
.lt { display: grid; gap: 28px; }
@media (min-width: 1000px) { .lt { grid-template-columns: 1fr 340px; align-items: start; } .lt aside { position: sticky; top: calc(var(--hd-h) + 16px); } }
.q { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 14px; background: #fff; }
.q legend { font-weight: 700; color: var(--ink); padding: 0 6px; margin-left: -6px; }
.q .qn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: #fff; font-size: .82rem; margin-right: 8px; }
.q .opts { margin-top: 10px; }
.q.is-missing { border-color: var(--maple); box-shadow: 0 0 0 2px rgba(192, 41, 31, .15); }
.progress { height: 10px; background: var(--lilac); border-radius: 10px; overflow: hidden; margin: 8px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--maple), var(--plum-3)); transition: width .25s; }
.result { border-radius: var(--r); background: var(--plum); color: #e6ecf6; padding: 26px; }
.result h2 { color: #fff; }
.result__lvl { font: 800 4rem/1 var(--f-head); color: var(--maple-l); }
.result .btn { margin: 6px 8px 0 0; }
.result a:not(.btn) { color: #fff; }

/* CTA band */
.band { background: var(--maple); color: #fff; border-radius: var(--r); padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr auto; } }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; color: #ffe6e3; }
.band::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.band .btn { position: relative; z-index: 1; }

/* Prose (legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin-bottom: 30px; }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.legal-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: 260px 1fr; } .legal-grid .toc { position: sticky; top: calc(var(--hd-h) + 16px); align-self: start; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--r); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--plum); padding: 22px; }
.stats b { display: block; font: 800 2.2rem/1 var(--f-head); color: var(--maple-l); }
.stats span { font-size: .92rem; color: #cdd7ea; }

/* Contact */
.cinfo { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.cinfo li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.cinfo .fmt__i { width: 44px; height: 44px; margin: 0; }
.cinfo b { display: block; color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--maple-d); font-weight: 700; }

/* Footer */
.ft { background: var(--ink); color: #c5d0e3; padding: 64px 0 28px; font-size: .95rem; }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; color: #fff; }
.ft__grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .ft__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ft__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.ft h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; font-family: var(--f-body); font-weight: 800; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft .logo { color: #fff; margin-bottom: 14px; }
.ft .logo small { color: #a9b6cf; }
.ft__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 10px; font-size: .86rem; color: #a9b6cf; }
.ft__flag { color: var(--maple-l); font-weight: 700; }
.ft form .check { color: #c5d0e3; font-size: .85rem; }
.ft input[type="email"] { background: #16274a; border-color: #45597f; color: #fff; }
.ft .err { color: #ffb4ab; }
.nl { display: flex; gap: 8px; margin: 10px 0; }
.nl input { flex: 1; min-width: 0; }
.ft .form-msg--ok { background: #1f3b31; color: #c8f0dd; border-color: #2f7a5c; }
.ft .form-msg--err { background: #3b1a1a; color: #ffd6d0; border-color: #a03a30; }
.ft-linkbtn { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.ft-linkbtn:hover { text-decoration: underline; }

/* Cookie consent */
.ck { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 980px; margin-inline: auto; background: #fff; border-radius: var(--r); box-shadow: 0 30px 80px -20px rgba(11, 26, 51, .55); border: 1px solid var(--line); border-top: 6px solid var(--plum); padding: 20px 22px; display: grid; gap: 16px; }
@media (min-width: 860px) { .ck { grid-template-columns: 1fr auto; align-items: center; } }
.ck h2 { font-size: 1.15rem; margin: 0 0 4px; }
.ck p { margin: 0; font-size: .93rem; color: var(--muted); }
.ck__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck__btns .btn { min-height: 44px; padding: 10px 16px; }
.dlg { border: 0; border-radius: var(--r); padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(11, 26, 51, .55); }
.dlg__in { padding: 24px; }
.dlg h2 { font-size: 1.35rem; }
.ckcat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; margin-bottom: 10px; }
.ckcat label { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 700; color: var(--ink); }
.ckcat p { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.ckcat input { width: 22px; height: 22px; accent-color: var(--plum); }
.dlg__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* 404 */
.nf { text-align: center; padding: 90px 0; }
.nf__code { font: 800 clamp(5rem, 16vw, 10rem)/1 var(--f-head); color: var(--plum); letter-spacing: -.05em; }
.nf__code span { color: var(--maple); }

@media print { .hd, .topbar, .ck, .ft form, .mnav { display: none !important; } body { font-size: 12pt; } }

/* Mobile density tweaks */
.tgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 1000px) { .tgrid { grid-template-columns: repeat(4, 1fr); gap: 22px; } .tgrid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) {
  .tcard__b { padding: 12px; }
  .tcard__b p:not(.role) { display: none; }
  .tgrid--full .tcard__b p:not(.role) { display: block; }
  .tgrid--full { grid-template-columns: 1fr; }
  .home-cards > :nth-child(n+4) { display: none; }
  .fmtgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fmtgrid .fmt { padding: 16px; }
  .fmtgrid .fmt p { font-size: .88rem; }
  .home-board { display: none; }
  .topbar__r span:not(:first-child) { display: none; }
  .topbar .wrap { padding: 6px 0; }
}
.home-board-alt { display: none; }
@media (max-width: 699px) { .home-board-alt { display: block; } }
.cp > *, .split > *, .cat > *, .lt > *, .legal-grid > *, .phero--split .wrap > *, .hero .wrap > * { min-width: 0; }
.board-wrap, .tbl { max-width: 100%; position: relative; }

/* Logo + standards + labels */
.logo__mark { width: 46px; height: 46px; flex: none; }
.ft .logo__mark .arch, .mnav .logo__mark .arch { stroke: #fff; }
.tag-note { display: inline-block; font: 700 .72rem/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--maple-d); background: #fdecea; border: 1px solid #f3c4bf; border-radius: 5px; padding: 2px 7px; vertical-align: middle; }
.sec--plum .tag-note, .phero .tag-note, .ft .tag-note, .hero .tag-note { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.std { counter-reset: s; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .std { grid-template-columns: repeat(5, 1fr); } }
.std li { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--plum); border-radius: var(--r); padding: 18px; counter-increment: s; }
.std li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 1.5rem/1 var(--f-head); color: var(--maple); margin-bottom: 10px; }
.std b { display: block; color: var(--ink); margin-bottom: 4px; }
.std span { font-size: .93rem; color: var(--muted); }
.sec--plum .std li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); border-top-color: var(--maple); }
.sec--plum .std b { color: #fff; } .sec--plum .std span { color: #cdd7ea; }
.cinfo li > div { min-width: 0; } a[href^="mailto:"] { overflow-wrap: anywhere; } .ft__legal, .topbar { overflow-wrap: anywhere; }

/* ===== Inner layouts (Toronto-specific) ===== */
#enrol, #booking, #hours, #dates, h1, .ctabs__panel, .pgroup, [id^="p-"] { scroll-margin-top: calc(var(--hd-h) + 20px); }

/* Contact: light title -> icon tiles -> classroom band with overlapping form card */
.ctitle { background: linear-gradient(180deg, var(--paper), #fff); padding: clamp(32px, 5vw, 60px) 0 clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--line); position: relative; }
.ctitle::after { content: ""; position: absolute; left: 0; bottom: -1px; width: min(46%, 520px); height: 6px; background: linear-gradient(90deg, var(--maple) 0 60%, var(--plum-3) 60% 85%, var(--sky) 85%); }
.ctitle .crumbs a { color: var(--plum-2); }
.ctitle .crumbs [aria-current] { color: var(--muted); }
.ctitle .crumbs li + li::before { color: #8a97ad; }
.ctitle h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; margin-bottom: .3em; }
.ctitle .lead { margin: 0; }
.ctiles-sec { padding: clamp(28px, 4vw, 44px) 0; }
.ctiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .ctiles { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.ctile { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; box-shadow: 0 16px 34px -30px rgba(11, 26, 51, .6); }
.ctile::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--maple); }
.ctile:nth-child(2)::before { background: var(--plum-3); } .ctile:nth-child(3)::before { background: var(--c-study); }
.ctile__i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; }
.ctile__i .ico { width: 24px; height: 24px; }
.ctile > div { min-width: 0; }
.ctile h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.ctile__v { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.ctile__v a { font-weight: 700; }
.ctile .small { margin: 0; }
.cband { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.cband__art { margin: 0; position: relative; height: 230px; overflow: hidden; background: var(--lilac); border-block: 1px solid var(--line); }
.cband__svg { display: block; width: 100%; height: 100%; }
.cband__cap { position: absolute; left: 12px; top: 12px; background: rgba(11, 26, 51, .86); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; max-width: calc(100% - 24px); }
.cband__grid { position: relative; display: grid; gap: 22px; margin-top: -36px; }
.cband__card { order: 1; min-width: 0; }
.cband__side { order: 2; min-width: 0; }
.cband__card .formcard { box-shadow: 0 34px 70px -40px rgba(11, 26, 51, .55); border-top: 6px solid var(--maple); }
@media (min-width: 960px) {
  .cband__art { height: 460px; }
  .cband__cap { left: max(20px, calc((100% - var(--wrap)) / 2)); top: auto; bottom: 18px; }
  .cband__grid { grid-template-columns: 1fr minmax(0, 620px); gap: 40px; margin-top: -380px; }
  .cband__card { order: 2; }
  .cband__side { order: 1; align-self: start; margin-top: 420px; }
}
.hrs { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hrs summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; padding: 14px 18px; }
.hrs summary::-webkit-details-marker { display: none; }
.hrs summary > span:nth-child(2) { display: flex; flex-direction: column; }
.hrs summary b { color: var(--ink); }
.hrs summary::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312284f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform .2s; }
.hrs[open] summary::after { transform: rotate(180deg); }
.hrs__i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--lilac); color: var(--plum); }
.hrs__b { padding: 0 18px 16px; }

/* Course detail: ARIA tabs + ticket-style booking strip */
.sec--course { padding-top: clamp(36px, 5vw, 60px); }
.ctabs { margin-top: 40px; }
.ctabs__list { display: none; }
.js .ctabs__list { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 28px; scrollbar-width: thin; }
.ctabs__tab { flex: none; font: 700 1rem/1.2 var(--f-body); color: var(--muted); background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 14px 18px 12px; cursor: pointer; border-radius: 8px 8px 0 0; min-height: 48px; }
.ctabs__tab:hover { color: var(--ink); background: var(--paper); }
.ctabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--c, var(--maple)); background: var(--paper); }
.ctabs__panel { padding: 4px 0; }
.ctabs__panel:focus-visible { border-radius: 8px; }
html:not(.js) .ctabs__panel + .ctabs__panel { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.js .ctabs__h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctabs__panel h3 { font-size: 1.45rem; margin-bottom: .6em; }
.ov, .inc { display: grid; gap: 36px; }
@media (min-width: 900px) { .ov { grid-template-columns: 1.1fr .9fr; } .inc { grid-template-columns: 1fr 1fr; } }
.ov > *, .inc > * { min-width: 0; }
.inc__fee { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feedl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 14px; }
.feedl dt { color: var(--muted); } .feedl dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.feedl dt:last-of-type, .feedl dd:last-of-type { border-top: 1px solid var(--line); padding-top: 8px; }
.ticket { margin-top: 48px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ticket__stub { background: var(--plum); color: #dfe6f3; padding: 22px 24px; position: relative; }
.ticket__stub .lb { color: #fff; }
.ticket__stub .lb::before { border-color: var(--c); }
.ticket__stub h2 { color: #fff; font-size: 1.5rem; margin: 8px 0 4px; }
.ticket__stub p { margin: 0; color: #cdd7ea; }
.ticket__price, .ticket__cta { padding: 20px 24px; }
.ticket__price .price { font: 800 2.1rem/1 var(--f-head); color: var(--ink); }
.ticket__cta { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; border-top: 2px dashed var(--line); }
.ticket__cta .btn { flex: 1 1 200px; }
@media (min-width: 1000px) {
  .ticket { grid-template-columns: 300px 1fr auto; align-items: stretch; }
  .ticket__stub::after { content: ""; position: absolute; right: -12px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: #fff; }
  .ticket__price { align-self: center; padding-left: 32px; }
  .ticket__cta { border-top: 0; border-left: 2px dashed var(--line); flex-direction: column; flex-wrap: nowrap; }
  .ticket__cta .btn { flex: none; }
}

/* Pricing: vertical price list with toggles */
.pl-ctrl { display: none; }
.js .pl-ctrl { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 1000px) { .js .pl-ctrl { position: sticky; top: calc(var(--hd-h) + 8px); z-index: 5; box-shadow: 0 14px 30px -26px rgba(11, 26, 51, .6); } }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 6px; padding: 0; }
.seg__opts { display: inline-flex; flex-wrap: wrap; background: #fff; border: 1.5px solid #b9c3d6; border-radius: 999px; padding: 3px; gap: 2px; }
.seg__o { position: relative; }
.seg__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__o span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--text); }
.seg__o input:checked + span { background: var(--plum); color: #fff; }
.seg__o input:focus-visible + span { box-shadow: var(--focus); }
.seg__o:hover input:not(:checked) + span { background: var(--lilac); }
.sw { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.sw__lbl { font-weight: 700; color: var(--ink); font-size: .94rem; }
.sw__btn { width: 56px; height: 32px; border-radius: 999px; border: 2px solid var(--plum); background: #fff; position: relative; cursor: pointer; padding: 0; flex: none; }
.sw__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--plum); transition: transform .15s; }
.sw__btn[aria-checked="true"] { background: var(--maple); border-color: var(--maple); }
.sw__btn[aria-checked="true"] .sw__knob { transform: translateX(24px); background: #fff; }
.pl-status { margin: 14px 0 6px; color: var(--muted); }
.pgroup { margin-top: 30px; }
.pgroup h2 { font-size: 1.55rem; margin-bottom: 12px; }
.plist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.prow { display: grid; grid-template-columns: 1fr; gap: 8px 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 760px) { .prow { grid-template-columns: 1fr minmax(220px, auto); padding: 18px 8px; } }
.prow:hover { background: var(--paper); }
.prow__main { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; min-width: 0; }
.prow__dot { width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; border: 4px solid var(--c, var(--plum)); background: #fff; }
.prow__t { font: 700 1.1rem/1.3 var(--f-head); color: var(--ink); text-decoration: none; }
.prow__t:hover { color: var(--maple-d); text-decoration: underline; }
.prow__meta { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.prow__price { display: grid; justify-items: start; padding-left: 30px; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .prow__price { justify-items: end; text-align: right; padding-left: 0; } }
.prow__amt { font: 800 1.5rem/1.1 var(--f-head); color: var(--ink); }
.prow__unit { font-size: .88rem; font-weight: 600; color: var(--text); }
.prow__det { font-size: .84rem; color: var(--muted); }
@media (max-width: 520px) { .ctabs__tab { padding: 12px 9px 10px; font-size: .92rem; } .js .ctabs__list { gap: 0; } }
