/* Trademinar.
   Palette carried from iTooTrade (styles.css --color-primary / --color-accent),
   on Sujith's instruction of 2 October 2026, so the two businesses read as the
   same hand. SEBI's 29 January 2025 circular, question 8, expressly permits a
   regulated person's agent to share branding with an educator, for exactly as
   long as the educator gives no advice and makes no return claim.

   Green is the only accent and it is rationed. It marks a destination or an
   action, never a number, never a price, never anything a reader could take
   for a profit. Red does not exist here at all.

   Type is Literata, the brand face, self hosted under the SIL OFL so the page
   calls no font CDN. One corner radius for the whole site: none. The mark is
   built on a 3 unit grid and the page is ruled rather than boxed, which is why
   there are hairlines and almost no cards. */

@font-face {
  font-family: "Literata";
  src: url("/assets/type/literata-latin.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1B33;
  --green: #14B870;
  --green-deep: #0FA463;
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F6F3EC;
  --border: #ECE7DF;
  --rule: #D9D2C6;
  --muted: #5C6475;
  --ink: var(--navy);

  /* The mark's one theme dependent fill: the horns and the wicks. The green
     candle body is the brand colour on both grounds and stays literal, so a
     single inlined copy of the mark serves the light and the dark page. */
  --logo-ink: #1B2A4A;

  --wrap: 1120px;
  --gutter: 16px;
  --header-h: 80px;   /* follows the 48px badge, not the other way round */
  --bar-h: 62px;

  --step--1: clamp(.8125rem, .79rem + .11vw, .875rem);
  --step-0: clamp(1rem, .96rem + .18vw, 1.0625rem);
  --step-1: clamp(1.1875rem, 1.12rem + .32vw, 1.375rem);
  --step-2: clamp(1.4375rem, 1.3rem + .6vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.65rem + 2vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-ink: #FBFAF7;
    --navy: #E8EBF2;
    --navy-deep: #FFFFFF;
    --bg: #101A2E;
    --surface: #16233E;
    --surface-2: #1B2A4A;
    --border: #27344F;
    --rule: #33405C;
    --muted: #A8B0C2;
    --ink: #E8EBF2;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: var(--step-0);
  font-variation-settings: "opsz" 14, "wght" 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-variation-settings: "opsz" 36, "wght" 600; line-height: 1.12; letter-spacing: -.012em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { max-width: 68ch; }
a { color: inherit; }

.pending {
  background: #FFF3CD; color: #7A5B00; padding: 0 .3em;
  font-variation-settings: "opsz" 14, "wght" 600; font-size: .9em;
  overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pending { background: #4A3A00; color: #FFE08A; }
}

/* ── Header. Sticky at every width, per the house standard. The nav is never
   behind a burger: on a phone the five destinations become a chip row that
   scrolls sideways, which shows the first three at rest and says with its own
   overflow that there are more. The logo is the SAME height at every width. ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { width: auto; display: block; }
.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; gap: 26px; align-items: center; }
  .nav-desktop a {
    text-decoration: none; color: var(--muted); font-size: var(--step--1);
    font-variation-settings: "opsz" 14, "wght" 500;
    padding: 6px 0; border-bottom: 2px solid transparent;
  }
  .nav-desktop a:hover { color: var(--ink); }
  .nav-desktop a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
}
.nav-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter) 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav-chips::-webkit-scrollbar { display: none; }
.nav-chips a {
  flex: 0 0 auto; text-decoration: none; font-size: var(--step--1);
  font-variation-settings: "opsz" 14, "wght" 500;
  padding: 7px 14px; border: 1px solid var(--rule); color: var(--muted);
  background: var(--surface);
}
.nav-chips a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
@media (min-width: 900px) { .nav-chips { display: none; } }

/* ── Buttons. One filled shape, one quiet. Square, like everything else. ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; text-decoration: none; border: 1px solid transparent;
  font-family: inherit; font-size: var(--step-0);
  font-variation-settings: "opsz" 14, "wght" 600;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--green-deep); color: #FFFFFF; }
.btn-primary:hover { background: #0C8B54; }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
.btn-sm { padding: 9px 16px; font-size: var(--step--1); }
.hdr .btn { display: none; }
@media (min-width: 900px) { .hdr .btn { display: inline-flex; } }

/* ── Hero. Asymmetric split on desktop.
   ON A PHONE THE COPY LEADS. It was the other way round until 11 November
   2026, because the asset column was reserved for a photograph of a real
   session, and a photograph of the real thing is what earns the first screen
   under the mobile hero standard. There is no such photograph, the column
   carries a drawing now, and a drawing must never push the headline below the
   fold. Flip these two back the day a real session photograph lands. ── */
.hero { border-bottom: 1px solid var(--rule); padding: 0; }
.hero-grid { display: grid; gap: 24px; padding-block: 20px 34px; }
.hero-copy { order: 1; }
.hero-asset { order: 2; }
.hero h1 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.5rem); margin-bottom: 14px; }
.hero .lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px; align-items: center; padding-block: 56px 64px;
  }
}

/* The hero artwork: a candlestick field drawn by tools/brand/field.py and
   inlined, so its one ink is currentColor and it follows the page into dark
   mode. There is no second colour, no axis and no trend, by construction and
   by assertion; read the top of that file before changing anything here.

   This replaced a dashed box reading "Photograph needed here" that had been
   live on fifteen pages since launch. A reserved slot is an honest thing in a
   draft and a hole in a published page: the reader sees what is missing
   instead of what is being sold. */
.hero-art {
  margin: 0; aspect-ratio: 4 / 3; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hero-art svg { display: block; width: 100%; height: auto; }

/* The photographs of the room, on the contact page only. They are not a hero
   anywhere: the room is empty in all three, and an empty room at the top of
   the homepage says nobody comes here. On a page that answers "where is this
   and what am I walking into" they earn their place. */
.room-photo { margin: 0; }
.room-photo img, .room-wide img {
  display: block; width: 100%; height: auto; border: 1px solid var(--border);
}
.room-wide { margin: 34px 0 0; max-width: 48rem; }
.room-wide figcaption {
  margin-top: 10px; font-size: var(--step--1); color: var(--muted);
}

/* A course hero already knows four true things about itself, so the column
   carries those instead of a picture. */
.hero-spec {
  border: 1px solid var(--border); background: var(--surface); padding: 24px 26px;
}
.hero-spec .spec {
  margin: 0; max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px;
}

/* ── The one inverted band on the page, used once, for the SEBI number. ── */
.band-ink { background: var(--navy-deep); color: #F2F4F8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band-ink { background: #0A1222; }
}
.band-ink .stat { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); font-variation-settings: "opsz" 72, "wght" 700; line-height: 1; letter-spacing: -.03em; }
.band-ink p { color: #C3CAD8; }
.band-ink a { color: #FFFFFF; }
.src { font-size: var(--step--1); color: #9AA4B8; max-width: 72ch; }

.band-grid { display: grid; gap: 22px; }
@media (min-width: 880px) {
  .band-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 56px; align-items: start; }
}

section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.sec-head { max-width: 62ch; margin-bottom: 32px; }
.sec-head p { color: var(--muted); margin-top: 12px; }

/* ── The course index. A ruled contents page, not a grid of cards. ── */
.index-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px;
  padding: 20px 0; border-top: 1px solid var(--rule);
  text-decoration: none; align-items: baseline;
}
.index-row:last-child { border-bottom: 1px solid var(--rule); }
.index-row:hover { background: var(--surface-2); }
/* Below 700px this is a two column grid and the row has four children, so
   the fee was the third and wrapped onto a line of its own, right aligned
   inside column one, which left it floating in the middle under the duration.
   The name takes the full first line instead, and the duration and the fee
   then sit together on the second: duration left, fee right, aligned to the
   same edges as everything else in the row. */
.index-row .nm { grid-column: 1 / -1; font-size: var(--step-1); font-variation-settings: "opsz" 24, "wght" 600; }
.index-row .bl { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); max-width: 62ch; }
.index-row .meta { color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
.index-row .meta:not(.fee) { text-align: left; }
.index-row .fee { text-align: right; }
.index-row .fee { font-variation-settings: "opsz" 14, "wght" 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .index-row { grid-template-columns: minmax(0, 1fr) 7.5rem 7.5rem; }
  .index-row .nm { grid-column: 1; }
  .index-row .bl { grid-column: 1; }
  .index-row .meta, .index-row .meta:not(.fee) { text-align: right; }
}

/* ── The refusals. A numbered editorial list in two columns, no cards. ── */
.rules { display: grid; gap: 0; counter-reset: r; }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.rule { border-top: 1px solid var(--rule); padding: 18px 0; counter-increment: r; }
.rule h3 { font-size: var(--step-0); margin-bottom: 4px; }
.rule h3::before { content: counter(r) ". "; color: var(--muted); font-variation-settings: "opsz" 14, "wght" 400; }
.rule p { color: var(--muted); font-size: var(--step--1); }

/* ── Footer and the fixed mobile action bar. ── */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--rule); padding: 44px 0 36px; font-size: var(--step--1); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: 1.3fr .8fr 1.1fr 1.1fr; } }
.site-footer h4, .site-footer .foot-h { font-size: var(--step--1); font-variation-settings: "opsz" 14, "wght" 600; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.site-footer a.foot-credit { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.disclosure { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); }
/* The risk statement sits directly under a four column grid that runs the
   full width of the footer. At 86ch it stopped 359px short of that grid's
   right edge with nothing in the gap, and the hard edge above is what made a
   perfectly readable measure look like a fault. Two columns from 900px fills
   the width, keeps each line near 60 characters, and lines the block up with
   the grid. Below 900px it is one column, where there is no spare width and
   no edge to disagree with. */
.disclosure p { max-width: 86ch; }
@media (min-width: 900px) {
  .disclosure { columns: 2; column-gap: 48px; }
  .disclosure p { max-width: none; break-inside: avoid; }
  .disclosure p + p { margin-top: 16px; }
}

.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--rule);
  height: var(--bar-h);
}
@media (min-width: 900px) { .action-bar { display: none; } }
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink);
  font-size: .75rem; font-variation-settings: "opsz" 14, "wght" 600;
  border-right: 1px solid var(--rule);
}
.action-bar a:last-child { border-right: 0; }

:where(a, button):focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; }

/* The course specification block: four facts, read as a list and not as a
   row of cards. Grid rather than flex percentages. */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 22px 0 26px; max-width: 34rem; }
@media (min-width: 560px) { .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 2px; }
.spec dd { font-variation-settings: "opsz" 14, "wght" 600; }

/* The fee table. Tabular figures so the rupee column lines up. */
.fee-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fee-table th, .fee-table td { text-align: left; padding: 15px 12px 15px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.fee-table thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-size: var(--step--1); color: var(--muted); font-variation-settings: "opsz" 14, "wght" 600; padding-bottom: 10px; }
.fee-table td.num, .fee-table th.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-table td.num { font-variation-settings: "opsz" 14, "wght" 600; }
.fee-table tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.fee-table a { text-decoration: none; }
.fee-table a:hover { text-decoration: underline; }
@media (max-width: 560px) { .fee-table .hide-sm { display: none; } }

/* The contact and booking pages carry a form. Label above, error below,
   never a placeholder standing in for a label. */
.field { display: grid; gap: 6px; margin-bottom: 18px; max-width: 32rem; }
.field label { font-size: var(--step--1); font-variation-settings: "opsz" 14, "wght" 600; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); padding: 11px 13px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 1px; border-color: var(--green-deep); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; max-width: 32rem; margin: 22px 0; font-size: var(--step--1); color: var(--muted); }
.consent input { margin-top: 4px; }
.prose p + p { margin-top: 16px; }
.prose h3 { margin: 28px 0 8px; }
.prose ul { margin: 12px 0 0 1.1em; }
.prose li { margin-bottom: 8px; max-width: 66ch; }

/* ---- brand lockup: the bull badge beside the wordmark -------------------
   The badge is 48px at every width. The house standard puts the floor at
   44px on desktop and 48px on mobile and forbids a step down at a
   breakpoint, so one flat size satisfies both and cannot drift. The
   wordmark sits at 34px, which is what lets the pair fit a 360px phone
   without a second, smaller mobile lockup. */
.brand { gap: 12px; }
.brand-mark { display: block; }
.brand-mark svg { height: 48px; width: auto; display: block; }
.brand-word { display: block; }
.brand-word svg { height: 34px; width: auto; display: block; }
.foot-mark { display: block; margin-bottom: 14px; }
.foot-mark svg { height: 56px; width: auto; display: block; color: var(--ink); }

/* ---- breadcrumbs ------------------------------------------------------
   A course page sits two levels down and the header only says "Courses",
   so without a trail the way back to the hub is a guess. */
.crumbs { border-bottom: 1px solid var(--rule); background: var(--bg); font-size: var(--step--1); }
.crumbs .wrap { display: flex; gap: 8px; align-items: center; padding-top: 11px; padding-bottom: 11px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs .wrap::-webkit-scrollbar { display: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--rule); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---- the Courses menu -------------------------------------------------
   Eight children behind one nav word is eight pages nobody finds. Opens on
   focus-within as well as hover so it is reachable from the keyboard. */
@media (min-width: 900px) {
  .has-menu { position: relative; display: inline-flex; align-items: center; }
  .nav-menu {
    position: absolute; top: 100%; left: -16px; z-index: 60;
    display: grid; width: 340px; padding: 8px 0; margin-top: 14px;
    background: var(--bg); border: 1px solid var(--rule);
    box-shadow: 0 14px 34px -18px rgba(27, 42, 74, .45);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .13s ease, transform .13s ease, visibility .13s;
  }
  .has-menu:hover .nav-menu,
  .has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a {
    display: grid; gap: 1px; padding: 9px 18px; text-decoration: none;
    border-bottom: 0; color: var(--ink);
  }
  .nav-menu a:hover, .nav-menu a:focus-visible { background: var(--surface-2); }
  .nav-menu .m-name { font-size: var(--step--1); font-variation-settings: "opsz" 14, "wght" 560; }
  .nav-menu .m-meta { font-size: .78rem; color: var(--muted); }
  .nav-menu .m-all {
    margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule);
    font-size: var(--step--1); font-variation-settings: "opsz" 14, "wght" 560;
    color: var(--green);
  }
}

/* ---- a hero with no photograph beside it ------------------------------
   .hero .lede is clamped to 34ch so it sits in the narrow column of the
   two column hero. On the policy pages there is no second column, and at
   34ch the sentence breaks every four words. */
.hero-solo .lede { max-width: 54ch; }
.hero-solo h1 { max-width: 20ch; }

/* ---- a definition list for terms, not specifications -------------------
   .spec is a four up grid built for "10 days" and "Rs 10,000". A policy
   answer is a sentence, and four sentences side by side in quarter width
   columns is unreadable. */
.terms { display: grid; gap: 0; margin: 22px 0 8px; max-width: 54rem; }
.terms > div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.terms > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .terms > div { grid-template-columns: 15rem 1fr; gap: 28px; align-items: baseline; } }
.terms dt { font-size: var(--step--1); color: var(--muted); }
.terms dd { max-width: 62ch; }

/* The lead trainer. One column on a phone with the portrait first, two from
   720px with the portrait beside the text rather than above it: at reading
   width a 4:5 photo above four paragraphs pushes the whole bio below the fold.
   Width is capped in ch so the text column never outruns a comfortable
   measure on a wide screen. */

/* The trainer portrait in the /about/ hero, filling the slot that asked for
   it. It keeps the 4:5 of the crop so the box reserves the right height
   before the file arrives and the hero does not jump. */
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: var(--radius, 12px); background: var(--rule);
  max-width: 22rem;
}
@media (min-width: 900px) { .hero-photo img { max-width: none; } }

/* ── Student testimonials ────────────────────────────────────────────────
   The markup (.tm-grid, .tm-card, .tm-quote, .tm-who, .tm-avatar,
   .tm-initial) is emitted by tools/render_testimonials.py and injected
   between markers at build time. The class names are that script's
   contract; do not rename one here without renaming it there.

   One column on a phone, two from 700px, three from 960px. The quotes are
   long and unedited, so the card is a readable column of text rather than a
   pull-quote: no large italic, no decorative quotation mark, no hover lift.
   This is somebody's paragraph, not a poster. */
.tm-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tm-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) { .tm-grid { grid-template-columns: repeat(3, 1fr); } }

.tm-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
}
.tm-avatar, .tm-initial {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
}
.tm-avatar { object-fit: cover; background: var(--surface-2); }
.tm-initial {
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
  font-size: var(--step-1); font-variation-settings: "opsz" 24, "wght" 600;
}
.tm-quote { margin: 0; white-space: pre-line; max-width: 46ch; }
.tm-who {
  margin: 0; margin-top: auto; padding-top: 4px;
  font-size: var(--step--1); color: var(--muted);
}
.tm-more { margin-top: 24px; }

/* A section with nothing in it is worse than no section. When the client
   has taken every testimonial down, the whole block goes rather than
   leaving a heading over a hole. The homepage and the dedicated page both
   self-hide, which is why the markers sit inside .tm-grid and nothing else
   the renderer writes lands outside it. */
.testimonials-home:has(.tm-grid:empty),
.testimonials-page:has(.tm-grid:empty) { display: none; }


/* The trainer. One column on a phone, prose beside the credentials from
   960px. The aside is what fills the right of a section that was a readable
   column of text next to nothing: it is not decoration, it is the four NISM
   papers written out, which the prose can only give as numerals. */
.trainer { display: grid; gap: 28px; }
.trainer-text > p + p { margin-top: 16px; }
.trainer-creds {
  align-self: start; padding: 22px 24px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.trainer-creds h3 { margin: 0 0 14px; font-size: var(--step-0); }
.trainer-creds dl { margin: 0; display: grid; gap: 12px; }
.trainer-creds dt {
  font-size: var(--step--1); color: var(--muted);
  font-variation-settings: "opsz" 14, "wght" 600;
}
.trainer-creds dd { margin: 2px 0 0; max-width: 32ch; }
.trainer-creds .src { margin-top: 18px; }
@media (min-width: 960px) {
  .trainer { grid-template-columns: minmax(0, 1fr) 20rem; gap: 48px; align-items: start; }
}

/* The permission note under the testimonial grid, same disagreement as the
   footer risk statement: a long paragraph at a readable measure sitting
   under a grid that runs the full width, so the edge above makes it look
   cut. Two columns from 900px, one below it. tools/check_alignment.py is
   what found both. */
@media (min-width: 900px) {
  .testimonials-page .src { columns: 2; column-gap: 48px; max-width: none; }
}
