/* ===========================================================================
   Solex Network Solutions - public site, v3 design
   Loaded only on public pages, after app.css. The student app and the admin
   panel never load it, so nothing here can change how they look or work.

   Structure
     1. tokens (light and dark)        6. course detail
     2. base, type, buttons, forms     7. blog, pages, contact, corporate
     3. top bar, header, menu          8. checkout and preview touches
     4. hero bands                     9. footer
     5. home sections and cards       10. motion and responsive
   =========================================================================== */

/* ---------- 1. tokens ------------------------------------------------------ */
html[data-chrome="public"] {
  --bg: #060b16; --bg-2: #0a1222; --panel: #0f1a2e; --panel-2: #14223a;
  --line: #1f2f4b; --line-soft: #172540;
  --ink: #eaf1f9; --ink-2: #b0bfd3; --dim: #8093ac;
  --head-bg: rgba(6, 11, 22, .86);
  --card-hover: #2c4772;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  --row-hover: rgba(255,255,255,.03);
  --ok: #3ac07a;

  --navy: #050d1d; --navy-2: #0b1a36; --navy-ink: #f2f6fc; --navy-dim: rgba(226,236,250,.72);
  --btn: color-mix(in srgb, var(--brand-2) 86%, #000);
  --btn-hover: var(--brand-2);
  --focus: color-mix(in srgb, var(--brand) 35%, transparent);

  --radius: 16px; --radius-sm: 10px; --maxw: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  html[data-chrome="public"]:not([data-theme="dark"]) {
    --bg: #ffffff; --bg-2: #f4f7fb; --panel: #ffffff; --panel-2: #f2f5f9;
    --line: #e1e7ef; --line-soft: #ecf0f5;
    --ink: #0a1426; --ink-2: #44546b; --dim: #67788f;
    --head-bg: rgba(255, 255, 255, .92);
    --card-hover: #c6d3e4;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
    --shadow: 0 14px 34px -12px rgba(15,35,70,.2);
    --shadow-lg: 0 30px 70px -24px rgba(10,30,70,.35);
    --row-hover: rgba(10,20,38,.025);
    --ok: #158a4f;
  }
}
html[data-chrome="public"][data-theme="light"] {
  --bg: #ffffff; --bg-2: #f4f7fb; --panel: #ffffff; --panel-2: #f2f5f9;
  --line: #e1e7ef; --line-soft: #ecf0f5;
  --ink: #0a1426; --ink-2: #44546b; --dim: #67788f;
  --head-bg: rgba(255, 255, 255, .92);
  --card-hover: #c6d3e4;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
  --shadow: 0 14px 34px -12px rgba(15,35,70,.2);
  --shadow-lg: 0 30px 70px -24px rgba(10,30,70,.35);
  --row-hover: rgba(10,20,38,.025);
  --ok: #158a4f;
}

/* ---------- 2. base -------------------------------------------------------- */
html[data-chrome="public"] body { font-family: var(--font); font-size: 16px; line-height: 1.65; background: var(--bg); }
/* :where() keeps these at element weight, so any component rule wins. */
:where(html[data-chrome="public"]) :where(h1, h2, h3, h4) { font-family: var(--display); letter-spacing: -.015em; word-spacing: .06em; color: var(--ink); }
:where(html[data-chrome="public"]) h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; }
:where(html[data-chrome="public"]) h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 800; line-height: 1.15; }
:where(html[data-chrome="public"]) h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { padding: 0 24px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: 0 0 auto; vertical-align: -.2em; }
.lede { font-size: 1.12rem; line-height: 1.65; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* buttons */
.btn {
  background: var(--btn); color: #fff; border-radius: 10px; font-weight: 600; font-size: .95rem;
  padding: .74rem 1.3rem; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--btn-hover); color: #fff; filter: none; transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--brand-2) 60%, transparent); }
.btn.big { padding: .95rem 1.6rem; font-size: 1rem; }
.btn.small { padding: .5rem .95rem; font-size: .86rem; }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--panel-2); color: var(--ink); border-color: var(--card-hover); box-shadow: var(--shadow-sm); }
.btn .ic { width: 1.05em; height: 1.05em; transition: transform .15s ease; }
.btn:hover .ic { transform: translateX(2px); }
.wa-btn { border-color: color-mix(in srgb, #25d366 50%, var(--line)) !important; }

/* chips */
.chip { font-size: .8rem; font-weight: 500; padding: .32rem .8rem; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
button.chip { font: inherit; font-size: .84rem; cursor: pointer; }
.chip:hover, .chip.on { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--panel)); }
.chip .n { opacity: .6; font-size: .9em; margin-left: .15rem; }

/* forms */
html[data-chrome="public"] :is(input:not([type]), input[type=text], input[type=email], input[type=password],
  input[type=number], input[type=date], input[type=url], input[type=tel], input[type=search], select, textarea) {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: .74rem .9rem; font-size: .95rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
html[data-chrome="public"] :is(input, select, textarea):focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.field > span i { color: var(--danger); font-style: normal; }
.field-row { gap: 0 1rem; }
.panel { border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.panel > h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* flash messages - a full-width message under the header, at page width */
main > .flash { max-width: calc(var(--maxw) - 48px); margin: 1.2rem auto; width: calc(100% - 48px); }
.flash { border-radius: 12px; font-weight: 500; }
.flash.ok { background: color-mix(in srgb, var(--ok) 12%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ink); }
.flash.err, .flash.error { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--ink); }

/* ---------- 3. top bar, header, menu --------------------------------------- */
.top-bar { background: var(--navy); color: var(--navy-dim); font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.tb-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.tb-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-links { display: flex; gap: 1.4rem; flex: 0 0 auto; }
.tb-links a { color: var(--navy-dim); display: inline-flex; align-items: center; gap: .4rem; }
.tb-links a:hover { color: #fff; }
.tb-links a.tb-login { color: #fff; font-weight: 600; }
.nav-cta .btn.ghost .ic, .bar-login .ic { margin-right: .35rem; }
@media (max-width: 640px) { .tb-links a.tb-login { display: none; } }

.site-head { background: var(--head-bg); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s ease; }
.site-head.scrolled { box-shadow: 0 8px 24px -12px rgba(10,25,50,.25); }
.nav { height: 74px; gap: 2rem; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-size: 1.08rem; color: var(--ink); line-height: 1.1; }
.brand strong { font-weight: 800; }
.brand em { font-style: normal; color: var(--dim); font-size: .8rem; }
.links { gap: .2rem; align-items: center; }
.links > a, .dd > a { color: var(--ink-2); font-size: .93rem; font-weight: 500; padding: .5rem .75rem; border-radius: 8px; }
.links > a:hover, .dd > a:hover, .dd:hover > a { color: var(--ink); background: var(--panel-2); }
.links a.on { color: var(--brand); font-weight: 600; }
.links a.on::after { display: none; }
.nav-cta { gap: .55rem; }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; }

/* the courses menu */
.dd { position: relative; }
.dd-caret { font-size: .7em; opacity: .6; margin-left: .15rem; }
.dd-panel {
  position: absolute; left: 50%; top: calc(100% + 10px); width: min(640px, 80vw);
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: .7rem; z-index: 70;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.dd-item { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; color: var(--ink); }
.dd-item:hover { background: var(--panel-2); color: var(--ink); }
.dd-item b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.dd-item em { display: block; font-style: normal; font-size: .78rem; color: var(--dim); margin-top: .1rem; }
.dd-dot { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; margin-top: .1rem;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); }
.dd-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .8rem .35rem; margin-top: .4rem;
  border-top: 1px solid var(--line-soft); font-size: .86rem; font-weight: 600; }

/* ---------- 4. hero bands -------------------------------------------------- */
/* The home hero and every page hero sit on deep navy in both themes: one
   strong, consistent opening on every page, like a product site. */
.hero, .page-hero {
  --ink: var(--navy-ink); --ink-2: var(--navy-dim); --dim: rgba(226,236,250,.6);
  position: relative; overflow: hidden; color: var(--navy-ink); isolation: isolate;
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  filter: none !important; opacity: 1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/img/hero-5g.svg") right center / cover no-repeat;
  opacity: .28; filter: none !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(6rem, 9vw, 8rem); }
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3.5rem; }
.hero .eyebrow {
  color: #bfeaff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  letter-spacing: .12em; font-size: .74rem;
}
.hero .eyebrow .pulse-dot { background: var(--accent); margin: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1rem; }
.hero h1 .grad { background: linear-gradient(110deg, #6fd3ff, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.hero .hero-sub { color: #9fe7d6; }
.hero .lede, .page-hero .lede { color: var(--navy-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
:is(.hero, .page-hero, .cta-box, .band) .btn { background: #fff; color: #08162e; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
:is(.hero, .page-hero, .cta-box, .band) .btn:hover { background: #e9f4ff; color: #08162e; }
:is(.hero, .page-hero, .cta-box, .band) .btn.ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
:is(.hero, .page-hero, .cta-box, .band) .btn.ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.hero-trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--navy-dim); }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .ic { color: var(--accent); }

/* the enquiry card - always a light card, so the form reads as a form */
.hero-form {
  --ink: #0a1426; --ink-2: #44546b; --dim: #67788f; --panel: #fff; --panel-2: #f2f5f9; --line: #dde4ee;
  background: #fff; color: #0a1426; border-radius: 20px; padding: 1.8rem; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.hero-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); }
.hero-form h3 { font-size: 1.3rem; margin-bottom: .2rem; color: #0a1426; }
.hf-sub { color: #5a6a80; font-size: .92rem; margin-bottom: 1.1rem; }
.hero-form .field { margin-bottom: .8rem; }
.hero-form .field > span { color: #3a4a60; font-size: .8rem; }
.hero-form :is(input, select) { background: #f7f9fc !important; color: #0a1426 !important; border-color: #dde4ee !important; padding: .68rem .85rem !important; }
.hero-form :is(input, select):focus { background: #fff !important; border-color: var(--brand) !important; }
.hero-form .btn { background: var(--btn) !important; color: #fff !important; margin-top: .3rem; }
.hero-form .btn:hover { background: var(--btn-hover) !important; }
.hf-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .8rem 0 0; font-size: .8rem; color: #67788f; }
.hero-card { --ink: #eaf1f9; --ink-2: #b0bfd3; --dim: #8093ac; --line-soft: rgba(255,255,255,.08);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #eaf1f9; }
.hero-card h3 { color: #fff; }
.hero-shot img { border-color: rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }

/* stats, lifted onto the edge of the hero */
.stats-band { position: relative; z-index: 2; margin-top: -4rem; }
.stats-band .hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin: 0; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 1.6rem .5rem;
}
.stats-band .hero-stats .stat, .stats-band .hero-stats .stat:first-child {
  background: none; border: 0; border-left: 1px solid var(--line-soft); border-radius: 0; box-shadow: none;
  padding: .3rem 1.6rem; margin: 0;
}
.stats-band .hero-stats .stat:first-child { border-left: 0; }
.stats-band .hero-stats .stat strong {
  font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(110deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-band .hero-stats .stat span { font-size: .78rem; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; margin-top: .3rem; display: block; }

/* inner page opening band */
.page-hero { padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.6rem, 5vw, 3.8rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: .2rem 0 .6rem; max-width: 24ch; }
.page-hero .lede { max-width: 64ch; margin: 0; }
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(226,236,250,.6); font-size: .84rem; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span[aria-hidden] { margin: 0 .25rem; opacity: .5; }
.page-hero .hero-actions { margin-top: 1.6rem; }
.page-hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e2ecfa; }
.ch-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.page + .cta, .page-hero + .section { margin-top: 0; }

/* ---------- 5. home sections and cards ------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--bg-2); border-color: var(--line-soft); }
.section-head { max-width: 68ch; margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head .lede { margin: 0; }
.section-head.center .lede { margin: 0 auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.head-row .section-head { margin-bottom: 0; }
.more-link { margin: 2.4rem 0 0; }

.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow); }

/* logos */
.logos { padding: 2.6rem 0 1rem; border: 0; }
.logos img { height: 34px; }

/* batch card */
.batch-sec { padding-top: 2.6rem !important; }
.batch-card { border-radius: 20px; padding: 1.8rem 2rem; box-shadow: var(--shadow);
  background: linear-gradient(110deg, color-mix(in srgb, var(--brand) 12%, var(--panel)), var(--panel) 60%); }

/* course cards */
.card.cc { padding: 0; border-radius: 18px; }
/* No lift on hover: a raised card looked out of line with its neighbours. */
.card.cc:hover { transform: none; border-color: var(--card-hover); box-shadow: var(--shadow); }
.cc-cover { height: 158px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, var(--cover), color-mix(in srgb, var(--cover) 40%, #020814)); }
.cc-cover.has-img { height: 180px; }
.cc-art { position: absolute; right: -8px; bottom: -14px; color: rgba(255,255,255,.18); transform: rotate(-8deg); }
.cc-art .ic { width: 130px; height: 130px; stroke-width: 1.2; }
.cc-cover .chip { left: 1rem; bottom: 1rem; font-weight: 600; }
.cc-cover .cc-code {
  position: absolute; top: .9rem; right: .9rem; margin: 0; padding: .2rem .55rem; border-radius: 6px;
  background: rgba(2, 8, 20, .5); color: rgba(255,255,255,.9); font-size: .7rem; backdrop-filter: blur(4px);
}
.cc-body { padding: 1.3rem 1.35rem 1.35rem; }
/* Every title takes two lines of room (and at most two), so the lessons row,
   price and buttons sit at the same height in every card of a row. */
.cc-body h3 { font-size: 1.14rem; line-height: 1.32; margin-bottom: .5rem; min-height: 2.64em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cc-body > p { font-size: .91rem; margin-bottom: 1rem; }
.cc-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--dim); }
.cc-facts li { display: inline-flex; align-items: center; gap: .35rem; }
.cc-facts .ic { color: var(--brand); }
.cc-foot { padding-top: .9rem; border-top: 1px solid var(--line-soft); min-height: 2.6rem; }
.cc-foot .course-price { margin-left: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 800; }
.card-actions { margin-top: 1rem; }

/* "what you work on" tiles */
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stack-tile { --t: var(--brand); position: relative; padding: 1.3rem 1.3rem 1.25rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.stack-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--t); }
.stack-tile.teal { --t: var(--accent); } .stack-tile.amber { --t: var(--warn); }
.stack-tile b { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: .3rem; color: var(--ink); }
.stack-tile span { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.stack-tile em { float: right; font-style: normal; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  color: var(--t); border: 1px solid color-mix(in srgb, var(--t) 40%, transparent); border-radius: 6px; padding: .1rem .45rem; margin-left: .5rem; }

/* how it works */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: s; position: relative; }
.step-card { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.step-card h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.step-card p { color: var(--ink-2); font-size: .92rem; margin: 0; line-height: 1.55; }
.step-card:not(:last-child)::after { content: ""; position: absolute; top: 2.3rem; right: -1.2rem; width: 1.2rem; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--brand)); }

/* learning path */
.path { gap: 1.2rem; }
.path-step { padding: 1.5rem 1.35rem; box-shadow: var(--shadow-sm); border-radius: var(--radius); display: flex; flex-direction: column; }
a.path-step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.path-n { background: color-mix(in srgb, var(--brand) 12%, transparent); padding: .2rem .6rem; border-radius: 6px; align-self: flex-start; }
.path-go { margin-top: auto; padding-top: .9rem; font-size: .86rem; font-weight: 600; color: var(--brand); display: inline-flex; gap: .3rem; align-items: center; }
.path-step:not(:last-child)::after { right: -1rem; }

/* why us */
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.why { padding: 1.6rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--card-hover); }
.why-ico { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 1.1rem; }
.why h3 { font-size: 1.08rem; }
.why p { font-size: .92rem; }

/* trainer */
.trainer { gap: 4rem; grid-template-columns: 360px 1fr; }
.trainer-photo img, .trainer-initial { border-radius: 22px; box-shadow: var(--shadow-lg); }

/* testimonials */
.card.quote { position: relative; padding: 1.8rem 1.6rem 1.5rem; }
.q-mark { position: absolute; top: .6rem; right: 1.2rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1;
  color: color-mix(in srgb, var(--brand) 25%, transparent); }
.card.quote blockquote { font-size: 1rem; color: var(--ink-2); }
.card.quote figcaption { padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.card.quote figcaption b { color: var(--ink); }

/* products band - dark, like the hero, to close the page strongly */
.product-band { padding-top: 0; }
.section.alt + .product-band { padding-top: clamp(3.5rem, 7vw, 6rem); }
.band {
  --ink: var(--navy-ink); --ink-2: var(--navy-dim); --dim: rgba(226,236,250,.6);
  color: var(--navy-ink); border: 0; border-radius: 24px; padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-lg);
}
.band h2 { color: #fff; }
.band .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #cfe9ff; }
.band .band-specs > div { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.band .band-specs b { color: #fff; }
.band-specs b { font-family: var(--display); }
.band-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .lede { font-size: 1rem; }
.faq-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.faq { border-radius: 14px; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
.faq summary { padding: 1.15rem 3.4rem 1.15rem 1.3rem; font-family: var(--display); font-weight: 700; font-size: 1rem; }
.faq summary::after { content: ""; width: 28px; height: 28px; border-radius: 8px; right: 1rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fa8e0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; }

/* closing call to action */
.section.cta { padding-top: clamp(2.5rem, 5vw, 4rem); }
.cta-box {
  --ink: #fff; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 2rem 3rem;
  padding: clamp(2rem, 4.5vw, 3.4rem); border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 100%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(120deg, color-mix(in srgb, var(--brand-2) 90%, #000), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; margin-bottom: .5rem; }
.cta-box .lede { color: rgba(255,255,255,.82); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; justify-content: flex-end; }

/* blog cards */
.post-card { padding: 0; overflow: hidden; }
.post-card:hover { transform: translateY(-3px); border-color: var(--card-hover); }
.pc-cover { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--panel-2); }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.post-card:hover .pc-cover img { transform: scale(1.04); }
.pc-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.pc-body .chip { margin-bottom: .8rem; font-size: .74rem; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.pc-body h3 { font-size: 1.1rem; line-height: 1.35; }
.pc-body h3 a { color: var(--ink); }
.pc-body h3 a:hover { color: var(--brand); }
.pc-body > p:not(.post-meta) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body .post-meta { margin-top: auto; padding-top: 1rem; font-size: .8rem; align-items: center; gap: .4rem; }
.post-aside-list .post-card { padding: 0; }
.post-aside-list .pc-cover { display: none; }
.post-aside-list .pc-body { padding: 1rem 1.1rem; }

/* ---------- 6. course detail ----------------------------------------------- */
.course-hero {
  background:
    radial-gradient(800px 460px at 90% -20%, color-mix(in srgb, var(--cover) 70%, transparent), transparent 65%),
    radial-gradient(600px 400px at 0% 120%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
}
.ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; }
.course-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 30ch; }
.ch-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--navy-dim); font-size: .92rem; }
.ch-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.ch-facts b { color: #fff; font-weight: 600; }
.ch-facts .ic { color: #7fd6ff; }

.course-split { grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; }
.course-body.page { padding-top: 0; }
.course-main { padding-top: 1.6rem; min-width: 0; }
aside.sticky-save {
  position: sticky; top: 96px; bottom: auto; display: block; margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0;
}
aside.sticky-save.course-side {
  margin-top: -16rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 5;
}
.side-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.3);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.2), transparent 55%),
              linear-gradient(135deg, var(--cover, var(--brand-2)), color-mix(in srgb, var(--cover, var(--brand-2)) 40%, #020814)); }
.course-body { --cover: var(--brand-2); }
.side-cover.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-play { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; gap: .5rem; align-items: center;
  background: rgba(255,255,255,.95); color: #08162e; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .86rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); white-space: nowrap; }
.side-play:hover { background: #fff; color: #08162e; }
.side-play .ic { color: var(--brand-2); }
.course-side .buy-panel { padding: 1.5rem; }
.course-side .price-block strong { font-family: var(--display); font-size: 2.2rem; font-weight: 800; }
.course-side .buy-panel .btn.wide { margin: .6rem 0 .4rem; }
.course-side .check { font-weight: 600; color: var(--ok); }

.course-tabs { position: sticky; top: 74px; z-index: 20; display: flex; gap: .3rem; margin: 0 0 1.8rem;
  padding: .55rem 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.course-tabs a { padding: .45rem .85rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.course-tabs a:hover { background: var(--panel-2); color: var(--ink); }
.course-summary { margin-bottom: 2rem; background: color-mix(in srgb, var(--brand) 5%, var(--panel)); }
.course-summary h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.course-summary p { margin: 0; color: var(--ink-2); }
#overview, #curriculum, #faq { scroll-margin-top: 140px; }
.course-main .prose { max-width: none; margin-bottom: 2.6rem; }

.curriculum { margin-top: 1rem; }
.cur-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cur-head h2 { margin: 0; font-size: 1.7rem; }
.cur-head .btn { margin-left: auto; }
details.week { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: .7rem; overflow: hidden; box-shadow: var(--shadow-sm); }
details.week > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--panel-2); font-family: var(--display); }
details.week > summary::-webkit-details-marker { display: none; }
details.week > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); transition: transform .2s ease; margin-right: .1rem; }
details.week[open] > summary::before { transform: rotate(45deg); }
.wk-n { font-weight: 700; color: var(--ink); }
.wk-meta { margin-left: auto; color: var(--dim); font-size: .85rem; font-family: var(--font); }
details.week .lesson-list { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
details.week .lesson-row { padding: .85rem 1.2rem; }
.lesson-row .lesson-icon { width: 32px; height: 32px; }
.lesson-row .lesson-side { color: var(--dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lesson-row.preview .lesson-icon { color: #fff; background: var(--brand-2); border-color: transparent; }

/* course list tools */
.course-tools { display: none; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
html.js .course-tools { display: flex; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; margin: 0; }
.search .ic { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { padding-left: 2.6rem !important; }
.card.cc[hidden] { display: none; }

/* ---------- 7. blog, pages, contact, corporate ----------------------------- */
.page { padding-top: 2.6rem; padding-bottom: 4.5rem; }
.narrow-page { max-width: 880px; }
.blog-chips { margin-bottom: 2rem; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.4rem; }
.post-head { padding-top: 2.4rem; }
.post-head h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.post-cover { width: 100%; border-radius: 18px; margin-bottom: 2rem; box-shadow: var(--shadow); }
.prose { color: var(--ink-2); line-height: 1.8; }
.prose :is(h2, h3) { font-family: var(--display); }
.prose pre.code { border-radius: 12px; }
.toc a { border-left-width: 2px; }

.contact-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; }
.contact-side h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-cards { display: grid; gap: .75rem; }
.c-card { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: .92rem;
  transition: border-color .15s ease, transform .15s ease; overflow-wrap: anywhere; }
a.c-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink-2); }
.c-card .ic { width: 40px; height: 40px; padding: 10px; border-radius: 10px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent); }
.c-card.wa .ic { color: #1faa55; background: rgba(37, 211, 102, .14); }
.c-card b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .1rem; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stats .stat { border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.about-stats .stat strong { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--brand-2); }
.corp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
.proposal { box-shadow: var(--shadow); padding: 2rem; }
.proposal h3 { font-size: 1.35rem; }

.nf { text-align: center; padding: 4rem 0 2rem; max-width: 620px; margin: 0 auto; }
.nf-code { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1;
  background: linear-gradient(110deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .lede { margin: .5rem auto 1.6rem; }
.nf-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* products */
.product-card { border-radius: 18px; padding: 1.8rem; }
.product-card.featured { border-radius: 22px; box-shadow: var(--shadow); padding: 2.2rem; }
.product-card h3 { font-size: 1.3rem; margin: .8rem 0 .5rem; }
.products-grid { gap: 1.2rem; margin-top: 1.4rem; }
#enquiry { margin-top: 3.5rem; scroll-margin-top: 100px; }

/* ---------- 8. checkout, preview, batch ------------------------------------ */
.page-head h1 { font-family: var(--display); }
.steps li { padding: .4rem .95rem .4rem .45rem; }
.checkout-grid .panel, .order-summary { box-shadow: var(--shadow-sm); }
.player { border-radius: 16px; box-shadow: var(--shadow-lg); }
.chip.live { color: #fff; }
.kv > div { padding: .7rem 0; }
.page-hero + .wrap.page > .split { margin-top: 0; }

/* ---------- 9. footer ------------------------------------------------------ */
.site-foot {
  --ink: #fff; --ink-2: rgba(226,236,250,.72); --dim: rgba(226,236,250,.55);
  background: var(--navy); border-top: 0; margin-top: 0; padding: 4.5rem 0 1.6rem; color: var(--ink-2);
}
.section.cta + .site-foot, main + .site-foot { margin-top: 0; }
.foot-grid { grid-template-columns: 1.5fr 1.2fr 1.1fr .85fr 1.45fr; gap: 2.2rem; }
.foot-grid a.brand { display: flex; padding: 0; }
.foot-grid h4 { color: #fff; font-family: var(--display); font-size: .8rem; letter-spacing: .12em; margin-bottom: 1.1rem; }
.foot-grid a { color: var(--ink-2); font-size: .9rem; padding: .3rem 0; transition: color .15s ease; }
.foot-grid a:hover { color: #fff; }
.foot-brand .brand span, .foot-brand .brand strong { color: #fff; }
.foot-brand .brand em { color: var(--dim); }
.foot-brand p { margin: 1.1rem 0 1.3rem; font-size: .9rem; line-height: 1.7; max-width: 38ch; color: var(--ink-2); }
.foot-more { font-weight: 600; color: #8fd8ff !important; }
.foot-contact a { display: flex; align-items: center; gap: .55rem; word-break: break-word; font-size: .87rem; }
.foot-contact .ic { color: #8fd8ff; }
.foot-addr { display: flex; gap: .55rem; font-size: .9rem; margin-top: .4rem; }
.foot-addr .ic { color: #8fd8ff; margin-top: .25rem; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.socials a:hover { background: var(--brand-2); border-color: var(--brand-2); }
.foot-legal { border-top-color: rgba(255,255,255,.1); color: var(--dim); margin-top: 3rem; }

/* ---------- 10. motion and responsive -------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
/* Cards only fade in, so every card in a row always sits on the same line. */
html.js .card.reveal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card.cc:hover, .why:hover, .post-card:hover { transform: none; }
}

@media (max-width: 1200px) {
  .links > a, .dd > a { padding: .5rem .55rem; font-size: .9rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-contact { grid-column: span 2; }
}
@media (max-width: 1040px) {
  .nav { height: 66px; }
  .nav-panel { inset: 66px 0 auto 0; max-height: calc(100vh - 66px); background: var(--panel); }
  .links > a, .dd > a { display: block; padding: .9rem .2rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .links > a:hover, .dd > a:hover { background: none; }
  .dd-panel { display: none; }
  .dd-caret { display: none; }
  .tb-msg { display: none; }
  .tb-in { justify-content: center; }
  .course-tabs { top: 66px; }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: none; }
  .hero::after { opacity: .14; }
  .ch-grid { grid-template-columns: 1fr; }
  .course-split, .contact-split, .corp-split, .about-grid, .faq-wrap { grid-template-columns: 1fr; gap: 2rem; }
  aside.sticky-save.course-side { margin-top: 1.6rem; }
  aside.sticky-save { position: static; }
  .faq-side { position: static; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .trainer { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 950px) {
  /* the price and button first on one column, as before */
  .course-body .split > aside { order: 0; }
}
@media (max-width: 760px) {
  .stats-band .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; padding: 1.3rem .3rem; }
  .stats-band .hero-stats .stat, .stats-band .hero-stats .stat:first-child { padding: .2rem 1.1rem; border-left: 0; }
  .stats-band .hero-stats .stat:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .head-row { align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main > .flash { width: calc(100% - 32px); }
  .tb-links { gap: 1rem; }
  .tb-links a:nth-child(2) { display: none; }
  .hero { padding-top: 2.6rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-form { padding: 1.4rem; }
  .steps-grid, .why-grid, .stack-grid, .about-stats { grid-template-columns: 1fr; }
  .stats-band { margin-top: -3rem; }
  .panel, .proposal { padding: 1.25rem; }
  .cur-head .btn { margin-left: 0; }
  .wk-meta { font-size: .78rem; }
  .lesson-row .lesson-icon { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* lists inside the syllabus fold-outs start flush with the card */
details.week .lesson-list { list-style: none; margin: 0; padding: 0; }
.faq summary, .dd-item b, .side-play, .wk-n, .btn { word-spacing: .04em; }
@media (max-width: 640px) {
  .lesson-row, .lesson-row a { flex-wrap: wrap; row-gap: .35rem; }
  .lesson-row .lesson-main { flex: 1 1 100%; }
  .lesson-row .lesson-side { width: 100%; }
}
.trainer-initial { color: #fff; }

/* ===========================================================================
   v3.1 - course cards, programme links, motion
   =========================================================================== */

/* --- course card: one family, a different network per course -------------- */
.card.cc { border-radius: 18px; background: var(--panel); }
.cc-cover, .cc-cover.has-img { height: 176px; }
.cc-cover {
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--cover) 75%, transparent), transparent 62%),
    radial-gradient(60% 90% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(140deg, #061226, #0b1d3d);
}
.cc-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px; }
svg.cc-art { position: absolute; inset: 0; width: 100%; height: 100%; color: inherit; transform: none; right: auto; bottom: auto; }
.cc-lines line { stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.cc-lines line.l2 { stroke-dasharray: 4 6; stroke: rgba(255,255,255,.16); }
.cc-dots circle { fill: color-mix(in srgb, var(--cover) 40%, #fff); }
.cc-dots circle.hub { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.card.cc:hover .cc-lines line { stroke-dasharray: 6 6; animation: cc-flow 1.2s linear infinite; }
@keyframes cc-flow { to { stroke-dashoffset: -24; } }
.cc-label { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1; font-family: var(--display); font-weight: 800;
  font-size: 1.4rem; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.cc-badges { position: absolute; top: .9rem; left: 1rem; right: 1rem; z-index: 1; display: flex; gap: .4rem; flex-wrap: wrap; }
.cc-cover .chip { position: static; font-size: .72rem; font-weight: 600; background: rgba(2,8,20,.5); color: #fff;
  border-color: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.cc-cover .chip.free { background: rgba(31,170,85,.85); border-color: transparent; }
.cc-cover.has-img .cc-label { display: none; }
.cc-track { margin: 0 0 .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.cc-track span { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; color: var(--dim); margin-left: .35rem; }
.cc-body h3 { font-size: 1.12rem; }
.cc-body > p:not(.cc-track) { -webkit-line-clamp: 2; min-height: 3.2em; min-height: 2lh; }  /* a one-line summary keeps the row level too */
.cc-facts { gap: .35rem .9rem; }
.cc-foot { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.cc-foot .course-price { font-size: 1.35rem; }
.cc-foot s { color: var(--dim); font-size: .88rem; }
.cc-foot .save-badge { margin-left: auto; }
.card-actions .btn { flex: 1 1 0; }

/* --- training programmes (search-friendly topic links) -------------------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic { position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.4rem 1.25rem 1.6rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.topic::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--brand), var(--accent)); }
a.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--card-hover); color: var(--ink); }
.topic h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.topic p { color: var(--ink-2); font-size: .9rem; line-height: 1.55; margin: 0; }
.topic-go { margin-top: auto; padding-top: .8rem; font-size: .84rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .3rem; }

/* --- hero: live network backdrop ------------------------------------------ */
.hero-net { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
.hero-net svg { position: absolute; right: -4%; top: 0; height: 100%; width: 70%; }
.hero-net .hn-link { stroke: rgba(127,214,255,.22); stroke-width: 1.2; fill: none; }
.hero-net .hn-flow { stroke: #7fd6ff; stroke-width: 2; fill: none; stroke-dasharray: 3 140; stroke-linecap: round; animation: hn-flow 4.5s linear infinite; }
.hero-net .hn-flow.b { stroke: var(--accent); animation-duration: 6s; animation-delay: -2s; }
.hero-net .hn-node { fill: #0c2147; stroke: rgba(127,214,255,.55); stroke-width: 1.5; }
.hero-net .hn-pulse { fill: none; stroke: #7fd6ff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hn-pulse 3s ease-out infinite; }
.hero-net text { fill: rgba(200,230,255,.55); font: 600 11px var(--mono); letter-spacing: .06em; }
@keyframes hn-flow { to { stroke-dashoffset: -286; } }
@keyframes hn-pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.hero::after { opacity: .12; }
@media (max-width: 1000px) { .hero-net { opacity: .25; } .hero-net svg { width: 100%; right: -30%; } }

/* --- header tightens once the page scrolls ------------------------------- */
.nav { transition: height .2s ease; }
.site-head.scrolled .nav { height: 64px; }
.course-tabs a.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .hero-net .hn-flow, .hero-net .hn-pulse, .card.cc:hover .cc-lines line { animation: none; }
  .hero-net .hn-pulse { display: none; }
}
@media (max-width: 1000px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } .cc-label { font-size: 1.2rem; } }

/* ===========================================================================
   v3.2 - headline control, colour, phone action bar, ticker
   =========================================================================== */
.hero h1.hero-h1 { max-width: none; font-size: clamp(28px, 6.4vw, var(--hs, 56px)); line-height: 1.08; text-wrap: initial; }
.hero-h1.lines-one .hl-line, .hero-h1.lines-two .hl-line { display: block; white-space: nowrap; }
html:not(.js) .hero-h1 .hl-line { white-space: normal; }
.hero-form .hf-btn { padding: .72rem 1rem; font-size: .95rem; margin-top: .2rem; }
.hero-form h3 { font-size: 1.18rem; }

/* colour: each why-card and topic gets its own hue */
.why:nth-child(6n+1) .why-ico { --h: #2fa8e0; } .why:nth-child(6n+2) .why-ico { --h: #14b8a6; }
.why:nth-child(6n+3) .why-ico { --h: #8b5cf6; } .why:nth-child(6n+4) .why-ico { --h: #f59e0b; }
.why:nth-child(6n+5) .why-ico { --h: #ec4899; } .why:nth-child(6n+6) .why-ico { --h: #22c55e; }
.why .why-ico { color: var(--h, var(--brand)); background: color-mix(in srgb, var(--h, var(--brand)) 13%, transparent);
  border-color: color-mix(in srgb, var(--h, var(--brand)) 30%, transparent); }
.why .why-tag { color: var(--h, var(--accent)); }
.why:nth-child(6n+1) { --h: #2fa8e0; } .why:nth-child(6n+2) { --h: #14b8a6; } .why:nth-child(6n+3) { --h: #8b5cf6; }
.why:nth-child(6n+4) { --h: #f59e0b; } .why:nth-child(6n+5) { --h: #ec4899; } .why:nth-child(6n+6) { --h: #22c55e; }
.why:hover { border-color: color-mix(in srgb, var(--h, var(--brand)) 45%, var(--line)); }
.topic:nth-child(6n+2)::before { background: linear-gradient(#14b8a6, #2fa8e0); }
.topic:nth-child(6n+3)::before { background: linear-gradient(#8b5cf6, #2fa8e0); }
.topic:nth-child(6n+4)::before { background: linear-gradient(#f59e0b, #ec4899); }
.topic:nth-child(6n+5)::before { background: linear-gradient(#ec4899, #8b5cf6); }
.topic:nth-child(6n+6)::before { background: linear-gradient(#22c55e, #14b8a6); }
.step-card:nth-child(4n+2) .step-n { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.step-card:nth-child(4n+3) .step-n { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.step-card:nth-child(4n+4) .step-n { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* technology ticker under the stats */
.ticker { overflow: hidden; padding: 1.4rem 0 .4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: .7rem; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; white-space: nowrap;
  font-size: .86rem; font-weight: 600; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ticker span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* batch strip now sits above everything */
.batch-strip { z-index: 61; }

/* phone action bar: call, WhatsApp, enquire */
.m-actions { display: none; }
@media (max-width: 760px) {
  .m-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(10,25,50,.35);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .m-actions a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem .5rem;
    font-size: .74rem; font-weight: 600; color: var(--ink-2); }
  .m-actions a .ic { width: 22px; height: 22px; color: var(--brand); }
  .m-actions a.wa .ic { color: #1faa55; }
  .m-actions a.go { color: #fff; background: var(--btn); }
  .m-actions a.go .ic { color: #fff; }
  body:has(.m-actions) .wa-float { display: none; }
  body:has(.m-actions) .site-foot { padding-bottom: 5.5rem; }
  body:has(.buy-bar) .m-actions { display: none; }
  .hero { padding-bottom: 5rem; }
  .hero-trust { font-size: .84rem; }
  .ticker span { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.g6-fig { margin: 0; }
.g6-fig img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.g6-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g6-modules .step-card::after { display: none; }
@media (max-width: 1000px) { .g6-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g6-modules { grid-template-columns: 1fr; } }
.prose img { width: 100%; height: auto; }

/* grid children must be allowed to shrink, or a no-wrap headline line
   widens the whole column and pushes the page past the screen edge */
.hero-grid > *, .hero-copy, .ch-grid > *, .split > *, .about-grid > * { min-width: 0; }
.hero h1.hero-h1 { width: 100%; }
.page-hero .chip.live { color: #fff; }
.chip.live { color: var(--ink); }
@media (max-width: 760px) {
  .batch-strip { padding: .5rem 16px; font-size: .8rem; }
  .batch-strip a { gap: .35rem .6rem; flex-wrap: nowrap; overflow: hidden; }
  .batch-strip .bt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .batch-strip .bd, .batch-strip .bm { display: none; }
  .batch-strip .bs { white-space: nowrap; }
  .batch-strip .blabel { font-size: .64rem; white-space: nowrap; }
}

/* --- white banner option (Admin > Settings > Look and feel) -------------- */
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero) {
  --ink: #0a1426; --ink-2: #44546b; --dim: #67788f; --navy-ink: #0a1426; --navy-dim: #44546b;
  color: #0a1426;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(47,168,224,.20), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(58,208,176,.16), transparent 60%),
    linear-gradient(180deg, #eef6fe, #ffffff 85%);
  border-bottom: 1px solid var(--line-soft);
}
html[data-hero="light"][data-theme="light"] .course-hero {
  background:
    radial-gradient(800px 460px at 90% -20%, color-mix(in srgb, var(--cover) 26%, transparent), transparent 65%),
    linear-gradient(180deg, #eef6fe, #ffffff 85%);
}
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero)::before {
  background-image: linear-gradient(rgba(10,20,38,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,20,38,.05) 1px, transparent 1px);
}
html[data-hero="light"][data-theme="light"] .hero::after { opacity: .06; }
html[data-hero="light"][data-theme="light"] :is(.hero h1, .page-hero h1) { color: #0a1426; }
html[data-hero="light"][data-theme="light"] .hero h1 .grad { background: linear-gradient(110deg, #1b7fc0, #0f9e84); -webkit-background-clip: text; background-clip: text; }
html[data-hero="light"][data-theme="light"] .hero .eyebrow { color: #1b6ea3; background: rgba(47,168,224,.09); border-color: rgba(47,168,224,.28); }
html[data-hero="light"][data-theme="light"] .hero .hero-sub { color: #0f766e; }
html[data-hero="light"][data-theme="light"] :is(.hero .lede, .page-hero .lede, .hero-trust, .ch-facts) { color: #44546b; }
html[data-hero="light"][data-theme="light"] .ch-facts b { color: #0a1426; }
html[data-hero="light"][data-theme="light"] .ch-facts .ic, html[data-hero="light"][data-theme="light"] .hero-trust .ic { color: #1b7fc0; }
html[data-hero="light"][data-theme="light"] :is(.page-hero .crumbs, .page-hero .crumbs a) { color: #67788f; }
html[data-hero="light"][data-theme="light"] .page-hero .crumbs a:hover { color: #1b7fc0; }
html[data-hero="light"][data-theme="light"] .page-hero .chip { background: #fff; border-color: var(--line); color: #44546b; }
html[data-hero="light"][data-theme="light"] .page-hero .chip.live { color: #0a1426; }
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero) .btn { background: var(--btn); color: #fff; box-shadow: 0 10px 24px -12px rgba(27,127,192,.7); }
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero) .btn:hover { background: var(--btn-hover); color: #fff; }
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero) .btn.ghost { background: #fff; color: #0a1426; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
html[data-hero="light"][data-theme="light"] :is(.hero, .page-hero) .btn.ghost:hover { border-color: #1b7fc0; color: #1b7fc0; }
html[data-hero="light"][data-theme="light"] .hero-form { box-shadow: 0 30px 60px -30px rgba(10,40,80,.35), 0 0 0 1px #e1e7ef; }
html[data-hero="light"][data-theme="light"] .hero-net .hn-link { stroke: rgba(27,127,192,.22); }
html[data-hero="light"][data-theme="light"] .hero-net .hn-flow { stroke: #1b7fc0; }
/* A banner picture is dark, so the banner keeps its dark-banner colours even
   when the white banner option is chosen. */
html[data-hero="light"][data-theme="light"] .hero.has-bg {
  --ink: var(--navy-ink); --ink-2: var(--navy-dim); --dim: rgba(226,236,250,.6);
  --navy-ink: #f2f6fc; --navy-dim: rgba(226,236,250,.72);
  color: #f2f6fc; background: #070d1c; border-bottom: 0;
}
html[data-hero="light"][data-theme="light"] .hero.has-bg h1 { color: #fff; }
html[data-hero="light"][data-theme="light"] .hero.has-bg h1 .grad { background: linear-gradient(110deg, #6fd3ff, var(--accent)); -webkit-background-clip: text; background-clip: text; }
html[data-hero="light"][data-theme="light"] .hero.has-bg .eyebrow { color: #9fe7d6; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
html[data-hero="light"][data-theme="light"] .hero.has-bg .hero-sub { color: #9fe7d6; }
html[data-hero="light"][data-theme="light"] .hero.has-bg :is(.lede, .hero-trust) { color: rgba(226,236,250,.8); }
html[data-hero="light"][data-theme="light"] .hero.has-bg .hero-trust .ic { color: var(--accent); }
html[data-hero="light"][data-theme="light"] .hero.has-bg .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); box-shadow: none; }
html[data-hero="light"][data-theme="light"] .hero.has-bg .btn.ghost:hover { border-color: #fff; color: #fff; }
html[data-hero="light"][data-theme="light"] .hero-net .hn-node { fill: #ffffff; stroke: rgba(27,127,192,.45); }
html[data-hero="light"][data-theme="light"] .hero-net .hn-pulse { stroke: #1b7fc0; }
html[data-hero="light"][data-theme="light"] .hero-net text { fill: rgba(27,90,140,.55); }
html[data-hero="light"][data-theme="light"] .stats-band { margin-top: -3rem; }

/* --- home banner: rotating telecom illustrations ------------------------- */
.hero.has-scenes::after { content: none; }
/* "Where 5G and 6G are used" picture cards. */
.uc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.uc-card { margin: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; }
.uc-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--bg-2); }
.uc-card figcaption { padding: 1rem 1.1rem 1.15rem; }
.uc-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.uc-card p { font-size: .88rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (max-width: 1040px) { .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Banner background picture (Admin > Site & pages), shaded from the left so
   the headline stays readable; evenly on a phone, where text covers it all. */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--hb-pos, 100% 50%); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,20,var(--hb-a1)) 0%, rgba(7,11,20,var(--hb-a2)) 50%, rgba(7,11,20,var(--hb-a3)) 100%); }
.hero.has-bg { background: #070d1c; }
.hero.has-bg::before, .hero.has-bg::after { content: none; }
@media (max-width: 640px) {
  .hero-bg img { object-position: 60% 30%; }
  .hero-bg::after { background: rgba(7,11,20,var(--hb-am)); }
}
.hero-scenes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-scenes img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
  opacity: 0; animation: scene 21s ease-in-out infinite; }
.hero-scenes img:nth-child(1) { animation-delay: -1s; }
.hero-scenes img:nth-child(2) { animation-delay: 6s; }
.hero-scenes img:nth-child(3) { animation-delay: 13s; }
@keyframes scene {
  0% { opacity: 0; transform: scale(1.05); } 6% { opacity: 1; } 33% { opacity: 1; }
  39% { opacity: 0; transform: scale(1); } 100% { opacity: 0; }
}
/* keep the headline side calm */
.hero-scenes::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,19,39,.92) 0%, rgba(7,19,39,.7) 40%, rgba(7,19,39,.15) 70%); }
html[data-hero="light"][data-theme="light"] .hero-scenes::after {
  background: linear-gradient(90deg, rgba(240,247,255,.94) 0%, rgba(240,247,255,.72) 38%, rgba(240,247,255,.05) 64%); }
html:not([data-hero="light"]) .hero-scenes img, html[data-theme="dark"] .hero-scenes img { opacity: 0; filter: invert(1) hue-rotate(180deg) brightness(1.2); }
@media (max-width: 1000px) {
  .hero-scenes img { object-position: 70% 30%; }
  .hero-scenes::after { background: rgba(240,247,255,.82); }
  html:not([data-hero="light"]) .hero-scenes::after, html[data-theme="dark"] .hero-scenes::after { background: rgba(7,19,39,.85); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scenes img { animation: none; }
  .hero-scenes img:first-child { opacity: 1; }
}

/* banner without a side card: headline over the calm left half */
.hero.hero-solo .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero.hero-solo .hero-copy { max-width: 640px; }
.hero.hero-solo { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(6.5rem, 10vw, 9rem); }
.hero.hero-solo .hero-scenes img { object-position: 100% 45%; }
html[data-hero="light"][data-theme="light"] .hero.hero-solo .hero-scenes::after {
  background: linear-gradient(90deg, rgba(240,247,255,.96) 0%, rgba(240,247,255,.75) 34%, rgba(240,247,255,0) 52%); }
/* the call-back bar */
.cb-sec { padding: 1.4rem 0 .4rem; }
.cb-bar { display: grid; grid-template-columns: minmax(200px, 1.25fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr) auto; gap: .6rem; align-items: center;
  padding: .9rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cb-bar label { margin: 0; }
.cb-bar :is(input, select) { padding: .66rem .8rem !important; font-size: .9rem !important; }
.cb-bar .btn { padding: .68rem 1.1rem; font-size: .92rem; white-space: nowrap; }
.cb-title { display: flex; align-items: center; gap: .7rem; padding-right: .4rem; min-width: 0; }
.cb-title > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cb-title b { font-family: var(--display); font-size: 1rem; }
.cb-title em { font-style: normal; font-size: .76rem; color: var(--dim); }
.cb-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); }
@media (max-width: 1100px) { .cb-bar { grid-template-columns: 1fr 1fr; } .cb-title { grid-column: 1 / -1; } .cb-bar .btn { grid-column: 1 / -1; justify-content: center; } }
@media (max-width: 1000px) {
  .hero.hero-solo .hero-scenes img { object-position: 78% 50%; }
  html[data-hero="light"][data-theme="light"] .hero.hero-solo .hero-scenes::after { background: linear-gradient(180deg, rgba(240,247,255,.93) 0%, rgba(240,247,255,.8) 60%, rgba(240,247,255,.55) 100%); }
}
@media (max-width: 560px) { .cb-bar { grid-template-columns: 1fr; } }
.hero-scenes img { transform-origin: 100% 50%; }

/* long protocol names, error codes and API paths must wrap on a phone
   instead of widening the page; code tables scroll inside their own box */
.prose { overflow-wrap: anywhere; }
.prose :is(p, li) code { word-break: break-word; }
.prose pre.code { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose pre.code code { overflow-wrap: normal; white-space: pre; }
.post-layout > article, .post-layout .prose { min-width: 0; }
@media (max-width: 640px) { .prose pre.code code { font-size: .78rem; } }

/* ===========================================================================
   v3.4 - article template: reactions, sharing, author, course card, comments
   =========================================================================== */
.post-cat { display: inline-block; margin-bottom: .9rem; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, transparent); font-weight: 600; }
.post-meta { align-items: center; gap: .35rem .5rem; }
.post-meta .ic { vertical-align: -.15em; margin-right: .15rem; color: var(--brand); }
.pm-link { color: inherit; }
.pm-link:hover { color: var(--brand); }
.post-tags { align-items: center; margin-top: 2rem; }
.post-tags > .ic { color: var(--dim); }

.post-reactions { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap;
  margin: 2.4rem 0 1.4rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.like-form { margin: 0; }
.like-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem .7rem .9rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s, background .15s, border-color .15s; }
.like-btn:hover { border-color: #ec4899; transform: translateY(-1px); }
.like-btn .heart { fill: none; stroke: #ec4899; stroke-width: 2; transition: transform .2s; }
.like-btn.on { background: color-mix(in srgb, #ec4899 12%, var(--panel)); border-color: color-mix(in srgb, #ec4899 50%, transparent); color: #be185d; }
.like-btn.on .heart { fill: #ec4899; }
.like-btn.pop .heart { animation: like-pop .45s ease; }
@keyframes like-pop { 40% { transform: scale(1.35); } }
.like-btn b { min-width: 2ch; padding: .1rem .55rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.share { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.share-title { margin: 0; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.share-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .8rem; border-radius: 10px; font: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.share-btn:hover { color: var(--ink); border-color: var(--brand); }
.share-btn.wa .ic { color: #1faa55; } .share-btn.li .ic { color: #0a66c2; } .share-btn.fb .ic { color: #1877f2; } .share-btn.tg .ic { color: #229ed9; } .share-btn.x .ic { color: #0a1426; }
html[data-theme="dark"] .share-btn.x .ic { color: #fff; }
.share-btn.done { color: var(--ok); border-color: var(--ok); }

.author-box { display: flex; gap: 1.1rem; align-items: flex-start; margin: 0 0 1.4rem; padding: 1.4rem 1.5rem; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); }
.author-box img { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; }
.author-box .kicker { margin-bottom: .2rem; }
.author-box h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.ab-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem !important; font-weight: 600; }

.course-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; margin: 0 0 2.4rem; padding: 1.6rem 1.7rem;
  border-radius: 18px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%), linear-gradient(120deg, color-mix(in srgb, var(--brand-2) 92%, #000), #0b1a36); }
.course-cta .kicker { color: #9fe7d6; }
.course-cta h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.25rem; }
.course-cta p { color: rgba(255,255,255,.82); margin: 0; font-size: .93rem; }
.course-cta .cc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.course-cta .btn { background: #fff; color: #08162e; }
.course-cta .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }

.comments { margin-top: .5rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.comments h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cmt-list, .cmt-replies { list-style: none; padding: 0; margin: 0; }
.cmt { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.cmt-replies { margin: .6rem 0 0 2.6rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.cmt-replies .cmt { padding: .7rem 0; border-bottom: 0; }
.cmt-in { display: flex; gap: .8rem; align-items: flex-start; }
.cmt .avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent)); }
.cmt .avatar.staff { background: linear-gradient(135deg, #0b1a36, var(--brand-2)); }
.cmt-body { min-width: 0; flex: 1; }
.cmt-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .2rem; font-size: .92rem; }
.cmt-head .chip { font-size: .7rem; padding: .1rem .5rem; }
.cmt-head .chip.staff { color: #fff; background: var(--btn); border-color: transparent; }
.cmt-when { color: var(--dim); font-size: .8rem; }
.cmt-text { color: var(--ink-2); line-height: 1.65; overflow-wrap: anywhere; }
.cmt-reply { margin: .4rem 0 0 2.9rem; }
.cmt-reply summary { cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--brand); list-style: none; }
.cmt-reply summary::-webkit-details-marker { display: none; }
.cmt-reply[open] summary { margin-bottom: .6rem; }
.cmt-new { margin-top: 1.6rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cmt-new h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.cmt-form textarea { min-height: 96px; }
@media (max-width: 640px) {
  .post-reactions, .author-box, .cmt-new { padding: 1.1rem; }
  .course-cta { grid-template-columns: 1fr; padding: 1.3rem; }
  .cmt-replies { margin-left: 1rem; }
  .cmt-reply { margin-left: 0; }
  .share-btn span { display: none; }
  .share-btn.copy span, .share-btn.native span { display: inline; }
}

/* --- Article page: the "All articles" rail and the contents rail ---------
   Both stick below the header and scroll on their own, so the list of
   articles and the article itself move independently. overscroll-behavior
   stops a flick at the end of the list from scrolling the page behind it. */
.post-aside-in {
  top: 84px; padding-top: 2rem;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px);
}
.post-aside-head { display: flex; align-items: center; gap: .5rem; }
.post-aside-head span, .lib-group b span {
  font-size: .7rem; letter-spacing: 0; background: var(--panel-2, var(--line-soft)); color: var(--ink-2);
  border-radius: 999px; padding: .05rem .5rem;
}
.lib-find {
  width: 100%; margin: 0 0 .8rem; padding: .55rem .8rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink);
}
.lib-find:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.lib-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-right: .4rem; margin-right: -.4rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.lib-scroll::-webkit-scrollbar { width: 6px; }
.lib-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.lib-group { margin-bottom: 1.1rem; }
.lib-group b {
  display: flex; align-items: center; gap: .4rem; position: sticky; top: 0; z-index: 1;
  background: var(--bg); padding: .35rem 0; margin-bottom: .2rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
}
.lib-item {
  display: flex; justify-content: space-between; gap: .6rem; align-items: baseline;
  padding: .5rem .65rem; border-radius: 8px; border-left: 2px solid transparent;
  color: var(--ink-2); font-size: .9rem; line-height: 1.35; text-decoration: none;
}
.lib-item small { color: var(--dim); white-space: nowrap; font-size: .74rem; }
.lib-item:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); color: var(--brand); }
.lib-item.on {
  background: color-mix(in srgb, var(--brand) 11%, transparent); border-left-color: var(--brand);
  color: var(--ink); font-weight: 600;
}
.post-aside-all { flex: none; margin-top: .8rem; }
.lib-jump { display: none; }

.post-toc .toc {
  top: 84px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: .3rem;
}
.post-related { margin: 2.5rem 0 1rem; }
.post-related h2 { font-size: 1.25rem; margin-bottom: 1rem; }

@media (max-width: 980px) {
  /* One column: the rail follows the article as an ordinary list - a
     scroll box inside a scrolling phone page is hard to use with a thumb.
     A link under the title jumps straight to it. */
  .post-aside-in { max-height: none; }
  .lib-scroll { overflow: visible; }
  .lib-group b { position: static; }
  .lib-jump {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
    font-size: .88rem; font-weight: 600; color: var(--brand);
  }
}
.lib-item[hidden], .lib-group[hidden], .lib-none[hidden] { display: none; }

/* Blog index search */
.blog-find {
  display: flex; align-items: center; gap: .6rem; max-width: 640px; margin: 0 0 1.2rem;
  padding: .35rem .4rem .35rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: var(--dim);
}
.blog-find:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.blog-find input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: .45rem 0; outline: none; }
.blog-found { margin: -.2rem 0 1.2rem; }

/* --- Home page on phones: swipe rows instead of tall stacks ---------------
   Six full-size course cards one under another made the phone home page
   about 17,000px long. Each repeated block becomes a sideways row; the next
   card peeks in at the edge, which is what tells people they can swipe. */
@media (max-width: 640px) {
  .m-swipe, .topic-grid, .stack-grid, .steps-grid, .path, .why-grid {
    display: flex !important; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 16px; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .m-swipe::-webkit-scrollbar, .topic-grid::-webkit-scrollbar, .stack-grid::-webkit-scrollbar,
  .steps-grid::-webkit-scrollbar, .path::-webkit-scrollbar, .why-grid::-webkit-scrollbar { display: none; }
  .m-swipe > *, .topic-grid > *, .stack-grid > *, .steps-grid > *, .path > *, .why-grid > * {
    flex: 0 0 84%; min-width: 0; scroll-snap-align: start; margin: 0;
  }
  .stack-grid > *, .steps-grid > *, .why-grid > * { flex-basis: 74%; }
  .path-step::after, .steps-grid::before, .steps-grid > *::after { display: none !important; }
  .swipe-hint {
    display: flex; align-items: center; gap: .35rem; margin: -.4rem 0 .6rem;
    font-size: .78rem; font-weight: 600; color: var(--dim);
  }
}
.swipe-hint { display: none; }

/* --- Site search ---------------------------------------------------------- */
.search-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--panel);
}
.search-btn:hover { color: var(--brand); border-color: var(--brand); }
.search-btn.m-only { display: none; }
@media (max-width: 1040px) {
  .search-btn.m-only { display: inline-grid; margin-left: auto; }
  .search-btn.m-only + .burger { margin-left: .4rem; }
  .search-btn.d-only { display: none; }
}
.site-find { max-width: 760px; }
.site-find input { font-size: 1.05rem; }
.sr-popular { align-items: center; margin-bottom: 1.6rem; }
.sr-count { margin-bottom: .8rem; }
.sr-list { display: grid; gap: .7rem; max-width: 860px; }
.sr-item {
  display: grid; gap: .25rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--ink); text-decoration: none;
}
.sr-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.sr-item .chip { justify-self: start; font-size: .7rem; }
.sr-item b { font-size: 1.05rem; }
.sr-text { color: var(--ink-2); font-size: .92rem; }
.sr-empty { max-width: 640px; padding: 1.5rem 0; }
.search-btn { flex: none; }
@media (max-width: 1040px) {
  .nav { gap: .6rem; }
  .nav .brand { min-width: 0; }
  .burger { flex: none; padding: 8px 4px; }
}
@media (max-width: 400px) {
  .nav .brand span { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-btn { width: 36px; height: 36px; }
}
@media (max-width: 1040px) {
  .nav .brand { flex: 0 1 auto; overflow: hidden; }
  .nav .brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
  .batch-card { padding: 1.3rem 1.1rem; }
  .batch-card > * { min-width: 0; }
  .batch-card h2 { overflow-wrap: anywhere; }
  .batch-go .btn { white-space: normal; }
}
/* Laptop widths just above the menu breakpoint: tighten the bar a little now
   that it also carries the search button. */
@media (max-width: 1240px) and (min-width: 1041px) {
  .nav-panel { gap: .8rem; }
  .links > a, .dd > a { padding: .5rem .55rem; }
  .nav-cta { gap: .5rem; }
}
.brand .bsx { font: inherit; color: inherit; }
/* Between the menu breakpoint and a full-width bar the links and buttons need
   every pixel; the short name carries the brand there. */
@media (max-width: 1180px) and (min-width: 1041px) { .nav .brand .bsx { display: none; } }
/* Laptops zoomed to 125% (about 1050-1240 px wide): seven links, search,
   Log in and Enquire must fit on one line. A menu item must never wrap -
   "Courses" broke onto two lines and stood above the others. */
.links > a, .dd > a { white-space: nowrap; }
/* "Courses" sits inside the dropdown wrapper as an inline link, which put it
   a few pixels off the line of the other items. Same box as its neighbours. */
@media (min-width: 1041px) {
  .links > .dd { display: flex; align-items: center; }
  .links > .dd > a { display: inline-flex; align-items: center; gap: .25rem; line-height: inherit; }
}
@media (max-width: 1240px) and (min-width: 1041px) {
  .nav { gap: 1rem; }
  .nav-panel { gap: .6rem; }
  .links { gap: 0; }
  .links > a, .dd > a { padding: .5rem .42rem; font-size: .88rem; }
  .nav .brand span { font-size: .98rem; }
  .nav-cta { gap: .4rem; }
  .nav-cta .theme-btn { display: none; }
}
/* The bar's own Log in button: only where the menu is behind the burger and
   the screen is wider than a phone. */
.bar-login { display: none; }
@media (max-width: 1040px) and (min-width: 641px) {
  .bar-login { display: inline-flex; margin-left: auto; }
  .bar-login + .search-btn.m-only { margin-left: .5rem; }
}
.blog-find input, .blog-find input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 0; outline: none; }

/* Wide screens: the header is a fixed 1240 px wide, so the Log in icon is paid
   for with slightly tighter spacing between the menu items. */
@media (min-width: 1241px) { .links > a, .dd > a { padding: .5rem .6rem; } }
@media (max-width: 1120px) and (min-width: 1041px) { .links > a, .dd > a { padding: .5rem .34rem; } .nav { gap: .75rem; } }
