/* ==========================================================================
   tt-e.css: TradingTeaching style E, "education company" (4 Nov 2026, preview)
   Loaded after tt-d.css. Does not change tt-c.css or tt-d.css; only adds the E parts:

     1  Tokens: navy stage, gold, orange, one colour per level
     2  Header: mega-menu (Learn), shrink on scroll, phone menu
     3  Hero carousel (js/tt-carousel.js): stage, slides, controls, no-JS fallback
     4  Slide visuals: framed illustration, screen wall, 3D books, paper fan, author
     5  Learning path
     6  Programme cards (one card for every course and class)
     7  Home sections: trust, books in 3D, author, free resources, closer
     8  Responsive, reduced motion, print

   House rules kept from D: gold only on navy; Noto Sans for all six scripts; the serif only
   for book titles and prices. Level colours: Kickstart orange, Level 1 blue, 2 green, 3 bronze.
   ========================================================================== */

/* 1 Tokens ------------------------------------------------------------------ */
:root {
  --e-stage: #071A33;      /* the hero stage, a shade under the brand navy */
  --e-line: #DCE4EE;
  --lv0: #F28C28; --lv0-ink: #0A2240; --lv0-soft: #FDEBD8;
  --lv1: #2A64C4; --lv1-soft: #EAF1FB;
  --lv2: #127552; --lv2-soft: #E6F2EC;
  --lv3: #8E6420; --lv3-soft: #F5EEE2;
  --e-shadow: 0 24px 48px -28px rgba(7, 26, 51, .55);
}
.lv0 { --lv: var(--lv0); --lv-soft: var(--lv0-soft); }
.lv1 { --lv: var(--lv1); --lv-soft: var(--lv1-soft); }
.lv2 { --lv: var(--lv2); --lv-soft: var(--lv2-soft); }
.lv3 { --lv: var(--lv3); --lv-soft: var(--lv3-soft); }

/* 2 Header: mega-menu --------------------------------------------------------- */
.c-mast > .wrap { transition: min-height .2s var(--ease); }
.c-mast.is-small > .wrap { min-height: 62px; }
.c-mast.is-small { box-shadow: 0 6px 18px -12px rgba(10, 34, 64, .35); }
.e-nav > ul { align-items: center; }
.e-mega-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; border-bottom: 3px solid transparent; background: none;
  font: 600 .94rem/1.5 var(--sans); color: var(--navy); cursor: pointer; }
.e-mega-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s var(--ease); }
.e-mega-btn:hover, .e-has-mega.is-open > .e-mega-btn { border-bottom-color: var(--navy-2); }
.e-has-mega.is-open > .e-mega-btn svg { transform: rotate(180deg); }
.e-mega { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--e-line);
  border-bottom: 4px solid var(--gold); box-shadow: 0 30px 50px -30px rgba(10, 34, 64, .45); z-index: 70; }
.e-has-mega.is-open > .e-mega { display: block; }
html:not(.js) .e-has-mega:hover > .e-mega, html:not(.js) .e-has-mega:focus-within > .e-mega { display: block; }
.e-mega-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .95fr); gap: clamp(20px, 2.5vw, 40px); padding-block: 26px 30px; }
.e-mega-h { margin: 0 0 8px; padding-inline: 10px; font-size: .84rem; font-weight: 700; color: var(--slate); }
.c-nav .e-mega ul { display: block; }
:root:root body .c-nav .e-mega a { display: grid; gap: 2px; padding: 9px 10px; border: 0; border-radius: 10px; white-space: normal; font-weight: 400; text-decoration: none; }
:root:root body .c-nav .e-mega a:hover { background: var(--sky); }
.e-mega a b { color: var(--navy); font-weight: 700; font-size: .98rem; }
.e-mega a span { color: var(--slate); font-size: .86rem; line-height: 1.4; }
:root:root body .c-nav .e-mega a.e-mega-all { display: inline-block; margin-top: 4px; color: var(--link); font-weight: 600; font-size: .92rem; text-decoration: underline; }
:root:root body .c-nav .e-mega .e-mega-feature { align-content: start; gap: 6px; padding: 14px; background: var(--navy); border-radius: 14px; }
:root:root body .c-nav .e-mega .e-mega-feature:hover { background: var(--navy-2); }
.e-mega-feature img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.e-mega .e-mega-feature b { color: #fff; }
.e-mega .e-mega-feature span { color: var(--on-navy); }

/* 3 Hero carousel ------------------------------------------------------------- */
.e-hero { background: var(--e-stage); color: var(--on-navy); }
.e-car { position: relative; }
.e-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: rgba(201, 216, 232, .4) transparent; }
.e-car.is-on .e-car-track { scrollbar-width: none; }
.e-car.is-on .e-car-track::-webkit-scrollbar { display: none; }
.e-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden;
  background-color: var(--e-stage);
  background-image: linear-gradient(90deg, rgba(7, 26, 51, .97) 0, rgba(7, 26, 51, .92) 36%, rgba(7, 26, 51, .6) 70%, rgba(7, 26, 51, .35) 100%), var(--bg, none);
  background-size: cover; background-position: right center; }
.e-s-kick { background-image: radial-gradient(70% 90% at 78% 40%, rgba(20, 71, 134, .7), rgba(7, 26, 51, 0) 70%); }
.e-slide-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  min-height: clamp(540px, 64vh, 640px); padding-block: clamp(36px, 4vw, 56px) 96px; }
.e-slide-copy { max-width: 38rem; }
.e-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 600; font-size: .98rem; }
.e-kicker::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--gold); flex: none; }
:root:root body .e-hero h1, :root:root body .e-hero h2 { color: #fff; font-size: var(--fs-h1); font-weight: 800; line-height: 1.06; max-width: 15ch; margin: 0 0 .35em; }
:root:root body .e-hero p { color: var(--on-navy); }
:root:root body .e-hero a:not(.btn) { color: #fff; }
.e-lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 34rem; margin-bottom: 22px; }
.e-hero .d-chips { margin-bottom: 26px; }
.e-hero .d-langs { margin-bottom: 26px; }
.e-hero :focus-visible { outline-color: var(--gold); }
:root:root body .e-hero .btn.gold { color: var(--navy); }

/* controls (built by the script) */
.e-car-ui { position: absolute; inset-inline: 0; bottom: 0; padding-block: 0 26px; pointer-events: none; }
.e-car-ui .wrap { display: flex; align-items: center; gap: 8px; }
.e-car-ui button { pointer-events: auto; }
.e-car-arrow, .e-car-pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(7, 26, 51, .55); color: #fff; cursor: pointer; }
.e-car-arrow:hover, .e-car-pause:hover { border-color: var(--gold); color: var(--gold); }
.e-car-ui svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.e-car-pause svg { fill: currentColor; stroke-width: 2.6; }
.e-car-pause { margin-inline-start: 10px; }
.e-car-dots { display: flex; align-items: center; }
.e-car-dot { width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.e-car-dot::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: rgba(201, 216, 232, .55); transition: width .25s var(--ease), background .25s; }
.e-car-dot:hover::before { background: #fff; }
.e-car-dot[aria-current]::before { width: 22px; background: var(--gold); }
.e-car-dot[aria-current] { width: 36px; }
.e-car-ui :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 4 Slide visuals ----------------------------------------------------------------- */
.e-slide-art { margin: 0; position: relative; justify-self: center; width: 100%; }
/* slide 1: the class illustration in a frame, the FREE burst on its corner */
.e-kick-art { max-width: 500px; perspective: 1400px; }
.e-kick-art img { display: block; width: 100%; height: auto; border-radius: 20px; border: 6px solid rgba(255, 255, 255, .95);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); transform: rotateY(-9deg) rotateX(2deg); }
.e-kick-art .d-free { position: absolute; inset-inline-start: -22px; top: -18px; }
.e-kick-art figcaption { position: absolute; inset-inline-end: 18px; bottom: 16px; padding: 3px 10px; border-radius: 999px; background: rgba(7, 26, 51, .78); color: #fff; font-size: .78rem; }
/* slide 2: six lesson screens, one per language */
.e-screens { perspective: 1600px; }
.e-screens ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  transform: rotateY(-16deg) rotateX(5deg); transform-origin: 30% 50%; }
.e-screens li { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .9); }
.e-screens li:nth-child(even) { transform: translateY(14px); }
.e-screens img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.e-screens span { position: absolute; inset-inline-start: 6px; bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(7, 26, 51, .88); color: #fff; font-size: .82rem; line-height: 1.5; }
/* 3D book: the cover JPEG as the front face, a navy spine, a back board */
.e-book { --d: 28px; position: relative; display: block; width: var(--w, 160px); aspect-ratio: 360 / 576; transform-style: preserve-3d;
  transform: rotateY(var(--ry, 32deg)) rotateX(var(--rx, 3deg)); transition: transform .5s var(--ease); }
.e-book img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 2px 4px 4px 2px; transform: translateZ(calc(var(--d) / 2)); }
.e-book::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: var(--d); height: 100%; transform-origin: left center;
  transform: translateZ(calc(var(--d) / 2)) rotateY(90deg);
  background: linear-gradient(90deg, #04101F, #16365F 45%, #0A2240), linear-gradient(#F6C94A, #F6C94A) center 14% / 100% 3px no-repeat; background-blend-mode: normal; }
.e-book::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: #0A2240; transform: translateZ(calc(var(--d) / -2));
  box-shadow: 18px 26px 40px -12px rgba(0, 0, 0, .65); }
.e-shelf { display: flex; justify-content: center; align-items: flex-end; gap: clamp(18px, 3vw, 44px); perspective: 1500px; padding-block: 20px; }
.e-shelf .e-book { --w: clamp(110px, 11vw, 170px); }
.e-shelf .b2 { --w: clamp(124px, 12.5vw, 190px); }
.e-shelf .b1 { --ry: 38deg; }
.e-shelf .b3 { --ry: 26deg; }
.e-shelf::after { content: ""; position: absolute; inset-inline: 6%; bottom: 8px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); z-index: -1; }
/* slide 4: the starter guide in front, two workbook pages fanned behind */
.e-papers { height: clamp(300px, 34vw, 430px); perspective: 1400px; }
.e-papers img { position: absolute; top: 50%; left: 50%; width: clamp(160px, 17vw, 250px); height: auto; border-radius: 4px; background: #fff;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85); }
.e-papers .p1 { transform: translate(-70%, -50%) rotateY(-12deg) rotate(-4deg); }
.e-papers .p2 { transform: translate(-28%, -54%) rotateY(-12deg) rotate(5deg); }
.e-papers .p3 { transform: translate(10%, -58%) rotateY(-12deg) rotate(12deg); }
/* slide 5: the author photo, edges faded into the stage */
.e-author-art { max-width: 560px; align-self: end; margin-bottom: -96px; }
.e-author-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(62% 64% at 58% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(62% 64% at 58% 48%, #000 62%, transparent 100%); }
.e-creds { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.e-creds li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(246, 201, 74, .7); color: #fff; font-weight: 600; font-size: .95rem; }

/* 5 Learning path ----------------------------------------------------------------- */
.e-head { max-width: 46rem; margin-bottom: clamp(24px, 3vw, 36px); }
.e-head h2 { border-top: 3px solid var(--navy); padding-top: 16px; margin-bottom: 10px; }
.e-head p { color: var(--slate); font-size: 1.08rem; margin: 0; }
.e-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.e-path::before { content: ""; position: absolute; top: 22px; inset-inline: 12.5%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--lv0), var(--lv1) 33%, var(--lv2) 66%, var(--lv3)); }
.e-step { display: grid; justify-items: center; gap: 14px; position: relative; }
.e-step-n { display: grid; place-items: center; min-width: 48px; height: 48px; padding-inline: 10px; border-radius: 24px; background: var(--lv); color: #fff;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 6px #fff; }
.e-step.lv0 .e-step-n { color: var(--lv0-ink); }
.e-step-card { width: 100%; height: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 14px; align-items: start;
  background: #fff; border: 1px solid var(--e-line); border-top: 4px solid var(--lv); border-radius: 14px; padding: 18px 18px 14px; }
.e-step-vis { grid-row: 1; width: 64px; height: auto; border-radius: 2px 3px 3px 2px; box-shadow: 4px 6px 12px -4px rgba(10, 34, 64, .45); }
.e-step-vis.paper { border: 1px solid var(--e-line); }
.e-step-card h3 { grid-row: 1; font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0; align-self: center; }
.e-step-card h3 .e-badge { display: table; margin-bottom: 6px; }
.e-fmts { grid-column: 1 / -1; list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--e-line); }
.e-fmts li + li { border-top: 1px solid var(--e-line); }
.e-fmts a { display: grid; grid-template-columns: 22px 46px minmax(0, 1fr); align-items: center; gap: 4px; padding: 9px 2px; color: var(--navy); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.e-fmts a:hover { color: var(--link); text-decoration: underline; }
.e-fmts a b { font-size: .8rem; font-weight: 700; color: var(--slate); }
.e-fmts li::before, .e-chips li::before { content: none; }
/* the three format icons, drawn in CSS: book, video (play), class (person) */
.e-ico, .e-fmts a::before, .e-chips li[class^="f-"]::before { content: ""; display: inline-block; width: 14px; height: 14px; background: var(--navy); flex: none; }
.f-book > a::before, .e-chips .f-book::before { clip-path: polygon(0 6%, 45% 0, 50% 6%, 55% 0, 100% 6%, 100% 100%, 55% 94%, 50% 100%, 45% 94%, 0 100%); }
.f-video > a::before, .e-chips .f-video::before { clip-path: polygon(12% 0, 100% 50%, 12% 100%); }
.f-class > a::before, .e-chips .f-class::before { clip-path: path("M7 0a3.4 3.4 0 1 1 0 6.8A3.4 3.4 0 1 1 7 0ZM0 14c0-4 3-6.2 7-6.2s7 2.2 7 6.2Z"); }

/* 6 Programme cards ------------------------------------------------------------------- */
.e-progsec { background: var(--sky); margin-top: var(--space); padding-block: var(--space); }
.e-group-h { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; font-size: 1.15rem; font-weight: 700; }
.e-group-h::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--navy); }
.e-cards + .e-group-h { margin-top: clamp(32px, 4vw, 48px); }
.e-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.e-cards > li { display: flex; }
.e-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--e-line); border-radius: 16px; overflow: hidden; }
.e-card-vis { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-bottom: 4px solid var(--lv); }
.e-card-vis > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.e-play { position: absolute; inset-inline-start: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; }
.e-play::before { content: ""; border-inline-start: 15px solid var(--navy); border-block: 9px solid transparent; margin-inline-start: 4px; }
.e-vis-book { display: grid; place-items: center; perspective: 1000px;
  background: radial-gradient(60% 80% at 50% 40%, #16365F, var(--navy) 70%); }
.e-vis-book .e-book { --w: 92px; --d: 14px; --ry: 24deg; }
.e-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.e-card-body h4 { font-size: 1.22rem; font-weight: 700; margin: 0; }
.e-card-body p { margin: 0; color: var(--slate); font-size: .96rem; line-height: 1.5; }
.e-card-body .btn { margin-top: auto; }
.e-card-body .e-facts { margin-bottom: 6px; }
.e-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--lv-soft); color: var(--lv); font-weight: 700; font-size: .82rem; line-height: 1.35; }
.e-badge.lv0 { color: #8A4A0B; }
.e-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.e-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: .84rem; font-weight: 600; color: var(--navy); }
.e-chips li[class^="f-"]::before { width: 12px; height: 12px; }
:root:root body .e-card-body .e-langs { font-size: .88rem; color: var(--navy); }
.e-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
:root:root body .e-facts span { font-size: .9rem; color: var(--slate); }
.e-facts .c-price { font-size: 1.6rem; color: var(--navy); line-height: 1; }
.e-note { margin: 24px 0 0; color: var(--slate); font-size: .96rem; }

/* 7 Home sections ------------------------------------------------------------------- */
/* trust strip: the D strip with a gold rule on top, tighter on the stage */
.e-trust { border-top: 0; }
.e-trust li { border-inline-start-color: var(--gold); align-content: start; }
/* the lesson switch and the Kickstart band keep their D markup; spacing only */
.e-progsec + .e-lessonsec { padding-top: var(--space); }
.e-lessonsec h2 { border-top: 3px solid var(--navy); padding-top: 16px; }
/* books in 3D */
.e-bookssec .e-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.e-books li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.e-book-link { display: grid; place-items: center; width: 100%; padding: 26px 0 30px; perspective: 1300px; border-radius: 16px; margin-bottom: 6px;
  background: radial-gradient(60% 40% at 50% 92%, rgba(10, 34, 64, .16), transparent 70%), var(--sky); }
.e-books .e-book { --w: clamp(140px, 13vw, 190px); --ry: 30deg; }
.e-book-link:hover .e-book, .e-book-link:focus-visible .e-book { --ry: 8deg; }
.e-books h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 0; }
.e-books h3 a { color: var(--navy); text-decoration: none; }
.e-books h3 a:hover { text-decoration: underline; }
.e-books p { margin: 0; color: var(--slate); }
/* author */
.e-author { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.e-author-photo { margin: 0; position: relative; }
.e-author-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 16px 16px 0 var(--navy); }
.e-author-photo::after { content: ""; position: absolute; inset-inline-end: -16px; bottom: -16px; width: 64px; height: 6px; background: var(--gold); border-radius: 3px; }
.e-author-copy h2 { max-width: 22ch; }
:root:root body .e-author-name { font-weight: 700; color: var(--navy); font-size: 1.08rem; margin: 0 0 12px; }
/* free resources */
.e-free { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.e-free > li { display: flex; }
.e-freecard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 0 20px 20px; background: #fff; border: 1px solid var(--e-line); border-radius: 16px; overflow: hidden; color: var(--navy); text-decoration: none; }
.e-freecard img { width: calc(100% + 40px); max-width: none; margin-inline: -20px; height: 170px; object-fit: contain; padding: 18px 0 0; background: var(--sky); margin-bottom: 8px; filter: drop-shadow(0 10px 12px rgba(10, 34, 64, .25)); }
.e-freecard img[width="480"] { object-fit: cover; padding: 0; filter: none; }
.e-freecard h3 { font-size: 1.12rem; font-weight: 700; margin: 0; }
.e-freecard p { margin: 0; color: var(--slate); font-size: .94rem; line-height: 1.5; flex: 1; }
.e-freecard .c-more { color: var(--link); margin-top: 6px; }
.e-freecard:hover { border-color: var(--rule-2); }
.e-freecard:hover h3 { text-decoration: underline; }
.e-tag { font-size: .8rem; font-weight: 700; color: var(--slate); }
/* closer: three ways in */
.e-closer > div { width: 100%; }
.e-starts { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
:root:root body .e-starts a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 14px; background: var(--navy-3); border: 1px solid var(--rule-navy); color: var(--gold); font-weight: 700; text-decoration: none; }
:root:root body .e-starts a:hover { border-color: var(--gold); }
.e-starts b { color: #fff; font-weight: 600; font-size: .95rem; }
.e-closer .c-reviews { margin: 0; font-size: .92rem; }

/* 8 Responsive -------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .e-mega-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-mega-feature { display: none !important; }
  .e-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  /* phone menu: Learn opens inside the menu as a list */
  .js .c-mast.open .e-nav > ul > li { width: 100%; }
  .e-has-mega > .e-mega-btn { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .e-has-mega.is-open > .e-mega-btn { border-bottom-color: var(--rule); }
  .e-mega { position: static; box-shadow: none; border: 0; background: var(--sky-2); }
  .e-mega-in { display: block; padding: 6px 0 10px; }
  .e-mega-col + .e-mega-col { margin-top: 8px; }
  .e-mega-h { margin: 8px 0 2px; }
  :root:root body .js .c-mast.open .c-nav .e-mega a { display: grid; min-height: 0; padding: 8px 12px; border-bottom: 0; font-size: 1rem; }
  :root:root body .c-nav .e-mega a.e-mega-all { margin: 0 12px 6px; padding: 6px 0; }

  .e-slide-in { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding-block: 32px 92px; align-content: start; }
  .e-slide { background-image: linear-gradient(180deg, rgba(7, 26, 51, .96) 0, rgba(7, 26, 51, .9) 55%, rgba(7, 26, 51, .7) 100%), var(--bg, none); }
  .e-s-kick { background-image: radial-gradient(80% 60% at 60% 85%, rgba(20, 71, 134, .7), rgba(7, 26, 51, 0) 70%); }
  .e-kick-art { max-width: 380px; }
  .e-screens ul { transform: none; }
  .e-screens { max-width: 560px; }
  .e-author-art { max-width: 360px; margin-bottom: -92px; }
  .e-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .e-path::before { display: none; }
  .e-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-bookssec .e-books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .e-starts { grid-template-columns: 1fr; }
  .e-author { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root:root body .e-hero h1, :root:root body .e-hero h2 { font-size: clamp(2rem, 1.2rem + 4.6vw, 2.4rem); }
  .e-slide-in { padding-block: 26px 88px; gap: 22px; }
  .e-kicker { margin-bottom: 12px; font-size: .92rem; }
  .e-lede { margin-bottom: 18px; }
  .e-kick-art { max-width: 300px; }
  .e-kick-art .d-free { width: 76px; height: 76px; font-size: 1rem; inset-inline-start: -12px; top: -14px; }
  .e-screens ul { gap: 8px; }
  .e-screens span { font-size: .72rem; padding: 1px 6px; }
  .e-shelf { gap: 14px; }
  .e-shelf .e-book { --w: 92px; --d: 16px; }
  .e-shelf .b2 { --w: 106px; }
  .e-shelf { padding-block: 34px; }
  /* the Kickstart band: the map stays, dimmed, so the text keeps its contrast on a phone */
  .e-home .d-kickband { background-image: linear-gradient(rgba(10, 34, 64, .86), rgba(10, 34, 64, .86)), url(../images/d/map-navy.jpg); }
  .e-papers { height: 250px; }
  .e-papers img { width: 140px; }
  .e-author-art { max-width: 300px; }
  .e-car-ui { padding-bottom: 20px; }
  .e-car-ui .wrap { gap: 4px; }
  .e-car-dot { width: 22px; }
  .e-car-dot[aria-current] { width: 32px; }
  .e-car-pause { margin-inline-start: auto; }
  .e-path { grid-template-columns: 1fr; row-gap: 18px; }
  .e-path::before { display: block; top: 24px; bottom: 24px; inset-inline: 22px auto; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--lv0), var(--lv1) 33%, var(--lv2) 66%, var(--lv3)); }
  .e-step { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; align-items: start; gap: 12px; }
  .e-step-n { font-size: .82rem; }
  .e-cards { grid-template-columns: 1fr; }
  .e-bookssec .e-books { grid-template-columns: 1fr; }
  .e-books .e-book { --w: 150px; }
  .e-free { grid-template-columns: 1fr; }
  .e-freecard img { height: 150px; }
  .e-author { grid-template-columns: 1fr; }
  .e-author-photo { max-width: 240px; }
}
@media (min-width: 1800px) {
  .e-slide-in { min-height: 680px; }
}
@media (prefers-reduced-motion: reduce) {
  .e-book, .e-car-dot::before, .e-mega-btn svg, .c-mast > .wrap { transition: none; }
}
@media print {
  .e-car-ui, .e-mega { display: none !important; }
  .e-car-track { display: block; overflow: visible; }
  .e-slide { background: none !important; }
  .e-slide:not(:first-child) { display: none; }
}

/* 4 Nov author review: bigger slide art, the Facebook ad on the Kickstart slide, transparent author photo */
@media (min-width: 981px) {
  .e-kick-art { max-width: 620px; }
  .e-s-courses .e-slide-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .e-screens { max-width: none; margin-inline-end: calc(-1 * clamp(0px, 3vw, 48px)); }
  .e-screens ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; transform: rotateY(-10deg) rotateX(3deg); }
  .e-screens span { font-size: .95rem; }
  .e-author-art { max-width: 470px; margin-bottom: -96px; }
}
.e-author-art img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }

/* author slide: a clear, bright Dubai view; dark only behind the text and softly around the photo */
.e-slide.e-s-author { background-image:
    radial-gradient(22% 55% at 64% 62%, rgba(7, 26, 51, .5), rgba(7, 26, 51, 0) 100%),
    linear-gradient(90deg, rgba(7, 26, 51, 1) 0, rgba(7, 26, 51, .96) 40%, rgba(7, 26, 51, .55) 52%, rgba(7, 26, 51, 0) 64%),
    var(--bg, none);
  background-size: cover, cover, auto 112%; background-position: center, center, right bottom; background-repeat: no-repeat; }
@media (min-width: 1800px) {
  .e-slide.e-s-author { background-image:
      linear-gradient(90deg, rgba(7, 26, 51, 1) 0, rgba(7, 26, 51, 1) calc(100% - 1140px), rgba(7, 26, 51, .8) calc(100% - 960px), rgba(7, 26, 51, .35) calc(100% - 760px), rgba(7, 26, 51, 0) calc(100% - 600px)),
      var(--bg, none);
    background-size: cover, auto 100%; background-position: center, right bottom; }
}
@media (max-width: 980px) {
  .e-slide.e-s-author { background-image: linear-gradient(180deg, rgba(7, 26, 51, .92) 0, rgba(7, 26, 51, .75) 45%, rgba(7, 26, 51, .1) 75%), var(--bg, none);
    background-size: cover, cover; background-position: center, 85% bottom; }
}

/* ==========================================================================
   9 E2 (4 Nov 2026): the E header on every page; the main pages' carousels; shared strips.
   Appended only; sections 1 to 8 above are unchanged.
   ========================================================================== */
/* 9.1 current menu item: the top links (aria-current) are styled by tt-c/tt-d; "Learn" is a button */
.e-mega-btn.is-current { border-bottom-color: var(--navy); }
.e-mega a[aria-current="page"] b, :root:root body .c-nav .e-mega a.e-mega-all[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 980px) {
  .js .c-mast.open .e-mega-btn.is-current { box-shadow: inset 4px 0 0 var(--signal); padding-inline-start: 12px; }
}

/* 9.2 hero extras: breadcrumb on the stage, long titles, titles in the six scripts, fact pills */
.e-hero .e-crumb { margin: 0 0 14px; }
:root:root body .e-hero .e-crumb, :root:root body .e-hero .e-crumb li { color: var(--on-navy); }
.e-hero .e-crumb li + li::before { color: rgba(201, 216, 232, .5); }
:root:root body .e-hero h1.e-h1-long { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.6rem); max-width: 22ch; }
:root:root body .e-hero h2.e-h-script { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.35; max-width: 20ch; letter-spacing: 0; text-align: left; }
.e-sub { margin: -4px 0 12px; font-family: var(--serif); font-size: 1.15rem; }
:root:root body .e-hero .e-sub { color: var(--gold); }
.e-slide-facts { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.e-slide-facts li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; font-size: .95rem; }
.e-slide-facts li::before, .e-creds li::before { content: none; }
.e-slide-facts b { color: var(--gold); font-weight: 800; }
.e-s-lvl .e-kicker::before, .e-s-inside .e-kicker::before { background: var(--lv); }
/* live-classes: a shorter stage, so the Kickstart hero (#kickstart, where the ad lands) starts higher */
.e-hero-short .e-slide-in { min-height: clamp(460px, 54vh, 540px); }
@media (min-width: 981px) { .e-hero-short .e-kick-art { max-width: 470px; } }

/* 9.3 slide art: a level (3D book + tag), a lesson screen, a book with two of its pages, glossary cards, the rule */
.e-lvl-art { display: grid; justify-items: center; gap: 28px; perspective: 1400px; padding-block: 10px 30px; }
.e-lvl-art .e-book { --w: clamp(150px, 15vw, 220px); --d: 30px; --ry: 30deg; }
.e-lvl-tag { display: grid; gap: 2px; padding: 10px 18px; border-radius: 12px; background: rgba(7, 26, 51, .78); border: 1px solid rgba(255, 255, 255, .22); border-inline-start: 5px solid var(--lv); color: var(--on-navy); font-size: .92rem; }
.e-lvl-tag b { color: #fff; font-size: 1.05rem; }
.e-lvl-screen { position: relative; min-height: clamp(300px, 30vw, 420px); align-content: center; }
.e-lvl-screen .e-book { margin-inline-end: 34%; }
.e-lvl-shot { position: absolute; inset-inline-end: 2%; bottom: 10%; width: 52%; height: auto; border-radius: 10px; border: 6px solid #0B1626; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9); }
.e-screen-art { display: block; position: relative; max-width: 660px; border: 10px solid #0B1626; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .18); transform: perspective(1500px) rotateY(-8deg) rotateX(2deg); transition: transform .4s var(--ease); }
.e-screen-art:hover, .e-screen-art:focus-visible { transform: perspective(1500px) rotateY(0) rotateX(0); }
.e-screen-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.e-screen-art .e-play { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.e-screen-art .e-play::before { border-inline-start-width: 24px; border-block-width: 14px; margin-inline-start: 7px; }
.e-screen-lang { position: absolute; inset-inline-start: 12px; top: 12px; padding: 3px 12px; border-radius: 8px; background: rgba(7, 26, 51, .9); color: #fff; font-weight: 600; font-size: .95rem; }
.e-inside-art { position: relative; margin: 0; height: clamp(330px, 32vw, 470px); perspective: 1400px; }
.e-inside-art .e-book { position: absolute; inset-inline-start: 2%; top: 50%; --w: clamp(120px, 11.5vw, 175px); --ry: 26deg;
  transform: translateY(-50%) rotateY(var(--ry)) rotateX(3deg); }
.e-inside-art .e-page-a, .e-inside-art .e-page-b { position: absolute; top: 50%; width: clamp(150px, 15vw, 235px); height: auto; border-radius: 3px; background: #fff;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(10, 34, 64, .15); }
.e-inside-art .e-page-a { inset-inline-start: 30%; transform: translateY(-52%) rotate(-3deg); }
.e-inside-art .e-page-b { inset-inline-start: 58%; transform: translateY(-46%) rotate(4deg); }
.e-inside-art figcaption { position: absolute; inset-inline: 0; bottom: -6px; text-align: center; font-size: .86rem; color: var(--on-navy); }
.e-papers-one .p1 { width: clamp(190px, 19vw, 280px); transform: translate(-50%, -50%) rotateY(-14deg) rotate(-3deg); }
.e-papers-two .p1 { transform: translate(-66%, -50%) rotateY(-12deg) rotate(-4deg); }
.e-papers-two .p2 { transform: translate(-24%, -54%) rotateY(-12deg) rotate(6deg); }
.e-gloss-art { margin: 0; display: grid; gap: 12px; max-width: 520px; }
.e-gloss-art > div { padding: 14px 18px; border-radius: 12px; background: #fff; border-inline-start: 5px solid var(--gold); box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .9); }
.e-gloss-art > div:nth-child(even) { margin-inline-start: clamp(0px, 3vw, 40px); }
.e-gloss-art dt { font-weight: 700; font-size: 1.15rem; }
:root:root body .e-hero .e-gloss-art a { color: var(--navy); text-decoration: none; }
:root:root body .e-hero .e-gloss-art a:hover { text-decoration: underline; }
.e-gloss-art dd { margin: 4px 0 0; color: var(--slate); font-size: .95rem; line-height: 1.45; }
.e-method-art { display: grid; justify-items: center; gap: 6px; }
.e-method-art .e-shelf { position: relative; }
.e-rule-card { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.e-rule-card > div { padding: 12px 18px; border-radius: 14px; background: rgba(7, 26, 51, .82); border: 1px solid rgba(246, 201, 74, .6); }
.e-rule-card dt { font-weight: 800; font-size: 2rem; line-height: 1; color: var(--gold); }
.e-rule-card dd { margin: 6px 0 0; color: var(--on-navy); font-size: .9rem; max-width: 17ch; }
.e-press-art img { aspect-ratio: 3 / 2; object-fit: cover; }

/* 9.4 sections of the E2 pages */
.e-page .c-head > h2, .e-page h2.d-rulehead { border-top: 3px solid var(--navy); padding-top: 16px; }
.d-kickhero .d-titlerow h2 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.06; max-width: 13ch; margin: 0; }
.e-page .d-kickhero .c-crumb { display: none; }   /* the carousel above carries the breadcrumb */
.e-onpage { background: var(--sky); border-bottom: 1px solid var(--e-line); }
.e-onpage ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.e-onpage li::before { content: none; }
:root:root body .e-onpage a { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--e-line); color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.35; }
:root:root body .e-onpage a:hover { border-color: var(--navy); }
.e-onpage small { font-weight: 400; color: var(--slate); font-size: .8rem; }

/* 9.5 "where to go next" (shared strip on the main pages) */
.e-next h2 { margin: 0 0 18px; border-top: 3px solid var(--navy); padding-top: 16px; }
.e-next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.e-next-list > li { display: flex; }
.e-next-list > li::before { content: none; }
:root:root body .e-next-list a { display: grid; align-content: start; gap: 4px; width: 100%; padding: 16px 18px; border: 1px solid var(--e-line); border-radius: 14px; background: #fff; color: var(--navy); text-decoration: none; }
.e-next-list b { font-size: 1.05rem; font-weight: 700; }
.e-next-list a > span:not(.e-badge) { color: var(--slate); font-size: .92rem; line-height: 1.45; }
:root:root body .e-next-list a:hover { border-color: var(--rule-2); }
.e-next-list a:hover b { text-decoration: underline; }
.e-next-list .e-badge { justify-self: start; margin-bottom: 4px; }
:root:root body .e-next-list .e-next-first a { background: var(--navy); border-color: var(--navy); }
.e-next-first b { color: #fff; }
.e-next-list .e-next-first a > span:not(.e-badge) { color: var(--on-navy); }

/* 9.6 "related course" card at the end of every blog article (shared snippet) */
.e-related { padding-block: clamp(36px, 5vw, 56px); background: var(--sky); border-top: 1px solid var(--e-line); }
:root:root body .e-related h2 { font-family: var(--sans); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; margin: 0 0 18px; color: var(--navy); }
.e-related-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.e-related-cards > li { display: flex; margin: 0; padding: 0; }
.e-related-cards > li::before { content: none; }
:root:root body .e-related-cards a { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); width: 100%; background: #fff; border: 1px solid var(--e-line); border-top: 4px solid var(--lv);
  border-radius: 14px; overflow: hidden; color: var(--navy); text-decoration: none; }
.e-related-cards img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; margin: 0; border-radius: 0; }
.e-related-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
.e-related-txt b { font-size: 1.12rem; font-weight: 700; }
.e-related-txt > span:not(.e-badge):not(.c-more) { color: var(--slate); font-size: .94rem; line-height: 1.5; }
.e-related-txt .c-more { color: var(--link); font-weight: 600; margin-top: auto; }
:root:root body .e-related .e-badge { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 700; }
.e-related-cards a:hover b { text-decoration: underline; }

/* 9.7 responsive */
@media (max-width: 980px) {
  .e-hero-short .e-slide-in { min-height: 0; }
  .e-lvl-art { padding-block: 0 10px; }
  .e-screen-art { max-width: 560px; transform: none; }
  .e-inside-art { height: 340px; max-width: 560px; }
  .e-related-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root:root body .e-hero h1.e-h1-long { font-size: clamp(1.75rem, 1.1rem + 3.6vw, 2.1rem); }
  :root:root body .e-hero h2.e-h-script { font-size: clamp(1.5rem, 1rem + 3vw, 1.9rem); }
  .e-lvl-art .e-book { --w: 120px; --d: 20px; }
  .e-lvl-screen { min-height: 230px; }
  .e-lvl-screen .e-book { margin-inline-end: 40%; }
  .e-inside-art { height: 270px; }
  .e-inside-art .e-book { --w: 92px; --d: 16px; }
  .e-inside-art .e-page-a, .e-inside-art .e-page-b { width: 128px; }
  .e-inside-art .e-page-a { inset-inline-start: 28%; }
  .e-inside-art .e-page-b { inset-inline-start: 54%; }
  .e-inside-art figcaption { bottom: -14px; font-size: .8rem; }
  .e-papers-one .p1 { width: 170px; }
  .e-rule-card dt { font-size: 1.6rem; }
  :root:root body .e-related-cards a { grid-template-columns: 1fr; }
  .e-related-cards img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .d-kickhero .d-titlerow h2 { font-size: clamp(2.15rem, 1.2rem + 5vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .e-screen-art { transition: none; }
}

/* 9.8 fix carried over from D: on a phone the author block (about, book pages) was two columns wide (the
   tt-d 260px column won over c-pages' one-column rule), so its text was cut off on the right */
@media (max-width: 760px) {
  .c-author { grid-template-columns: minmax(0, 1fr); }
  .c-author .c-portrait img { max-width: 200px; }
  .c-author .c-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c-author .c-dl dd { margin: 0 0 8px; }
}

/* 9.9 programme cards whose titles are h3 (online-course.html) */
.e-card-body h3 { font-size: 1.22rem; font-weight: 700; margin: 0; }

/* 4 Nov: six-item menu (Books, Online courses, In-person classes, Free resources, About, Contact us) */
.e-nav .e-mega-btn, .e-nav > ul > li > a { white-space: nowrap; }
.e-mega-2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (min-width: 981px) and (max-width: 1240px) {
  .e-nav > ul { gap: 2px 14px; }
  .e-nav .e-mega-btn, .e-nav > ul > li > a { font-size: .9rem; }
  .c-mast .c-logo img { width: 200px; height: auto; }
  .c-mast-acts .btn { padding-inline: 16px; }
}
.e-mega-2 .e-mega-feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 22%; }
@media (min-width: 981px) { .e-mega-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); justify-content: space-between; } }

/* 4 Nov: bigger 3D books in the carousels (author) */
@media (min-width: 981px) {
  .e-slide .e-shelf .e-book { --w: clamp(150px, 14.5vw, 240px); --d: 22px; }
  .e-slide .e-shelf .b2 { --w: clamp(170px, 16.5vw, 270px); }
  .e-slide .e-shelf { gap: clamp(22px, 3vw, 52px); }
  .e-slide .e-shelf .e-book { flex-shrink: 0; }
  .e-slide:has(.e-shelf) .e-slide-in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}
@media (max-width: 980px) {
  .e-slide .e-shelf .e-book { --w: 104px; }
  .e-slide .e-shelf .b2 { --w: 120px; }
}
