@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url('assets/fonts/caveat.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Red-pen identity: exercise-book paper, ink-blue text and one correction red. */
:root {
  color-scheme: light;
  --paper: #faf6ec;
  --sheet: #fffdf7;
  --stone: #f3ecdc;
  --ink: #1b2236;
  --muted: #535a6b;
  --primary: #1f3a68;
  --primary-dark: #142a4f;
  --red: #c42f28;
  --red-dark: #9c221c;
  --accent-light: #ffb7ab;
  --rule: #e2d8c3;
  --dark-rule: #5a6688;
  --ruled-line: #dbe5f0;
  --margin-line: #eaa29b;
  --hand: Caveat, 'Segoe Print', 'Bradley Hand', cursive;
  --shell: 80rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-pad: clamp(3.25rem, 6.5vw, 6.5rem);
  --display: 'Source Serif 4', Georgia, serif;
  --body: Manrope, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 1rem/1.65 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); }
h3, h4 { font-size: 1.17rem; line-height: 1.22; font-weight: 750; }
h1 em, h2 em { font-style: italic; font-weight: inherit; }
ul, ol { padding-inline-start: 1.25rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
:target { scroll-margin-top: 1.25rem; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.skip-link { position: absolute; z-index: 6; inset: .5rem auto auto .5rem; padding: .75rem 1rem; background: var(--sheet); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* Handwritten margin notes in correction red. */
.eyebrow, .hand-note { display: block; margin: 0 0 .5rem; color: var(--red); font: 700 clamp(1.3rem, 2vw, 1.55rem)/1.15 var(--hand); letter-spacing: 0; transform: rotate(-2deg); transform-origin: left; }
.section-lead { max-width: 38rem; margin: .8rem 0 clamp(1.4rem, 3vw, 2.2rem); font-size: 1.05rem; }
/* Lined exercise-book paper with a red margin rule. */
:is(section, main).ruled {
  --margin: clamp(.7rem, 3vw, 3.2rem);
  background:
    linear-gradient(90deg, transparent calc(var(--margin) - 1px), var(--margin-line) calc(var(--margin) - 1px) var(--margin), transparent var(--margin)),
    repeating-linear-gradient(to bottom, transparent 0 calc(2.1rem - 1px), var(--ruled-line) calc(2.1rem - 1px) 2.1rem),
    var(--paper);
}
.section-heading { margin-bottom: clamp(1.75rem, 4vw, 3.4rem); }
.section-heading > p:last-child { margin-top: 1rem; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); align-items: end; gap: clamp(1.25rem, 5vw, 5rem); }
.split-heading > p { max-width: 30rem; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.header-inner { display: flex; align-items: center; gap: clamp(1rem, 2.15vw, 2rem); min-height: 5.35rem; }
.brand { display: inline-flex; flex: none; gap: .68rem; align-items: center; text-decoration: none; font: 800 1.12rem/1.14 var(--body); }
.brand small { display: block; margin-top: .26rem; color: var(--muted); font: 650 .72rem/1.23 var(--body); letter-spacing: .012em; }
.brand-mark { position: relative; flex: none; width: 3.25rem; aspect-ratio: 5 / 4; overflow: hidden; }
.brand-mark img { position: absolute; inset: -27.5% auto auto -65.5%; width: 226%; max-width: none; height: auto; }
.brand-accent { color: var(--red-dark); }
.header-inner > .brand { font-size: 1.2rem; }
.header-inner .brand-mark { width: 3.6rem; }
.main-nav { margin-inline-start: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1.15rem, 2.35vw, 2.25rem); }
.nav-links > a { display: inline-flex; align-items: center; min-height: 3rem; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: underline transparent; text-underline-offset: .37em; white-space: nowrap; transition: color .18s ease, text-decoration-color .18s ease; }
.nav-links > a:is(:hover, [aria-current]) { color: var(--primary); text-decoration-color: currentColor; }
.menu-toggle { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.button { display: inline-flex; min-height: 3.1rem; justify-content: center; align-items: center; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: .35rem; background: var(--primary); color: white; font-size: .93rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { background: var(--primary-dark); }
.button-secondary { border-color: var(--rule); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); background: var(--stone); }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button-light:hover { border-color: white; background: white; color: var(--primary-dark); }
.button-demo { background: var(--red); color: white; box-shadow: 0 2px 0 var(--red-dark); }
.button-demo:hover { background: var(--red-dark); color: white; }
.button:disabled { cursor: wait; opacity: .7; }
.text-link { color: var(--primary); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .24em; transition: color .18s ease, text-underline-offset .18s ease; }
.text-link:hover { color: var(--primary-dark); text-underline-offset: .34em; }

.hero-description { max-width: 34rem; margin: 1.2rem 0 1.6rem; font-size: clamp(1.03rem, 1.45vw, 1.18rem); }

.courses-section { border-bottom: 1px solid var(--rule); }

.feedback-section { border-block: 1px solid var(--rule); background: var(--stone); }
.offer-copy h2 { margin-bottom: 1.1rem; }
.offer-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.offer-list li { position: relative; padding: .85rem 0 .9rem 1.85rem; border-top: 1px solid var(--rule); }
.offer-list li::before {
  position: absolute;
  inset: .95rem auto auto .28rem;
  width: .48rem;
  height: .8rem;
  border: solid var(--red-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: '';
}
.offer-list h3 { margin-bottom: .25rem; }
.offer-list p { font-size: .95rem; }

.feedback-grid, .faq-grid, .contact-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.feedback-grid h2 { margin-bottom: .8rem; }
.feedback-grid > div:first-child p:not(.eyebrow) { max-width: 28rem; }
.closing :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }
.feedback-card { padding: clamp(1.2rem, 4vw, 2.45rem); border-top: 2px solid var(--primary); background: var(--sheet); color: var(--ink); }
.feedback-card blockquote { margin: .3rem 0 1.1rem; font: 400 clamp(1.5rem, 2.45vw, 2.1rem)/1.24 var(--display); }
.feedback-card summary { padding-block: .7rem .35rem; }
.feedback-card details > p { margin-block: .65rem .25rem; }
.feedback-card ul { margin-bottom: .35rem; color: var(--muted); }

.trainer-section { background: var(--paper); }
.compact-toggle { display: none; }

.learning-steps {
  --step-count: 4;
  --step-size: 3.25rem;
  --step-gap: clamp(1rem, 3.5vw, 3.5rem);
  --step-line: var(--dark-rule);
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: var(--step-gap);
  margin: clamp(1.4rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.learning-steps li { position: relative; }
.learning-steps li:not(:last-child)::after {
  position: absolute;
  inset: calc(var(--step-size) / 2) calc(-1 * var(--step-gap) + .65rem) auto calc(var(--step-size) + .65rem);
  border-top: 1px solid var(--step-line);
  content: '';
}
.step-marker {
  display: grid;
  width: var(--step-size);
  aspect-ratio: 1;
  margin-bottom: .9rem;
  place-items: center;
  border: 1px solid var(--step-line);
  border-radius: 50%;
  color: var(--accent-light);
  font: 500 1.45rem/1 var(--display);
}
.learning-steps h3 { margin-bottom: .4rem; }
.learning-steps p { max-width: 27ch; font-size: .94rem; }
.fees-section { border-block: 1px solid var(--rule); background: var(--paper); }
.resource-section { padding-block: clamp(2.6rem, 5vw, 4.2rem); border-bottom: 1px solid var(--rule); background: var(--stone); }
.faq-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
/* Disclosure rows: full-width tap target with a chevron that matches the compact toggles. */
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; list-style: none; cursor: pointer; color: var(--ink); font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary::after { flex: none; width: .5rem; height: .5rem; margin: 0 .3rem .25rem 0; border: solid var(--primary); border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(45deg); transition: transform .18s ease; }
details[open] > summary::after { margin-bottom: 0; transform: rotate(225deg); }
.faq-list summary { padding: .9rem 0; }
.faq-list details > p { padding-bottom: .75rem; }
.faq-list details > .text-link { display: inline-block; margin-bottom: .8rem; }
details[open] > :not(summary) { animation: settle .24s ease-out both; }

.closing { padding-block: clamp(2.5rem, 6vw, 4.4rem); background: var(--primary-dark); color: var(--sheet); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.closing h2 { margin-bottom: .5rem; font-size: clamp(2.3rem, 4.4vw, 4rem); }
.closing p { color: #e9f3ff; }
.closing .button { flex: none; }
.site-footer { padding-block: 2.1rem; background: var(--ink); color: var(--paper); }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 1.35rem; }
.footer-inner p, .site-footer .brand small { color: #d6e4f2; }
.site-footer .brand-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--sheet); }
.site-footer .brand-mark img { position: static; width: 87.5%; }
.site-footer .brand-accent { color: var(--accent-light); }
.footer-inner p { margin: .75rem 0 0; font-size: .87rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; font-weight: 650; }
.footer-inner nav a { text-underline-offset: .23em; }
.footer-inner nav a:hover { color: var(--accent-light); }
.whatsapp-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 3; padding: .55rem .8rem; border: 1px solid var(--sheet); background: var(--ink); color: white; font-weight: 800; text-decoration: none; transition: bottom .2s ease; }
/* Room under the footer, so the WhatsApp button never covers its links. */
body:has(.whatsapp-float:not([hidden])) .site-footer { padding-bottom: 5.5rem; }
.mobile-cta { display: none; }

.subhero, .contact-hero { padding-block: clamp(3.2rem, 7vw, 6.7rem); border-bottom: 1px solid var(--rule); background: var(--paper); }
.subhero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.5rem, 8vw, 7rem); align-items: end; }
.subhero .hero-description { margin-top: 1.3rem; }
.subhero-aside { padding-block: 1.15rem 0; border-top: 2px solid var(--primary); }
.subhero-aside h2 { margin-bottom: .65rem; font-size: clamp(1.8rem, 2.75vw, 2.7rem); }
.course-hero { padding-top: clamp(1.25rem, 3.5vw, 2.9rem); }
.course-fee { display: inline-block; margin: 0 0 1.1rem; padding: .4rem .75rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--sheet); color: var(--ink); font-size: .93rem; }
.course-fee strong { color: var(--primary-dark); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin-bottom: clamp(2rem, 5.6vw, 5rem); color: var(--muted); font-size: .85rem; }
.breadcrumb > * + *::before { display: inline-block; margin-inline-end: .65rem; color: var(--primary); content: '/'; text-decoration: none; }
.breadcrumb a { text-underline-offset: .2em; }
.breadcrumb a:hover { color: var(--primary); }
.course-source { margin-top: 1.35rem; }
.course-details { margin-top: clamp(1.85rem, 4vw, 3.2rem); padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.course-details > h2 { margin-bottom: .6rem; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem clamp(1.05rem, 5vw, 4rem); }
.skill-card { padding-top: .95rem; border-top: 1px solid var(--rule); }
.skill-card h3 { margin-bottom: .5rem; font-size: clamp(1.35rem, 2.25vw, 2.15rem); }
.skill-intro { color: var(--ink); font-weight: 750; }
.skill-card ul { margin-bottom: 0; }
.skill-card li { margin-block: .2rem; color: var(--muted); }
.course-related { padding-block: 1.65rem; border-top: 1px solid var(--rule); background: var(--paper); }
.course-related h2 { font: 800 1.12rem/1.3 var(--body); letter-spacing: -.01em; }
.course-related ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 0; padding: 0; list-style: none; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .3rem .8rem; color: var(--primary); font-size: .82rem; font-weight: 800; }
.target-card { margin-top: 1rem; padding: .85rem 1rem; background: var(--ink); color: var(--paper); }
.target-card p { margin-top: .42rem; color: #d9e8fa; font-size: .82rem; }
.target-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 750; }
.target-top strong { color: var(--accent-light); font: 400 2.4rem/.85 var(--display); }
.band-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: .32rem; margin-top: .55rem; }
.band-scale span { color: #d9e8fa; font-size: .75rem; text-align: center; }
.band-scale i { display: block; height: .85rem; margin-bottom: .14rem; background: var(--dark-rule); }
.band-scale span:nth-child(2) i { height: 1.15rem; }
.band-scale span:nth-child(3) i { height: 1.45rem; }
.band-scale span:nth-child(4) i { height: 1.75rem; }
.band-scale span:nth-child(5) i { height: 2.05rem; }
.band-scale .selected-band i { background: var(--accent-light); }

.contact-hero { padding-bottom: clamp(2.55rem, 5vw, 4.3rem); }
.contact-hero .hero-description { margin-bottom: 0; }
.booking-hero { padding-block: clamp(2rem, 4.2vw, 3.8rem); border-bottom: 1px solid var(--rule); background: var(--paper); }
.booking-hero h1 { font-size: clamp(2.25rem, 4.65vw, 4.35rem); text-wrap: balance; }
.booking-hero .hero-description { margin-block: .85rem 1.2rem; }
.booking-hero .booking-links { margin-bottom: 0; }
.demo-agenda { padding-block: clamp(1.55rem, 3.5vw, 3rem); border-bottom: 1px solid var(--rule); background: var(--stone); }
.demo-agenda h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); text-wrap: balance; }
.demo-agenda .learning-steps { --step-count: 3; --step-size: 2.5rem; --step-line: var(--rule); margin-top: 1.15rem; }
.demo-agenda .step-marker { margin-bottom: .65rem; background: var(--sheet); color: var(--primary); font-size: 1.18rem; }
.demo-agenda .learning-steps p { max-width: 34ch; }
.booking-calendar-section { padding-block: clamp(1.35rem, 3.5vw, 3rem); }
.booking-calendar-section h2 { margin-bottom: .7rem; font-size: clamp(1.45rem, 2.6vw, 2.35rem); }
.booking-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-bottom: 1rem; }
.booking-alternatives { border-top: 1px solid var(--rule); background: var(--paper); }
.booking-option { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.15rem clamp(1.5rem, 6vw, 5rem); align-items: start; }
.booking-option h2 { margin-bottom: .65rem; font-size: clamp(1.75rem, 3.3vw, 3rem); }
.sample-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.sample-transcript summary { color: var(--primary); font-weight: 800; }
.sample-transcript p:first-of-type { margin-top: .65rem; }
.group-demo { margin-top: clamp(2.2rem, 5vw, 4rem); padding-top: clamp(1.3rem, 3vw, 2.55rem); border-top: 1px solid var(--rule); }
.contact-section { padding-top: clamp(2.75rem, 7vw, 5.8rem); }
.contact-layout { grid-template-columns: minmax(0, 1.38fr) minmax(0, .62fr); }
.contact-aside { padding-top: 1rem; border-top: 1px solid var(--primary); }
.contact-aside h2, .form-card h2 { margin-bottom: .7rem; font-size: clamp(1.75rem, 3.3vw, 3.1rem); }
.contact-links { display: grid; justify-items: start; gap: .5rem; }
.form-card { padding-top: 1rem; border-top: 1px solid var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
fieldset.form-grid { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-grid label { display: block; font-size: .9rem; font-weight: 800; }
.form-grid label small { font-weight: 500; color: var(--muted); }
.form-grid label > span { color: var(--primary); }
.field-wide { grid-column: 1 / -1; }
.form-grid input:not([type="checkbox"]), .form-grid select, .form-grid textarea, .draft textarea { display: block; width: 100%; min-width: 0; min-height: 3rem; margin-top: .3rem; padding: .55rem .62rem; border: 1px solid #8295ad; border-radius: .4rem; background: var(--sheet); color: var(--ink); font-size: 1rem; font-weight: 500; }
.form-grid .whatsapp-toggle { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 600; cursor: pointer; }
.whatsapp-toggle input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--primary); }
.form-grid textarea, .draft textarea { resize: vertical; }
.form-note, .form-status, .form-notice { font-size: .88rem; }
.form-note { margin: 1rem 0; }
.form-status { margin: .65rem 0 0; }
.form-status:empty { display: none; }
.enquiry-receipt { margin-top: 1.2rem; padding: 1rem 1.2rem; border-left: 3px solid var(--primary); background: var(--paper); }
.enquiry-receipt h3 { margin-bottom: .45rem; }
.draft { margin-top: 1.2rem; padding: 1rem; border-left: 2px solid var(--primary); background: var(--paper); }
.draft h3 { margin-bottom: .4rem; }
.draft .actions { margin-top: .8rem; }

.guide-page { width: min(calc(100% - 2 * var(--gutter)), 49rem); }
.guide-page > h1 { margin-bottom: .85rem; }
.guide-page > .actions { margin-bottom: 2rem; }
.guide-list { margin: 0; padding: 0 0 0 1.6rem; }
.guide-list li { padding: .85rem 0 .95rem .45rem; border-top: 1px solid var(--rule); }
.guide-list li::marker { color: var(--primary); font-weight: 800; }
.guide-list h2 { margin-bottom: .35rem; font: 800 1.2rem/1.2 var(--body); letter-spacing: 0; }
.guide-list p { margin: 0; }
.guide-practice { margin-top: clamp(2.6rem, 6vw, 4.6rem); }
.guide-practice h2 { margin-bottom: .8rem; }
.guide-practice h3 { margin: 1rem 0 .55rem; }
.guide-practice > p { margin-bottom: 1rem; }

/* ---------- Homepage (written phone-first; wider layouts in min-width queries) ---------- */
.page-hero { padding-block: clamp(1.8rem, 6vw, 5rem) clamp(2.4rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 14ch; margin-top: clamp(1.8rem, 5vw, 3.2rem); }
.page-hero .hero-description { max-width: 40rem; margin: 1rem 0 1.4rem; color: var(--ink); }
.page-hero .actions .text-link, .not-found .actions .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.not-found h1 { margin-top: clamp(1.8rem, 5vw, 3rem); }

/* Tap-to-correct sentence. Line height leaves room for the handwritten fix above. */
.exercise--hero { max-width: 48rem; padding: clamp(1rem, 3vw, 1.8rem) clamp(1rem, 3.5vw, 2.2rem) .6rem; border: 1px solid var(--rule); border-radius: .3rem; background: var(--sheet); box-shadow: 4px 5px 0 var(--stone); transform: rotate(-.6deg); }
.exercise-sentence { margin: 0; color: var(--ink); font: 500 clamp(1.6rem, 4.8vw, 3rem)/2.05 var(--display); letter-spacing: -.01em; }
.fix { position: relative; display: inline; padding: 0 .04em; border: 0; border-radius: .2rem; background: none; color: inherit; font: inherit; white-space: nowrap; text-decoration: underline wavy var(--red); text-decoration-thickness: .055em; text-underline-offset: .2em; cursor: pointer; transition: background-color .18s ease; }
.fix:hover { background: rgb(196 47 40 / .08); }
.fix:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.fix s { text-decoration: none; transition: color .2s ease; }
.fix-word { position: absolute; bottom: 70%; left: 50%; color: var(--red); font: 700 .78em/1 var(--hand); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%) rotate(-5deg) scale(.6); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1.3); }
.fix.is-fixed, html:not(.js) .fix { text-decoration: none; cursor: default; }
.fix.is-fixed:hover { background: none; }
.fix.is-fixed s, html:not(.js) .fix s { color: var(--muted); text-decoration: line-through var(--red) .085em; }
.fix.is-fixed .fix-word, html:not(.js) .fix .fix-word { opacity: 1; transform: translateX(-50%) rotate(-5deg); }
.exercise-why { margin: .3rem 0 0; color: var(--primary); font-size: .98rem; font-weight: 650; }
.exercise-why:empty { display: none; }
.exercise-reveal { min-height: 2.75rem; padding: .4rem 0; border: 0; background: none; color: var(--red-dark); font-weight: 800; text-decoration: underline; text-underline-offset: .22em; }
html:not(.js) .exercise-reveal, html:not(.js) [data-exercise-hint] { display: none; }

.familiar { background: var(--sheet); }
.familiar-list { display: grid; gap: 0; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.familiar-list li { padding-block: 1.1rem 1.2rem; border-top: 1px solid var(--rule); }
.student-line { margin-bottom: .4rem; color: var(--ink); font: italic 500 clamp(1.4rem, 3vw, 1.75rem)/1.25 var(--display); }
.hand-reply { margin: 0; color: var(--red); font: 700 clamp(1.35rem, 2.4vw, 1.55rem)/1.15 var(--hand); }
.hand-reply::before { content: '→ '; }

.finder-section { background: var(--stone); }
.finder { max-width: 44rem; }
.finder-step { min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.finder-step legend { margin-bottom: .7rem; padding: 0; color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.choice { display: flex; align-items: center; gap: .8rem; min-height: 3.3rem; margin-bottom: .5rem; padding: .65rem 1rem; border: 1px solid var(--rule); border-radius: .5rem; background: var(--sheet); color: var(--ink); font-weight: 650; line-height: 1.3; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--red); }
.choice:hover { border-color: var(--red); }
.choice:has(input:checked) { border-color: var(--red); background: #fff1ee; }
.finder-result { margin-top: 1.2rem; padding: 1.2rem 1.2rem 1.3rem; border: 1px solid var(--rule); border-left: 4px solid var(--red); background: var(--sheet); box-shadow: 4px 5px 0 rgb(27 34 54 / .06); }
.finder-result:focus { outline: none; }
.finder-result h3 { margin-bottom: .4rem; font: 600 clamp(1.7rem, 4vw, 2.2rem)/1.1 var(--display); letter-spacing: -.02em; }

.courses-section { background: var(--sheet); }
.course-cards { display: flex; gap: .9rem; margin: 0; padding: .3rem var(--gutter) 1.2rem; overflow-x: auto; list-style: none; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.course-cards li { flex: 0 0 min(80%, 17.5rem); scroll-snap-align: start; }
.course-cards a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.course-cards a:hover { border-color: var(--red); box-shadow: 4px 5px 0 var(--stone); transform: translateY(-3px); }
.course-cards strong { font: 600 1.55rem/1.1 var(--display); letter-spacing: -.02em; }
.course-cards span { color: var(--muted); font-size: .93rem; line-height: 1.4; }
.course-cards .card-tag { color: var(--red); font: 700 1.3rem/1 var(--hand); }
.course-cards .card-tag--everyday { color: var(--primary); }
.course-cards .card-fee { margin-top: auto; padding-top: .8rem; border-top: 1px dashed var(--rule); color: var(--ink); font-weight: 800; }

.mistakes-section { border-block: 1px solid var(--rule); }
.mistake-cards { display: grid; gap: 1rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.mistake-cards .exercise { padding: .5rem 1.1rem .9rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--sheet); box-shadow: 3px 4px 0 var(--stone); }
.mistake-cards .exercise:nth-child(odd) { transform: rotate(-.4deg); }
.mistake-cards .exercise:nth-child(even) { transform: rotate(.4deg); }
.mistake-cards .exercise-sentence { font-size: clamp(1.3rem, 3.6vw, 1.65rem); }

.trainer-section { background: var(--ink); color: var(--sheet); }
.trainer-layout { display: grid; gap: clamp(1.6rem, 5vw, 5rem); }
.big-quote { margin: 0; }
.big-quote blockquote { margin: 0; color: var(--sheet); font: italic 500 clamp(2rem, 5.2vw, 3.7rem)/1.12 var(--display); letter-spacing: -.02em; }
.hand-sign { margin-top: .8rem; color: var(--accent-light); font: 700 clamp(2rem, 4vw, 2.6rem)/1 var(--hand); transform: rotate(-4deg); transform-origin: left; }
.trainer-copy h2 { margin-bottom: .9rem; color: white; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.trainer-copy p { color: #d7dcea; }
.trainer-section .text-link { color: var(--accent-light); }
.trainer-section .text-link:hover { color: white; }
.trainer-section :focus-visible { outline-color: var(--accent-light); }

/* Student reviews: each on an exercise-book card, with a phrase marked in red pen.
   The review itself is quoted word for word; the pull quote and note are decoration. */
.reviews-section { background: var(--paper); }
.reviews-section .hand-note { margin-bottom: .1rem; }
/* One row of cards on every screen, so the fees come soon after: swipe on phones, use the arrows
   or a trackpad on laptops. The edge of the next card shows. Each review is folded to four lines,
   and longer ones get a "View more" button (added by site.js). */
.review-list { display: flex; align-items: flex-start; gap: clamp(.85rem, 2vw, 1.4rem); margin: 0 calc(-1 * var(--gutter)); padding: .2rem var(--gutter) .7rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; list-style: none; }
.review-list::-webkit-scrollbar { display: none; }
.review-card { position: relative; display: flex; flex: 0 0 min(86%, 22rem); flex-direction: column; gap: .75rem; padding: 1.25rem 1.2rem 1.2rem 1.45rem; border: 1px solid var(--rule); border-left: 3px solid var(--margin-line); border-radius: .5rem; background: var(--sheet); box-shadow: 4px 5px 0 var(--stone); scroll-snap-align: start; }
.review-stars { margin: 0; color: var(--red); font-size: 1.1rem; line-height: 1; letter-spacing: .14em; }
.review-star-off { color: var(--rule); }
.review-note { position: absolute; top: 1rem; right: 1.1rem; margin: 0; color: var(--red); font: 700 1.2rem/1 var(--hand); transform: rotate(-4deg); }
.review-pull { margin: 0; color: var(--ink); font: 500 clamp(1.18rem, 2vw, 1.35rem)/1.4 var(--display); letter-spacing: -.01em; }
.review-pull em { font-style: normal; text-decoration: underline wavy var(--red); text-decoration-thickness: .06em; text-underline-offset: .24em; }
.review-text { margin: 0; padding-top: .8rem; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .95rem; line-height: 1.65; }
.review-text p { margin: 0 0 .65rem; }
.review-text p:last-child { margin-bottom: 0; }
.js .review-card:not(.is-open) .review-text { max-height: calc(.8rem + 6.6em); overflow: hidden; }
.js .review-card.is-clamped:not(.is-open) .review-text { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.review-toggle { display: inline-flex; align-self: flex-start; align-items: center; min-height: 2.75rem; margin: -.3rem 0 -.2rem; padding: 0; border: 0; background: none; color: var(--primary); font: 800 .9rem/1.2 var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.review-toggle[hidden] { display: none; }
.review-by { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.review-by strong { color: var(--ink); font-size: 1rem; }
.review-by span { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
/* Under the row: a swipe hint on phones, which card is showing, and arrows. */
.review-controls { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.review-hint { display: none; margin-right: auto; color: var(--red); font: 700 1.2rem/1 var(--hand); }
.review-hint:lang(ta) { font: 700 .9rem/1.3 var(--tamil); }
.review-count { margin-left: auto; color: var(--muted); font: 800 .85rem/1 var(--body); letter-spacing: .08em; }
.review-arrow { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--sheet); color: var(--ink); font: 700 1.3rem/1 var(--body); cursor: pointer; }
.review-arrow:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.review-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 680px) {
  .review-card { flex-basis: 86%; padding: 1.1rem 1.05rem 1.05rem 1.25rem; }
  .review-hint { display: block; }
  .review-count { margin-left: 0; }
}

.fees-section { background: var(--paper); }
.fees-layout { display: grid; gap: 1.2rem clamp(2rem, 6vw, 6rem); }
.fees-layout h2 { margin-bottom: .7rem; }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding-block: .9rem; border-bottom: 1px dashed var(--rule); }
.price-list span { color: var(--ink); font-weight: 750; }
.price-list strong { color: var(--ink); font: 600 1.35rem/1.1 var(--display); text-align: right; }
.price-list small { color: var(--muted); font-size: .88rem; }
.price-list .text-link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; }
.price-free strong { color: var(--red); }

.resource-section { background: var(--sheet); }
.worksheet { position: relative; max-width: 46rem; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--rule); background: var(--paper); box-shadow: 6px 7px 0 var(--stone); }
.worksheet::before { position: absolute; inset: -.35rem auto auto 1.6rem; width: 2.4rem; height: .55rem; border: 2px solid #9aa1ae; border-bottom: 0; border-radius: .2rem .2rem 0 0; content: ''; }
.worksheet h2 { margin-bottom: .7rem; font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

.faq-section { background: var(--paper); }
.faq-grid h2 { margin-bottom: 1rem; }

.closing { background: var(--red); color: white; }
.closing p { color: #ffe9e5; }
.closing .hand-note { color: #ffd6cf; }
.closing .button-demo { border-color: var(--sheet); background: var(--sheet); color: var(--red-dark); box-shadow: none; }
.closing .button-demo:hover { background: white; color: var(--ink); }
.closing :focus-visible { outline-color: white; }

/* Course-page tap-to-correct card above the full task. */
.feedback-stack { display: grid; gap: 1rem; }
.exercise--card { padding: .6rem 1.1rem .9rem; border: 1px solid var(--rule); border-radius: .35rem; background: var(--sheet); box-shadow: 3px 4px 0 rgb(27 34 54 / .06); }
.exercise--card .exercise-sentence { font-size: clamp(1.35rem, 3.6vw, 1.75rem); }

/* Booking: the demo agenda folds away below the calendar. */
.demo-agenda summary h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.demo-agenda summary { min-height: 3rem; }

/* Enquiry form: optional fields tucked away. */
.more-fields { border-block: 1px solid var(--rule); }
.more-fields > summary { min-height: 3rem; color: var(--primary); }
.more-fields .more-grid { padding-block: .4rem 1rem; }

/* Placeholders for details still to come. Only visible with ?preview in the address. */
.placeholder, .placeholder-section { display: none; }
html.show-placeholders .placeholder { display: block; }
html.show-placeholders .placeholder-section { display: block; }
.placeholder { margin: 1rem 0; padding: .7rem .9rem; border: 2px dashed #c99700; border-radius: .4rem; background: #fff7d1; color: #4d3b00; font-size: .92rem; line-height: 1.45; }
.placeholder::before { display: block; margin-bottom: .2rem; content: 'To add later'; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.placeholder ul { margin: .2rem 0 0; color: inherit; }
.placeholder-photo { display: none; max-width: 16rem; aspect-ratio: 4 / 5; }
html.show-placeholders .placeholder-photo { display: grid; place-content: center; text-align: center; }
html.show-placeholders .placeholder-link { outline: 2px dashed #c99700; outline-offset: 3px; }
html.show-placeholders .placeholder-link::after { content: ' (to add)'; }
.preview-badge { position: fixed; z-index: 7; bottom: 5.6rem; left: .5rem; display: flex; gap: .6rem; align-items: center; padding: .35rem .8rem; border: 2px dashed #c99700; border-radius: 2rem; background: #fff7d1; color: #4d3b00; font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.preview-badge a { color: inherit; }

@media (min-width: 760px) {
  .offer-copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.5rem, 5vw, 5rem); }
  .offer-copy h2 { margin-bottom: 0; }
  .familiar-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .mistake-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trainer-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
  .fees-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
@media (min-width: 900px) {
  .hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
  .hero-layout .hero-text { order: -1; }
  .page-hero h1 { margin-top: 0; font-size: clamp(3rem, 5.2vw, 5.2rem); }
  .exercise--hero .exercise-sentence { font-size: clamp(2rem, 3.1vw, 2.8rem); }
  .course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; padding-inline: 0; overflow: visible; }
  .mistake-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@keyframes settle {
  from { opacity: .68; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 860px) {
  :root { --mobile-header-height: 4.75rem; }
  html { scroll-padding-top: calc(var(--mobile-header-height) + 1px); }
  .site-header { position: sticky; top: 0; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(var(--mobile-header-height), auto) auto; gap: 0 .65rem; min-height: 0; }
  .header-inner > .brand { grid-area: 1 / 1; min-width: 0; min-height: 3rem; justify-self: start; font-size: clamp(.95rem, 3.9vw, 1.1rem); }
  .header-inner .brand-mark { width: 3rem; }
  .menu-toggle { grid-area: 1 / 2; position: relative; display: inline-flex; align-items: center; justify-self: end; min-height: 3rem; padding: .45rem 2rem .45rem .6rem; border: 1px solid transparent; border-radius: .35rem; background: var(--sheet); color: var(--primary); font-size: .9rem; font-weight: 800; }
  .menu-toggle { min-width: 5.1rem; padding-left: .4rem; } /* Same width for "Menu" and "Close", so the logo never re-wraps. */
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--paper); }
  .menu-toggle::before, .menu-toggle::after { position: absolute; inset: calc(50% - 1px) .6rem auto auto; width: .95rem; height: 2px; border-radius: 1px; background: currentColor; content: ''; transition: transform .18s ease; }
  .menu-toggle::before { transform: translateY(-5px); box-shadow: 0 5px currentColor; }
  .menu-toggle::after { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); box-shadow: none; }
  .menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
  .header-inner:not(.is-enhanced) .menu-toggle { display: none; }
  .main-nav { display: grid; grid-area: 2 / 1 / auto / -1; grid-template-rows: 1fr; margin: 0; }
  .menu-animates .main-nav { transition: grid-template-rows .22s ease, visibility 0s; } /* Added on the first tap, so the menu never animates while the page loads. */
  .is-enhanced .main-nav { position: absolute; inset: 100% 0 auto; padding-inline: var(--gutter); background: var(--sheet); box-shadow: 0 1px var(--rule); }
  .is-enhanced .main-nav:not(.is-open) { grid-template-rows: 0fr; visibility: hidden; }
  .menu-animates .main-nav:not(.is-open) { transition-delay: 0s, .22s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; overflow: hidden; }
  .is-enhanced .main-nav.is-open .nav-links { max-height: calc(100dvh - var(--mobile-header-height) - 1px); overflow-y: auto; }
  .nav-links > a { min-height: 3rem; padding-inline: .55rem; border-top: 1px solid var(--rule); font-size: 1rem; }
  .nav-links > a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 680px) {
  .mistake-cards { display: flex; gap: .9rem; margin-inline: calc(-1 * var(--gutter)); padding: .6rem var(--gutter) 1.2rem; overflow-x: auto; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .mistake-cards .exercise { flex: 0 0 min(84%, 20rem); scroll-snap-align: start; }
  .courses-section { padding-block: 2.45rem; }
  .split-heading, .feedback-grid, .faq-grid, .subhero-grid, .contact-layout, .booking-option, .form-grid { grid-template-columns: minmax(0, 1fr); }
  #enquiry-form > .button { width: 100%; }
  .learning-steps { --step-size: 2.55rem; --step-gap: 1.12rem; grid-template-columns: minmax(0, 1fr); }
  .learning-steps li { display: grid; grid-template-columns: var(--step-size) minmax(0, 1fr); align-items: start; gap: .85rem; }
  .learning-steps li:not(:last-child)::after {
    inset: calc(var(--step-size) + .2rem) auto calc(-1 * var(--step-gap) + .2rem) calc(var(--step-size) / 2);
    border: 0;
    border-inline-start: 1px solid var(--step-line);
  }
  .learning-steps .step-marker { margin: 0; }
  .learning-steps p, .demo-agenda .learning-steps p { max-width: none; }
  .closing-inner, .footer-inner { flex-direction: column; align-items: start; }

  .course-page .subhero { padding-block: 1rem 1.4rem; }
  .course-page .breadcrumb { margin-bottom: .75rem; }
  .course-page .breadcrumb > :not(:first-child) { display: none; }
  .course-page .breadcrumb a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
  .course-page .breadcrumb a::before { width: .42rem; height: .42rem; border: solid var(--primary); border-width: 0 0 1.5px 1.5px; content: ''; transform: rotate(45deg); }
  .course-page .subhero-grid { gap: .95rem; }
  .course-page .subhero h1 { font-size: clamp(2.15rem, 8vw, 3rem); text-wrap: balance; }
  .course-page .subhero .hero-description { margin-block: .75rem 1rem; }
  .course-page .subhero .eyebrow { margin-bottom: .5rem; }
  .course-page .subhero .actions { gap: .15rem .85rem; }
  .course-page .subhero .button-secondary { min-height: 2.75rem; padding-inline: 0; border-color: transparent; background: transparent; color: var(--primary); text-decoration: underline; text-underline-offset: .23em; }
  .course-page .subhero .button-secondary:hover { color: var(--primary-dark); }
  .course-page .subhero-aside { padding: 0; border-block: 1px solid var(--rule); }
  .course-page .subhero-aside h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.015em; }
  .course-page .section, .trainer-section { padding-block: 2.4rem; }
  .course-page .section-heading { margin-bottom: 1.05rem; }
  .course-page .section h2 { font-size: clamp(1.65rem, 6.8vw, 2.25rem); }
  .course-page .split-heading { gap: .6rem; }
  .course-page .split-heading > p:last-child { margin-top: 0; }
  .course-page .skills-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .course-page .skills-grid:has(.compact-detail) { gap: 0; border-bottom: 1px solid var(--rule); }
  .course-page .skill-card h3 { font-size: 1.08rem; }
  .course-page .skill-card.compact-detail, .course-page .skill-card .compact-heading { margin: 0; padding: 0; }
  .course-page .feedback-grid { gap: 1rem; }
  .course-page .feedback-card { padding: 1rem; }
  .course-page .feedback-card blockquote { font-size: 1.35rem; }
  .course-page .course-related ul { display: grid; gap: 0; margin-top: .35rem; }
  .course-page .course-related li + li { border-top: 1px solid var(--rule); }
  .course-page .course-related a { display: flex; align-items: center; min-height: 2.75rem; }


  /* Sticky demo button for phones, shown by site.js once the page's own button scrolls away. */
  .mobile-cta { position: fixed; inset: auto 0 0; z-index: 4; display: block; padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--sheet) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -6px 18px rgb(15 35 60 / .08); transform: translateY(110%); transition: transform .22s ease; }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .button { width: 100%; }
  .has-mobile-cta .whatsapp-float { bottom: 5.1rem; }

  /* Larger tap targets for links that sit on their own line. */
  .course-details > .text-link, .booking-calendar-section .booking-links .text-link, .footer-inner nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .footer-inner nav { gap: 0 1.25rem; }
  .booking-hero .booking-links a:first-child { display: flex; flex-basis: 100%; align-items: center; justify-content: center; min-height: 3.1rem; margin-bottom: .2rem; border-radius: .35rem; background: var(--red); color: white; text-decoration: none; box-shadow: 0 2px 0 var(--red-dark); }

  .compact-label { display: none; }
  .compact-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3rem; padding: .7rem .3rem .7rem 0; border: 0; background: transparent; color: var(--primary); font: inherit; text-align: start; }
  .compact-toggle::after { flex: none; width: .5rem; height: .5rem; margin-bottom: .25rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(45deg); transition: transform .18s ease; }
  .compact-toggle[aria-expanded="true"]::after { margin-bottom: 0; transform: rotate(225deg); }
  .compact-detail.is-collapsed > .compact-content { display: none; }
  /* Course page tops: a two-line preview of "Who it's for"; tap the heading for the rest. */
  .course-page .subhero-aside.is-collapsed > .compact-content { display: block; padding-bottom: .95rem; }
  .course-page .subhero-aside.is-collapsed > .compact-content > :not(:first-child) { display: none; }
  .course-page .subhero-aside.is-collapsed > .compact-content > p:first-child { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .compact-content { padding-bottom: .95rem; }
  .compact-content p { margin-bottom: .65rem; }
  .compact-content p:last-child { margin-bottom: 0; }
}
/* ---------- IELTS Academic vs General Training comparison ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-section { --academic: var(--primary); --academic-soft: #e8eef8; --general: var(--red-dark); --general-soft: #fbe9e5; --same-soft: #eef4e8; --same: #3d6b2c; background: var(--paper); }
.compare-section h2 { max-width: 18ch; }
.compare-section .section-lead { max-width: 40rem; }

.pick-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.pick-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem 1.3rem; border: 1px solid var(--rule); border-top: 4px solid var(--academic); border-radius: .6rem; background: var(--sheet); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pick-card--general { border-top-color: var(--general); }
.pick-card:hover { box-shadow: 4px 5px 0 var(--stone); transform: translateY(-2px); }
.pick-tag { color: var(--academic); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.pick-card--general .pick-tag { color: var(--general); }
.pick-card strong { font: 600 1.5rem/1.15 var(--display); letter-spacing: -.015em; }
.pick-card strong::after { margin-left: .4rem; color: var(--muted); font: 700 1.1rem var(--body); content: '→'; }
.pick-card span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.compare-table-wrap { overflow: hidden; border: 1px solid var(--rule); border-radius: .75rem; background: var(--sheet); box-shadow: 4px 5px 0 var(--stone); }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare-table thead th { padding: 1rem 1.25rem; color: white; font: 600 1.3rem/1.2 var(--display); text-align: left; }
.compare-table thead th:first-child { width: 24%; background: var(--ink); }
.compare-table .col-academic { background: var(--academic); }
.compare-table .col-general { background: var(--general); }
.compare-table tbody th, .compare-table td { padding: 1.1rem 1.25rem; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; }
.compare-table tbody th { color: var(--ink); font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.compare-table tbody th small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
.compare-table td { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.compare-table td strong { display: block; margin-bottom: .15rem; color: var(--ink); font-size: 1.02rem; }
.compare-table .is-different td:nth-of-type(1) { background: var(--academic-soft); }
.compare-table .is-different td:nth-of-type(2) { background: var(--general-soft); }
.compare-table .is-different th { box-shadow: inset 4px 0 var(--red); }
.compare-table .is-same td, .compare-table .is-similar td { background: var(--same-soft); }
.compare-table .is-same th { box-shadow: inset 4px 0 var(--same); }
.compare-table .is-similar th { box-shadow: inset 4px 0 #c99700; }
.same-badge { display: inline-block; margin: 0 .5rem .2rem 0; padding: .1rem .6rem; border-radius: 2rem; background: var(--same); color: white; font-size: .75rem; font-weight: 800; letter-spacing: .02em; vertical-align: .1em; }
.same-badge--similar { background: #8a6800; }

.compare-key { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.1rem 0 .4rem; padding: 0; color: var(--muted); font-size: .85rem; font-weight: 700; list-style: none; }
.compare-key li { display: inline-flex; align-items: center; gap: .45rem; }
.key-dot { width: .8rem; height: .8rem; border-radius: 50%; }
.key-dot--different { background: var(--red); }
.key-dot--similar { background: #c99700; }
.key-dot--same { background: var(--same); }
.compare-source { max-width: 46rem; margin-top: .6rem; font-size: .85rem; }

@media (max-width: 680px) {
  .pick-cards { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .pick-card { padding: 1rem 1.1rem 1.1rem; }
  .pick-card strong { font-size: 1.35rem; }

  /* Table becomes stacked cards: row label on top, the two versions side by side. */
  .compare-table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: grid; gap: .9rem; }
  .compare-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--rule); border-radius: .7rem; background: var(--sheet); }
  .compare-table tbody th { grid-column: 1 / -1; padding: .85rem 1rem .75rem; border-top: 0; font-size: 1.1rem; box-shadow: none !important; }
  .compare-table tbody th small { display: inline; margin: 0 0 0 .35rem; }
  .compare-table td { padding: .8rem .9rem .95rem; font-size: .9rem; line-height: 1.5; }
  .compare-table td[colspan] { grid-column: 1 / -1; }
  .compare-table td[data-label]::before { display: block; margin-bottom: .35rem; color: var(--academic); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
  .compare-table td[data-label]:nth-of-type(2)::before { color: var(--general); }
  .compare-table .is-different td:nth-of-type(2) { border-left: 1px solid var(--rule); }
  .compare-table td strong { font-size: .95rem; }
  .compare-table .is-different { border-top: 4px solid var(--red); }
  .compare-table .is-same { border-top: 4px solid var(--same); }
  .compare-table .is-similar { border-top: 4px solid #c99700; }

  /* Four-test table: each row is a card with the tests in a 2 × 2 grid. */
  .compare-table--four tbody tr { border-top: 4px solid var(--ink); }
  .compare-table--four tbody tr td, .compare-table--four tbody tr:nth-child(even) td { background: var(--sheet); }
  .compare-table--four td:nth-of-type(odd) { border-right: 1px solid var(--rule); }
  .compare-table--four td { border-top: 1px solid var(--rule); }
  .compare-table--four td[data-label]::before { color: var(--ink); }
  .compare-table--four td[data-label]:nth-of-type(1)::before { color: var(--red-dark); }
  .compare-table--four td[data-label]:nth-of-type(2)::before { color: var(--primary); }
  .compare-table--four td[data-label]:nth-of-type(3)::before { color: #2f5a24; }
  .compare-table--four td[data-label]:nth-of-type(4)::before { color: #6b5200; }
  .compare-table--four .compare-links-row td::before { display: none; }
}

/* ---------- Tamil pages (site/ta/, <html lang="ta">) ---------- */
/* Tamil script needs Tamil fonts, more line height for vowel signs, and no negative letter spacing.
   :root:lang(ta) keeps these ahead of the page-specific English heading sizes. */
:lang(ta) { --tamil: 'Noto Sans Tamil', 'Latha', 'Nirmala UI', 'Tamil Sangam MN', var(--body); font-family: var(--tamil); }
h1:lang(ta), h2:lang(ta), h3:lang(ta), blockquote:lang(ta), .student-line:lang(ta) { font-family: 'Noto Serif Tamil', 'Noto Sans Tamil', 'Latha', 'Nirmala UI', 'Tamil Sangam MN', var(--display); letter-spacing: 0; }
/* Element-language selectors (x:lang(ta)) so English-only sections on Tamil pages keep English type. */
.eyebrow:lang(ta), .hand-note:lang(ta), .hand-reply:lang(ta), .hand-sign:lang(ta), .card-tag:lang(ta) { font-family: var(--tamil); font-size: 1rem; font-weight: 700; line-height: 1.5; transform: none; }
/* p:lang(ta) matches Tamil text only, so English practice sentences keep their own spacing. */
p:lang(ta), li:lang(ta), summary:lang(ta), td:lang(ta) { line-height: 1.8; }
:lang(ta) [lang="en"] { font-family: var(--body); }
:root:lang(ta) main h1:lang(ta) { max-width: 22ch; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.35; overflow-wrap: anywhere; }
:root:lang(ta) main h2:lang(ta) { font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.4; overflow-wrap: anywhere; }
:root:lang(ta) main h3:lang(ta) { line-height: 1.45; }
:root:lang(ta) .big-quote blockquote:lang(ta) { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.5; }
:root:lang(ta) .student-line:lang(ta) { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; }
/* Tamil "மெனு" / "மூடு" are wider than "Menu", so the button text is a touch smaller to keep the logo on one line. */
:lang(ta) .menu-toggle { font-size: .74rem; }

/* Tamil menu labels are longer: on laptops narrower than ~1400px the menu gets its own row under the logo. */
@media (min-width: 861px) and (max-width: 1400px) {
  :root:lang(ta) .header-inner { flex-wrap: wrap; row-gap: 0; padding-block: .55rem .3rem; }
  :root:lang(ta) .main-nav { flex-basis: 100%; margin-inline-start: 0; border-top: 1px solid var(--rule); }
  :root:lang(ta) .nav-links { flex-wrap: wrap; gap: 0 1.6rem; }
  :root:lang(ta) .nav-links > a { min-height: 2.7rem; font-size: .95rem; }
}

/* Narrow laptops: tighter menu spacing so seven links fit beside the logo. */
@media (min-width: 861px) and (max-width: 1040px) {
  .nav-links { gap: .8rem; }
  .nav-links > a { font-size: .93rem; }
  .header-inner > .brand small { display: none; }
}

/* Language switch in the menu: a small pill on laptops, a normal row in the phone menu. */
.nav-links > a.nav-lang { font-family: 'Noto Sans Tamil', 'Latha', 'Nirmala UI', 'Tamil Sangam MN', var(--body); }
@media (min-width: 861px) {
  .nav-links > a.nav-lang { min-height: 2.2rem; padding: 0 .8rem; border: 1px solid var(--rule); border-radius: 2rem; font-size: .92rem; text-decoration: none; }
  .nav-links > a.nav-lang:hover { border-color: var(--primary); }
}
@media (max-width: 680px) {
  /* Long Tamil words: scale with the screen so the longest word always fits. */
  :root:lang(ta) main h1:lang(ta) { font-size: clamp(1.5rem, 7.6vw, 1.9rem); line-height: 1.4; }
  :root:lang(ta) main h2:lang(ta) { font-size: clamp(1.3rem, 6vw, 1.55rem); }
  :root:lang(ta) main .button:lang(ta) { font-size: .95rem; line-height: 1.4; }
  /* Long Tamil words in the two-column table cards. */
  :root:lang(ta) .compare-table td { font-size: .84rem; overflow-wrap: anywhere; }
  :root:lang(ta) .compare-table td strong { font-size: .9rem; }
  :root:lang(ta) .price-list small { overflow-wrap: anywhere; }
}

/* ---------- Free level check ---------- */
.level-section { background: var(--paper); }
.level-check { max-width: 40rem; }
.level-card { padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--rule); border-radius: .8rem; background: var(--sheet); box-shadow: 4px 5px 0 var(--stone); scroll-margin-top: 6rem; }
.level-top { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; }
.level-count { color: var(--muted); font-size: .9rem; font-weight: 750; }
.level-back { min-height: 2.75rem; padding: 0 .2rem; border: 0; background: none; color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.level-progress { height: .4rem; margin: .3rem 0 1.3rem; overflow: hidden; border-radius: 1rem; background: var(--stone); }
.level-progress span { display: block; height: 100%; border-radius: inherit; background: var(--red); transition: width .25s ease; }
.level-question { margin: 0 0 1.1rem; color: var(--ink); font: 500 clamp(1.45rem, 4.5vw, 1.9rem)/1.3 var(--display); }
.level-question:focus { outline: none; }
.level-options { display: grid; gap: .6rem; }
.level-option { display: flex; align-items: center; min-height: 3.4rem; padding: .7rem 1rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--sheet); color: var(--ink); font-size: 1.05rem; font-weight: 650; text-align: left; transition: border-color .15s ease, background-color .15s ease; }
@media (hover: hover) { .level-option:hover { border-color: var(--red); } }
.level-option.is-chosen { border-color: var(--red); background: #fff1ee; }
.level-result-head { text-align: center; }
.level-result-head .hand-note { transform: none; }
.level-badge { margin: .2rem 0 0; color: var(--red); font: 600 4.5rem/1 var(--display); }
.level-name { margin: .2rem 0 0; color: var(--ink); font: 600 1.45rem/1.2 var(--display); }
.level-score { margin: .5rem 0 1rem; text-align: center; font-weight: 750; }
.level-text { color: var(--ink); }
.level-next { margin: 1.2rem 0; padding: 1rem; border-radius: .6rem; background: var(--stone); }
.level-next-label { margin-bottom: .5rem; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.level-next-link { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; padding: .5rem .9rem; border: 1px solid var(--rule); border-radius: .5rem; background: var(--sheet); color: var(--ink); font-weight: 800; text-decoration: none; }
.level-next-link + .level-next-link { margin-top: .5rem; }
.level-next-link::after { width: .42rem; height: .42rem; border: solid var(--red); border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(-45deg); }
.level-next-link--alt { font-weight: 650; }
.level-card .actions { margin-top: .4rem; }
.level-review { margin-top: 1rem; border-top: 1px solid var(--rule); }
.level-review summary { min-height: 3rem; color: var(--primary); }
.level-review ol { margin: 0 0 .5rem; padding-left: 1.3rem; }
.level-review li { padding: .45rem 0; border-bottom: 1px dashed var(--rule); }
.level-review-q, .level-review-a { display: block; }
.level-review-q { color: var(--ink); font-weight: 650; }
.level-review .is-right .level-review-a { color: #2f5a24; }
.level-review .is-wrong .level-review-a { color: var(--red-dark); }
.level-note, .level-privacy { margin-top: 1rem; font-size: .85rem; }
@media (max-width: 680px) {
  .level-hero h1 { font-size: 2.3rem; }
  .level-section { padding-top: 1.6rem; }
  .level-card .actions { flex-direction: column; align-items: stretch; }
  .level-card .actions .button { width: 100%; min-height: 3.3rem; }
}

/* ---------- Four-test comparison page ---------- */
.pick-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-card--home { border-top-color: #3d6b2c; }
.pick-card--home .pick-tag { color: #3d6b2c; }
div.pick-card:hover { box-shadow: none; transform: none; }
div.pick-card strong::after { content: none; }
.compare-table-title { margin: clamp(2rem, 5vw, 3.2rem) 0 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.compare-table--four thead th:first-child { width: 16%; }
.compare-table--four .col-ielts { background: var(--red-dark); }
.compare-table--four .col-pte { background: var(--primary); }
.compare-table--four .col-toefl { background: #2f5a24; }
.compare-table--four .col-det { background: #6b5200; }
.compare-table--four thead th { font-size: 1.1rem; }
.compare-table--four td { background: var(--sheet); }
.compare-table--four tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper) 70%, var(--sheet)); }
.compare-table--four td small { display: block; margin-top: .15rem; color: var(--muted); font-size: .82rem; }
.compare-table--four td strong { margin: 0; }
.compare-links-row td .text-link { font-size: .95rem; }

@media (max-width: 860px) {
  .pick-cards--three { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Opening offer: regular price struck out in red pen ---------- */
.fee-was { position: relative; /* keeps its hidden "Regular price" label inside the scrolling course cards */ margin-right: .15em; color: var(--muted); font-weight: 600; text-decoration: line-through var(--red) 2px; white-space: nowrap; }
.fee-tag { display: inline-block; margin-left: .2em; color: var(--red); font: normal 700 1.15rem/1 var(--hand); white-space: nowrap; transform: rotate(-3deg); }
.fee-offer { display: inline-block; margin: .2rem 0 1rem; padding: .35rem .8rem; border: 1.5px dashed var(--red); border-radius: .4rem; background: #fff6f3; color: var(--red-dark); font-size: .95rem; font-weight: 800; transform: rotate(-1deg); }
.fee-offer:empty { display: none; }
/* Course cards: the offer tag sits under the price. */
.course-cards .card-fee .fee-was { display: block; margin-bottom: .1rem; color: var(--muted); font-size: .85rem; }
.course-cards .card-fee strong { font: inherit; font-weight: 800; letter-spacing: 0; }
.course-cards .card-fee .fee-tag { display: block; margin: .3rem 0 0; color: var(--red); font: 700 1.15rem/1 var(--hand); }
/* Price list: the regular price sits small above the offer price. */
.price-list strong .fee-was { display: block; margin: 0 0 .15rem; font: 600 .85rem/1.2 var(--body); }
/* IELTS tracks priced separately: a small track name above each price. */
.price-list strong .fee-track { display: block; margin: .35rem 0 .1rem; color: var(--muted); font: 750 .78rem/1.2 var(--body); }
.price-list strong .fee-track:first-child { margin-top: 0; }
/* Course page chip and finder result. */
.course-fee .fee-tag { font-size: 1.1rem; }
.course-details .fee-was { font-weight: 700; }
/* Tamil pages: the handwriting font has no Tamil letters. */
.fee-tag:lang(ta) { font: 700 .82rem/1.3 var(--tamil); transform: none; }
.course-cards .card-fee .fee-tag:lang(ta) { font: 700 .85rem/1.3 var(--tamil); }

/* ---------- Score scale meter and calculator (exam course pages) ---------- */
.score-section { border-top: 1px solid var(--rule); background: var(--paper); }
.score-tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; }
.score-meter, .score-calc { padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--rule); border-radius: .75rem; background: var(--sheet); box-shadow: 4px 5px 0 var(--stone); }
.score-steps { display: grid; grid-template-columns: repeat(var(--count), minmax(0, 1fr)); gap: clamp(.25rem, 1vw, .5rem); align-items: end; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.score-step { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; width: 100%; padding: 0; border: 0; background: none; color: var(--muted); font: 750 .82rem/1.1 var(--body); cursor: pointer; }
.score-bar { display: block; height: calc(1.4rem + var(--level) * 5.2rem); border-radius: .35rem .35rem .15rem .15rem; background: color-mix(in srgb, var(--primary) calc(18% + var(--level) * 50%), var(--stone)); transition: background-color .18s ease, transform .18s ease; }
.score-label { white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.score-step:hover .score-bar { transform: translateY(-3px); }
.score-step[aria-pressed="true"] { color: var(--ink); }
.score-step[aria-pressed="true"] .score-bar { background: var(--red); box-shadow: 0 2px 0 var(--red-dark); }
.score-step.is-yours .score-label::after { display: block; margin-top: .2rem; color: var(--red); font: 700 1rem/1 var(--hand); content: 'you'; }
.score-step:focus-visible { outline-offset: 2px; }
.score-detail { padding-top: 1rem; border-top: 1px dashed var(--rule); }
.score-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; margin-bottom: .35rem; color: var(--ink); }
.score-detail-head strong { font: 600 1.6rem/1.1 var(--display); letter-spacing: -.015em; }
.score-level { padding: .1rem .6rem; border-radius: 2rem; background: #fbe9e5; color: var(--red-dark); font-size: .85rem; font-weight: 800; }
.score-detail-text { min-height: 3.2em; margin: 0; font-size: .97rem; }
.score-detail-you { margin: .5rem 0 0; color: var(--red); font: 700 1.3rem/1 var(--hand); }

.score-calc h3 { margin-bottom: .3rem; font: 600 1.45rem/1.15 var(--display); letter-spacing: -.015em; }
.score-calc-intro { margin-bottom: 1rem; font-size: .95rem; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.calc-fields label, .raw-fields label, .check-field { display: block; color: var(--ink); font-size: .88rem; font-weight: 800; }
.score-calc select, .score-calc input { display: block; width: 100%; min-height: 3rem; margin-top: .3rem; padding: .5rem .7rem; border: 1px solid #8295ad; border-radius: .4rem; background: var(--sheet); color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.score-calc select:focus-visible, .score-calc input:focus-visible { outline-offset: 1px; }
.raw-convert { margin-top: .9rem; border-block: 1px solid var(--rule); }
.raw-convert > summary { min-height: 2.9rem; color: var(--primary); font-size: .93rem; }
.raw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-top: .2rem; }
.raw-message { display: block; margin-top: .3rem; color: var(--ink); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.raw-message:empty { display: none; }
.raw-note { margin: .7rem 0 .9rem; font-size: .82rem; line-height: 1.5; }
.calc-result { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 1rem; align-items: center; margin-top: 1rem; padding: .9rem 1rem; border-radius: .6rem; background: var(--stone); }
.calc-label { grid-column: 1 / -1; margin: 0 0 .1rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.calc-score { min-width: 2.2ch; color: var(--muted); font: 600 2.8rem/1 var(--display); font-variant-numeric: tabular-nums; }
.calc-text { margin: 0; color: var(--ink); font-size: .9rem; line-height: 1.45; }
.calc-result.has-score { background: var(--ink); }
.calc-result.has-score .calc-label { color: #c5cde0; }
.calc-result.has-score .calc-score { color: var(--accent-light); }
.calc-result.has-score .calc-text { color: white; }
.calc-rule { margin: .9rem 0 0; font-size: .82rem; line-height: 1.5; }
.calc-how { margin-top: .6rem; }
.calc-how > summary { min-height: 2.75rem; color: var(--primary); font-size: .9rem; }
.calc-how .calc-rule { margin: 0 0 .6rem; }
.score-source { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.score-cta { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border-top: 4px solid var(--red); }
.score-cta .score-calc-intro { margin-bottom: 1.2rem; }

@media (max-width: 860px) {
  .score-tool { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .score-meter, .score-calc { padding: 1rem; box-shadow: 3px 4px 0 var(--stone); }
  .score-steps { gap: .2rem; }
  .score-step { font-size: .78rem; }
  .score-bar { height: calc(1rem + var(--level) * 4rem); }
  .score-detail-head strong { font-size: 1.4rem; }
  .score-cta { align-items: stretch; }
  .score-cta .button { width: 100%; min-height: 3.3rem; }
}

/* Links to the free score calculators (homepage and IELTS overview). */
.tool-links { max-width: 46rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.tool-links h3 { margin-bottom: .25rem; font: 600 1.4rem/1.2 var(--display); letter-spacing: -.015em; }
.tool-links > p { margin-bottom: .9rem; font-size: .95rem; }
.tool-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.tool-chips a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .45rem 1rem; border: 1px solid var(--rule); border-radius: 2rem; background: var(--sheet); color: var(--ink); font-size: .93rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.tool-chips a::after { width: .42rem; height: .42rem; border: solid var(--red); border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(-45deg); }
.tool-chips a:hover { border-color: var(--red); background: #fff1ee; }
.tool-links--inline { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--rule); }
@media (max-width: 680px) {
  .tool-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .tool-chips a { justify-content: space-between; border-radius: .6rem; }
}

/* "Read in Tamil" link under the homepage buttons. */
.lang-switch { margin: .6rem 0 0; }
.lang-switch a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: var(--primary); font-family: 'Noto Sans Tamil', 'Latha', 'Nirmala UI', 'Tamil Sangam MN', var(--body); font-weight: 700; text-underline-offset: .25em; }
.lang-switch a::before { padding: .05rem .4rem; border: 1px solid currentColor; border-radius: .3rem; font: 800 .7rem/1.4 var(--body); content: 'அ'; }
@media (max-width: 680px) { .lang-switch { text-align: center; } }

/* Quick section links: phones only. */
.quick-links { display: none; }

/* ---------- Calmer phone layout: fewer words, more air, one idea per screen ---------- */
@media (max-width: 680px) {
  .desktop-only { display: none; }
  body { font-size: 1.0625rem; line-height: 1.7; }
  p { margin-bottom: 1.15rem; }
  :root { --section-pad: 3.75rem; --gutter: 1.35rem; }

  /* Plain paper on phones: ruled lines behind text make it look busy. */
  :is(section, main).ruled { background: var(--paper); }

  /* Hero: headline first, then the small exercise. */
  .page-hero { padding-block: 2.25rem 2rem; }
  .hero-layout { display: flex; flex-direction: column; gap: 2.25rem; }
  .hero-layout .hero-text { order: -1; }
  .page-hero h1 { margin-top: 0; font-size: 2.45rem; line-height: 1.1; }
  .page-hero .hero-description { margin: 1.1rem 0 1.6rem; color: var(--muted); }
  .page-hero .actions { flex-direction: column; align-items: stretch; gap: .5rem; }
  .page-hero .actions .button { width: 100%; min-height: 3.4rem; font-size: 1rem; }
  .page-hero .actions .text-link { justify-content: center; }
  .exercise--hero { padding: 1.1rem 1.2rem .5rem; transform: none; box-shadow: 3px 4px 0 var(--stone); }
  .exercise--hero .exercise-sentence { font-size: 1.5rem; line-height: 2.1; }

  /* Jump links: big, thumb-friendly pills. */
  .quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 2rem; }
  .quick-links a { display: flex; align-items: center; justify-content: space-between; min-height: 3.1rem; padding: .5rem 1rem; border: 1px solid var(--rule); border-radius: .6rem; background: var(--sheet); color: var(--ink); font-weight: 750; text-decoration: none; }
  .quick-links a::after { width: .45rem; height: .45rem; border: solid var(--red); border-width: 0 1.5px 1.5px 0; content: ''; transform: rotate(-45deg); }

  /* Headings and lead text with more breathing room. */
  h2 { font-size: 2rem; line-height: 1.12; }
  .section-lead { margin: .7rem 0 1.6rem; font-size: 1.02rem; }

  /* Sound familiar: lighter quotes, one per block. */
  .familiar-list { margin-top: 1.6rem; }
  .familiar-list li { padding-block: 1.4rem; }
  .student-line { font-size: 1.3rem; line-height: 1.35; margin-bottom: .6rem; }
  .hand-reply { font-size: 1.3rem; line-height: 1.25; }

  /* Course cards: hide the descriptor line so each card is name + fee. */
  .course-cards a { padding: 1.1rem 1.2rem 1.2rem; }
  .course-cards span:not(.card-tag):not(.card-fee) { display: none; }
  .course-cards strong { font-size: 1.45rem; }

  /* Trainer: smaller quote, one short paragraph. */
  .big-quote blockquote { font-size: 1.7rem; line-height: 1.25; }
  .hand-sign { font-size: 1.9rem; }
  .trainer-copy h2 { font-size: 1.8rem; }

  /* Fees: just name, price and length. One enquiry link sits above the list. */
  .price-list .text-link { display: none; }
  .price-list .price-free .text-link { display: inline-flex; }
  .price-list li { padding-block: 1.1rem; gap: .25rem 1rem; }
  .price-list span { line-height: 1.35; }

  /* Free guide and FAQs. */
  .worksheet { padding: 1.6rem 1.3rem; }
  .worksheet h2 { font-size: 1.85rem; }
  .worksheet .actions { flex-direction: column; align-items: stretch; }
  .worksheet .actions .text-link { display: inline-flex; justify-content: center; min-height: 2.75rem; align-items: center; }
  .faq-grid { gap: 1.2rem; }
  .faq-list summary { padding: 1.05rem 0; line-height: 1.35; }

  /* Closing: centred and calm. */
  .closing { padding-block: 3.25rem; text-align: left; }
  .closing h2 { font-size: 2.1rem; }
  .closing .button { width: 100%; min-height: 3.4rem; }
  .closing-inner { gap: 1.6rem; }
  .closing-inner, .closing-inner > div { align-items: stretch; width: 100%; }

  /* Comfortable tap targets for links that sit on their own line (links inside sentences stay inline). */
  a.text-link:not(p a):not(li a):not(td a):not(summary a) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  /* 404: stacked, full-width choices like the homepage. */
  .not-found .actions { flex-direction: column; align-items: stretch; gap: .35rem; }
  .not-found .actions .button { width: 100%; min-height: 3.3rem; }
  .not-found .actions .text-link { justify-content: center; }

  /* Course pages and other subpages. */
  .subhero, .contact-hero { padding-block: 2.25rem 2.5rem; }
  .subhero .actions .button, .contact-hero .actions .button { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.25rem, 9vw, 2.7rem); }
  h2 { font-size: clamp(1.9rem, 7vw, 2.35rem); }
  .brand { font-size: 1.01rem; }
  .brand small { font-size: .75rem; }
  .skills-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .brand { gap: .45rem; font-size: .95rem; }
}
/* 360px Android phones: keep "English Coaching Studio" on one line beside the menu button. */
@media (max-width: 370px) {
  .header-inner .brand-mark { width: 2.55rem; }
  .header-inner > .brand { gap: .45rem; font-size: .92rem; }
  .brand small { font-size: .7rem; }
  .menu-toggle { min-width: 4.6rem; padding-left: .25rem; padding-right: 1.75rem; }
  .menu-toggle::before, .menu-toggle::after { right: .45rem; }
}
@media (max-width: 350px) {
  .header-inner { width: calc(100% - 2rem); }
  .header-inner .brand-mark { width: 2.6rem; }
  .menu-toggle { padding-inline-start: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .guide-page > .actions, .skip-link, .whatsapp-float, .mobile-cta { display: none !important; }
  body { background: white; font-size: 10.5pt; line-height: 1.4; }
  .guide-page { width: 100%; padding: 0; }
  .guide-page h1 { font-size: 27pt; }
  .guide-list h2 { font-size: 12pt; }
  .guide-list li { padding-block: .38rem .45rem; break-inside: avoid; }
  .guide-practice { margin-top: 0; break-before: page; }
  .guide-practice h2 { font-size: 25pt; }
  .guide-practice .feedback-card { padding: 0; border: 0; background: white; }
}
