/* =====================================================================================================================
   Round 6 (client, 24 Sep evening). Loaded last (functions.php), so it overrides the page sheets.
   1. Rhythm: section padding averages 60px and never exceeds 120px (top or bottom).
   2. Surfaces: every section sits on the brand cream. A section that needs emphasis keeps its colour as a BLOCK (panel,
      ~60px inner padding) inside the cream — never a full-bleed brown / lime section. Brown is kept for the footer, the
      pre-footer form band (with a lime form card), small blocks, buttons and accents.
   3. The coloured lips / diagonal cuts between bands are retired (same cream on both sides).
   4. Phones: nothing swipes sideways — lists stack (base.css §18.2), carousels become grids (§7).
   ===================================================================================================================== */

/* ---------- 1. Rhythm ---------- */
:root{--section-y:44px;--panel-pad:20px 14px;--panel-edge:8px;--panel-radius:24px;
  /* Round 6b (client): every transition eases in AND out — no springy overshoot, no abrupt starts. */
  --ease:cubic-bezier(.62,.05,.3,1);--spring:cubic-bezier(.62,.05,.3,1);--spring-snappy:cubic-bezier(.55,.05,.3,1);--dur-spring:560ms;--dur-snappy:380ms}
@media (min-width:768px){:root{--section-y:56px;--panel-pad:40px;--panel-edge:24px;--panel-radius:30px}}
@media (min-width:1200px){:root{--section-y:64px;--panel-pad:60px;--panel-edge:max(24px,calc(var(--gutter) - 60px));--panel-radius:32px}}
.hp{--hp-lap:0px}

/* Page-specific paddings that ran to 100–150px */
.hp .hp-stats-section,.hp .hp-audience,.hp .hp-programs,.hp .hp-method__outcome,
.page-hero,.about-stats,.teacher-strengths,.contact-hero,.contact-v2,.cx-hero,
.careers-page .careers-hero,.legal-page .legal-head{padding-block:var(--section-y)}
@media (min-width:768px){.hp-hero{padding-bottom:var(--section-y)}}

/* ---------- 2. Lips and cuts retired ---------- */
.band--lip,.band--cut{margin-top:0;border-radius:0;clip-path:none;padding-top:var(--section-y)}
:is(.section,.band,main > section):has(+ .band--lip),:is(.section,.band,main > section):has(+ .band--cut){padding-bottom:var(--section-y)}
@media (min-width:768px){:is(.section,.band,main > section):has(+ .band--lip){padding-bottom:var(--section-y)}}
/* Two cream sections in a row: the second one's top padding is halved so the gap between them stays ~96–120px. */
.band--cream + .band--cream,.band--cream + .band--glow,.band--glow + .band--cream{padding-top:calc(var(--section-y) * .5)}

/* ---------- 3. Boxed bands: cream section, coloured panel ---------- */
.band:is(.band--warm,.band--lime,.band--lime50,.band--ink):not(.hp-usp),.band--glow{background:var(--c-cream);padding-block:calc(var(--section-y) * .5)}
.band:is(.band--warm,.band--lime,.band--lime50,.band--ink):not(.hp-usp) > .container,.band--glow > .container{
  width:min(calc(var(--container) + 120px),calc(100% - 2 * var(--panel-edge)));padding:var(--panel-pad);border-radius:var(--panel-radius);background:var(--band-bg);overflow:hidden;overflow:clip}
/* Decorations that hung off the old full-bleed band stay inside the panel or go. */
.band:is(.band--warm,.band--lime,.band--lime50,.band--ink):not(.hp-usp).grain::after{display:none}
.band:is(.band--warm,.band--lime,.band--lime50,.band--ink):not(.hp-usp).pattern-hairline::before{display:none}

/* ---------- 4. Pre-footer form band (every page): cream fades to brown towards the footer (brown only, no green); the form is clear liquid glass ---------- */
.band--prefoot{--band-bg:var(--c-ink);padding-block:var(--section-y);margin-top:0;clip-path:none;border-radius:0;
  background:linear-gradient(180deg,var(--c-cream) 0%,#e6d9cc 16%,#9b8578 45%,#57433c 74%,var(--c-ink) 100%)}
.band--prefoot div.lead-form.lead-form--lime,.band--prefoot div.lead-form[class*="lead-form--"].lead-form--lime{position:relative;max-width:760px;margin-inline:auto;
  border:1px solid rgba(255,255,255,.55);background:linear-gradient(150deg,rgba(255,250,243,.82),rgba(255,250,243,.62));
  -webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -1px 0 rgba(255,255,255,.2),0 40px 80px -40px rgba(0,0,0,.55)}
.band--prefoot div.lead-form.lead-form--lime::before{content:"";position:absolute;inset:1px;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0) 40%)}
.band--prefoot div.lead-form.lead-form--lime > *{position:relative}
@media (min-width:1200px){.band--prefoot div.lead-form.lead-form--lime .lead-form__title{font-size:calc(var(--fs-h2) * .8)}}
.band--prefoot .lead-form--lime .lead-form__head .eyebrow{color:var(--c-ink)}
.band--prefoot .lead-form--lime .field__label{color:rgba(var(--c-ink-rgb),.75)}
.band--prefoot .lead-form--lime .field__control{border-bottom-color:rgba(var(--c-ink-rgb),.35)}
.band--prefoot .lead-form--lime .field{--field-accent:var(--c-ink);--field-ok:var(--c-ink)}
.band--prefoot .lead-form--lime .form__note,.band--prefoot .lead-form--lime .form__note a{color:rgba(var(--c-ink-rgb),.8)}

/* ---------- 5. Homepage ---------- */

/* 5.1 USP marquee: 30% smaller */
.hp .hp-usp{padding-block:15px}
.hp-usp__item{font-size:12px}
.hp-usp__marquee{--marquee-gap:20px}
@media (min-width:768px){.hp .hp-usp{padding-block:17px}.hp-usp__item{font-size:14px}.hp-usp__marquee{--marquee-gap:22px}}
@media (min-width:1200px){.hp .hp-usp{padding-block:21px}.hp-usp__item{font-size:17px}.hp-usp__marquee{--marquee-gap:28px}}

/* 5.2 Hero (round 6b): organic lime blob, two asymmetric hairlines that draw in, olive squares, a dot grid — no circles, no 4-point stars */
.hp-hero__crop > .hp-hero__deco{position:absolute;left:-6%;top:-2%;z-index:0;width:112%;height:auto;overflow:visible;pointer-events:none}
.hp-hero__frame{z-index:1}
.hp-hero__crop > .hp-hero__badge{z-index:3}
.hp-hero__blob,.hp-hero__sq > *,.hp-hero__dots{transform-box:fill-box;transform-origin:center}
@media (prefers-reduced-motion:no-preference){
  .hp-hero__blob{animation:hp-blob 12s ease-in-out infinite alternate}
  .hp-hero__stroke{stroke-dasharray:1;stroke-dashoffset:1;animation:hp-draw 1.8s cubic-bezier(.45,.05,.2,1) .4s forwards}
  .hp-hero__stroke--b{animation-delay:.9s}
  .hp-hero__sq-a{animation:hp-bob 5s ease-in-out infinite}
  .hp-hero__sq-b{animation:hp-bob 6s ease-in-out 1s infinite reverse}
  .hp-hero__sq-c{animation:hp-tilt 9s linear infinite}
  .hp-hero__dots{animation:hp-drift 8s ease-in-out infinite alternate}
}
@keyframes hp-blob{0%{transform:rotate(0) scale(1)}50%{transform:rotate(4deg) scale(1.04,.97)}100%{transform:rotate(-3deg) scale(.97,1.03)}}
@keyframes hp-draw{to{stroke-dashoffset:0}}
@keyframes hp-bob{50%{transform:translateY(-10px) rotate(12deg)}}
@keyframes hp-tilt{to{transform:rotate(360deg)}}
@keyframes hp-drift{to{transform:translate(-8px,6px)}}

/* 5.3 Stats: each figure in its own liquid-glass block, over soft lime light; hover lifts and warms it */
.hp .hp-stats-section{position:relative;padding-block:var(--section-y)}
.hp-stats-section::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(38% 60% at 12% 30%,rgba(var(--c-lime-glow),.85),transparent 70%),radial-gradient(34% 55% at 88% 70%,rgba(var(--c-green-rgb),.35),transparent 70%),radial-gradient(30% 50% at 55% 10%,rgba(var(--c-lime-glow),.6),transparent 70%)}
.hp-stats{gap:12px}
.hp-stat{position:relative;padding:18px 16px 20px;border:1px solid rgba(255,255,255,.75);border-radius:var(--radius-card);
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.28));-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 18px 40px -28px rgba(var(--c-ink-rgb),.45);
  transition:transform var(--dur-spring) var(--spring),box-shadow .3s var(--ease),background-color .3s var(--ease)}
.hp-stat::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--c-lime);opacity:0;transition:opacity .3s var(--ease);z-index:-1}
.hp-stat{isolation:isolate}
@media (hover:hover){
  .hp-stat:hover{transform:translateY(-6px);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 28px 50px -26px rgba(var(--c-ink-rgb),.5)}
  .hp-stat:hover::before{opacity:.75}
  .hp-stat:hover .hp-stat__rule{color:var(--c-ink)}
}
@media (min-width:768px){.hp-stats{gap:16px}.hp-stat{padding:24px 22px 26px}}
@media (min-width:1200px){.hp-stats{gap:20px}.hp-stat{padding:30px 28px 32px}.hp-stat__num{font-size:min(80px,100cqi / 2.95)}}
@media (max-width:767.98px){.hp-stat__desc{font-size:min(14px,(100vw - 90px) / 21.6)}}


/* 5.5 Pains (round 6b): lime blocks with brown text; hover turns deep green with white text */
.hp-pains > .hp-pain,.hp-pains.rail > .hp-pain,.hp-pain:nth-child(n){background:var(--c-lime);border-color:var(--c-lime);color:var(--c-ink);box-shadow:none;
  --band-accent:var(--c-ink);--band-rule:rgba(var(--c-ink-rgb),.2);transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease),transform var(--dur-spring) var(--spring)}
.hp-pain:nth-child(n) .hp-pain__title{color:var(--c-ink)}
.hp-pain:nth-child(n) .hp-pain__text{color:rgba(var(--c-ink-rgb),.85)}
.hp-pain:nth-child(n)::after{color:rgba(var(--c-ink-rgb),.2)}
.hp-pain:nth-child(n) .tmm-mark--rule-index{color:var(--c-ink)}
.hp-pains{display:grid;gap:12px}
@media (hover:hover){
  .hp-pain:nth-child(n):hover{background:var(--c-green-deep);border-color:var(--c-green-deep);color:#fff;transform:translateY(-4px)}
  .hp-pain:nth-child(n):hover .hp-pain__title,.hp-pain:nth-child(n):hover .hp-pain__text{color:#fff}
  .hp-pain:nth-child(n):hover::after{color:rgba(255,255,255,.35)}
  .hp-pain:nth-child(n):hover .tmm-mark--rule-index{color:var(--c-lime)}
}
@media (max-width:1023.98px){.hp-pain:nth-child(n){padding:20px 20px 24px;border-radius:var(--radius-card)}}

/* 5.6 Programs heading: colour accents so the block does not read as one flat tone */
.hp-programs__eyebrow{display:inline-flex;align-items:center;gap:10px;padding:7px 16px 7px 10px;border-radius:999px;background:var(--c-ink);color:var(--c-lime)!important;font-size:14px}
.hp-programs__dot{width:10px;height:10px;border-radius:50%;background:var(--c-lime);box-shadow:0 0 0 4px rgba(var(--c-lime-glow),.25)}
@media (prefers-reduced-motion:no-preference){.hp-programs__dot{animation:hp-pulse 2.4s ease-in-out infinite}}
@keyframes hp-pulse{50%{box-shadow:0 0 0 8px rgba(var(--c-lime-glow),0)}}
.hp-programs__from{color:var(--c-green)}
.hp-programs__lead .hp-programs__kw{font-weight:700;color:var(--c-ink)}
.hp-programs__tag{display:inline-block;padding:0 .45em;border-radius:.4em;background:var(--c-lime);font-weight:700;color:var(--c-ink);line-height:1.5}
.hp-programs__tag--ink{background:var(--c-ink);color:var(--c-lime)}
.hp-programs__lead strong{color:var(--c-green-deep)}

/* 5.7 "Sau lộ trình 50 giờ": light panel with a lime ombre from the top-left; three equal glass blocks, lime on hover */
.band--glow{--band-bg:#fffdf8;--band-fg:var(--c-ink);--band-em:var(--c-green);--band-eyebrow:var(--c-green)}
.band--glow > .container{position:relative;border:1px solid rgba(var(--c-ink-rgb),.08);
  background:radial-gradient(70% 80% at 0% 0%,rgba(var(--c-lime-glow),1) 0%,rgba(var(--c-lime-glow),.55) 35%,rgba(var(--c-lime-glow),0) 70%),radial-gradient(40% 50% at 100% 100%,rgba(var(--c-green-rgb),.16),transparent 70%),#fffdf8}
.hp-method__outcome .hp-method__h2,.hp-method__outcome .eyebrow{color:var(--c-ink)}
.hp-method__outcome .hp-method__eyebrow2{color:var(--c-green-deep)}
.hp-method__outcome .hp-method__mark{color:var(--c-green)}
.hp-method__row--outcome > :not(.hp-method__dt){position:relative;z-index:1}
.hp-outcomes,.hp-outcomes.rail{counter-reset:out;display:grid;gap:12px}
.hp-outcome,.hp-outcome:first-child,.hp-outcomes.rail > .hp-outcome{position:relative;counter-increment:out;padding:22px 22px 24px;border:1px solid rgba(255,255,255,.8);border-radius:var(--radius-card);
  background:linear-gradient(145deg,rgba(255,255,255,.66),rgba(255,255,255,.26));-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 16px 36px -28px rgba(var(--c-ink-rgb),.4);--band-accent:var(--c-ink);--band-rule:rgba(var(--c-ink-rgb),.18);
  transition:background-color .3s var(--ease),transform var(--dur-spring) var(--spring),box-shadow .3s var(--ease)}
.hp-outcome .hp-outcome__title,.hp-outcome:first-child .hp-outcome__title{color:var(--c-ink)}
.hp-outcome .hp-outcome__text,.hp-outcome:first-child .hp-outcome__text{color:rgba(var(--c-ink-rgb),.82)}
.hp-outcome .hp-outcome__rule,.hp-outcome:first-child .hp-outcome__rule{color:var(--c-green)}
.hp-outcome::after,.hp-outcome:first-child::after{content:counter(out,decimal-leading-zero);position:absolute;top:18px;right:22px;font-size:28px;font-weight:800;line-height:1;color:rgba(var(--c-ink-rgb),.18)}
.hp-outcome__rule{max-width:calc(100% - 56px)}

/* 5.8 Class videos on cream */
.hp-moments .section-heading__desc{color:rgba(var(--c-ink-rgb),.8)}

/* 5.9 Testimonials (homepage and course archive): one bold line, three calm waves, behind the carousel */
.hp-feedback > .container{position:relative}
.hp-feedback__squiggle{position:absolute;left:0;top:34%;z-index:0;width:100%;height:52%;pointer-events:none;overflow:visible}
.hp-feedback__squiggle path{fill:none;stroke:var(--c-green);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
@media (min-width:768px){.hp-feedback__squiggle path{stroke-width:7}}
/* Draw-in (25 Sep fix): a left → right clip sweep. The old pathLength dash broke with non-scaling-stroke — on screens wider
   than ~1440 the dash covered only part of the stretched line, so it stopped short of the right edge. */
@media (prefers-reduced-motion:no-preference){
  html.js .hp-feedback__squiggle{clip-path:inset(-20% 100% -20% 0)}
  html.js .hp-feedback.is-drawn .hp-feedback__squiggle{clip-path:inset(-20% 0 -20% 0);transition:clip-path 2.4s cubic-bezier(.45,.05,.2,1)}
}
.hp-feedback .section-heading,.hp-feedback .hp-carousel{position:relative;z-index:1}

/* ---------- 6. Carousel counters removed: the two arrow buttons sit together ---------- */
.carousel__controls{justify-content:center;gap:12px}

/* ---------- 7. Phones: the video and testimonial carousels keep their infinite loop (client, 24 Sep late). ---------- */

/* ---------- 8. Teachers ---------- */
/* Commitments: stacked blocks on phones (no swipe); the index rule sits above the title, never through it. */
@media (max-width:1023.98px){
  ul.strength-index{gap:12px}
  .strength{padding:18px 18px 20px;border-radius:var(--radius-card);background:rgba(255,255,255,.55);border:1px solid rgba(var(--c-ink-rgb),.08)}
  .strength__rule{position:relative;top:auto;display:block;margin-bottom:14px}
}
/* Foldables / small tablets (600–767): portraits stay inside their cell. */
ul.tgrid .tcard__photo{overflow:hidden}
@media (max-width:767.98px){
  .tcard--lead .tcard__photo{max-width:420px;margin-inline:auto;width:100%}
}
@media (max-width:767.98px){
  .hp-stat{padding:16px 12px 18px}
  .hp-stat__desc{font-size:13px;line-height:1.45;overflow-wrap:normal;word-break:normal}
  .hp-stat__desc strong{white-space:nowrap}
}
@media (max-width:359.98px){.hp-stats{grid-template-columns:minmax(0,1fr)}}

/* ---------- 10. QA fixes (round 6) ---------- */
@media (max-width:767.98px){
  .hp-hero__crop > .hp-hero__deco{left:8%;top:0;width:84%}
  .hp-stat__label{font-size:min(12px,100cqi / 11.5);letter-spacing:.02em;white-space:nowrap}
  /* Job titles: each designed line (the two title parts) stays whole; the size follows the card width. */
  .job-card__title{font-size:min(18px,100cqi / 17)}
  .job-card__title .legal-nowrap{white-space:nowrap}
}
@media (min-width:768px) and (max-width:1199.98px){
  .hp-stat__label{font-size:min(15px,100cqi / 11.5);letter-spacing:.04em;white-space:nowrap}
  .job-card__title{font-size:min(calc(var(--fs-h3) - 4px),100cqi / 17)}
  .job-card__title .legal-nowrap{white-space:nowrap}
}

/* ---------- 11. Phones held sideways (landscape, ≤ 500px tall): portraits never exceed the screen height. ---------- */
@media (orientation:landscape) and (max-height:500px){
  /* The founder card joins the grid as a regular card (spanning 2×2 it would be taller than the screen). */
  html.js ul.tgrid .tcard--lead{grid-column:auto;grid-row:span 2}
  html.js ul.tgrid .tcard--lead .tcard__photo{grid-row:auto;height:auto;aspect-ratio:4 / 5;align-self:stretch}
  html.js ul.tgrid .tcard--lead .tcard__body{grid-row:auto}
  .tcard--lead .tcard__name{font-size:21px}
  ul.tgrid .tcard__photo{max-height:calc(100svh - 110px)}
  .hp-hero__media{max-width:calc((100svh - 60px) * .8)}
}
@media (min-width:600px) and (max-width:1023.98px){.hp-pains{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* =====================================================================================================================
   Round 6b (client, 24 Sep late)
   ===================================================================================================================== */

/* Home: from "Chương trình học online" down, each section's content sits in its own thin-bordered block, so a visitor
   scanning the page reads one group at a time. The class videos and testimonials stay open (client). Same geometry as the coloured panels (§3). */
.hp :is(.hp-programs,.hp-method__pain,.hp-teachers){padding-block:calc(var(--section-y) * .5)}
.hp :is(.hp-programs,.hp-method__pain,.hp-teachers) > .container{
  width:min(calc(var(--container) + 120px),calc(100% - 2 * var(--panel-edge)));padding:var(--panel-pad);border:1px solid rgba(var(--c-ink-rgb),.12);border-radius:var(--panel-radius);
  background:rgba(255,255,255,.45);overflow:hidden;overflow:clip}
.hp .hp-audience{padding-bottom:calc(var(--section-y) * .5)}
.hp-audience + .hp-programs{padding-top:calc(var(--section-y) * .5)}
/* The lime blocks inside the bordered pain block need no second card edge. */
.hp-method__pain > .container{background:rgba(255,255,255,.45)}

/* 50 giờ: every block turns lime on hover (the first is not pre-coloured); the outline 50 is gone. */
@media (hover:hover){
  .hp-outcomes > .hp-outcome:hover,.hp-outcomes > .hp-outcome:nth-child(n):hover{background:var(--c-lime);background-image:none;border-color:var(--c-lime);transform:translateY(-4px);box-shadow:0 24px 44px -28px rgba(var(--c-ink-rgb),.5)}
  .hp-outcomes > .hp-outcome:hover .hp-outcome__rule{color:var(--c-ink)}
  .hp-outcomes > .hp-outcome:hover .hp-outcome__title,.hp-outcomes > .hp-outcome:hover .hp-outcome__text{color:var(--c-ink)}
}

/* Schedule: a pale lime block (≈25%), brown buttons with white text, olive on hover. */
.hp-schedule.band--warm{--band-bg:rgba(var(--c-lime-glow),.25)}
.hp-schedule.band--warm > .container{border:1px solid rgba(var(--c-green-rgb),.25)}
.btn.hp-schedule__cta,.hp-tt .btn{--btn-bg:var(--c-ink);--btn-bd:var(--c-ink);--btn-fg:#fff;--btn-bg-h:var(--c-green-deep);--btn-bd-h:var(--c-green-deep);--btn-fg-h:#fff}

/* ---------- About (Figma: light hero, a brown block for the five figures with white tiles) ---------- */
.page-hero--about,.page-hero--about .page-hero__title,.page-hero--about .page-hero__lead,.page-hero--about .page-hero__lead strong{color:var(--c-ink)}
.page-hero--about .page-hero__title em{color:var(--c-green)}
.page-hero--about .link-arrow{color:var(--c-ink)}
@media (hover:hover){.page-hero--about .link-arrow:hover{color:var(--c-green-deep)}}
.about-stats ul.stat-board.stat-board > .stat,.about-stats ul.stat-board.stat-board > .stat:nth-child(n){background:#fff;border-color:transparent;color:var(--c-ink);--band-accent:var(--c-green);--band-rule:rgba(var(--c-ink-rgb),.14)}
.about-stats ul.stat-board.stat-board > .stat :is(.stat__num,.stat__label,.stat__desc,.stat__plus){color:var(--c-ink)}
.about-stats ul.stat-board.stat-board > .stat:first-child .stat__num{color:var(--c-green-deep)}
@media (hover:hover){.about-stats ul.stat-board.stat-board > .stat{transition:transform var(--dur-spring) var(--spring),background-color .3s var(--ease)}.about-stats ul.stat-board.stat-board > .stat:hover{background:var(--c-lime);transform:translateY(-4px)}}
/* Phones: three on top, two below. */
@media (max-width:767.98px){
  .about-stats.band--ink > .container{padding:12px 8px}
  .about-stats ul.stat-board.stat-board{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .about-stats ul.stat-board.stat-board > .stat{grid-column:span 2;min-height:0;padding:12px 7px 14px;container-type:inline-size}
  .about-stats ul.stat-board.stat-board > .stat:nth-child(n+4){grid-column:span 3}
  .about-stats .stat-board .stat__num,.about-stats .stat-board .stat--lead .stat__num{font-size:min(30px,100cqi / 3.3)}
  .about-stats .stat-board .stat__text{padding-top:12px}
  .about-stats .stat-board .stat__label,.about-stats .stat-board .stat--lead .stat__label{font-size:min(11px,100cqi / 10.5);letter-spacing:.02em;white-space:nowrap}
  .about-stats .stat-board .stat__desc,.about-stats .stat-board .stat--lead .stat__desc{font-size:min(12px,100cqi / 10.4);line-height:1.4;overflow-wrap:normal;word-break:normal;hyphens:none}
}
/* Method: every card turns the same lime on hover. */
@media (hover:hover){
  .method-card:nth-child(n):hover,.method-card[class*="method-card--"]:hover{background:var(--c-lime);border-color:var(--c-lime);color:var(--c-ink)}
  .method-card[class*="method-card--"]:hover :is(.method-card__num,.method-card__title,.method-card__title em,.method-card__desc){color:var(--c-ink)}
  .method-card[class*="method-card--"]:hover .method-card__rule{color:var(--c-ink)}
}

/* Course archive (phones/tablets): a level menu above each track's swipe list — tap to jump, or swipe. */
.cx-levels{display:none}
@media (max-width:1023.98px){
  .cx-levels{display:block;margin:0 0 14px}
  /* One segmented row; an ink pill slides between levels (same feel as the CEFR picker above). */
  .cx-levels__chips{position:relative;display:flex;gap:2px;margin:0;padding:4px;list-style:none;border:1px solid rgba(var(--c-ink-rgb),.14);border-radius:var(--radius-pill);background:#fff}
  .cx-levels__chips > li{position:relative;z-index:1;flex:1 1 0;min-width:0;display:flex}
  .cx-levels__chips::before{content:"";position:absolute;top:4px;bottom:4px;left:0;width:var(--pill-w,0);border-radius:var(--radius-pill);background:var(--c-ink);transform:translateX(var(--pill-x,0));opacity:0;
    transition:transform .56s var(--ease),width .56s var(--ease),opacity .3s var(--ease)}
  .cx-levels.is-enhanced .cx-levels__chips::before{opacity:1}
  .cx-levels__chip{display:flex;flex:1;align-items:center;justify-content:center;min-height:44px;padding:0 6px;border-radius:var(--radius-pill);font-size:15px;font-weight:800;color:var(--c-ink);text-decoration:none;white-space:nowrap;transition:color .4s var(--ease)}
  .cx-levels__chip[aria-current="true"]{background:var(--c-ink);color:var(--c-lime)}
  .cx-levels.is-enhanced .cx-levels__chip[aria-current="true"]{background:transparent}
  .cx-levels.is-enhanced .cx-levels__chip[aria-current="true"].is-settled{background:var(--c-ink)}
  .cx-levels__chip:focus-visible{outline:3px solid var(--c-ink);outline-offset:2px}
}

/* Careers: source lines restored verbatim (round 6b) — hero note and the note under the job list. */
/* 25 Sep: the hero note takes the description's own style (3 text styles max: eyebrow · h1 · body). */
.careers-hero .careers-hero__note{margin-top:12px}

/* About · method (Figma 52:124): a lime block holding one white frame with the four cards; numbers and titles olive. */
.about-method.band--warm > .container{--band-bg:var(--c-cream-warm)}
.about-method ol.method-stack{padding:14px;border-radius:calc(var(--panel-radius) - 8px);background:#fff}
@media (min-width:1024px){
  .about-method ol.method-stack{padding:22px;gap:14px}
  .about-method .method-card[class*="method-card--"]{background:var(--c-cream);border-color:rgba(var(--c-green-rgb),.25)}
  .about-method .method-card[class*="method-card--"] .method-card__num{color:var(--c-green)}
  .about-method .method-card--1 .method-card__num{color:var(--c-green-deep)}
  .about-method .method-card[class*="method-card--"] .method-card__title{color:var(--c-green-deep)}
  .about-method .method-card::before{display:none}
}

/* Page heroes (About, Teachers) on phones: the text link sits centred under the button (same as the homepage hero). */
@media (max-width:767.98px){
  .page-hero__actions{display:inline-flex;flex-direction:column;align-items:center;gap:14px}
  .page-hero__actions .btn{width:auto}
}
/* About · method on phones/tablets: a 2 × 2 grid of equal lime cards (was one long stack). */
@media (max-width:1023.98px){
  .about-method ol.method-stack.rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
  .about-method ol.method-stack.rail > .method-card[class*="method-card--"]{min-height:0;padding:16px 14px 18px;border-color:transparent;background:var(--c-lime);color:var(--c-ink);container-type:inline-size}
  .about-method .method-card[class*="method-card--"] :is(.method-card__num,.method-card__title,.method-card__title em,.method-card__desc){color:var(--c-ink)}
  .about-method .method-card[class*="method-card--"] .method-card__rule{color:var(--c-ink)}
  .about-method ol.method-stack.rail .method-card__num{font-size:min(40px,100cqi / 3.4)}
  .about-method ol.method-stack.rail > .method-card .method-card__title{margin-top:10px;font-size:min(17px,100cqi / 9.4)}
  .about-method .method-card__unit{white-space:nowrap}
  .about-method .method-card__desc{font-size:min(13px,100cqi / 11);line-height:1.45}
}

@media (prefers-reduced-motion:reduce){.cx-levels__chips::before,.cx-levels__chip{transition:none}}

/* About · "Kết nối với The Metaphoric Mind" (approved copy doc): five channels as small white link cards in the lime block. */
.about-connect__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.about-connect__item{position:relative;display:flex;flex-direction:column;gap:4px;min-height:88px;padding:16px 44px 16px 16px;border-radius:var(--radius-card);background:#fff;color:var(--c-ink);text-decoration:none;
  transition:background-color .4s var(--ease),transform var(--dur-spring) var(--ease)}
.about-connect__name{font-size:17px;font-weight:800;line-height:1.25}
.about-connect__note{font-size:var(--fs-small);line-height:1.45;color:rgba(var(--c-ink-rgb),.78)}
.about-connect__item .icon-arrow{position:absolute;top:16px;right:16px;width:16px;height:16px;color:var(--c-green)}
.about-connect__item:focus-visible{outline:3px solid var(--c-ink);outline-offset:3px}
@media (hover:hover){.about-connect__item:hover{background:var(--c-lime);transform:translateY(-4px)}.about-connect__item:hover .icon-arrow{color:var(--c-ink)}}
@media (min-width:768px){.about-connect__list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Careers · "Cách thức ứng tuyển" (approved copy doc) under the job list. */
.careers-apply{margin-top:24px;padding:20px 20px 22px;border:1px solid rgba(var(--c-ink-rgb),.12);border-radius:var(--radius-card);background:rgba(255,255,255,.6)}
.careers-apply__title{margin:0 0 8px;font-size:var(--fs-h3);font-weight:800;line-height:1.3}
.careers-apply__text,.careers-apply__note{margin:0;font-size:var(--fs-body);line-height:1.6;color:var(--c-ink);text-wrap:pretty}
.careers-apply__text a{font-weight:700;color:inherit;text-decoration:underline;text-decoration-color:var(--c-green);text-underline-offset:3px;overflow-wrap:anywhere}
.careers-apply__note{margin-top:10px;font-size:var(--fs-small);color:rgba(var(--c-ink-rgb),.8)}
@media (min-width:1200px){.careers-apply{margin-top:32px;padding:28px 32px 30px}}

/* ---------- Round 6b QA fixes (mobile-qa, round 1) ---------- */
/* Course detail · topic grid: one column on the narrowest phones (long compounds never break inside a word). */
@media (max-width:374.98px){.cd-learn__cards.is-many .cd-topics__grid{grid-template-columns:minmax(0,1fr)}}
/* Phones held sideways: no slide, card or photo taller than the usable screen (header + bottom bar ≈ 140px). */
@media (orientation:landscape) and (max-height:500px){
  .fcar .carousel-slide{max-height:calc(100svh - 140px)}
  .hp-carousel--video .carousel-slide{--slide-w:min(300px,calc((100svh - 140px) * .5625))}
  .hp-feedback .carousel-slide{--slide-w:min(420px,calc(100svh - 140px))}
  .page-hero__img,.careers-hero__media img,.hp-hero__frame{max-height:calc(100svh - 120px);width:auto;max-width:100%;margin-inline:auto}
  .page-hero__img,.careers-hero__media img{object-fit:contain}
  .cx-card{max-height:none}
}

/* ---------- Round 6b QA fixes (a11y-perf, round 1) ---------- */
/* Phones before main.js runs: keep the menu collapsed (no 180px layout jump when the script enhances the header). */
@media (max-width:1023.98px){html.js .site-header:not(.nav-enhanced) .primary-nav{display:none}}
/* Lightbox: no visible "3 / 10" counter (client rule); the live region stays for screen readers. */
.lightbox__status{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Schedule buttons: white text stays readable on hover — deep olive (4.6:1) instead of olive (2.3:1). */
/* Deep links to a course track (#doi-song / #cong-viec): the browser's own jump lands with the switcher in view. */
.cx-tabs [data-tab-panel]{scroll-margin-top:calc(var(--header-h) + 120px)}
@media (min-width:1200px){.cx-tabs [data-tab-panel]{scroll-margin-top:calc(var(--header-h) + 150px)}}
/* Careers h1 (approved copy): three designed lines that never break inside; the size follows the heading box. */
.careers-hero__heading{container-type:inline-size}
.careers-hero .h1 .careers-h1__line{display:block;white-space:nowrap}
.careers-hero .h1{font-size:min(var(--fs-h1),100cqi / 13.6)}
@media (max-width:767.98px){.careers-hero .h1{font-size:min(var(--fs-h1),100cqi / 13.6)}}
.careers-apply__mail{margin:6px 0 0;font-size:var(--fs-body);font-weight:700}
.careers-apply__mail a{color:inherit;text-decoration:underline;text-decoration-color:var(--c-green);text-underline-offset:3px;overflow-wrap:anywhere}
/* About · connect cards: the short note stays on one line; five across only where they fit. */
.about-connect__note{white-space:nowrap}
.careers-apply__mail a{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:439.98px){.careers-page .careers-heading .h2{font-size:min(var(--fs-h2),22px)}} /* keeps h2 below the fitted h1 on the narrowest phones */

/* ---------- Round 6b QA fixes (desktop-qa, round 1) ---------- */
/* Decorative lime slabs that ran full-bleed behind panels (courses hero, course "Vì sao chọn", legal head, 404): retired
   under the "cream sections, coloured panels only" rule. */
.cx-hero__field,.cd-methods__field,.legal-head__field,.error-404 .shape,.error-404 .display-type{display:none!important}
/* Grain texture made some cream sections read darker (#F8F3EC) with visible seams. */
.grain::after{display:none}
/* Course detail hero: the four facts stay on one row on wide screens. */
@media (min-width:1200px){.cd-meta{flex-wrap:nowrap}.cd-meta > *{min-width:0}}
/* Testimonial side slides: opaque (the squiggle must not show through the text); focus is carried by scale + a soft dim. */
.hp-feedback .fcar .carousel-slide,.hp-feedback.fcar .carousel-slide{opacity:var(--vis,1)}
.hp-feedback .fcar .carousel-slide:not(.is-centre) img{filter:saturate(.85) brightness(.98)}
/* The centre slide's shadow has room below it (no straight cut under the card). */
.hp-feedback .fcar [data-carousel-track]{padding-bottom:64px}
.hp-feedback .hp-carousel__nav{margin-top:0}
/* Home stats glow fades out before the page edges (it read as a full-bleed colour band). */
.hp-stats-section::before{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 82%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 18%,#000 82%,transparent 100%)}
/* Rhythm: hero → first panel and last panel → footer get a full section gap; the form band starts closer. */
.pg-about .page-hero--about + .band,.cx-hero + .band{padding-top:var(--section-y)}
.careers-values{padding-bottom:var(--section-y)}
/* Course archive cards: the CTA is the "light" button kind (white fill, green text). */
.cx-card__cta{padding:0 18px;border:1px solid rgba(var(--c-ink-rgb),.12);border-radius:var(--radius-pill);background:#fff;color:var(--c-green-deep)}
/* About · method: no hairline across the white frame; card titles are one colour. */
.about-method ol.method-stack{border-top:0}
.about-method ol.method-stack::before,.about-method ol.method-stack::after{display:none}
.about-method .method-card__title em{color:inherit}
/* Teacher profile: no visible "02 / 09" counter (same rule as carousels); kept for screen readers. */
.tprofile__count{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp-teachers__sub{margin:0 0 6px;font-size:var(--fs-body);font-weight:800;color:var(--c-ink)}

/* =====================================================================================================================
   Round 6c (client, 25 Sep)
   ===================================================================================================================== */

/* C1 · Home hero: only the soft lime gradient stays behind the cut-out. */
.hp-hero__deco{overflow:visible}

/* C2 · Testimonial squiggle across the full page width (it is a direct child of the section again). */
.hp-feedback > .hp-feedback__squiggle{left:0;right:0;width:100%;top:38%;height:46%;z-index:0}
.hp-feedback > .container{position:relative;z-index:1}

/* C3 · Pre-footer form: a solid card (100% opacity) on the cream → brown gradient. */
.band--prefoot div.lead-form.lead-form--lime,.band--prefoot div.lead-form[class*="lead-form--"].lead-form--lime{background:var(--c-cream);-webkit-backdrop-filter:none;backdrop-filter:none}
.band--prefoot div.lead-form.lead-form--lime::before{display:none}

/* C12 · Course detail pages: both forms are lime, as the accent of the page. */
.cd-register.band--prefoot div.lead-form.lead-form--lime,.cd-register.band--prefoot div.lead-form[class*="lead-form--"].lead-form--lime{background:var(--c-lime)}
.cd-register .lead-form--lime .lead-form__head .eyebrow{color:var(--c-ink)}
.cd-hero div.lead-form.cd-form--hero,.cd-hero div.lead-form[class*="lead-form--"].cd-form--hero{background:var(--c-lime);border-color:var(--c-lime)}
.cd-hero .cd-form--hero .field__control{border-bottom-color:rgba(var(--c-ink-rgb),.35)}
.cd-hero .cd-form--hero .field__label{color:rgba(var(--c-ink-rgb),.75)}

/* C4 · About: no brown text on a dark-green marker. Highlights are lime on cream and white on the lime panel. */
.page-hero--about .page-hero__lead .hl-swipe{color:var(--c-ink);padding:0 .06em;background-image:linear-gradient(var(--c-lime),var(--c-lime));background-repeat:no-repeat;background-position:0 88%;background-size:100% .5em}
.about-method{--hl-c:#fff}
.about-method .about-method__sub .hl-swipe{color:var(--c-ink)}

/* C5 · About "Kết nối": each channel shows its icon. */
.about-connect__icon{display:grid;place-items:center;width:40px;height:40px;margin-bottom:8px;border-radius:12px;background:var(--c-cream-warm);color:var(--c-ink);--icon-on:var(--c-cream-warm);transition:background-color .4s var(--ease),color .4s var(--ease)}
.about-connect__icon svg{width:22px;height:22px}
@media (hover:hover){.about-connect__item:hover .about-connect__icon{background:var(--c-ink);color:var(--c-lime);--icon-on:var(--c-ink)}}
/* R1 · Small phones: one channel per row (icon beside the text), so names and notes never overflow or split. */
@media (max-width:419.98px){
  .about-connect__list{grid-template-columns:minmax(0,1fr)}
  .about-connect__item{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:2px;align-items:center;min-height:0;padding:12px 44px 12px 12px}
  .about-connect__icon{grid-row:1 / 3;margin:0}
  .about-connect__note{white-space:normal}
  .about-connect__item .icon-arrow{top:50%;translate:0 -50%}
}

/* C6 · Teachers (≥768): the profile opens as a centred popup instead of a side sheet. */
@media (min-width:768px){
  .tprofile[open]{inset:0;margin:auto;width:min(760px,92vw);height:auto;max-height:min(88dvh,860px);border-radius:28px;animation:none;
    transition:transform .5s var(--ease),opacity .35s var(--ease)}
  @starting-style{.tprofile[open]{transform:translateY(24px) scale(.98);opacity:0}}
}
@media (min-width:768px) and (prefers-reduced-motion:reduce){.tprofile[open]{transition:none}}

/* C7 · Careers hero: an offset lime shape and a fine olive outline sit behind the team photo. */
.careers-hero__media{position:relative;isolation:isolate}
.careers-hero__media::before{content:"";position:absolute;z-index:-1;inset:10% -5% -9% 12%;border-radius:46% 54% 38% 62% / 55% 38% 62% 45%;background:radial-gradient(70% 70% at 40% 40%,var(--c-lime),rgba(var(--c-lime-glow),.35) 70%,transparent 100%)}
.careers-hero__media::after{content:"";position:absolute;z-index:-1;inset:-5% 8% 14% -4%;border:1.5px solid var(--c-green);border-radius:calc(var(--radius-card) + 10px)}
@media (prefers-reduced-motion:no-preference){.careers-hero__media::before{animation:hp-blob 12s ease-in-out infinite alternate}}

/* C8 · Home on phones: the pain blocks are white glass over a soft lime light; the "50 giờ" blocks are white with a
   lime ombre. */
@media (max-width:767.98px){
  .hp-method__pain > .container{background:radial-gradient(80% 50% at 0% 0%,rgba(var(--c-lime-glow),.9),transparent 70%),radial-gradient(70% 45% at 100% 100%,rgba(var(--c-green-rgb),.28),transparent 70%),#fff}
  .hp-pains > .hp-pain,.hp-pains.rail > .hp-pain,.hp-pain:nth-child(n){background:linear-gradient(150deg,rgba(255,255,255,.82),rgba(255,255,255,.55));border:1px solid rgba(255,255,255,.9);
    -webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);box-shadow:inset 0 1px 0 #fff,0 14px 30px -24px rgba(var(--c-ink-rgb),.45)}
  .hp-outcomes > .hp-outcome,.hp-outcomes > .hp-outcome:nth-child(n),.hp-outcomes.rail > .hp-outcome{background:linear-gradient(140deg,rgba(var(--c-lime-glow),.85) 0%,rgba(var(--c-lime-glow),.25) 45%,#fff 80%);border-color:rgba(255,255,255,.9)}
}
@media (max-width:1023.98px){
  .js .back-to-top{display:inline-grid}
  .back-to-top{bottom:calc(84px + env(safe-area-inset-bottom,0px));right:14px;width:46px;height:46px}
}
@media (min-width:1200px){.about-connect__list{gap:14px}.about-connect__item{min-height:120px;padding:22px 44px 22px 20px}.about-connect__name{font-size:19px}} /* six channels: 2 × 3 on phones, 3 × 2 from tablets */
html.nav-fallback .site-header:not(.nav-enhanced) .primary-nav{display:block} /* R4: menu back if main.js never ran */
@media (min-width:1200px){.careers-page .careers-heading .h2{font-size:calc(var(--fs-h2) * .88)}} /* stays below the fitted careers h1 */
.about-method .method-card[class*="method-card--"] .method-card__title em,.about-method .method-card[class*="method-card--"]:hover .method-card__title em{color:inherit}
/* C7 · On the pale-lime careers panel the shape behind the photo is white (lime on lime would vanish). */
.careers-hero__media::before{background:radial-gradient(70% 70% at 40% 40%,#fff,rgba(255,255,255,.75) 60%,rgba(255,255,255,0) 100%)}

/* Keyboard focus never lands under the fixed bottom bar / floating buttons on phones (a11y r2). */
@media (max-width:1023.98px){html{scroll-padding-bottom:96px}}
/* "50 giờ" cards: the corner number never runs into the title. */
.hp-outcome__title{padding-right:30px}
@media (min-width:1024px){.hp-outcome__title{padding-right:48px}}
/* Pre-footer form: error text keeps ≥4.5:1 on the gradient (a11y r2). */
.band--prefoot .lead-form .field__error{color:#8c1d18}
/* Field underlines ≥3:1 against their surface (a11y r2). */
.lead-form .field__control{border-bottom-color:rgba(var(--c-ink-rgb),.55)}
/* Home teachers: the credential card's lime bar sits inside the card with air before the text (client, 25 Sep). */
@media (hover:hover) and (min-width:1024px){
  .hp-teacher .hp-teacher__cred{padding:16px 18px 18px 32px}
  .hp-teacher .hp-teacher__cred::before{left:16px;top:16px;bottom:16px;border-radius:2px}
}
/* Course tabs: cards are there at once; a short slide only (no slow fade-in from 0). */
@keyframes cx-card-from-left{from{opacity:.4;transform:translateX(-16px)}}
@keyframes cx-card-from-right{from{opacity:.4;transform:translateX(16px)}}
@media (prefers-reduced-motion:no-preference){.cx-tabs.is-enhanced .cx-list:not([hidden]) .cx-card-wrap{animation-duration:.45s!important;animation-timing-function:var(--ease)!important}}
@media (prefers-reduced-motion:reduce){.cx-tabs.is-enhanced .cx-list:not([hidden]) .cx-card-wrap{animation:none!important}}
@media (hover:hover) and (min-width:1024px){.hp-teacher .hp-teacher__cred{padding-right:14px}}

/* ---------- QA round 2 (mobile) ---------- */
/* Phones: floating chat + back-to-top step aside while a form card or the footer is on screen. */
/* About figures on small phones: readable text (≥10px), wrapping allowed instead of shrinking. */
@media (max-width:767.98px){
  .about-stats .stat-board .stat__label,.about-stats .stat-board .stat--lead .stat__label{font-size:max(10px,min(11px,100cqi / 10.5));white-space:normal}
  .about-stats .stat-board .stat__desc,.about-stats .stat-board .stat--lead .stat__desc{font-size:max(11px,min(12px,100cqi / 10.4))}
}
/* Landscape phones: programme photos and course cards fit the usable height. */
@media (orientation:landscape) and (max-height:500px){
  .hp-program__img{max-height:calc(100svh - 120px);width:auto;max-width:100%;margin-inline:auto;object-fit:contain}
}
/* Long English step titles never break mid-word on the narrowest phones. */
@media (max-width:379.98px){.cd-step__title{font-size:16px;overflow-wrap:normal;hyphens:manual}}
/* Course hero: the lime block behind the book cover is a contained rounded tile (it ran off the page edge). */
.cd-cover::before{left:18%;right:-18px;top:18%;bottom:-18px;width:auto;border-radius:var(--radius-card)}
@media (max-width:767.98px){.cd-cover::before{left:22%;right:-12px;top:22%;bottom:-12px;border-radius:var(--radius-card)}}
@media (hover:hover) and (min-width:1024px) and (max-width:1439.98px){.hp-teacher .hp-teacher__cred{padding:14px 10px 16px 26px;font-size:14px}.hp-teacher .hp-teacher__cred::before{left:13px;top:14px;bottom:14px}}

/* ---------- QA round 2 (desktop) ---------- */
/* Teacher credential overlay at 1024–1199: smaller text, whole-word wrapping only. */
@media (hover:hover) and (min-width:1024px) and (max-width:1199.98px){.hp-teacher .hp-teacher__cred{padding:12px 8px 14px 22px;font-size:13px;line-height:1.4}.hp-teacher .hp-teacher__cred::before{left:10px;top:12px;bottom:12px}}
.hp-teacher .hp-teacher__cred{overflow-wrap:normal;word-break:normal;hyphens:manual}
/* Teacher popup: the prev/next arrows stay visible at the bottom while the bio scrolls. */
@media (min-width:768px){
  .tprofile[open]{max-height:min(92dvh,900px)}
  .tprofile__nav{position:sticky;bottom:-40px;margin:20px -40px -40px;padding:14px 40px 18px;background:linear-gradient(rgba(255,250,243,0),var(--c-cream) 30%);z-index:2}
}
/* Floating buttons stay visible on brown surfaces too (thin cream ring). */
/* Home hero text link: the same hover as the other hero links (deep olive, arrow nudge). */
@media (hover:hover){
  .hp-hero__link:hover span{color:var(--c-green-deep);text-decoration-color:var(--c-green-deep)}
  .hp-hero__link .icon-arrow{transition:transform .35s var(--ease)}
  .hp-hero__link:hover .icon-arrow{transform:translate(2px,-2px);color:var(--c-green-deep)}
}
/* The last panel before the footer keeps a full section gap. */
main > .band:last-child:not(.band--prefoot){padding-bottom:var(--section-y)}

/* ---------- Live chat (client, 25 Sep): Zalo OA widget + back-to-top, one stack on the right ---------- */
/* The Zalo SDK writes inline position styles; these place its bubble at the bottom of our stack. */
.zalo-chat-widget{right:24px!important;bottom:24px!important;transition:opacity .3s var(--ease),transform .3s var(--ease)}
.back-to-top{right:28px;bottom:188px}
@media (max-width:1023.98px){
  .zalo-chat-widget{right:10px!important;bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 20px)}
  .zalo-chat-widget iframe{max-width:100%}
  .back-to-top{right:14px;bottom:calc(240px + env(safe-area-inset-bottom,0px))}
  .zalo-chat-widget.is-tucked{opacity:0;transform:translateX(calc(100% + 24px));pointer-events:none}
}
@media print{.zalo-chat-widget{display:none!important}}

/* ---------- QA round 3 (copy/a11y) ---------- */
/* Field underlines ≥3:1 on every form surface (cream, lime, glass). */
.lead-form .field__control,.band--prefoot .lead-form--lime .field__control,.cd-hero .cd-form--hero .field__control{border-bottom-color:rgba(var(--c-ink-rgb),.55)}
/* One error red on every form. */
.lead-form .field__error,.band--prefoot .lead-form .field__error{color:#8c1d18}
/* Course hero form (desktop row): fields align at the top so an error line never lifts one underline. */
@media (min-width:1024px){.cd-form--hero .form{align-items:start}}

/* ---------- Line breaks (client, 25 Sep: no 1–2-word last lines anywhere) ---------- */
/* Short headings that must stay on one line on phones: sized to the column instead of wrapping. */
.fit-line{white-space:nowrap}
@media (max-width:767.98px){
  .h2 .fit-line{font-size:min(1em,calc((100vw - 2 * var(--gutter) - 2 * var(--panel-edge,0px) - 32px) / 12.4 ))}
}
/* Course cards on phones/tablets: the whole description shows (no mid-word "…" cut). */
.cx-card__text{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
/* Case-study topic tiles: one column on phones (short 2–3-word topics never wrap to a lone word). */
@media (max-width:519.98px){.cd-learn__cards.is-many .cd-topics__grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:767.98px){.page-hero__title .fit-line{font-size:min(1em,calc((100vw - 2 * var(--gutter)) / 11))}}
@media (min-width:768px){.about-method__head{container-type:inline-size}.about-method__head .h2 .fit-line{font-size:min(1em,100cqi / 10.5)}}
.about-method__head .h2 .fit-line em{display:inline} /* the whole "đào tạo chuyên sâu" line stays together */

/* ---------- QA round 3 (mobile) ---------- */
/* About figures: descriptions wrap inside their tile (never cut off). */
@media (max-width:767.98px){.about-stats .stat-board .stat__desc,.about-stats .stat-board .stat--lead .stat__desc{white-space:normal;overflow-wrap:normal}}
/* About method cards on the narrowest phones: text never below 10.5px. */
@media (max-width:767.98px){.about-method .method-card__desc{font-size:max(10.5px,min(13px,100cqi / 11))}}
/* Landscape phones: carousel media fit the usable height (videos keep their 9:16 frame, artworks stay square). */
@media (orientation:landscape) and (max-height:500px){
  .hp-carousel--video .carousel-slide{--slide-w:min(300px,calc((100svh - 150px) * .5625));--fw:var(--slide-w)}
  .hp-video__media{max-height:calc(100svh - 150px);width:100%;object-fit:cover}
  .hp-feedback .carousel-slide{--slide-w:min(420px,calc(100svh - 150px));--fw:var(--slide-w)}
  .hp-feedback__img{max-height:calc(100svh - 150px);width:auto;max-width:100%;margin-inline:auto}
  .cd-learn__img{max-height:calc(100svh - 150px);object-fit:cover}
}

/* Zalo chat window in landscape phones: anchored to the bottom so its header is never cut off. */
@media (orientation:landscape) and (max-height:500px){.zalo-chat-widget{bottom:6px!important}}
@media (max-width:767.98px){.about-stats ul.stat-board.stat-board > .stat{padding-inline:6px}.about-stats .stat-board .stat__desc,.about-stats .stat-board .stat--lead .stat__desc{font-size:max(10px,min(12px,100cqi / 9))}}
/* About figures on phones (QA r3): 1 + 2 + 2 — the lead figure spans the row, the four others pair up (3-up tiles were
   too narrow for the descriptions without cutting or splitting words). */
@media (max-width:767.98px){
  .about-stats ul.stat-board.stat-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .about-stats ul.stat-board.stat-board > .stat,.about-stats ul.stat-board.stat-board > .stat:nth-child(n+4){grid-column:auto;padding:14px 12px 16px}
  .about-stats ul.stat-board.stat-board > .stat:first-child{grid-column:1 / -1}
  .about-stats .stat-board .stat__desc,.about-stats .stat-board .stat--lead .stat__desc{font-size:max(12px,min(13px,100cqi / 12));white-space:normal}
  .about-stats .stat-board .stat__label,.about-stats .stat-board .stat--lead .stat__label{font-size:12px}
  .about-stats .stat-board .stat__num,.about-stats .stat-board .stat--lead .stat__num{font-size:min(34px,100cqi / 4)}
}
/* Home teacher credential card: degree on its own line, then the school; names never split (QA r3). */
@media (hover:hover) and (min-width:1024px){.hp-teacher .hp-teacher__cred strong{display:block}.hp-teacher .hp-teacher__cred span{display:block}}
/* Lime register form only on course DETAIL pages (the archive keeps the cream form like other pages). */
.cx-register.band--prefoot div.lead-form.lead-form--lime,.cx-register.band--prefoot div.lead-form[class*="lead-form--"].lead-form--lime{background:var(--c-cream)}
/* Teacher popup (≥768): as tall as its content, up to the cap. */
@media (min-width:768px){.tprofile[open]{height:fit-content}}
:root{--ease-out-quick:cubic-bezier(.55,.05,.3,1)}
/* Zalo bubble: invisible (no layout shift counted) until the SDK has settled it; open chat windows are always shown. */
.zalo-chat-widget:not(.is-ready){visibility:hidden!important}
/* ---------- Final design audit ---------- */
html:not(.js) img[data-lazy-src]{display:none}
@media (max-width:1023.98px){.back-to-top.is-tucked{opacity:0!important;visibility:hidden!important;pointer-events:none;transform:translateX(calc(100% + 24px))!important}}
/* Teachers hero h1 (≥768): the one-line "đồng hành thực chiến" is sized to its column (never runs into the photo). */
@media (min-width:768px){.page-hero__copy{container-type:inline-size}.page-hero__title .fit-line{font-size:min(1em,100cqi / 10.6)}}
/* Home: the "50 giờ" panel keeps the half-padding rhythm (160px gap to the teachers panel otherwise). */
.hp .hp-method__outcome.band--glow{padding-block:calc(var(--section-y) * .5)}
.hp-method{padding-bottom:0}
/* About method cards (≥1024): lime on hover, like every other card. */
@media (hover:hover) and (min-width:1024px){.about-method .method-card[class*="method-card--"]:hover{background:var(--c-lime);border-color:var(--c-lime)}.about-method .method-card[class*="method-card--"]:hover :is(.method-card__num,.method-card__title){color:var(--c-ink)}}
/* ---------- Final design audit (mobile) ---------- */
/* Zalo bubble never over the open phone menu. */
html.nav-locked .zalo-chat-widget{visibility:hidden!important}
/* 404 title: one line on phones. */
@media (max-width:767.98px){.error-404__title .fit-line{font-size:min(1em,calc((100vw - 2 * var(--gutter)) / 11))}}
/* Careers job button on the narrowest phones: the arrow never overlaps the label. */
@media (max-width:379.98px){.job-card__cta{font-size:14px;padding-inline:14px;gap:6px}}
/* Course tabs at 344: the programme name stays inside its pill. */
@media (max-width:359.98px){.cx-tabs__name{letter-spacing:0;font-size:11px}.cx-tabs__tab{padding-inline:10px}}
/* Landscape phones: the About hero media box follows its capped image (no empty screen). */
@media (orientation:landscape) and (max-height:500px){.page-hero__media{height:auto!important;min-height:0!important}.page-hero--about .page-hero__inner{align-items:center}}
/* Fallback Zalo bubble (narrow or landscape phones, where the chat window cannot fit): a plain link to the OA. */
.zalo-fallback{position:fixed;right:14px;bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:92;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px rgba(255,250,243,.9),0 12px 26px -12px rgba(var(--c-ink-rgb),.6);color:#0068ff;transition:opacity .3s var(--ease),transform .3s var(--ease)}
.zalo-fallback svg{width:34px;height:34px;--icon-on:#fff}
.zalo-fallback.is-tucked{opacity:0;transform:translateX(calc(100% + 24px));pointer-events:none}
html.nav-locked .zalo-fallback{visibility:hidden}
@media (orientation:landscape) and (max-height:500px){.zalo-fallback{bottom:12px}}
@media (orientation:landscape) and (max-height:500px){ul.hp-teachers__grid,.hp-teachers__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* =====================================================================================================================
   Round 7 (client, 25 Sep after go-live)
   ===================================================================================================================== */

/* R7.1 · Home "Điều gì đang cản" + "Sau lộ trình 50 giờ" (tablet/desktop): the two block colours swap.
   Pains: white blocks → deep green with white text on hover. 50 giờ: lime blocks → deep green with white text on hover.
   Phones keep their own treatment (C8 above). */
@media (min-width:768px){
  .hp-pains > .hp-pain,.hp-pains.rail > .hp-pain,.hp-pain:nth-child(n){background:#fff;border-color:rgba(var(--c-ink-rgb),.08);box-shadow:0 16px 34px -28px rgba(var(--c-ink-rgb),.45)}
  .hp-outcomes > .hp-outcome,.hp-outcomes > .hp-outcome:nth-child(n),.hp-outcomes.rail > .hp-outcome,.hp-outcome:first-child{background:var(--c-lime);background-image:none;border-color:var(--c-lime);
    -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 16px 34px -28px rgba(var(--c-ink-rgb),.4);
    transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease),transform var(--dur-spring) var(--spring),box-shadow .3s var(--ease)}
  .hp-outcomes > .hp-outcome .hp-outcome__rule{color:var(--c-ink)}
  .hp-outcomes > .hp-outcome .hp-outcome__title,.hp-outcomes > .hp-outcome .hp-outcome__text,.hp-outcome .hp-outcome__title,.hp-outcome .hp-outcome__text{transition:color .3s var(--ease)}
}
@media (min-width:768px) and (hover:hover){
  .hp-pains.rail > .hp-pain:hover,.hp-pains > .hp-pain:nth-child(n):hover{background:var(--c-green-deep);border-color:var(--c-green-deep);color:#fff;transform:translateY(-4px);box-shadow:0 24px 44px -28px rgba(var(--c-ink-rgb),.55)}
  .hp-outcomes.rail > .hp-outcome:hover,.hp-outcomes > .hp-outcome:hover,.hp-outcomes > .hp-outcome:nth-child(n):hover{background:var(--c-green-deep);border-color:var(--c-green-deep);transform:translateY(-4px);box-shadow:0 24px 44px -28px rgba(var(--c-ink-rgb),.55)}
  .hp-outcomes > .hp-outcome:hover .hp-outcome__title,.hp-outcomes > .hp-outcome:hover .hp-outcome__text{color:#fff}
  .hp-outcomes > .hp-outcome:hover .hp-outcome__rule{color:var(--c-lime)}
  .hp-outcomes > .hp-outcome:hover::after{color:rgba(255,255,255,.35)}
}

/* R7.2 · Pre-footer form (every page except the lime course-detail form): a deep green card with white text, a lime
   button that turns white with brown text on hover; the band behind it stays mostly cream and only turns brown near
   the footer, so the two strong colours do not clash. */
.band--prefoot{background:linear-gradient(180deg,var(--c-cream) 0%,var(--c-cream) 46%,#efe6dc 60%,#c2b1a5 75%,#7a6559 89%,var(--c-ink) 100%)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) div.lead-form[class*="lead-form--"].lead-form--lime{background:var(--c-green-deep);border:0;color:#fff;
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 40px 80px -40px rgba(var(--c-ink-rgb),.6)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime :is(.lead-form__title,.lead-form__title em,.lead-form__upper,.lead-form__desc,.lead-form__head .eyebrow){color:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field{--field-accent:var(--c-lime);--field-ok:var(--c-lime);--field-bad:#ffd2cc;--field-rule:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__label{color:rgba(255,255,255,.82)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field:focus-within .field__label{color:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__control{color:#fff;caret-color:var(--c-lime);border-bottom-color:rgba(255,255,255,.5)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__control:focus{border-bottom-color:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field.is-valid .field__control:not(:focus){border-bottom-color:rgba(255,255,255,.6)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__control option{color:var(--c-ink);background:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__control:-webkit-autofill{-webkit-text-fill-color:#fff;-webkit-box-shadow:inset 0 0 0 1000px var(--c-green-deep);transition:background-color 9999s}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .field__chevron{color:rgba(255,255,255,.85)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime :is(.field__error,.field.is-invalid .field__label){color:#ffd2cc}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime :is(.form__note,.form__note a){color:rgba(255,255,255,.85)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .form-status{background:rgba(255,255,255,.12);color:#fff}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .form-status.is-success{box-shadow:inset 3px 0 0 var(--c-lime)}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime [data-consultation-form] .form-submit.btn[data-lead-submit]{
  --btn-bg:var(--c-lime);--btn-bd:var(--c-lime);--btn-fg:var(--c-ink);--btn-bg-h:#fff;--btn-bd-h:#fff;--btn-fg-h:var(--c-ink);text-shadow:none}
:is(.band--prefoot:not(.cd-register),.band--prefoot.cx-register) .lead-form--lime .form-submit:focus-visible{outline-color:#fff}

/* R7.3 · Phone menu (below 1024): liquid glass so the page stays visible behind it; each link is a pill — white with
   deep green text, the current page deep green with white text. The blur sits on the backdrop layer (a sibling of the
   header), because the header is a backdrop root (view-transition-name) and would blur nothing inside itself. */
@media (max-width:1023.98px){
  .nav-backdrop{background:rgba(255,250,243,.2);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5)}
  .site-header.nav-enhanced .primary-nav{background:linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,250,243,.3))}
  .site-header.nav-enhanced .primary-nav .menu{gap:10px;padding-top:14px;border-bottom:0}
  .site-header.nav-enhanced .primary-nav .menu li{border-top:0}
  .site-header.nav-enhanced .primary-nav .menu li::before{content:none}
  .site-header.nav-enhanced .primary-nav .menu a{min-height:60px;padding:14px 22px;border-radius:18px;background:#fff;color:var(--c-green-deep);font-size:clamp(20px,6.2vw,28px);
    box-shadow:inset 0 0 0 1px rgba(97,127,34,.16),0 12px 26px -20px rgba(var(--c-ink-rgb),.5);transition:background-color .25s var(--ease),color .25s var(--ease),transform .2s var(--ease)}
  .site-header.nav-enhanced .primary-nav .menu a:active{transform:scale(.98);opacity:1}
  .site-header.nav-enhanced .primary-nav .menu :is(.current-menu-item,.current_page_item) > a,.site-header.nav-enhanced .primary-nav .menu a[aria-current="page"]{background:var(--c-green-deep);color:#fff;box-shadow:0 14px 28px -18px rgba(97,127,34,.8)}
  .site-header.nav-enhanced .header-hotline{padding:0 16px;border-radius:999px;background:rgba(255,255,255,.7)}
}
@media (max-width:1023.98px) and (prefers-reduced-transparency:reduce){
  .nav-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(var(--c-ink-rgb),.4)}
  .site-header.nav-enhanced .primary-nav{background:var(--c-cream)}
}

/* R7.4 · Teacher profile (phones, iOS Safari): the sheet showed only the dimmed backdrop. A definite sheet height and
   auto-based flex items (no 0% flex-basis inside an auto-height column) so the content can never collapse to 0; the
   dialogs also move to <body> (main.js), out of the card grid. */
.tprofile__inner,.tprofile__scroll{flex:1 1 auto}
@media (max-width:767.98px){.tprofile[open]{height:88vh;height:88dvh;max-height:none}}

/* R7.5 · Home teacher portraits (iOS: the first row did not paint). The head-fit offset is a top position (% of the
   318:400 frame height = t × 318/400) instead of a negative percentage margin; same geometry. */
.hp-teacher__photo .hp-teacher__img{margin-top:0;top:calc(var(--t,0) * .795%)}

/* R7.6 · Brand marquees (footer mega type, "The Metaphoric Mind" outline in the audience band) keep moving under
   Reduce Motion, at half speed and on one line — same rule as the USP strip (client, 25 Sep: iPhones showed them still). */
@media (prefers-reduced-motion:reduce){
  .marquee[data-marquee-always]{flex-wrap:nowrap}
  .marquee[data-marquee-always] .marquee__track{flex-wrap:nowrap;min-width:max-content}
  .marquee[data-marquee-always].is-running .marquee__track{animation:tmm-marquee calc(var(--marquee-duration) * 2) linear infinite!important;animation-duration:calc(var(--marquee-duration) * 2)!important;animation-iteration-count:infinite!important}
  .marquee[data-marquee-always].is-running.is-paused .marquee__track{animation-play-state:paused}
}
