/* ==========================================================================
   tt-c.css: TradingTeaching design system, style C ("Six Languages")
   Stage 1, 2 Nov 2026. ONE stylesheet for tradingteaching.com AND
   academy.tradingteaching.com (Stage 3 replaces Academy/app/public/css/tt-shared.css
   with this file; see STAGE1_CHANGES.md, "Academy").

   Direction: a school that meets you in your own language, set like a publisher.
   White paper, TT-07 navy for text, Signal Blue only for marks and the chosen
   state, one colour per book. Two type families (Noto Serif Display for Latin
   headlines, Noto Sans for everything else). The Indian and Arabic scripts use
   the system's own fonts by default; a page that shows lesson text in those
   scripts adds the matching Noto families with one extra <link> (see
   "Fonts" in STAGE1_CHANGES.md), so no other page downloads them.

   Contents
     1  Tokens                 9  Book tiles (.c-books / .c-book)
     2  Scripts and RTL        10 Course table (.c-table)
     3  Base and type scale    11 Language switch (.c-switch, .l.xx)
     4  Layout                 12 Register-interest (.c-interest)
     5  Buttons and links      13 Cards (.c-cards), steps, lists, Q&A
     6  Top bar + masthead     14 Forms
     7  Language entry         15 Legacy class bridge (v3 names, academy names)
     8  Footer and legal       16 Print, reduced motion
   Rules: no gradients, glows, glass or drop shadows on cards; no ALL-CAPS labels;
   numbered markers only for real sequences; motion only in answer to the visitor.
   ========================================================================== */

/* 1  Tokens ---------------------------------------------------------------- */
:root {
  --paper: #FFFFFF;
  --navy: #071827;        /* TT-07 navy: text, footer, the lesson screen frame */
  --navy-2: #12304D;      /* hover on navy */
  --signal: #2F80ED;      /* TT-07 Signal Blue: chosen state, focus, rules. 3.7:1, never small text */
  --link: #1A5DB8;        /* text links, 6.3:1 on white, 5.6:1 on sky */
  --sky: #EAF2FC;         /* panels, top bar */
  --sky-2: #F5F9FE;       /* quiet fills inside panels */
  --slate: #4B5A69;       /* secondary text, 7.2:1 */
  --rule: #DCE6F0;        /* hairlines */
  --rule-2: #C4D3E3;      /* control borders */
  --on-navy: #C9D6E4;     /* text on navy, 10.9:1 */
  --b1: #2A64C4;          /* Book 1 / Level 1, blue  (5.6:1) */
  --b2: #127552;          /* Book 2 / Level 2, green (5.9:1) */
  --b3: #8E6420;          /* Book 3 / Level 3, gold  (5.4:1) */
  --b1-soft: #EAF1FB; --b2-soft: #E6F2EC; --b3-soft: #F5EEE2;
  --held: #B3261E;

  --serif: "Noto Serif Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Script stacks: the system font first (Nirmala UI / Kohinoor / Noto on Android),
     the web font only where a page loads it. */
  --ta: "Noto Sans Tamil", "Nirmala UI", "Tamil Sangam MN", "Latha", var(--sans);
  --hi: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Mangal", var(--sans);
  --ml: "Noto Sans Malayalam", "Nirmala UI", "Malayalam Sangam MN", "Kartika", var(--sans);
  --ar: "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", "Arial", serif;
  --ur: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", serif;

  /* Type scale (17px base; steps of the classic 12/14/17/21/24/30/36/48/60) */
  --fs-xs: .8125rem;   /* 13 */
  --fs-s: .875rem;     /* 14 */
  --fs-m: 1.0625rem;   /* 17 body */
  --fs-l: 1.25rem;     /* 20 lede */
  --fs-h4: 1.0625rem;
  --fs-h3: 1.3125rem;  /* 21 */
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);   /* 28 to 40 */
  --fs-h1: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);   /* 36 to 56 */

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --space: clamp(64px, 8vw, 104px);   /* between sections */
  --r-s: 8px; --r-m: 14px; --r-l: 20px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Aliases so stylesheets written for the v3 site and the academy keep working */
  --ink: var(--navy); --ink-2: #33475B; --ink-3: var(--slate);
  --blue: var(--signal); --blue-text: var(--link); --blue-light: #8DB8F5;
  --cloud: var(--sky-2); --white: #FFFFFF;
  --level-1: var(--b1); --level-1-text: var(--b1); --level-1-soft: var(--b1-soft);
  --level-2: var(--b2); --level-2-text: var(--b2); --level-2-soft: var(--b2-soft);
  --level-3: var(--b3); --level-3-text: var(--b3); --level-3-soft: var(--b3-soft);
  --gold: #C5A15A; --on-navy-2: #A9BBCD;
  --radius: var(--r-s);
}

/* 2  Scripts and RTL ------------------------------------------------------- */
:lang(ta) { font-family: var(--ta); }
:lang(hi) { font-family: var(--hi); }
:lang(ml) { font-family: var(--ml); }
:lang(ar) { font-family: var(--ar); line-height: 1.8; }
:lang(ur) { font-family: var(--ur); line-height: 2.1; }
:lang(ar), :lang(ur) { letter-spacing: 0 !important; text-transform: none !important; }
:lang(ta) h1, :lang(ta) h2, :lang(hi) h1, :lang(hi) h2, :lang(ml) h1, :lang(ml) h2 { font-family: inherit; font-weight: 600; line-height: 1.3; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { font-family: inherit; line-height: 1.7; }
[dir="rtl"] { text-align: right; }
[dir="rtl"] .c-crumb, [dir="rtl"] .c-mast, [dir="rtl"] .logo { direction: rtl; }
.logo, .c-logo { direction: ltr; }   /* the TT-07 mark never mirrors */

/* 3  Base and type scale --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--paper); color: var(--navy);
  font: 400 var(--fs-m)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; }
h1, h2, .c-display { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
h1 { font-size: var(--fs-h1); line-height: 1.08; margin-block-end: .4em; max-width: 20ch; }
h2 { font-size: var(--fs-h2); line-height: 1.14; margin-block-end: .45em; max-width: 26ch; }
h3 { font: 600 var(--fs-h3)/1.3 var(--sans); margin-block-end: .35em; }
h4 { font: 600 var(--fs-h4)/1.35 var(--sans); margin-block-end: .3em; }
small, .c-small { font-size: var(--fs-s); }
strong, b { font-weight: 600; }
.lede, .c-lede { font-size: var(--fs-l); line-height: 1.55; color: var(--slate); max-width: 36rem; }
.slate, .muted, .c-slate { color: var(--slate); }
.nowrap { white-space: nowrap; }
.c-num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
::selection { background: #CFE1FA; color: var(--navy); }

/* accessibility */
.skip, .c-skip { position: absolute; inset-inline-start: 12px; top: -64px; z-index: 200; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; box-shadow: 0 0 0 2px var(--navy); }
.skip:focus, .c-skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.c-foot :focus-visible { outline-color: #8DB8F5; }

/* 4  Layout ---------------------------------------------------------------- */
.wrap, .c-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.c-narrow { max-width: 760px; }
.c-section { padding-block-start: var(--space); }
.c-section:last-child { padding-block-end: 8px; }
.c-head { margin-block-end: 36px; max-width: 46rem; }
.c-head p { color: var(--slate); max-width: 40rem; margin: 0; }
.c-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.c-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.c-panel { background: var(--sky); border-radius: var(--r-l); padding: clamp(24px, 4vw, 56px); }
.c-panel.navy { background: var(--navy); color: #fff; }
.c-panel.navy h2, .c-panel.navy h3 { color: #fff; }
.c-panel.navy p { color: var(--on-navy); }
.c-panel.navy a:not(.btn) { color: #fff; }
.c-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-s); color: var(--slate); margin-block-end: 18px; list-style: none; padding: 0; }
.c-crumb a { color: var(--slate); }
.c-crumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--rule-2); }
.c-pagehead { padding-block-start: clamp(32px, 5vw, 64px); }
.c-pagehead h1 { max-width: 22ch; }

/* 5  Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  font: 600 .97rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--signal); color: var(--navy); }
.btn.solid, .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.solid:hover, .btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn.light, .btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn.light:hover, .btn-light:hover { background: var(--sky); border-color: var(--sky); }
.btn.on-navy, .c-panel.navy .btn:not(.light):not(.btn-light) { background: transparent; border-color: #fff; color: #fff; }
.btn.on-navy:hover, .c-panel.navy .btn:not(.light):not(.btn-light):hover { background: var(--navy-2); }
.btn.small, .btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.btn-loading { opacity: .6; cursor: progress; }
.c-acts, .c-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.c-more { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.c-more:hover { border-bottom-width: 2.5px; }
button.c-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* 6  Top bar + masthead ---------------------------------------------------- */
.c-top { background: var(--sky); color: var(--slate); font-size: var(--fs-xs); }
.c-top .wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-block: 7px; }
.c-top a { color: var(--navy); }
.c-mast { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); }
.c-mast > .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.c-logo { display: inline-flex; flex-shrink: 0; }
.c-logo img { display: block; width: 214px; height: auto; }
.c-nav { margin-inline-start: auto; }
.c-nav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); list-style: none; margin: 0; padding: 0; }
.c-nav a { color: var(--navy); text-decoration: none; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.c-nav a:hover { border-bottom-color: var(--rule-2); }
.c-nav a[aria-current] { border-bottom-color: var(--signal); }
.c-mast-acts { display: flex; align-items: center; gap: 10px; }
.c-mast .btn { min-height: 42px; padding: 9px 18px; font-size: .92rem; white-space: nowrap; }
.c-menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rule-2); border-radius: var(--r-pill); background: #fff; color: var(--navy); font: 600 .92rem/1 var(--sans); cursor: pointer; }
.c-menu-btn i { position: relative; width: 16px; height: 2px; background: currentColor; display: block; }
.c-menu-btn i::before, .c-menu-btn i::after { content: ""; position: absolute; inset-inline-start: 0; width: 16px; height: 2px; background: currentColor; }
.c-menu-btn i::before { top: -5px; } .c-menu-btn i::after { top: 5px; }
.c-menu-btn[aria-expanded="true"] i { background: transparent; }
.c-menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.c-menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.c-panel-langs { display: none; }

/* 7  Language entry (the six-language entry point in the masthead) --------- */
.c-langs { position: relative; }
.c-langs > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--rule-2); border-radius: var(--r-pill); cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--navy); background: #fff; white-space: nowrap; }
.c-langs > summary::-webkit-details-marker { display: none; }
.c-langs > summary:hover, .c-langs[open] > summary { border-color: var(--signal); }
.c-langs .c-glyphs { font-weight: 400; color: var(--slate); letter-spacing: .04em; }
.c-langs .c-glyphs span + span { margin-inline-start: 3px; }
.c-langs-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 330px; background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r-m); padding: 18px; z-index: 60; box-shadow: 0 18px 40px -18px rgba(7,24,39,.35); }
.c-langs-pop p { font-size: var(--fs-s); color: var(--slate); margin: 0 0 10px; }
.c-langlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.c-langlist a { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--rule); text-decoration: none; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.c-langlist a small { font: 400 .78rem/1.2 var(--sans); color: var(--slate); }
.c-langlist a:hover { border-color: var(--signal); background: var(--sky-2); }
.c-langs-pop .c-more { display: inline-block; margin-top: 12px; font-size: var(--fs-s); }

/* 8  Footer and legal ------------------------------------------------------ */
.c-foot { margin-top: var(--space); background: var(--navy); color: var(--on-navy); font-size: var(--fs-s); padding: 56px 0 36px; }
.c-foot .c-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.c-foot h2 { font: 600 .95rem/1.3 var(--sans); color: #fff; margin: 0 0 12px; max-width: none; letter-spacing: 0; }
.c-foot ul { list-style: none; margin: 0; padding: 0; line-height: 2.05; }
.c-foot a { color: #fff; text-decoration: none; }
.c-foot a:hover { text-decoration: underline; }
.c-foot .c-about { max-width: 30rem; margin: 16px 0; }
.c-foot .c-langline { color: var(--on-navy); }
.c-social { display: flex; gap: 10px; margin-top: 14px; }
.c-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); }
.c-social a:hover { border-color: #fff; text-decoration: none; }
.c-social svg { width: 18px; height: 18px; fill: currentColor; }
.c-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.c-legal p { margin: 0 0 12px; max-width: 72rem; font-size: var(--fs-xs); line-height: 1.7; color: var(--on-navy); }
.c-legal strong { color: #fff; }
.c-legal a { text-decoration: underline; text-underline-offset: .2em; }
.c-legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-xs); }
.c-legal-row nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; line-height: 1.6; }
/* The short risk line, once in the body of a page */
.c-riskline, .riskline { font-size: var(--fs-s); color: var(--slate); max-width: 44rem; margin: 18px 0 0; }

/* 9  Book tiles: whole covers, never cropped -------------------------------- */
.c-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.5vw, 48px); list-style: none; margin: 0; padding: 0; }
.c-book { display: flex; flex-direction: column; }
.c-cover { display: block; width: 100%; max-width: 250px; aspect-ratio: 640 / 1024; background: var(--sky); border-radius: 3px; box-shadow: 0 0 0 1px rgba(7,24,39,.10); overflow: hidden; }
.c-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.c-book .c-level { margin-top: 18px; }
.c-book h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin: 4px 0 6px; }
.c-book h3 a { color: inherit; text-decoration: none; }
.c-book h3 a:hover { text-decoration: underline; }
.c-book p { margin: 0 0 10px; }
.c-book .c-sub { color: var(--slate); font-style: italic; }
.c-fmt { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-fmt a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--rule-2); text-decoration: none; color: var(--navy); font-size: .92rem; font-weight: 600; }
.c-fmt a b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.c-fmt a:hover { border-color: var(--navy); }
/* Level marks: one colour per book, used by books, courses and class levels */
.c-level { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); font-weight: 600; color: var(--c, var(--slate)); }
.c-level::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; flex: none; }
.lv1 { --c: var(--b1); --c-soft: var(--b1-soft); }
.lv2 { --c: var(--b2); --c-soft: var(--b2-soft); }
.lv3 { --c: var(--b3); --c-soft: var(--b3-soft); }
.lv0 { --c: var(--navy); --c-soft: var(--sky); }
.c-free { display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--b2); background: var(--b2-soft); padding: 3px 10px; border-radius: var(--r-pill); }

/* 10 Course table: real table on desktop, stacked blocks on phones (V3) ----- */
.c-table-wrap { overflow-x: auto; }
.c-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.c-table caption { text-align: start; color: var(--slate); font-size: var(--fs-s); padding-bottom: 10px; caption-side: top; }
.c-table th, .c-table td { padding: 14px 18px 14px 0; text-align: start; vertical-align: top; border-bottom: 1px solid var(--rule); }
.c-table thead th { font-weight: 600; border-bottom: 2px solid var(--navy); padding-bottom: 12px; vertical-align: bottom; }
.c-table thead th small { display: block; font-weight: 600; color: var(--c, var(--slate)); font-size: var(--fs-xs); }
.c-table tbody th { font-weight: 600; color: var(--slate); width: 18%; }
.c-table td.c-none { color: var(--slate); }
.c-table .c-here { background: var(--sky-2); padding-inline: 14px; }
.c-table a { white-space: nowrap; }

/* 11 Language switch: the memorable element. CSS only, keyboard friendly ---- */
.c-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.c-switch legend { font-size: .95rem; color: var(--slate); margin-bottom: 10px; padding: 0; }
.c-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-switch label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--rule-2); cursor: pointer; font-size: 1.15rem; line-height: 1.3; background: #fff; }
.c-switch label small { font: 400 .8rem/1 var(--sans); color: var(--slate); }
.c-switch label:hover { border-color: var(--signal); }
.c-switch input:checked + label { background: var(--navy); color: #fff; border-color: var(--navy); }
.c-switch input:checked + label small { color: var(--on-navy); }
.c-switch input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 3px; }
/* One language at a time; English is the default. Only hidden blocks are touched,
   so each block keeps its own display value. */
body:not(:has(#s-en:checked)) .l.en, body:not(:has(#s-ta:checked)) .l.ta,
body:not(:has(#s-hi:checked)) .l.hi, body:not(:has(#s-ml:checked)) .l.ml,
body:not(:has(#s-ar:checked)) .l.ar, body:not(:has(#s-ur:checked)) .l.ur { display: none !important; }
.c-lesson .c-meta { font-size: .95rem; color: var(--slate); margin: 0 0 6px; }
.c-lesson .c-title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.28; font-weight: 600; margin: 0 0 10px; border-inline-start: 5px solid var(--signal); padding-inline-start: 18px; }
.c-lesson .c-title:lang(en) { font-family: var(--serif); font-weight: 500; }
.c-lesson .c-title:lang(ur) { line-height: 2.05; }
.c-lesson .c-sub { margin: 0 0 24px; color: var(--slate); font-size: 1.12rem; padding-inline-start: 23px; }
.c-screen { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; background: var(--navy); box-shadow: 0 0 0 8px var(--navy); }
.c-screen img { display: block; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.c-screen .c-play { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.96); display: grid; place-items: center; }
.c-screen .c-play::before { content: ""; border-inline-start: 20px solid var(--navy); border-block: 12px solid transparent; margin-inline-start: 6px; }
[dir="rtl"] .c-screen .c-play::before { margin-inline-start: 0; margin-inline-end: 6px; }
.c-screen:hover .c-play { background: #fff; box-shadow: 0 0 0 4px var(--signal); }
.c-screen-cap { font-size: .9rem; color: var(--slate); margin: 22px 0 0; }
.c-modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; counter-reset: m; }
.c-modules li { counter-increment: m; display: grid; grid-template-columns: 2.2rem 1fr; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.c-modules li::before { content: counter(m); font-family: var(--serif); font-size: 1.15rem; color: var(--b1); }

/* 12 Register-interest block (Kickstart and the classes, no dates) ---------- */
.c-interest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; border-inline-start: 6px solid var(--signal); background: var(--sky); border-radius: 0 var(--r-l) var(--r-l) 0; padding: clamp(24px, 4vw, 48px); }
[dir="rtl"] .c-interest { border-radius: var(--r-l) 0 0 var(--r-l); }
.c-interest h2 { margin-bottom: 10px; }
.c-interest .c-when { font-weight: 600; font-size: 1.1rem; }
.c-interest .c-formcard { background: #fff; border-radius: var(--r-m); padding: clamp(20px, 3vw, 32px); }
.c-interest.compact { grid-template-columns: 1fr auto; align-items: center; }

/* 13 Cards (only where the content is a set), steps, lists, Q&A ------------- */
.c-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.c-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-cards > li { display: flex; }
.c-cards > li > .c-card { flex: 1; }
.c-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r-m); padding: 22px 22px 24px; }
.c-card[class*="lv"], [class*="lv"] > .c-card { border-top: 4px solid var(--c); }
.c-card h3 { margin: 4px 0 2px; }
.c-card p { margin: 0; color: var(--slate); }
.c-card .c-acts, .c-card > .btn, .c-card > .c-more { margin-top: auto; padding-top: 14px; align-self: flex-start; }
a.c-card { text-decoration: none; color: var(--navy); }
a.c-card:hover { border-color: var(--rule-2); border-top-color: var(--c, var(--signal)); }
a.c-card:hover h3 { text-decoration: underline; }
.c-tag { font-size: var(--fs-xs); font-weight: 600; color: var(--c, var(--slate)); }
/* A set of points with no order: plain columns, no boxes */
.c-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.c-points li { border-top: 2px solid var(--navy); padding-top: 14px; }
.c-points h3 { font-size: 1.1rem; }
.c-points p { margin: 0; color: var(--slate); }
/* A real sequence: numbered */
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: st; }
.c-steps > li { counter-increment: st; position: relative; padding-top: 52px; }
.c-steps > li::before { content: counter(st); position: absolute; top: 0; inset-inline-start: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 500 1.2rem/1 var(--serif); color: #fff; background: var(--c, var(--navy)); }
.c-steps p { margin: 0; color: var(--slate); }
.c-ticks { list-style: none; padding: 0; margin: 12px 0; }
.c-ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 6px; }
.c-ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 11px; height: 6px; border-inline-start: 2px solid var(--b2); border-bottom: 2px solid var(--b2); transform: rotate(-45deg); }
[dir="rtl"] .c-ticks li::before { transform: rotate(45deg) scaleX(-1); }
.c-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--slate); font-size: .95rem; }
.c-facts b { color: var(--navy); font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin-inline-end: 4px; }
.c-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 16px 0; font-size: .95rem; }
.c-dl dt { color: var(--slate); }
.c-dl dd { margin: 0; font-weight: 600; }
/* Questions and answers: <details> or <dl> */
.c-qa { max-width: 52rem; border-top: 1px solid var(--rule); }
.c-qa details, .c-qa > div { border-bottom: 1px solid var(--rule); }
.c-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.05rem; }
.c-qa summary::-webkit-details-marker { display: none; }
.c-qa summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--link); flex: none; }
.c-qa details[open] summary::after { content: "\2212"; }
.c-qa details > div, .c-qa dd { padding: 0 0 18px; margin: 0; color: var(--ink-2); max-width: 46rem; }
.c-qa dt { font-weight: 600; font-size: 1.05rem; padding: 18px 0 6px; }
.c-portrait { margin: 0; }
.c-portrait img { display: block; width: 100%; max-width: 220px; aspect-ratio: 682 / 1024; object-fit: cover; border-radius: var(--r-m); }
.c-portrait figcaption { font-size: var(--fs-s); color: var(--slate); margin-top: 8px; }

/* 14 Forms ------------------------------------------------------------------ */
.c-form label, .form-group label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.c-form input:not([type="checkbox"]):not([type="radio"]), .c-form select, .c-form textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--sans); color: var(--navy);
  background: #fff; border: 1.5px solid var(--rule-2); border-radius: var(--r-s);
}
.c-form textarea, .form-group textarea { min-height: 96px; resize: vertical; }
.c-form input:focus, .c-form select:focus, .c-form textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--signal); outline: 3px solid rgba(47,128,237,.25); outline-offset: 0; }
.form-group, .c-field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-check, .form-checkbox, .cc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 6px 0 16px; font-weight: 400; }
.c-check input, .form-checkbox input, .cc-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.form-checkbox label { font-weight: 400; margin: 0; }
.form-status { display: none; border-radius: var(--r-s); padding: 14px 16px; margin-bottom: 16px; }
.form-status.success { display: block; background: var(--b2-soft); border-inline-start: 4px solid var(--b2); }
.form-status.error { display: block; background: #FDECEA; border-inline-start: 4px solid var(--held); }
.form-status h4 { margin: 0 0 4px; }
.form-status p { margin: 0; }
.tt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-formnote { font-size: var(--fs-s); color: var(--slate); margin: 12px 0 0; }

/* 15 Legacy class bridge ----------------------------------------------------
   Pages not yet rebuilt (blog, /c/, the academy) keep their own markup. These
   rules give the v3 and academy class names the C look, so apply_chrome.py can
   swap the stylesheet without rewriting 450 pages. */
.eyebrow { display: block; font: 600 var(--fs-s)/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--slate); margin: 0 0 8px; }
.eyebrow::before { display: none; }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; line-height: 1.1; }
.display em, h1 em, h2 em { font-style: normal; color: inherit; }
.btn-ghost, .btn.ghost, .btn-secondary { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover, .btn.ghost:hover, .btn-secondary:hover { border-color: var(--signal); background: #fff; color: var(--navy); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.link-arrow::after { content: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-s); color: var(--slate); margin-bottom: 18px; }
.breadcrumb a { color: var(--slate); }
.breadcrumb span:not(:last-child) { color: var(--rule-2); }
.container { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
section.cta { margin-top: var(--space); }
section.cta > .wrap, section.cta > .container { background: var(--navy); color: var(--on-navy); border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px); }
section.cta h2 { color: #fff; }
section.cta a:not(.btn) { color: #fff; }
section.cta .btn-ghost, section.cta .btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.reveal { opacity: 1 !important; transform: none !important; }
/* the HELD Day Trading preview blocks keep their red banner */
.held-banner { border: 2px dashed var(--held) !important; }

/* 16 Responsive, print, reduced motion -------------------------------------- */
@media (max-width: 1080px) {
  .c-nav a { font-size: .9rem; }
  .c-langs .c-langs-word { display: none; }
}
@media (max-width: 980px) {
  .c-split, .c-two, .c-interest { grid-template-columns: 1fr; }
  .c-cards, .c-points, .c-steps { grid-template-columns: 1fr 1fr; }
  .c-cards.four { grid-template-columns: 1fr 1fr; }
  .c-modules { grid-template-columns: 1fr; }
  .c-foot .c-cols { grid-template-columns: 1fr 1fr; }
  .c-foot .c-cols > :first-child { grid-column: 1 / -1; }
  /* masthead becomes logo + menu button; the menu opens as a panel (V11) */
  .js .c-menu-btn { display: inline-flex; }
  .js .c-nav, .js .c-mast-acts { display: none; }
  .js .c-mast.open .c-nav, .js .c-mast.open .c-mast-acts { display: block; }
  .js .c-mast > .wrap { flex-wrap: wrap; }
  .js .c-menu-btn { margin-inline-start: auto; }
  .js .c-mast.open .c-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--rule); padding-top: 6px; }
  .js .c-mast.open .c-nav ul { flex-direction: column; gap: 0; }
  .js .c-mast.open .c-nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .js .c-mast.open .c-nav a[aria-current] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--signal); padding-inline-start: 12px; }
  .js .c-mast.open .c-mast-acts { order: 4; width: 100%; padding: 16px 0 22px; }
  .js .c-mast.open .c-mast-acts .btn { display: flex; width: 100%; min-height: 52px; font-size: 1rem; }
  .js .c-mast.open .c-langs { display: none; }
  .js .c-mast.open .c-panel-langs { display: block; margin-bottom: 14px; }
  .c-panel-langs p { font-size: var(--fs-s); color: var(--slate); margin: 0 0 8px; }
  .c-panel-langs .c-langlist { grid-template-columns: repeat(3, 1fr); }
  /* without JS the menu stays a scrollable row */
  html:not(.js) .c-mast > .wrap { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .c-nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  html:not(.js) .c-langs { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .lede, .c-lede { font-size: 1.1rem; }
  .c-top .wrap > span:first-child { display: none; }
  .c-logo img { width: 176px; }
  .c-mast > .wrap { min-height: 64px; gap: 12px; }
  .c-cards, .c-cards.two, .c-cards.four, .c-points, .c-steps, .c-books { grid-template-columns: 1fr; }
  .c-book { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: start; }
  .c-book > .c-cover { grid-row: span 6; }
  .c-book .c-level { margin-top: 0; }
  .c-switch label { font-size: 1.05rem; padding: 7px 14px; min-height: 44px; }
  .c-switch label small { display: none; }
  .c-panel-langs .c-langlist { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .c-foot .c-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .c-screen { box-shadow: 0 0 0 5px var(--navy); }
  .c-interest.compact { grid-template-columns: 1fr; }
  /* course/comparison tables become stacked blocks, every cell labelled (V3) */
  .c-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c-table.stack, .c-table.stack tbody, .c-table.stack tr, .c-table.stack th, .c-table.stack td { display: block; width: 100%; }
  .c-table.stack tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .c-table.stack tbody th { padding: 0 0 6px; border: 0; color: var(--navy); }
  .c-table.stack td { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 4px 0; border: 0; }
  .c-table.stack td::before { content: attr(data-l); color: var(--slate); font-size: var(--fs-s); font-weight: 600; }
  .c-table.stack .c-here { padding-inline: 0; background: none; }
  .c-table a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .c-top, .c-mast, .c-foot .c-cols, .c-foot .c-legal-row nav, .c-menu-btn, .c-langs, .c-switch, .c-screen .c-play, #ttl-root, .ttl-wrap { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .c-foot { background: none; color: #000; margin-top: 24pt; padding: 0; }
  .c-legal p, .c-legal strong { color: #000; }
  .c-panel, .c-interest { background: none; border: 1px solid #999; }
  a { color: #000; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  h1, h2, h3 { break-after: avoid; }
  .c-book, .c-card, tr { break-inside: avoid; }
}

/* 17 Class ladder and course prices (shared with the academy) ---------------
   .c-ladder: a real sequence (Kickstart, then Levels 1-3), so it is numbered by
   position and coloured by book. .c-prices: the three courses side by side. */
.c-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.c-ladder > li { position: relative; padding: 4px 0 22px; padding-inline-start: 40px; border-inline-start: 3px solid var(--c, var(--navy)); margin-inline-start: 9px; }
.c-ladder > li::before { content: ""; position: absolute; inset-inline-start: -11px; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--c, var(--navy)); }
.c-ladder > li:last-child { padding-bottom: 4px; }
.c-ladder h3 { margin: 2px 0 4px; }
.c-ladder p { margin: 0; color: var(--slate); }
.c-ladder .c-facts { margin-top: 6px; }
.c-ladder .c-facts b { font-size: 1.05rem; }
.c-prices { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.c-prices a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: #fff; border-radius: var(--r-m); padding: 20px 22px; border-top: 5px solid var(--c); text-decoration: none; color: var(--navy); }
.c-prices a:hover b { text-decoration: underline; }
.c-prices b { font-weight: 600; font-size: 1.05rem; }
.c-price { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; margin-top: 6px; }
.c-prices .c-free { align-self: flex-start; }
.c-prices .slate { font-size: var(--fs-s); }
@media (max-width: 980px) { .c-prices { grid-template-columns: 1fr; } }

/* 18 Chrome wins over legacy page CSS (v3-content.css sets ":root.v3 body p"). */
:root:root body .c-foot p, :root:root body .c-foot li, :root:root body .c-legal p { color: var(--on-navy); }
:root:root body .c-top span { color: var(--slate); }
:root:root body .c-mast p, :root:root body .c-langs-pop p { color: var(--slate); }
:root:root body .c-foot h2 { color: #fff; font-family: var(--sans); font-size: .95rem; margin: 0 0 12px; }
:root:root body .c-foot a { color: #fff; }
:root:root body .c-mast .btn.solid { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: var(--r-pill); }
:root:root body .c-mast .btn.solid:hover { background: var(--navy-2); }
:root:root body .c-nav a, :root:root body .c-langs > summary { font-family: var(--sans); }
