/* ==========================================================================
   tt-d.css: TradingTeaching style D, "Navy and Gold" (3 Nov 2026, preview)
   Loaded LAST on every page (after tt-c.css, c-pages.css and any page CSS),
   so it is the last word. tt-c.css stays the shared base (the academy keeps
   its own copy); this file only re-tunes it to the look the author approved
   this week: the Facebook cover v2 and the Kickstart ad (navy, gold, the real
   photo, language chips).

   Contents
     1  Tokens (navy and gold palette, one type family)
     2  Base type: headings in Noto Sans, book titles stay serif
     3  Top bar, masthead, footer (CSS only: no markup change in 478 pages)
     4  Buttons on dark, gold button, chips, FREE badge, facts box
     5  Dark hero (.d-hero) shared by home and live-classes
     6  Home: hero art, trust strip, Kickstart band, author
     7  Live classes: Kickstart hero with the form
     8  Responsive
   Rules: gold only on navy (never gold text on white); orange, green and blue
   only as chip fills with navy text; one family (Noto Sans) for all six
   scripts; serif only for book titles and prices (the covers' voice).
   ========================================================================== */

/* 1 Tokens ------------------------------------------------------------------ */
:root {
  --navy: #0A2240;        /* brand navy: text, hero, footer (16:1 on white) */
  --navy-2: #144786;      /* raised panels on navy, hover */
  --navy-3: #0F2C52;      /* cards on navy */
  --gold: #F6C94A;        /* accent ON NAVY ONLY: 10.2:1 on #0A2240 */
  --gold-2: #FFD666;      /* gold hover */
  --orange: #F28C28;      /* Tamil chip (navy text 6.5:1) */
  --green: #1EA85A;       /* Malayalam chip (navy text 5.2:1) */
  --blue: #2F80ED;        /* English chip (navy text 4.1:1, large bold text only) */
  --on-navy: #C9D8E8;     /* text on navy, 11:1 */
  --rule-navy: rgba(201, 216, 232, .22);
  --sky: #EEF3F9;         /* quiet panels on white */
  --sky-2: #F6F9FC;
  --ink: var(--navy);
  --serif: "Noto Serif Display", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.3rem, 1.4rem + 3.4vw, 3.75rem);   /* 37 to 60 */
  --fs-h2: clamp(1.7rem, 1.2rem + 1.9vw, 2.4rem);    /* 27 to 38 */
  --r-l: 18px;
}
html { scroll-padding-top: 92px; }          /* anchors (#kickstart) land below the sticky masthead */

/* 2 Base type ---------------------------------------------------------------- */
h1, h2, .c-display, .display { font-family: var(--sans); font-weight: 700; letter-spacing: -.022em; }
h2 { font-weight: 700; letter-spacing: -.018em; }
h1 { line-height: 1.06; }
h2 { line-height: 1.15; }
:lang(ta) h1, :lang(ta) h2, :lang(ml) h1, :lang(ml) h2, :lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; }
.c-lesson .c-title:lang(en) { font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; }
/* the covers' voice stays: book titles and prices keep the serif */
.c-book h3, .c-vol h3, .c-price, .c-fmt a b { font-family: var(--serif); }
/* figures and sequence numbers in the sans (the serif's old-style digits read as a different voice) */
.c-facts b, .c-modules li::before, .c-steps > li::before, .chapter-num, .c-lessons .c-n, .c-timeline time, .c-stats b, .c-rule dt, .c-parallel td:first-child { font-family: var(--sans); font-weight: 700; }
.c-modules li::before { color: var(--navy-2); }

/* 3 Chrome: top bar, masthead, footer ------------------------------------------ */
:root:root body .c-top { background: var(--navy); color: var(--on-navy); }
:root:root body .c-top span { color: var(--on-navy); }
:root:root body .c-top a { color: #fff; }
.c-top .wrap { padding-block: 6px; }
.c-mast { background: rgba(255, 255, 255, .98); border-bottom: 1px solid #DCE4EE; box-shadow: 0 1px 0 rgba(10, 34, 64, .04); }
:root:root body .c-nav a { font-weight: 600; font-size: .94rem; color: var(--navy); }
.c-nav a:hover { border-bottom-color: var(--navy-2); }
.c-nav a[aria-current] { border-bottom: 3px solid var(--navy); }
:root:root body .c-mast .btn.solid { background: var(--navy); border-color: var(--navy); }
:root:root body .c-mast .btn.solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.c-langs > summary, .c-menu-btn { border-color: #C9D5E3; }
/* footer: navy with a gold rule, as the cover */
.c-foot { background: var(--navy); border-top: 4px solid var(--gold); }
.c-social a:hover { border-color: var(--gold); }

/* 4 Buttons, chips, badge, facts box ---------------------------------------- */
.btn { font-weight: 700; letter-spacing: .005em; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn.line-light { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn.line-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.btn.big { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
:root:root body .d-dark .btn.gold { color: var(--navy); }
.d-dark :focus-visible { outline-color: var(--gold); }

.d-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.d-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px;
  font: 700 1.2rem/1.2 var(--sans); color: var(--navy); background: #fff; }   /* 19px bold = large text */
.d-chip.ta { background: var(--orange); }
.d-chip.ml { background: var(--green); }
.d-chip.en { background: var(--blue); }
.d-chip small { font: 600 .8rem/1 var(--sans); margin-inline-start: 8px; opacity: .9; }
.d-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--gold); color: var(--gold); font-weight: 700; text-decoration: none; }
a.d-pill:hover { background: rgba(246, 201, 74, .12); color: var(--gold-2); }
.d-pill.solid-o { background: var(--orange); border-color: var(--orange); }
:root:root body .d-pill.solid-o { color: var(--navy); margin: 0; }

/* the FREE star, as on the ad (a 16-point burst; text is real text) */
.d-free { display: inline-grid; place-items: center; width: 104px; height: 104px; flex: none;
  background: var(--gold); color: var(--navy); font: 800 1.35rem/1 var(--sans); letter-spacing: .02em; transform: rotate(-8deg);
  clip-path: polygon(50% 0%, 57% 13%, 69% 4%, 72% 18%, 85% 15%, 82% 28%, 96% 31%, 87% 42%, 100% 50%, 87% 58%, 96% 69%, 82% 72%, 85% 85%, 72% 82%, 69% 96%, 57% 87%, 50% 100%, 43% 87%, 31% 96%, 28% 82%, 15% 85%, 18% 72%, 4% 69%, 13% 58%, 0% 50%, 13% 42%, 4% 31%, 18% 28%, 15% 15%, 28% 18%, 31% 4%, 43% 13%); }

/* facts box: the ad's "Free class | Where" panel */
.d-factbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1.5px solid rgba(246, 201, 74, .75); border-radius: 16px; background: rgba(15, 44, 82, .72); }
.d-factbox > div { padding: 14px 20px; }
.d-factbox > div:nth-child(odd) { border-inline-end: 1px solid var(--rule-navy); }
.d-factbox > div:nth-child(n+3) { border-top: 1px solid var(--rule-navy); }
.d-factbox dt { color: var(--gold); font-size: .86rem; font-weight: 700; margin: 0 0 2px; }
.d-factbox dd { margin: 0; color: #fff; font-weight: 600; font-size: 1.06rem; line-height: 1.4; }
.d-factbox dd small { display: block; color: var(--on-navy); font-weight: 400; font-size: .86rem; }

/* 5 Dark hero ------------------------------------------------------------------- */
.d-dark { background: var(--navy); color: var(--on-navy); }
:root:root body .d-dark h1, :root:root body .d-dark h2, :root:root body .d-dark h3 { color: #fff; }
:root:root body .d-dark p { color: var(--on-navy); }
:root:root body .d-dark a:not(.btn):not(.d-pill) { color: #fff; }
.d-dark .c-crumb, .d-dark .c-crumb a { color: var(--on-navy); }
.d-dark .c-crumb li + li::before { color: rgba(201, 216, 232, .5); }
.d-gold { color: var(--gold); display: block; }
.d-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-weight: 600; font-size: .98rem; color: var(--on-navy); letter-spacing: .01em; }
.d-kicker::before { content: ""; width: 44px; height: 4px; border-radius: 2px; background: var(--gold); flex: none; }
.d-hero { position: relative; overflow: hidden; }
.d-hero h1 { font-size: var(--fs-h1); max-width: 14ch; margin-bottom: .35em; font-weight: 800; }
.d-hero .lede { color: var(--on-navy); max-width: 34rem; }
.d-riskline { font-size: .86rem; color: var(--on-navy); margin: 22px 0 0; max-width: 40rem; }

/* six language names in their own scripts (home hero) */
.d-langs { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.d-langs li { display: inline-flex; align-items: center; }
.d-langs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-inline: 12px; }
.d-langs a { color: #fff; text-decoration: none; font-size: 1.22rem; line-height: 1.6; border-bottom: 1px solid transparent; }
.d-langs a:hover { border-bottom-color: var(--gold); }

/* 6 Home --------------------------------------------------------------------------- */
.d-home-hero { padding-top: clamp(28px, 4vw, 56px); }
.d-home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 3vw, 40px); align-items: end; }
.d-home-hero .d-copy { padding-bottom: clamp(36px, 5vw, 72px); }
.d-home-hero .c-acts { margin-bottom: 22px; }
.d-art { position: relative; align-self: end; margin-inline-end: calc(-1 * var(--gutter)); }
.d-art > img { display: block; width: 100%; height: auto; }
.d-art .d-covers { position: absolute; inset-inline-start: 0; bottom: 9%; display: flex; list-style: none; margin: 0; padding: 0; }
.d-art .d-covers li { width: clamp(70px, 8.5vw, 116px); margin-inline-end: -14px; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .65); border-radius: 2px; overflow: hidden; }
.d-art .d-covers li:nth-child(2) { transform: translateY(10px); }
.d-art .d-covers li:nth-child(3) { transform: translateY(20px); }
.d-art .d-covers img { display: block; width: 100%; height: auto; }
.d-art figcaption { position: absolute; inset-inline-start: 0; bottom: 0; font-size: .85rem; color: var(--on-navy); }

/* trust strip under the hero */
.d-trust { background: #fff; border-bottom: 1px solid #DCE4EE; }
.d-trust ul { list-style: none; margin: 0 auto; padding-block: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.d-trust li { display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 3px solid var(--navy); }
.d-trust b { font-size: 1.12rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.d-trust span { color: var(--slate); font-size: .9rem; line-height: 1.45; }

/* Kickstart band (home) */
.d-kickband { border-radius: var(--r-l); background: var(--navy) url(../images/d/map-navy.jpg) right center / cover no-repeat; padding: clamp(26px, 4vw, 52px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px clamp(20px, 3vw, 40px); align-items: center; }
.d-kickband h2 { margin: 0 0 8px; max-width: none; }
.d-kickband p { margin: 0 0 14px; max-width: 40rem; }
.d-kickband .d-chips { margin-top: 4px; }

/* section heads on white get a navy rule, as the books' chapter openers */
.d-rulehead { border-top: 3px solid var(--navy); padding-top: 18px; }

/* author */
.c-author { grid-template-columns: 260px minmax(0, 1fr); }
.c-portrait img { max-width: 260px; aspect-ratio: 4 / 5; border-radius: var(--r-m); object-fit: cover; }
.d-cred { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.d-cred li { padding: 6px 14px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 600; font-size: .92rem; }

/* panels: quieter sky, navy closer keeps the gold button */
.c-panel { background: var(--sky); }
.c-panel.navy { background: var(--navy); }

/* 7 Live classes: the Kickstart hero with the form ------------------------------------ */
.d-kickhero { background: linear-gradient(90deg, var(--navy) 0 38%, rgba(10, 34, 64, .72) 62%, rgba(10, 34, 64, .35) 100%), var(--navy) url(../images/d/map-navy.jpg) right top / auto 100% no-repeat; padding-block: clamp(24px, 3.5vw, 48px) clamp(40px, 5vw, 72px); }
.d-kickhero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "a f" "b f"; grid-template-rows: auto 1fr; gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
.d-ka { grid-area: a; } .d-kf { grid-area: f; } .d-kb { grid-area: b; }
.d-kickhero h1 { max-width: 13ch; margin-bottom: 0; }
.d-titlerow { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.d-kickhero .lede { margin-bottom: 20px; }
.d-kickhero .d-chips { margin-bottom: 14px; }
.d-kickhero .d-factbox { margin-top: 22px; }
.d-learn { margin: 22px 0 0; }
.d-learn h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: 0; margin: 0 0 8px; }
.d-learn .c-ticks { margin: 0; }
.d-learn .c-ticks li { color: var(--on-navy); }
.d-learn .c-ticks li::before { border-color: var(--gold); }
.d-teacher { display: flex; gap: 14px; align-items: center; margin-top: 24px; }
.d-teacher img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.d-teacher p { margin: 0; font-size: .95rem; line-height: 1.5; }
:root:root body .d-teacher b { color: #fff; }
/* the form card: white on navy */
.d-formcard { background: #fff; color: var(--navy); border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); border-top: 6px solid var(--gold); }
:root:root body .d-formcard h2, :root:root body .d-formcard h3, :root:root body .d-formcard h4 { color: var(--navy); }
:root:root body .d-formcard p { color: var(--slate); }
.d-formcard > h2 { font-size: 1.5rem; margin: 0 0 4px; }
.d-formcard .d-formsub { margin: 0 0 18px; font-size: .95rem; }
.d-formcard .c-form .btn.solid { background: var(--navy); border-color: var(--navy); min-height: 56px; font-size: 1.06rem; }
.d-formcard .c-form .btn.solid:hover { background: var(--navy-2); }
.d-formcard :focus-visible { outline-color: var(--blue); }
:root:root body .d-formcard .c-formnote a { color: var(--link); }
.d-formcard .form-status h4 { color: var(--navy); }
.d-afterhero { padding-top: clamp(48px, 6vw, 80px); }

/* 8 Responsive --------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .d-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .d-home-hero .wrap { grid-template-columns: 1fr; }
  .d-kickhero .wrap { grid-template-columns: 1fr; grid-template-areas: "a" "f" "b"; gap: 28px; }
  .d-home-hero .d-copy { padding-bottom: 8px; }
  .d-art { margin-inline: calc(-1 * var(--gutter)); max-width: 640px; justify-self: center; }
  .d-kickband { grid-template-columns: 1fr; background-position: 70% center; }
  .c-author { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .d-hero h1 { font-size: clamp(2.15rem, 1.2rem + 5vw, 2.6rem); }
  .d-langs a { font-size: 1.08rem; }
  .d-langs li + li::before { margin-inline: 9px; }
  .d-trust ul { grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 18px; }
  .d-trust b { font-size: 1rem; }
  .d-factbox { grid-template-columns: 1fr 1fr; }
  .d-factbox > div { padding: 12px 14px; }
  .d-factbox dd { font-size: .98rem; }
  .d-free { width: 84px; height: 84px; font-size: 1.1rem; }
  .d-titlerow { gap: 12px; align-items: flex-start; }
  .d-chip { font-size: 1.2rem; padding: 4px 14px; min-height: 42px; }
  .d-chip small { display: none; }
  .d-chips { gap: 8px; }
  .d-kickhero { background: var(--navy) linear-gradient(180deg, rgba(20, 71, 134, .55), rgba(10, 34, 64, 0) 70%); }
  .d-kickhero .d-kicker { margin-bottom: 10px; }
  .d-kickhero .c-crumb { margin-bottom: 10px; }
  .d-kickhero .lede { font-size: 1.05rem; }
  .d-pill.solid-o { min-height: 40px; padding: 6px 16px; }
  .d-art .d-covers li { width: 74px; }
  .c-author { grid-template-columns: 1fr; }
  .c-author .c-portrait img { max-width: 220px; }
  .d-pill { font-size: .95rem; }
  .btn.big { width: 100%; }
}
@media print {
  .d-dark, .d-kickhero, .d-kickband { background: none !important; color: #000; }
  .d-art, .d-free { display: none; }
}

/* 4 Nov: labels for the two language rows in the home hero (online / in person) */
.d-langlabel { margin: 18px 0 2px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.d-copy .c-acts + .d-langlabel { margin-top: 22px; }

/* 9 Spacing pass (4 Nov 2026, author: "too much empty space") ---------------------------- */
/* Wider content on large screens, tighter gaps between sections, two-column blocks centred
   so the shorter column does not leave a hole under it. */
:root { --wrap: 1320px; --space: clamp(48px, 6vw, 80px); }
.c-hero, .c-split, .c-two { align-items: center; }
.d-afterhero { padding-top: clamp(36px, 4.5vw, 60px); }
@media (min-width: 981px) {
  .d-hero h1 { max-width: 20ch; }
  /* the photo fills the hero from top to bottom instead of sitting at the bottom */
  .d-home-hero .wrap { align-items: stretch; }
  .d-art { align-self: stretch; display: flex; margin-top: calc(-1 * clamp(28px, 4vw, 56px)); min-height: 520px; }
  .d-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 100%; }
  .d-art > img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
}

/* questions in two columns on wide screens, so the answers fill the width */
@media (min-width: 981px) {
  .c-qa { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); align-items: start; }
}
