/* Components only reference tokens from tokens.css. */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-3));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}


:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  z-index: var(--z-overlay);
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  clip: auto;
  clip-path: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Line icons: every stroke follows `color` */

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: visible;
  vertical-align: middle;
}

/* Eyebrows: a short pink rule before a small label, no box */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  color: var(--color-brand);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-normal);
  text-transform: uppercase;
}

.eyebrow::before {
  display: none;
  width: 24px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--color-accent-bright);
  content: "";
}

.eyebrow--accent {
  color: var(--color-accent);
}

.eyebrow--inverse {
  color: var(--color-inverse-text);
}

.eyebrow--inverse::before {
  background: var(--color-sky-light);
}

.section-title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

.highlight {
  color: var(--color-brand);
}

.section-pad {
  padding-block: var(--space-section);
}

/* Glass speech bubbles with a line icon: blue ones are rounded squares, pink ones are round */

.glass-bubble {
  position: relative;
  display: grid;
  width: var(--bubble-size, 72px);
  height: var(--bubble-size, 72px);
  flex: 0 0 auto;
  place-items: center;
  border: var(--border-thin) solid var(--color-glass-border);
  border-radius: 26%;
  background: var(--bubble-bg, var(--gradient-glass-blue));
  color: var(--bubble-ink, var(--color-brand));
  box-shadow: var(--shadow-md);
}

.glass-bubble::after {
  position: absolute;
  bottom: -13px;
  left: 22%;
  width: 18px;
  height: 14px;
  background: var(--bubble-tail, var(--color-brand-tint));
  clip-path: polygon(0 0, 100% 0, 12% 100%);
  content: "";
}

/* aspect-ratio, not a % height: the <svg> has no viewBox, so a % height falls back to 150px while the grid sizes its row. */
.glass-bubble .icon {
  width: 52%;
  height: auto;
  aspect-ratio: 1;
}

.glass-bubble--pink {
  --bubble-bg: var(--gradient-glass-pink);
  --bubble-ink: var(--color-accent-bright);
  --bubble-tail: var(--color-accent-tint);
  border-radius: var(--radius-full);
}

.glass-bubble--tail-right::after {
  right: 22%;
  left: auto;
  clip-path: polygon(0 0, 100% 0, 88% 100%);
}

@keyframes float {
  50% {
    translate: 0 -10px;
  }
}

/* Medallion: round glossy badge for trophies and the success check */

.medallion {
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 32% 26%, var(--color-surface) 0%, var(--medallion-tint, var(--color-brand-tint)) 78%);
  color: var(--medallion-ink, var(--color-brand));
  box-shadow: 0 0 0 8px var(--color-glass-inverse-strong), var(--shadow-md);
}

/* Buttons and links */

/* Tags and labels are flat pills, like the buttons. */
.round-slide__status,
.video-drop__action {
  padding-inline: 0.9em;
  border-radius: var(--radius-full);
}

/* Flat pill buttons: one solid colour, no slant, no step. Hover deepens the colour. */
.button {
  --btn-face: transparent;
  --btn-face-hover: var(--btn-face);
  --btn-edge: 0 0 0 0 transparent;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0 var(--space-7);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--btn-face);
  box-shadow: var(--btn-edge);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-button);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

/* Hover only where a pointer can hover; on touch screens it would stick after a tap. */
@media (hover: hover) {
  .button:hover {
    background: var(--btn-face-hover);
  }
}

.button:active {
  background: var(--btn-face-hover);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.button--small {
  min-height: 42px;
  gap: var(--space-2);
  padding-inline: var(--space-5);
  font-size: var(--text-base);
}

.button--large {
  min-height: 60px;
  padding-inline: var(--space-8);
  font-size: var(--text-xl);
}

.button--brand {
  --btn-face: var(--color-brand);
  --btn-face-hover: var(--color-brand-hover);
  color: var(--color-on-brand);
}

.button--accent {
  --btn-face: var(--color-accent);
  --btn-face-hover: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.button--outline {
  --btn-face: var(--color-surface);
  --btn-face-hover: var(--color-brand-soft);
  --btn-edge: inset 0 0 0 var(--border-thick) var(--color-brand);
  color: var(--color-brand);
}

/* Register buttons: a band of light sweeps across, then rests. It starts off the button, so with reduced motion
   (animation switched off) the button is simply plain. */
.button--shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button--shine::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--color-glass), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(-160%) skewX(-20deg);
  animation: button-shine var(--shine-duration) var(--ease-in-out) infinite;
}

.button--shine:disabled::after {
  animation: none;
}

@keyframes button-shine {
  63%,
  100% {
    transform: translateX(320%) skewX(-20deg);
  }
}

.text-link {
  display: inline-flex;
  min-height: 44px; /* comfortable tap target */
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-heading);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}

.text-link:hover {
  text-decoration-color: var(--color-accent-bright);
}

.text-link span {
  transition: transform var(--duration-fast) var(--ease-out);
}

.text-link:hover span {
  transform: translate(3px, -2px);
}

.text-link--brand {
  color: var(--color-brand);
}

/* Header */

.site-header {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  border-bottom: var(--border-hairline) solid var(--color-border);
  background: var(--color-bg-translucent);
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: var(--space-5);
}

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: auto;
}

.wordmark__logo {
  display: block;
  width: 200px;
  height: auto;
}

.header__nav {
  display: flex;
  gap: var(--space-1);
}

.header__nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-control);
  color: var(--color-heading);
  font-family: var(--font-label);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.header__nav a:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
}

/* Three bars: the span is the middle one, its pseudo-elements the outer two; they cross into an X when open. */
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition:
    transform var(--duration-base) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero: a silver stage inside a blue frame, like the key visual */

/* Hero: the key visual banner, full bleed, then a bar with the three facts, the countdown and the call to action. */
.hero__banner {
  position: relative;
  background: #eef1f6;
}

.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Invisible hit area over the banner's own "THAM GIA NGAY!" button (measured on the 2023 × 777 artwork). */
.hero__banner-cta {
  position: absolute;
  top: 74.4%;
  left: 69.6%;
  width: 14.4%;
  height: 9.4%;
  border-radius: var(--radius-full);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

.hero__banner-cta::before {
  /* The painted button shrinks with the banner (~56×14 px on a phone): widen the tap area to at least 88×44 px around it. */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 88px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
  border-radius: inherit;
}

.hero__banner-cta:hover {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 70%), 0 0 24px rgb(240 190 60 / 60%);
}

.hero__banner-cta:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.hero__bar {
  border-bottom: var(--border-hairline) solid var(--color-border);
  background: var(--color-surface);
}

.hero__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-10);
  padding-block: var(--space-5);
}

.countdown {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: var(--space-5);
  color: var(--color-heading);
}

/* Vietnamese sentence, so it sets in the body face (Brauer Neue is for capitals and figures only). */
.countdown__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  text-wrap: balance;
}

.countdown__units {
  display: flex;
  gap: var(--space-2);
}

.countdown__units span {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
}

.countdown__units b {
  display: grid;
  min-width: 58px;
  height: 58px;
  padding-inline: var(--space-1);
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__units small {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* Tagline */

.tagline {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--space-section) var(--space-4);
  text-align: center;
}


.tagline__text {
  margin: 0;
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

.tagline__lead {
  max-width: 720px;
  text-wrap: pretty;
  margin: var(--space-8) auto 0;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* Why join */

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-9);
}

.why {
  position: relative;
  isolation: isolate;
}

/* Open columns on the page, no card. */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-9);
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

/* Carousel dots, shown on phones only. The active dot stretches into a pill in the step's colour. */
.why-dots {
  display: none;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.why-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  transition: width var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}

.why-dots span.is-active {
  width: 24px;
  background: var(--color-brand);
}

.why-dots span.is-active:nth-child(2) {
  background: var(--color-violet);
}

.why-dots span.is-active:nth-child(3) {
  background: var(--color-accent-bright);
}

/* Each step has its own student stepping out of Apollo's "A" arch, tinted with the step's colour. */
/* Champion card: the child stands free on the page, with apollo.edu.vn/ve-chung-toi doodles around them
   and a small caption at the side. */
.why-card {
  --step-ink: var(--color-brand);
  --step-tint: var(--color-brand-tint);
  --step-soft: var(--color-brand-soft);
  --blob-shape: 58% 42% 0 0 / 100% 84% 0 0;
  --blob-shape-back: 44% 56% 0 0 / 84% 100% 0 0;
  --portrait-width: 70%;
  --portrait-top: 8%;
  --portrait-left: 33%;
}

.why-card:nth-child(2) {
  --step-ink: var(--color-violet);
  --step-tint: var(--color-violet-tint);
  --step-soft: var(--color-violet-soft);
  --blob-shape: 44% 56% 0 0 / 84% 100% 0 0;
  --blob-shape-back: 56% 44% 0 0 / 100% 82% 0 0;
  --portrait-width: 58%;
  --portrait-top: 17%;
  --portrait-left: 30%;
}

.why-card:nth-child(3) {
  --step-ink: var(--color-accent);
  --step-tint: var(--gold-300);
  --step-soft: var(--gold-50);
  --blob-shape: 54% 46% 0 0 / 100% 88% 0 0;
  --blob-shape-back: 42% 58% 0 0 / 86% 100% 0 0;
  --portrait-width: 58%;
  --portrait-top: 13%;
  --portrait-left: 30%;
}

.why-card__visual {
  position: relative;
  container: why-visual / inline-size;
}

.why-card__stage {
  position: relative;
  aspect-ratio: 6 / 5;
}

/* Head and shoulders: sized per child so the faces match; the stage trims them at the same chest height. */
.why-card__visual .student {
  position: absolute;
  top: var(--portrait-top);
  left: var(--portrait-left);
  width: var(--portrait-width);
  max-width: none;
  height: auto;
  translate: -50% 0;
}

/* An uneven soft hill behind each child in the card's colour, with a paler one offset behind it.
   The child's head and sleeves overlap its edge, and its flat base meets the child's cut-off line. */
.why-card__stage {
  isolation: isolate;
  clip-path: inset(-100% -100% 0 -100%); /* trims only the bottom edge */
}

.why-card__stage::before,
.why-card__stage::after {
  position: absolute;
  z-index: -1;
  bottom: 0;
  content: "";
}

.why-card__stage::before {
  top: 24%;
  left: 0;
  width: 62%;
  border-radius: var(--blob-shape);
  background: var(--step-tint);
}

.why-card__stage::after {
  z-index: -2;
  top: 12%;
  left: 2%;
  width: 66%;
  border-radius: var(--blob-shape-back);
  background: var(--step-soft);
}

/* Position and size come from each element's inline style, so a doodle can be moved without touching the CSS. */
.why-doodle {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Flipped so the shooting star flies up and away from the child. */
.why-doodle--flip {
  transform: scaleX(-1);
}

/* Small caption beside the child. */
.why-card__champion {
  position: absolute;
  bottom: 4%;
  left: 68%;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-serif);
  font-size: calc(var(--text-caption) * 0.8);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}

.why-card__name {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  font-size: var(--text-sm);
}

.why-card__title {
  font-weight: var(--weight-semibold);
  color: var(--step-ink);
}

/* Measured on the card, not the screen. On narrow cards the child gets smaller and moves left so each caption line
   still fits on one row; the name follows the card's width, sized so the longest name just fits the column. */
@container why-visual (max-width: 349px) {
  .why-card__stage {
    aspect-ratio: 4 / 3;
  }

  .why-card__stage::before {
    width: 52%;
  }

  .why-card__stage::after {
    width: 56%;
  }

  .why-card__visual .student {
    top: auto;
    bottom: 0;
    left: 27%;
    width: calc(var(--portrait-width) * 0.84);
  }

  .why-card__champion {
    left: 56%;
  }

  .why-card__name {
    font-size: min(var(--text-caption), 5.2cqi);
  }
}

.why-card h3 {
  margin: var(--space-6) 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

/* No heading above the cards any more, so the section sits closer to the tagline and to the prizes below. */
.why.section-pad {
  padding-block: var(--space-6) var(--space-7);
}

.journey.section-pad {
  padding-top: calc(var(--space-7) + var(--wave-height));
}

/* Journey: blue → violet → pink follows the children from the youngest group to the oldest */

[data-age="4-7"],
[data-panel="4-7"] {
  --age-color: var(--color-brand);
  --age-deep: var(--color-brand-deep);
  --age-soft: var(--color-brand-soft);
  --age-tint: var(--color-brand-tint);
}

[data-age="8-10"],
[data-panel="8-10"] {
  --age-color: var(--color-violet);
  --age-deep: var(--color-violet-deep);
  --age-soft: var(--color-violet-soft);
  --age-tint: var(--color-violet-tint);
}

[data-age="11-13"],
[data-panel="11-13"] {
  --age-color: var(--color-accent);
  --age-deep: var(--color-accent-deep);
  --age-soft: var(--color-accent-soft);
  --age-tint: var(--color-accent-tint);
}

.journey {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: calc(var(--space-section) + var(--wave-height));
  background: var(--color-wave);
  -webkit-mask: var(--wave-mask-bottom);
  mask: var(--wave-mask-bottom);
}

/* Apollo's white line doodles in the page margins, as on apollo.edu.vn/ve-chung-toi. */
.journey::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    url("/landings/the-debaters/assets/img/pattern/doodle-pen.png") left max(var(--space-4), calc(50% - 700px)) top 9% / 96px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-compass.png") left max(var(--space-2), calc(50% - 710px)) top 58% / 64px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-bird.png") left max(var(--space-6), calc(50% - 680px)) top 86% / 40px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-search.png") right max(var(--space-4), calc(50% - 700px)) top 40% / 48px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-earth.png") right max(var(--space-2), calc(50% - 712px)) top 76% / 96px auto no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

.journey::after {
  position: absolute;
  z-index: -1;
  right: max(var(--space-4), calc(50% - 660px));
  top: calc(var(--space-10) + 60px);
  content: "";
  pointer-events: none;
  width: clamp(80px, 8vw, 120px);
  aspect-ratio: 76 / 84;
  background: url("/landings/the-debaters/assets/img/pattern/star-cluster.svg") center / contain no-repeat;
}

.journey__heading {
  max-width: 960px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.journey__picker {
  position: relative;
  margin-bottom: var(--space-7);
}

/* Tab độ tuổi; từ 29/11/2026 dùng chung cho 2 tab Coaching / The Audition của trang Vòng 2 (.schedule-tab, chọn bằng
   aria-selected thay cho .is-active). */
.age-tabs,
.schedule-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: var(--space-1);
  margin-inline: auto;
  border-bottom: var(--border-thick) solid var(--color-border-strong);
  padding-bottom: var(--space-2);
}

.age-tab,
.schedule-tab {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
  text-transform: uppercase;
}

/* Flat pill, like the buttons. */
.age-tab::before,
.schedule-tab::before {
  position: absolute;
  z-index: -1;
  inset: 0 3px;
  border-radius: var(--radius-full);
  background: transparent;
  content: "";
  transition: background var(--duration-fast) var(--ease-out);
}

.age-tab:hover,
.schedule-tab:hover {
  color: var(--age-color);
}

.age-tab:hover::before,
.schedule-tab:hover::before {
  background: var(--age-soft);
}

.age-tab.is-active,
.schedule-tab[aria-selected="true"] {
  color: var(--color-inverse-text);
}

.age-tab.is-active::before,
.schedule-tab[aria-selected="true"]::before {
  background: var(--age-color);
}

.age-tab__dot,
.schedule-tab__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--age-color);
}

.age-tab.is-active .age-tab__dot,
.schedule-tab[aria-selected="true"] .schedule-tab__dot {
  background: var(--color-surface);
}

.journey-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  animation: panel-in var(--duration-slow) var(--ease-out) both;
}

/* Side by side, the roadmap runs taller than the photo, so the photo stays in view while parents read down it. */
@media (min-width: 901px) {
  .journey-card__photo {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

/* No box, as on apollo.edu.vn: the cut-out pair stands on the section, the age range sits huge and pale behind them. */
.journey-card__photo {
  position: relative;
  isolation: isolate;
  align-self: start;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--color-heading);
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* Soft white stage light behind the pair. */
.photo-frame::before {
  position: absolute;
  inset: 6% 4% 0;
  background: radial-gradient(ellipse 50% 50% at 50% 56%, rgb(255 255 255 / 70%), rgb(255 255 255 / 20%) 55%, transparent 75%);
  content: "";
  pointer-events: none;
}

/* The bottom and the photos' cropped sides fade into the section instead of ending in a hard line. */
.journey-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  /* The cut-outs only touch the photo's bottom and sides (raised hands stay inside the frame),
     so only those crop lines fade; each age group sets which sides it needs. */
  /* Eased (smoothstep) stops instead of a straight ramp, so the eye finds no line where the fade begins. */
  --l: var(--fade-left-width, 0%);
  --r: var(--fade-right-width, 0%);
  --fade-x: linear-gradient(to right,
    rgb(0 0 0 / 0) 0,
    rgb(0 0 0 / 0.03) calc(var(--l) * 0.1),
    rgb(0 0 0 / 0.1) calc(var(--l) * 0.2),
    rgb(0 0 0 / 0.22) calc(var(--l) * 0.3),
    rgb(0 0 0 / 0.35) calc(var(--l) * 0.4),
    rgb(0 0 0 / 0.5) calc(var(--l) * 0.5),
    rgb(0 0 0 / 0.65) calc(var(--l) * 0.6),
    rgb(0 0 0 / 0.78) calc(var(--l) * 0.7),
    rgb(0 0 0 / 0.9) calc(var(--l) * 0.8),
    rgb(0 0 0 / 0.97) calc(var(--l) * 0.9),
    #000 var(--l),
    #000 calc(100% - var(--r)),
    rgb(0 0 0 / 0.97) calc(100% - var(--r) * 0.9),
    rgb(0 0 0 / 0.9) calc(100% - var(--r) * 0.8),
    rgb(0 0 0 / 0.78) calc(100% - var(--r) * 0.7),
    rgb(0 0 0 / 0.65) calc(100% - var(--r) * 0.6),
    rgb(0 0 0 / 0.5) calc(100% - var(--r) * 0.5),
    rgb(0 0 0 / 0.35) calc(100% - var(--r) * 0.4),
    rgb(0 0 0 / 0.22) calc(100% - var(--r) * 0.3),
    rgb(0 0 0 / 0.1) calc(100% - var(--r) * 0.2),
    rgb(0 0 0 / 0.03) calc(100% - var(--r) * 0.1),
    rgb(0 0 0 / 0) 100%);
  --fade-y: linear-gradient(to bottom,
    #000 62%,
    rgb(0 0 0 / 0.97) 65.8%,
    rgb(0 0 0 / 0.9) 69.6%,
    rgb(0 0 0 / 0.78) 73.4%,
    rgb(0 0 0 / 0.65) 77.2%,
    rgb(0 0 0 / 0.5) 81%,
    rgb(0 0 0 / 0.35) 84.8%,
    rgb(0 0 0 / 0.22) 88.6%,
    rgb(0 0 0 / 0.1) 92.4%,
    rgb(0 0 0 / 0.03) 96.2%,
    rgb(0 0 0 / 0) 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-y), var(--fade-x);
  mask-composite: intersect;
}

/* Which photo edges cut through a person: 4–7 only on the left, the others on both sides. */
[data-panel] .journey-card__image {
  --fade-left-width: 30%;
}

[data-panel="8-10"] .journey-card__image,
[data-panel="11-13"] .journey-card__image {
  --fade-right-width: 30%;
}

.journey-card__age {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  color: color-mix(in srgb, var(--age-color) 16%, transparent);
  font-family: var(--font-display);
  font-size: clamp(7rem, 4.5rem + 7vw, 12rem);
  font-weight: var(--weight-extrabold);
  line-height: 0.8;
}

.journey-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-block: var(--space-5);
}

/* Roadmap: the three rounds as a winding path, top to bottom, so parents see the whole journey at once.
   Each round is a card with its own icon (camera → microphone → trophy); the stops alternate sides
   and a dashed curve in the age colour carries the child from one to the next. */
.roadmap {
  --roadmap-gap: var(--space-8);
  --node-size: 52px;
  display: grid;
  gap: var(--roadmap-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.round-slide {
  position: relative;
  display: grid;
  grid-template-columns: var(--node-size) minmax(0, 1fr);
  grid-template-areas: "node card";
  align-items: start;
  gap: var(--space-4);
}

/* Every other stop sits on the right, so the path swings from side to side. */
.round-slide:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) var(--node-size);
  grid-template-areas: "card node";
}

/* The road joining the stops: one smooth SVG path drawn by script.js from the real stop positions,
   a soft white road with a dashed line in the age colour down its middle. It draws itself in
   the first time the roadmap comes into view. The SVG sits first in .journey-card__body,
   so the stops (positioned, later in the page) paint over it. */
.journey-card__body {
  position: relative;
}

.roadmap__road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.roadmap__road path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roadmap__road-base {
  stroke: rgb(255 255 255 / 75%);
  stroke-width: 12;
}

.roadmap__road-line {
  stroke: var(--age-color);
  stroke-width: 2.5;
  stroke-dasharray: 2 9;
  opacity: 0.55;
  transition: opacity var(--duration-slow) var(--ease-out) 900ms;
}

.journey-card__body.is-drawing .roadmap__road-base {
  transition: stroke-dashoffset 1400ms var(--ease-in-out);
}

.journey-card__body.is-drawing .roadmap__road-line {
  opacity: 0;
}
/* The stop: the page's glass speech bubble with a line icon, tinted with the age colour;
   its tail points back to the path, and the round number sits in a small badge. */
.round-slide__node {
  --bubble-size: var(--node-size);
  --bubble-bg: linear-gradient(150deg, var(--color-surface) 10%, var(--age-tint) 100%);
  --bubble-ink: var(--age-color);
  --bubble-tail: var(--age-tint);
  z-index: 1;
  grid-area: node;
}

.round-slide:nth-child(even) .round-slide__node::after {
  right: 22%;
  left: auto;
  clip-path: polygon(0 0, 100% 0, 88% 100%);
}

/* The final stop gets the gold sparkle of the key visual: where the path leads. */
.round-slide:last-child .round-slide__node::before {
  position: absolute;
  top: -14px;
  left: -12px;
  width: 18px;
  height: 18px;
  background: var(--sparkle-gold) center / contain no-repeat;
  content: "";
}

/* The round under way glows gently; finished rounds fade back. */
.round-slide.is-current .round-slide__node {
  animation: stop-pulse 2.4s var(--ease-in-out) infinite;
}

@keyframes stop-pulse {
  50% {
    box-shadow: var(--shadow-md), 0 0 0 8px var(--age-soft);
  }
}
.round-slide.is-done .round-slide__content {
  opacity: 0.6;
}

/* Each round reads as open text beside its stop, no box around it. */
.round-slide__content {
  position: relative;
  grid-area: card;
  min-width: 0;
}
/* Round and dates, set like the page's eyebrows. */
.round-slide__meta,
.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  /* Room under the "Đang diễn ra" badge when it wraps below the dates on a phone (the all-caps title fills its line). */
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.round-slide__meta b {
  color: var(--age-color);
}
.round-slide__status {
  padding: 2px var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-button);
  line-height: 1.5;
  text-transform: uppercase;
}

.round-slide__status.is-done {
  background: var(--color-track);
  color: var(--color-text-muted);
}

.round-slide h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

/* The English round name as a chip ("Find your voice"). */
.round-slide h3 span {
  display: inline-block;
  margin-left: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--age-soft);
  color: var(--age-color);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-normal);
  vertical-align: middle;
}

/* One short paragraph per round: the chapter of the child's story. */
.round-slide__story {
  max-width: 52ch;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.journey-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-7);
}

/* Registration */

/* Light blue band with a swell at the bottom, like the sections on apollo.edu.vn. */
.register {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--color-wave);
  -webkit-mask: var(--wave-mask-bottom);
  mask: var(--wave-mask-bottom);
}

/* Wave sections chain without a gap: each one slides up under the wave of the one above,
   so the dips of that wave show the next colour instead of the page background.
   Order on the page: prizes (cream) → journey (light blue) → register (light blue). */
.prizes {
  z-index: 3;
}

.journey {
  z-index: 2;
  margin-top: calc(var(--wave-height) * -1);
}

.register {
  z-index: 1;
  margin-top: calc(var(--wave-height) * -1);
}

.register.section-pad {
  padding-block: calc(var(--space-section) + var(--wave-height));
}

.register__head {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

/* Always exactly two lines: each line stays whole and the type shrinks on narrow phones to fit. */
.register__title {
  font-size: min(var(--text-3xl), 7.4vw);
}

.register__title > span {
  white-space: nowrap;
}

.register__head > p:not(.eyebrow) {
  max-width: 580px;
  margin: var(--space-5) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.registration-form,
.form-success {
  min-width: 0;
  color: var(--color-text);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-5);
}

.field {
  min-width: 0;
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.registration-form label,
.registration-form legend {
  display: block;
  margin: 0 0 var(--space-2);
  padding: 0;
  color: var(--color-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.registration-form .req {
  color: var(--color-danger);
}

.registration-form input:not([type="radio"], [type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-5);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-full);
  outline: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-base);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.registration-form input::placeholder {
  color: var(--color-text-placeholder);
}

.registration-form input:not([type="radio"], [type="checkbox"]):focus {
  border-color: var(--color-brand);
  background: var(--color-surface);
  box-shadow: var(--shadow-focus);
}

.registration-form input[aria-invalid="true"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

/* Province and centre boxes (Apollo pupils): same look as the text fields, with one arrow for both. */
.field__control {
  position: relative;
}

.field__control::after {
  position: absolute;
  top: 26px;
  right: var(--space-5);
  width: 9px;
  height: 9px;
  border-right: var(--border-thick) solid var(--color-text-muted);
  border-bottom: var(--border-thick) solid var(--color-text-muted);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.registration-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-8) 0 var(--space-5);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-full);
  outline: 0;
  appearance: none;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--text-base);
  text-overflow: ellipsis;
}

.registration-form select:focus {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
}

.registration-form select[aria-invalid="true"] {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.registration-form .field__control input {
  padding-right: var(--space-8);
  text-overflow: ellipsis;
}

.registration-form input:disabled {
  background: var(--color-surface-muted);
  cursor: not-allowed;
}

.center-list {
  position: absolute;
  z-index: var(--z-floating);
  top: calc(100% + var(--space-1));
  right: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 268px;
  margin: 0;
  padding: var(--space-1);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.center-option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

.center-option:hover,
.center-option.is-active {
  background: var(--color-brand-soft);
}

.center-empty {
  padding: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

/* First step of the pop-up: Apollo or Nguyễn Bỉnh Khiêm. Two cards; the rest of the form appears once one is picked. */
.audience-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.registration-form .audience-option {
  position: relative;
  margin: 0;
}

.audience-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.audience-option span {
  display: grid;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.audience-option b {
  color: var(--color-heading);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

.audience-option small {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
}

.audience-option span:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.audience-option input:checked + span {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}

.audience-option input:checked + span b {
  color: var(--color-brand);
}

.audience-option input:focus-visible + span {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.audience-options.is-invalid span {
  border-color: var(--color-danger);
}

.form-details {
  margin-top: var(--space-2);
}

.age-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.registration-form .age-option {
  position: relative;
  margin: 0;
}

.age-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

/* Age choices are pills, each with a dot in its group colour; the chosen one fills with that colour. */
.age-option span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  text-transform: uppercase;
}

.age-option span::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--age-color);
  content: "";
}

.age-option span:hover {
  border-color: var(--age-color);
  background: var(--age-soft);
  color: var(--age-color);
}

.age-option input:checked + span {
  border-color: var(--age-color);
  background: var(--age-color);
  color: var(--color-inverse-text);
  box-shadow: var(--shadow-sm);
}

.age-option input:checked + span::before {
  background: var(--color-surface);
}

.age-option input:focus-visible + span {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.age-options.is-invalid span {
  border-color: var(--color-danger);
}

.field__error {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-danger);
  font-weight: var(--weight-semibold);
}

/* Video upload: the transparent file input covers the whole zone */

.video-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: var(--border-thick) dashed var(--color-brand-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.video-drop:hover,
.video-drop.is-dragging {
  border-style: solid;
  border-color: var(--color-brand);
}

.video-drop.is-dragging {
  background: var(--color-brand-tint);
  box-shadow: var(--shadow-focus);
}

.video-drop:focus-within {
  border-style: solid;
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
}

.video-drop.has-file {
  border-style: solid;
  border-color: var(--color-brand);
  background: var(--color-surface);
}

.video-drop.is-invalid {
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

.video-drop__input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.video-drop__icon {
  --bubble-size: 56px;
}

.video-drop__icon::after {
  display: none;
}

.video-drop__text {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.video-drop__title {
  color: var(--color-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  overflow-wrap: anywhere;
}

.video-drop__hint {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.video-drop__action {
  flex: 0 0 auto;
  padding: var(--space-3) var(--space-5);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  white-space: nowrap;
}

.video-preview {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-inverse-bg);
}

/* Touch screens have nothing to drag from. */
@media (pointer: coarse) {
  .video-drop__drag {
    display: none;
  }
}

.upload-progress {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.upload-progress__bar {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--color-track);
}

.upload-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-brand);
  transition: width var(--duration-fast) linear;
}

.upload-progress__hint {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  text-wrap: balance;
}

.form-notice {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-xs);
  background: var(--color-brand-soft);
  color: var(--color-heading);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.form-notice--tip {
  margin: var(--space-3) 0 0;
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* 20/11/2026: đang gửi / tải video thì hiện ngay trên ô video "Vui lòng chờ đến khi video được tải lên hoàn tất." */
.upload-wait {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

/* 20/11/2026: video tải dở lần trước (đóng trang giữa chừng): mời chọn lại đúng video để tải tiếp. */
.upload-resume {
  margin: 0 0 var(--space-3);
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.upload-resume__text {
  margin: 0;
  font-weight: var(--weight-semibold);
}

.upload-resume__skip {
  min-height: 40px;
  margin-top: var(--space-1);
  color: var(--color-brand);
  text-align: left;
  white-space: normal;
}

/* Off-screen rather than display: none, which some bots skip. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin: var(--space-1) 0 var(--space-6);
}

.registration-form .consent__label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  cursor: pointer;
}

.consent__label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-brand);
}

.consent__label input[aria-invalid="true"] {
  outline: 2px solid var(--color-danger);
  outline-offset: 2px;
}

.consent__link {
  padding-inline: 2px;
  border-radius: var(--radius-xs);
  color: var(--color-brand);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background var(--duration-fast) var(--ease-out);
}

.consent__link:hover,
.consent__link:focus-visible {
  color: var(--color-brand-hover);
  background: var(--color-brand-soft);
}

.consent .field__error {
  margin-left: 32px;
}

.form-error {
  margin: 0 0 var(--space-3);
}

.button--submit {
  width: 100%;
}

.form-success:focus {
  outline: 0;
}

.form-success__mark {
  width: 84px;
  height: 84px;
  margin: var(--space-2) 0 var(--space-6) var(--space-2);
  --medallion-ink: var(--color-brand);
  box-shadow: 0 0 0 8px var(--color-brand-soft), var(--shadow-md);
}

.form-success__mark .icon {
  width: 40px;
  height: 40px;
}

.form-success .eyebrow {
  margin-bottom: var(--space-4);
}

.form-success h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.form-success__message {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.form-success__summary {
  display: grid;
  margin: 0 0 var(--space-5);
  overflow: hidden;
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.form-success__summary > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.form-success__summary > div:nth-child(odd) {
  background: var(--color-surface);
}

.form-success__summary dt {
  color: var(--color-text-muted);
}

.form-success__summary dd {
  margin: 0;
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}

.form-success__summary > div.form-success__code {
  background: var(--color-brand-soft);
}

.form-success__code dd {
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-button);
  line-height: 1;
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.form-success__actions .button {
  flex: 1 1 auto;
}

.steps-panel {
  min-width: 0;
  max-width: 900px;
}

/* Two steps side by side; the form itself opens in a pop-up from the button under them. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  position: absolute;
  top: var(--space-6);
  bottom: var(--space-6);
  left: 21px;
  display: none;
  border-left: var(--border-thin) dashed var(--color-border-strong);
  content: "";
}

.register__cta {
  margin-top: var(--space-8);
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: start;
  align-items: start;
  gap: var(--space-4);
}

.steps__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--color-surface);
  border-radius: var(--radius-full);
  background: var(--step-color, var(--color-brand));
  color: var(--color-on-brand);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  box-shadow: var(--shadow-sm);
}

/* Blue → pink, like the age groups. */
.steps li:nth-child(2) {
  --step-color: var(--color-accent-bright);
}

.steps h3,
.steps h4 {
  margin: var(--space-1) 0;
  color: var(--color-heading);
  font-family: var(--font-label);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

.steps p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.steps__link {
  font-size: var(--text-sm);
}

/* Prizes: warm cream right after the intro cards, with a swell on both edges; the white cards carry the content. */

.prizes {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--space-7) + var(--wave-height)) calc(var(--space-section) + var(--wave-height));
  background: var(--color-cream);
  -webkit-mask: var(--wave-mask-both);
  mask: var(--wave-mask-both);
}

.prizes .container {
  position: relative;
  z-index: 1;
}

/* Heading on the left, the gift bundle (tablet, e-reader, kids' watches) bursting out on the right. */
.prizes__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.prizes__gifts {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

/* The bundle pulses like it's about to burst open, with a warm glow pulsing behind it. */
.prizes__gifts img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgb(178 122 20 / 25%));
  animation: gift-breathe 2.4s var(--ease-in-out) infinite;
}

.prizes__glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 102 / 70%), rgb(255 214 102 / 25%) 55%, transparent);
  animation: gift-glow 2.4s var(--ease-in-out) infinite;
  pointer-events: none;
}

/* Gold and white sparkles blink around the box, each on its own beat. */
.twinkle {
  position: absolute;
  z-index: 2;
  width: var(--size, 22px);
  aspect-ratio: 1;
  background: var(--sparkle, var(--sparkle-gold)) center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgb(255 214 102 / 90%));
  animation: twinkle var(--beat, 1.6s) var(--ease-in-out) var(--delay, 0s) infinite;
  pointer-events: none;
}

.twinkle:nth-of-type(1) { top: 6%; left: 22%; --size: 30px; }
.twinkle:nth-of-type(2) { top: 0; right: 30%; --size: 18px; --delay: 0.5s; --sparkle: var(--sparkle-white); }
.twinkle:nth-of-type(3) { top: 30%; right: 0; --size: 26px; --delay: 1s; }
.twinkle:nth-of-type(4) { bottom: 22%; left: 2%; --size: 20px; --delay: 0.8s; --sparkle: var(--sparkle-white); }
.twinkle:nth-of-type(5) { bottom: 6%; right: 16%; --size: 28px; --delay: 1.3s; }
.twinkle:nth-of-type(6) { top: 46%; left: 40%; --size: 16px; --delay: 0.2s; --sparkle: var(--sparkle-white); }
.twinkle:nth-of-type(7) { top: 14%; left: 50%; --size: 22px; --delay: 0.9s; --beat: 1.3s; }
.twinkle:nth-of-type(8) { top: 60%; left: 10%; --size: 24px; --delay: 0.4s; --beat: 1.9s; }
.twinkle:nth-of-type(9) { top: 58%; right: 4%; --size: 16px; --delay: 1.1s; --beat: 1.4s; --sparkle: var(--sparkle-white); }
.twinkle:nth-of-type(10) { bottom: 0; left: 36%; --size: 20px; --delay: 0.6s; --beat: 1.7s; }
.twinkle:nth-of-type(11) { top: 22%; left: 6%; --size: 14px; --delay: 1.4s; --beat: 1.2s; --sparkle: var(--sparkle-white); }
.twinkle:nth-of-type(12) { top: 40%; right: 26%; --size: 18px; --delay: 0.1s; --beat: 1.5s; --sparkle: var(--sparkle-white); }

@keyframes gift-breathe {
  50% {
    scale: 1.1;
  }
}

@keyframes gift-glow {
  0%, 100% {
    opacity: 0.45;
    scale: 0.9;
  }
  50% {
    opacity: 1;
    scale: 1.12;
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    scale: 0.3;
    rotate: 0deg;
  }
  45% {
    opacity: 1;
    scale: 1.15;
    rotate: 45deg;
  }
  60% {
    opacity: 0.9;
    scale: 1;
  }
}

/* Prize cards: three equal, compact cards (Nhì · Nhất · Ba, the first prize in the middle).
   Each has one header row (medal, title, gift picture), then a tight list of everything the prize includes.
   Colour comes from the medal's metal only, so the cards read calm and premium. */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: var(--space-5);
}

.prize-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "medal title gift"
    "list  list  list";
  align-content: start;
  align-items: center;
  column-gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border-thin) solid var(--metal-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 50% at 50% 0%, var(--metal-soft), transparent 70%),
    var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.prize-card--grand {
  --metal: var(--gold-600);
  --metal-soft: var(--gold-50);
  --metal-line: var(--gold-300);
  box-shadow: 0 0 0 4px var(--gold-50), 0 18px 40px rgb(201 151 28 / 20%);
}

.prize-card--first {
  --metal: var(--silver-700);
  --metal-soft: var(--silver-100);
  --metal-line: var(--silver-300);
}

.prize-card--third {
  --metal: var(--bronze-600);
  --metal-soft: var(--bronze-50);
  --metal-line: var(--bronze-300);
}

.prize-card__stage {
  grid-area: medal;
  display: grid;
  place-items: center;
}

.prize-card__medal {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgb(11 31 77 / 18%));
  animation: float var(--float-duration) var(--ease-in-out) infinite;
}

.prize-card--first .prize-card__medal {
  animation-delay: -2s;
}

.prize-card--third .prize-card__medal {
  animation-delay: -4s;
}

.prize-card__title {
  grid-area: title;
  margin: 0;
  color: var(--metal);
  font-family: var(--font-label);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

/* The prize's headline gift (tablet, e-reader, smartwatch), at the right end of the header row. */
.prize-card__gift {
  grid-area: gift;
  display: block;
  width: auto;
  max-width: 96px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgb(11 31 77 / 16%));
}

/* Everything a prize includes, the scholarship first, as one list of equal items:
   an icon in the medal's metal, then the gift. */
.prize-card__gifts {
  grid-area: list;
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: var(--space-4) 0 0;
  border-top: var(--border-hairline) solid var(--metal-line);
  list-style: none;
}

.prize-card__gifts li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.prize-card__gifts .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: var(--radius-full);
  background: var(--metal-soft);
  color: var(--metal);
}

.prize-card__gifts b {
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

/* The scholarship's footnote: "(*) Áp dụng cho khóa học … tháng", under the list. */
.prize-card__note {
  grid-column: 1 / -1;
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-style: italic;
  line-height: 1.45;
}
/* FAQ */

.faq {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.faq__grid,
.news__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-11);
}

.faq-list,
.news-list {
  display: grid;
  align-content: start;
  border-top: var(--border-thick) solid var(--color-heading);
}

.faq-item {
  border-bottom: var(--border-hairline) solid var(--color-border-strong);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item:hover summary,
.faq-item[open] summary {
  color: var(--color-brand);
}

.faq-item[open] {
  border-bottom-color: var(--color-brand);
}

.faq-item summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
  color: var(--color-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-item summary::-webkit-details-marker,
.schedule-zoom summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  transition:
    transform var(--duration-base) var(--ease-spring),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.faq-item[open] summary span,
.schedule-zoom[open] summary span {
  background: var(--color-brand);
  color: var(--color-on-brand);
  transform: rotate(45deg);
}

.faq-item > p {
  max-width: 680px;
  margin: 0 0 var(--space-5);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-criteria {
  max-width: 680px;
  margin-bottom: var(--space-5);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-criteria h3,
.faq-criteria h4,
.faq-criteria h5 {
  margin: var(--space-4) 0 var(--space-1);
  color: var(--color-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}

.faq-criteria h3 {
  margin-top: 0;
}

.faq-criteria h4 {
  color: var(--color-brand);
}

.faq-criteria h5 {
  margin-top: var(--space-3);
  font-weight: var(--weight-semibold);
}

.faq-criteria p {
  margin: 0 0 var(--space-2);
}

.faq-item > .text-link {
  margin: calc(var(--space-2) * -1) 0 var(--space-5);
}

/* Tin tức (01/12/2026): dẫn sang bài trên blog apollo.edu.vn/tin-tuc-va-su-kien. Cùng bố cục mục Hỏi đáp (.faq__grid,
   .faq-list ở trên): tiêu đề bên trái, danh sách mở bên phải, mỗi bài một dòng ảnh + chữ, không thẻ trắng.
   Cả dòng bấm được: link ở tiêu đề, ::after của link phủ kín dòng. Rê chuột thì tiêu đề và vạch dưới đổi xanh như Hỏi đáp. */
.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--space-7);
  padding-block: var(--space-6);
  border-bottom: var(--border-hairline) solid var(--color-border-strong);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.news-item:hover {
  border-bottom-color: var(--color-brand);
}

.news-item__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
}

.news-item__meta b {
  color: var(--color-brand);
}

.news-item__title {
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1.35;
  text-wrap: pretty;
  transition: color var(--duration-fast) var(--ease-out);
}

.news-item:hover .news-item__title {
  color: var(--color-brand);
}

.news-item__link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.news-item__link:focus-visible {
  outline: none;
}

.news-item__link:focus-visible::after {
  border-radius: var(--radius-md);
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.news-item__excerpt {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.news-item__more {
  margin-top: var(--space-1);
}

.news-item:hover .news-item__more {
  text-decoration-color: var(--color-accent-bright);
}

.news-item:hover .news-item__more span {
  transform: translate(3px, -2px);
}

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-5);
  }

  .news-item__title {
    font-size: var(--text-lg);
  }
}

/* Student cut-outs from apollo.edu.vn/ve-chung-toi, each standing in the empty side of a section. */
.student {
  display: block;
  height: auto;
  pointer-events: none;
}

/* Heading and student share one row, in normal flow, so the student ends above the form and steps. */
.register__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

.register__intro .register__head {
  margin-bottom: 0;
}

/* Half-body crop: the cut at the waist fades into the cream instead of ending in a line. */
.student--register {
  width: clamp(220px, 22vw, 300px);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* Lời mời riêng cho phụ huynh có con được đề cử (?sid=, 02/11/2026) – bố cục theo mẫu tailored.html.
   Khối data-tailored ẩn sẵn; body.is-tailored (script.js, khi sid hợp lệ) hiện chúng và ẩn các khối đại trà dưới đây. */
.is-tailored .hero__bar,
.is-tailored .prizes,
.is-tailored #register,
.is-tailored .faq,
.is-tailored .header__nav a:not([data-tailored]) {
  display: none;
}

/* Trang đại trà: Journey trượt lên dưới sóng của khối giải thưởng. Lời mời ẩn khối đó nên khối 3 thẻ mang sóng thay,
   chừa thêm chiều cao sóng ở đáy để Journey không che chữ. */
.is-tailored .why.section-pad {
  z-index: 3;
  padding-bottom: calc(var(--space-7) + var(--wave-height));
  background: var(--color-bg);
  -webkit-mask: var(--wave-mask-bottom);
  mask: var(--wave-mask-bottom);
}

/* Hành trình và khối xác nhận cùng màu xanh: bỏ đoạn nối sóng (không nhìn thấy) để không còn khoảng trống lớn. */
.is-tailored .journey.section-pad {
  padding-bottom: var(--space-6);
  -webkit-mask: none;
  mask: none;
}

.is-tailored .tl-participate.section-pad {
  margin-top: 0;
  padding-top: var(--space-7);
  padding-bottom: calc(var(--space-8) + var(--wave-height));
}

.is-tailored .tl-recognition {
  padding-bottom: var(--space-6);
}

/* Lời mời không có Hỏi đáp: khối xác nhận nằm sát footer, nên các chỗ lõm của sóng phải cùng màu footer. */
.is-tailored #main {
  background: linear-gradient(var(--color-surface) 0 0) bottom / 100% var(--wave-height) no-repeat;
}

.is-tailored .apollo-footer {
  border-top: 0;
}

/* Lời chào dưới banner */
.tl-hello {
  padding: var(--space-8) 0;
  border-bottom: var(--border-hairline) solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
}

.tl-hello__greet {
  margin: 0 0 var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-xl);
  line-height: 1.4;
}

.tl-hello__title {
  max-width: 960px;
  margin: 0 auto var(--space-6);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

/* Có video: lời chào không có nút bên dưới. */
.tl-hello__title:has(+ .button[hidden]) {
  margin-bottom: 0;
}

.tl-hello__name {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-brand);
  font-size: var(--text-4xl);
  line-height: 1.02;
}

.tl-hello__event {
  color: var(--color-brand);
  text-decoration: none;
  white-space: nowrap;
}

/* Video của con + lời nhắn */
.tl-recognition {
  padding: var(--space-8) 0 var(--space-section);
}

.tl-lead {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  text-align: center;
  text-wrap: pretty;
}

.tl-media,
.tl-media__cta,
.tl-letter {
  max-width: 960px;
  margin-inline: auto;
}

.tl-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-heading);
  box-shadow: var(--shadow-lg);
}

.tl-media__frame {
  aspect-ratio: 16 / 9;
}

.tl-media__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tl-media__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  min-height: 250px;
  padding: var(--space-7);
  background: var(--gradient-navy);
  color: var(--color-inverse-text-secondary);
  text-align: center;
}

.tl-media__symbol {
  margin-bottom: var(--space-4);
  color: var(--color-sky-light);
  font-size: 64px;
  line-height: 1;
}

.tl-media__placeholder h3 {
  margin: 0 0 var(--space-4);
  color: var(--color-inverse-text);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

.tl-media__placeholder h3,
.tl-media__placeholder p { max-width: 100%; }

.tl-media__placeholder p {
  margin: 0;
  font-size: var(--text-lg);
}

.tl-media__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.tl-media__cta .button {
  text-align: center;
  text-wrap: balance;
}

/* Chưa có video: lời nhắn đứng đầu khối, không cần khoảng cách với video phía trên. */
.tl-lead[hidden] ~ .tl-letter {
  margin-top: 0;
}

/* Lời nhắn: khung kem, chữ cái đầu tên giáo viên, bong bóng thư – nội dung Lora nghiêng, chữ ký viết tay */
.tl-letter {
  margin-top: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-cream);
}

.tl-letter__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tl-letter__monogram {
  display: grid;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid var(--color-surface);
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
  color: var(--color-on-brand);
  font: var(--weight-bold) 34px/1 var(--font-display);
}

.tl-letter__author h3 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.tl-letter__bubble {
  position: relative;
  margin-top: var(--space-6);
  padding: var(--space-8) var(--space-9);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.tl-letter__bubble::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 22px;
  width: 30px;
  height: 16px;
  background: var(--color-surface);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tl-letter__bubble::after {
  content: "\201C";
  position: absolute;
  top: var(--space-5);
  right: var(--space-7);
  color: var(--color-brand-tint);
  font: 120px/1 var(--font-letter);
  pointer-events: none;
}

.tl-letter__body {
  position: relative;
  z-index: 1;
}

.tl-letter__body p {
  margin: 0 0 var(--space-4);
  color: var(--color-heading);
  font-family: var(--font-letter);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
}

.tl-letter__body .tl-letter__greeting {
  padding-right: var(--space-10);
  color: var(--color-brand);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: var(--weight-semibold);
}

.tl-letter__body .tl-letter__lead {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.6;
}

.tl-letter__body .tl-letter__sign {
  margin: var(--space-6) 0 0;
  color: var(--color-brand);
  font-family: var(--font-sign);
  font-size: 2rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.tl-letter__body .tl-letter__sign::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent-bright);
}

.tl-letter__more { display: none; }

.tl-letter__translate {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: var(--space-2);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.tl-letter__translate[aria-busy="true"] {
  cursor: progress;
}

/* Xác nhận tham gia: dải sóng xanh như khối đăng ký đại trà */
.tl-participate__head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.tl-participate__head p {
  margin: var(--space-5) auto 0;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.tl-participate__head b { color: var(--color-heading); }

/* 2 lựa chọn cho bố mẹ, rồi bước tiếp theo sau khi xác nhận. */
.tl-video-options {
  display: grid;
  gap: var(--space-3);
}

.registration-form .tl-video-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.tl-video-option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-brand);
}

.registration-form .tl-video-option:hover,
.registration-form .tl-video-option:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.tl-video-option .consent__link {
  white-space: nowrap;
}

.tl-video-upload {
  margin-top: var(--space-2);
}

.tl-video-upload .field {
  margin-bottom: 0;
}

.tl-video-next__upload {
  margin-top: var(--space-4);
}

.tl-video-next {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-hairline) solid var(--color-border);
}

.tl-video-next__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
}

/* Nút ở bước tiếp theo ("Bố mẹ tự quay và gửi video", "Apollo hỗ trợ quay tại trung tâm", "Gửi bài dự thi"):
   Baskerville (font-label) thay Brauer Neue, vì chữ có dấu chồng (Ỗ, Ợ, Â) của Brauer Neue dính vào dòng trên
   khi nút xuống dòng (line-height 1). Cùng công thức tiêu đề nhỏ: bold, tracking-snug, leading-snug. */
.tl-video-next__actions .button {
  padding-block: var(--space-2);
  font-family: var(--font-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  white-space: normal;
}

.nominee__form,
.nominee__done {
  max-width: 760px;
  margin-inline: auto;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.nominee__form .consent { margin-bottom: var(--space-4); }
.nominee__form .button--submit { width: 100%; margin-top: var(--space-2); }

/* Khung "đã xác nhận" và "hết hạn" (trang lời mời): biểu tượng tròn + nội dung, chỉ dùng token trong tokens.css.
   --done-icon: cỡ biểu tượng; tiêu đề một dòng cao bằng biểu tượng để nằm giữa nó. */
.nominee__done {
  --done-icon: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-5);
  border: var(--border-thick) solid var(--color-brand-light);
}

/* Tiêu đề nhỏ Baskerville viết hoa: cùng công thức với tiêu đề các bước, thẻ giải thưởng (font-label, bold, tracking-snug). */
.nominee__done h3 {
  display: flex;
  align-items: center;
  min-height: var(--done-icon);
  margin: 0 0 var(--space-3);
  color: var(--color-heading);
  font-family: var(--font-label);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  text-wrap: balance; /* không để rớt một chữ xuống dòng ("… THAM / GIA") */
}

.nominee__done p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.nominee__done p:last-child { margin-bottom: 0; }

.nominee__done-icon {
  display: grid;
  place-items: center;
  width: var(--done-icon);
  height: var(--done-icon);
  border-radius: var(--radius-full);
  background: var(--color-brand);
  box-shadow: var(--shadow-brand);
  color: var(--color-on-brand);
}

.nominee__done-icon .icon { width: calc(var(--done-icon) * 0.55); height: calc(var(--done-icon) * 0.55); }

/* Hết hạn nộp bài: cùng khung với "đã xác nhận" nhưng màu trung tính. */
.nominee__closed { border-color: var(--color-border); }
.nominee__closed .nominee__done-icon { background: var(--color-brand-tint); box-shadow: none; color: var(--color-brand); }

/* Điện thoại: biểu tượng nhỏ hơn, đứng cạnh tiêu đề; câu xác nhận và bước tiếp theo trải hết bề ngang khung
   (khối nội dung "display: contents" để các phần con xếp thẳng vào lưới của khung). */
@media (max-width: 700px) {
  .nominee__done { --done-icon: 40px; column-gap: var(--space-3); row-gap: var(--space-3); }
  .nominee__done > div { display: contents; }
  .nominee__done > div > :not(h3) { grid-column: 1 / -1; }
  .nominee__done h3 { margin: 0; font-size: var(--text-lg); }
  .nominee__done p { margin: 0; font-size: var(--text-sm); }
  .nominee__done .tl-video-next { margin-top: var(--space-1); padding-top: var(--space-4); }
  /* Nút chọn cách quay, "Gửi bài dự thi": trải hết bề ngang cho dễ bấm. */
  .tl-video-next__actions .button { flex: 1 1 100%; }
}

/* Điện thoại rất hẹp (≤ 360px): tiêu đề nhỏ thêm một bậc để không chiếm 3–4 dòng. */
@media (max-width: 360px) {
  .nominee__done h3 { font-size: var(--text-base); }
}

.tl-video-next__sent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.tl-video-next__sent .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--color-brand);
}

.tl-video-next__loading { color: var(--color-text-muted); }

/* Đang tải video: không đổi tệp, không đổi lựa chọn cho tới khi xong hoặc lỗi. */
.tl-video-next.is-uploading [data-video-set] { display: none; }
.video-drop.is-locked { opacity: 0.6; }
.video-drop.is-locked .video-drop__input { cursor: not-allowed; }

@media (max-width: 700px) {
  .tl-hello { padding: var(--space-6) 0; }
  .tl-hello__title { margin-bottom: var(--space-5); }
  .tl-hello__event { white-space: normal; }
  .tl-hello .button { width: 100%; }
  .tl-recognition { padding: var(--space-6) 0 var(--space-section); }
  .tl-lead { margin-bottom: var(--space-4); font-size: var(--text-base); }
  .tl-media { border-radius: var(--radius-md); }
  .tl-media__placeholder { aspect-ratio: auto; min-height: 220px; padding: var(--space-6) var(--space-5); }
  .tl-media__symbol { margin-bottom: var(--space-3); font-size: 44px; }
  .tl-media__placeholder h3 { margin-bottom: var(--space-3); font-size: var(--text-xl); }
  .tl-media__placeholder p { font-size: var(--text-base); }
  .tl-media__cta { margin-top: var(--space-4); }
  .tl-media__cta .button { width: 100%; }
  .tl-letter {
    margin: var(--space-6) calc(var(--gutter) * -1) 0;
    padding: var(--space-5) var(--gutter);
    border-radius: 0;
  }
  .tl-letter__author { gap: var(--space-3); }
  .tl-letter__monogram { width: 44px; height: 44px; border-width: 2px; font-size: 22px; }
  .tl-letter__author h3 { flex: 1; min-width: 0; font-size: var(--text-xl); }
  .tl-letter__bubble { margin-top: var(--space-3); padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); }
  .tl-letter__bubble::before { display: none; }
  .tl-letter__bubble::after { top: var(--space-2); right: var(--space-3); font-size: 72px; }
  .tl-letter__body p { margin-bottom: var(--space-3); font-size: 1.0625rem; }
  .tl-letter__body .tl-letter__greeting { padding-right: var(--space-7); }
  .tl-letter__body .tl-letter__lead { font-size: var(--text-lg); line-height: 1.65; }
  .tl-letter__body .tl-letter__sign { font-size: 1.75rem; }
  /* Thư dài: điện thoại chỉ hiện lời chào + đoạn đầu, bấm "Đọc tiếp" xem hết */
  .tl-letter.is-long:not(.is-expanded) .tl-letter__body p:not(.tl-letter__greeting, .tl-letter__lead) { display: none; }
  .tl-letter.is-long .tl-letter__more {
    display: block;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-brand);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    cursor: pointer;
  }
  .tl-participate__head { margin-bottom: var(--space-5); }
  .tl-participate__head p { margin-top: var(--space-3); font-size: var(--text-base); }
  .nominee__form, .nominee__done { padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); }
}

@media (max-width: 400px) {
  .tl-hello .button,
  .tl-media__cta .button { padding-block: var(--space-3); line-height: 1.2; white-space: normal; }
}

/* Footer */

/* Apollo footer, matched to apollo.edu.vn: white, logo left, links and social on the right. */
.apollo-footer {
  padding-block: var(--space-9);
  border-top: var(--border-hairline) solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-apollo);
}

.apollo-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-9);
}

.apollo-footer__logo img {
  display: block;
  width: 161px;
  height: auto;
}

.apollo-footer__logo .apollo-footer__logo-mobile {
  display: none;
}

.apollo-footer__main {
  display: grid;
  justify-items: end;
  gap: var(--space-8);
  min-width: 0;
}

.apollo-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2) var(--space-4);
}

.apollo-footer__links a,
.apollo-footer__social p {
  color: var(--color-apollo);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}

.apollo-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.apollo-footer__end {
  display: flex;
  align-items: flex-end;
  gap: var(--space-8);
}

.apollo-footer__copy {
  margin: 0 0 var(--space-1);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.apollo-footer__social {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
}

.apollo-footer__social p {
  margin: 0;
}

.apollo-footer__icons {
  display: flex;
  gap: var(--space-2);
}

.apollo-footer__icons a {
  display: block;
  border-radius: 6px;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.apollo-footer__icons a:hover {
  opacity: 0.8;
}

.apollo-footer__icons img {
  display: block;
  width: 32px;
  height: 32px;
}

.mobile-cta {
  display: none;
}

/* Dialogs: rules and the Round 1 video guide. Centred on desktop, a bottom sheet on phones. */

.dialog {
  width: min(640px, calc(100% - var(--space-7)));
  max-height: min(86vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.dialog[open] {
  animation: dialog-in var(--duration-base) var(--ease-out);
}

.dialog::backdrop {
  background: var(--color-scrim);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

@keyframes sheet-in {
  from {
    translate: 0 100%;
  }
}

.dialog__head {
  position: sticky;
  z-index: var(--z-sticky); /* Stays above positioned fields as the form scrolls under it. */
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--gradient-section);
  color: var(--color-inverse-text);
}

.dialog__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-snug);
  text-transform: uppercase;
}

.dialog__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: var(--border-hairline) solid var(--color-inverse-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-glass-inverse-strong);
  color: var(--color-inverse-text);
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
}

.dialog__close:focus-visible {
  outline-color: var(--color-focus-inverse);
}

.dialog__body {
  padding: var(--space-1) var(--space-6) var(--space-7);
}

.dialog__body .dialog__note {
  margin: var(--space-5) 0 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-xs);
  background: var(--color-brand-soft);
  color: var(--color-heading);
  font-size: var(--text-sm);
}

/* A note placed right under a sub-heading sits close to it. */
.dialog__body h4 + .dialog__note {
  margin-top: var(--space-3);
}

.dialog__body h3 {
  margin: var(--space-6) 0 var(--space-2);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
}

/* Sub-heading inside the rules: one per round. */
.dialog__body h4 {
  margin: var(--space-5) 0 var(--space-2);
  color: var(--color-brand);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.dialog__body p + p {
  margin-top: var(--space-2);
}

.dialog__body .rules__outro {
  margin-top: var(--space-6);
  color: var(--color-heading);
  font-style: italic;
}

.dialog__body p,
.dialog__body li {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.dialog__body ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-5);
}

.dialog__action {
  width: 100%;
  margin-top: var(--space-6);
}

/* Registration pop-up: a plain body, so the form keeps its own text styles instead of the rules' prose styles. */
.dialog--register {
  width: min(720px, calc(100% - var(--space-7)));
  max-height: min(92vh, 900px);
}

.dialog__form {
  padding: var(--space-6) var(--space-6) var(--space-7);
}

.dialog__body .guide-meta {
  color: var(--color-text-muted);
}

.dialog__body .rules__intro {
  margin-top: var(--space-5);
}

.dialog__body ul + p,
.dialog__body p + ul {
  margin-top: var(--space-2);
}

#calendar-dialog .dialog__body > p {
  margin-top: var(--space-5);
}

.dialog__body .calendar-list {
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.dialog__body .calendar-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-heading);
}

.calendar-list b {
  color: var(--color-brand);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
}

.calendar-list .text-link {
  font-size: var(--text-sm);
}

.dialog__body .guide-ages {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.dialog__body .guide-ages li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
}

.guide-ages b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--age-color);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-button);
  line-height: 1.1;
  text-transform: uppercase;
}

.dialog__body .guide-ages li.is-current {
  border-color: var(--age-color);
  background: var(--age-soft);
}

.guide-ages li.is-current b::after {
  padding: 2px var(--space-2);
  border-radius: var(--radius-control);
  background: var(--age-color);
  color: var(--color-inverse-text);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-transform: none;
  content: "Con đã chọn";
}

/* Confetti on a completed registration */

.confetti {
  position: fixed;
  z-index: var(--z-overlay);
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: var(--color-brand);
  animation: confetti-fall 2.4s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}

.confetti span:nth-child(4n + 1) {
  background: var(--color-accent-bright);
}

.confetti span:nth-child(4n + 2) {
  background: var(--color-sky);
}

.confetti span:nth-child(4n + 3) {
  background: var(--color-violet);
}

.confetti span:nth-child(5n) {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
}

@keyframes confetti-fall {
  to {
    transform: translate(var(--drift), 112vh) rotate(var(--spin));
  }
}

/* Storytelling. The page is read like a story: the hero opens line by line, each chapter's
   heading comes before its content, and the children step out as their step is reached.
   Script adds .has-reveal, so without it (or with reduced motion) everything simply shows. */

/* Story progress: a thin bar under the header that fills as the parent reads down. */
.story-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-violet), var(--color-accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Opening scene: the banner fades in, then the bar below it. */
.hero__banner img,
.hero__bar-inner {
  animation: rise-in var(--duration-slow) var(--ease-out) both;
}

.hero__bar-inner {
  animation-delay: 250ms;
}

/* Chapters on scroll. */
.has-reveal [data-reveal]:not(.is-in) {
  opacity: 0;
}

.has-reveal [data-reveal].is-in {
  animation: rise-in var(--duration-slow) var(--ease-out) var(--reveal-delay, 0ms) both;
}

.has-reveal [data-reveal="zoom"].is-in {
  animation-name: zoom-in;
}

/* Khám phá → Phát triển → Tỏa sáng: each child pops up out of their arch after the column lands. */
.has-reveal .why-card:not(.is-in) .student {
  opacity: 0;
}

.has-reveal .why-card.is-in .student {
  animation: step-out 800ms var(--ease-spring) calc(var(--reveal-delay, 0ms) + 250ms) both;
}

/* Once the child has stepped out, the doodles pop in around them and the caption rises. */
.has-reveal .why-card:not(.is-in) :is(.why-doodle, .why-card__champion) {
  opacity: 0;
}

.has-reveal .why-card.is-in .why-doodle {
  animation: pop-in var(--duration-slow) var(--ease-spring) calc(var(--reveal-delay, 0ms) + 650ms) both;
}

.has-reveal .why-card.is-in .why-card__champion {
  animation: step-out var(--duration-slow) var(--ease-out) calc(var(--reveal-delay, 0ms) + 500ms) both;
}

/* Prize medals bounce in after each card arrives. */
.has-reveal .prize-card.is-in .prize-card__stage {
  animation: pop-in 700ms var(--ease-spring) calc(var(--reveal-delay, 0ms) + 200ms) both;
}

/* The line joining the three steps draws downward as they appear. */
.has-reveal .steps::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--ease-out) 300ms;
}

.has-reveal .steps-panel.is-in .steps::before {
  transform: scaleY(1);
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    scale: 0.94;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    scale: 0.6;
  }
  70% {
    opacity: 1;
    scale: 1.06;
  }
}

/* Translate on top of the image's own centring translate, so the child rises from inside the arch. */
@keyframes step-out {
  from {
    opacity: 0;
    transform: translateY(18%);
  }
}

@media (max-width: 900px) {
  /* Without script the links simply wrap onto a second row under the logo. */
  .header__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .header__inner {
    padding-block: var(--space-3);
  }

  html:not(.js) .header__nav {
    flex-wrap: wrap;
  }

  .js .menu-toggle {
    display: grid;
  }

  /* The nav drops down under the header when the menu button opens it. */
  .js .header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    border-bottom: var(--border-hairline) solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
  }

  .js .header__nav.is-open {
    display: flex;
    animation: dialog-in var(--duration-base) var(--ease-out);
  }

  .js .header__nav a {
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xl);
  }

  .js .header__nav a + a {
    border-top: var(--border-hairline) solid var(--color-border);
  }

  /* Tablets keep the three steps side by side, just closer together. */
  .why-grid {
    gap: var(--space-5);
  }

  /* The heading is centred and wide here, so the star cluster would sit on it. */
  .journey::after {
    display: none;
  }

  /* The roadmap now runs edge to edge, so the margin doodles would sit on its stops. */
  .journey::before {
    display: none;
  }

  /* No free side next to the heading once the layout stacks. */
  .register__intro {
    grid-template-columns: 1fr;
  }

  .student--register {
    display: none;
  }

  .journey-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: var(--space-5);
  }

  /* Stacked: the pair fills the full width, the theme sits under them. */
  .photo-frame {
    max-width: 520px;
  }

  .journey-card__age {
    font-size: clamp(6rem, 3rem + 14vw, 11rem);
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .prize-grid {
    gap: var(--space-3);
  }

  /* Narrow tablet columns: the gift picture moves under the medal and title. */
  .prize-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "medal title"
      "gift  gift"
      "list  list";
    padding: var(--space-4);
  }

  .prize-card__gift {
    max-width: 100%;
    margin: var(--space-3) auto 0;
  }

  .faq__grid,
  .news__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 700px) {
  .header__inner {
    gap: var(--space-3);
  }

  .wordmark__logo {
    width: 136px;
  }

  .eyebrow {
    letter-spacing: var(--tracking-button);
  }

  .button--large {
    min-height: 56px;
    padding-inline: var(--space-6);
    font-size: var(--text-lg);
  }

  .countdown {
    display: grid;
    width: 100%;
    gap: var(--space-3);
  }

  .countdown__label {
    max-width: none;
    font-size: var(--text-lg);
  }

  .countdown__units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .countdown__units b {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 1.75rem;
  }

  .tagline__lead {
    margin-top: var(--space-7);
    font-size: var(--text-base);
  }

  .section-head {
    margin-bottom: var(--space-7);
  }

  /* Phones: the three steps become a swipeable carousel; the next card peeks in, dots show where you are. */
  .why-grid {
    grid-template-columns: none;
    grid-auto-columns: 80%;
    grid-auto-flow: column;
    gap: var(--space-4);
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--space-1) var(--gutter) var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .why-grid::-webkit-scrollbar {
    display: none;
  }

  .why-card {
    scroll-snap-align: start;
  }

  .why-dots {
    display: flex;
  }

  .why-card h3 {
    margin-top: var(--space-5);
  }

  .journey__picker {
    margin-bottom: var(--space-7);
  }

  /* 30% smaller on phones than on desktop (1.3 × base → 0.91 × base). */
  /* No side space for the doodles on phones. */
  .journey::before {
    display: none;
  }

  /* Phones keep the photo edge to edge. */
  .photo-frame {
    max-width: none;
  }

  .age-tabs,
  .schedule-tabs {
    width: 100%;
  }

  .age-tab,
  .schedule-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding-inline: var(--space-1);
    font-size: var(--text-lg);
  }

  .age-tab__dot,
  .schedule-tab__dot {
    display: none;
  }

  /* Edge to edge on phones: the pair runs past the gutters to the screen sides. */
  .photo-frame {
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(var(--gutter) * -1);
  }

  .journey-card__body {
    padding-block: var(--space-3) 0;
  }

  /* Phones: one straight path on the left; the cards take the full width. */
  .roadmap {
    --roadmap-gap: var(--space-5);
    --node-size: 44px;
  }

  .round-slide,
  .round-slide:nth-child(even) {
    grid-template-columns: var(--node-size) minmax(0, 1fr);
    grid-template-areas: "node card";
    gap: var(--space-3);
  }





  .journey-card__footer {
    padding-top: var(--space-6);
  }

  .journey-card__footer .button {
    flex: 1 1 100%;
  }

  .register__head {
    margin-bottom: var(--space-8);
  }

  .register__head > p:not(.eyebrow) {
    font-size: var(--text-base);
  }

  .register__cta {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .steps::before {
    display: block;
    left: 19px;
  }

  .steps li {
    grid-template-columns: 40px 1fr;
  }

  .steps__number {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  .dialog__body .calendar-list li {
    grid-template-columns: auto 1fr;
  }

  .calendar-list .text-link {
    grid-column: 1 / -1;
    min-height: 32px;
  }

  .dialog__form {
    padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  }

  .form-grid,
  .audience-options {
    grid-template-columns: 1fr;
  }

  /* At least 16px stops iOS from zooming into focused fields. */
  .registration-form input:not([type="radio"], [type="checkbox"]) {
    font-size: var(--text-base);
  }

  .age-option span {
    gap: 6px;
    font-size: var(--text-base);
  }

  .age-options {
    gap: var(--space-2);
  }

  .video-drop {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-4);
  }

  .video-drop__icon {
    --bubble-size: 48px;
  }

  .video-drop__text {
    flex-basis: calc(100% - 64px);
  }

  .video-drop__action {
    width: 100%;
    text-align: center;
  }

  .dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .dialog[open] {
    animation-name: sheet-in;
  }

  /* The page behind the sheet stays put; phone scrollbars overlay, so nothing shifts sideways. */
  html:has(.dialog[open]) {
    overflow: hidden;
  }

  .dialog__head {
    padding: var(--space-4) var(--space-5);
  }

  .dialog__body {
    padding: var(--space-1) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  }

  .form-success__summary > div {
    grid-template-columns: 96px 1fr;
  }

  /* Phones: gifts sit under the heading, centred. */
  .prizes__heading {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .prizes__gifts {
    max-width: 320px;
    justify-self: center;
  }

  /* Phones: the three cards stay side by side as a swipeable row; the next card peeks in. */
  .prize-grid {
    grid-template-columns: none;
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    gap: var(--space-4);
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--space-2) var(--gutter) var(--space-5);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .prize-grid::-webkit-scrollbar {
    display: none;
  }

  /* Swipe cards are wide again: back to one header row. */
  .prize-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "medal title gift"
      "list  list  list";
    padding: var(--space-5);
    scroll-snap-align: start;
  }

  .prize-card__gift {
    max-width: 96px;
    margin: 0;
  }

  .faq-item summary {
    min-height: 62px;
    font-size: var(--text-base);
  }

  /* Stacked and centred, with the wide logo, as on apollo.edu.vn's phone footer. */
  .apollo-footer {
    padding-block: var(--space-8);
  }

  .apollo-footer__inner,
  .apollo-footer__main,
  .apollo-footer__end {
    flex-direction: column;
    align-items: center;
    justify-items: center;
    gap: var(--space-6);
  }

  .apollo-footer__logo img {
    width: 200px;
  }

  .apollo-footer__logo .apollo-footer__logo-wide {
    display: none;
  }

  .apollo-footer__logo .apollo-footer__logo-mobile {
    display: block;
  }

  .apollo-footer__links {
    justify-content: center;
    gap: var(--space-1) var(--space-4);
  }

  .apollo-footer__links a {
    padding-block: var(--space-1);
    font-size: var(--text-base);
  }

  .apollo-footer__end {
    flex-direction: column-reverse;
  }

  .apollo-footer__copy {
    text-align: center;
  }

  .mobile-cta {
    position: fixed;
    z-index: var(--z-floating);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: calc(68px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
    border-top: var(--border-hairline) solid var(--color-border);
    background: var(--color-bg-translucent);
    box-shadow: var(--shadow-up);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition:
      transform var(--duration-base) var(--ease-out),
      opacity var(--duration-base) var(--ease-out),
      visibility var(--duration-base);
  }

  /* visibility also takes the hidden links out of the tab order and away from screen readers. */
  .mobile-cta.is-hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
  }

  .mobile-cta__register {
    flex: 1;
    min-height: 46px;
  }

  /* Links for job seekers and schools stay on larger screens; parents on phones keep the short list. */
  .apollo-footer__link--wide {
    display: none;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* Small phones (360–400px): the three age pills drop their dots so the labels fit. */
@media (max-width: 400px) {
  .age-option span::before {
    display: none;
  }

  /* The title sits between the medal and the gift. */
  .prize-card__title {
    font-size: var(--text-caption);
  }
}

/* Narrowest phones: a smaller gift leaves the title room for whole words. */
@media (max-width: 340px) {
  .prize-card {
    padding: var(--space-4);
  }

  .prize-card__gift {
    height: 48px;
    max-width: 52px;
  }
}

/* Round 1 rules in the guide pop-up. */
.video-guide-link {
  margin-top: var(--space-2);
}

.dialog__body ol {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding-left: var(--space-5);
}

.dialog__body li > ul {
  margin-top: var(--space-2);
}

.dialog__body strong {
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

.dialog__body .guide-ages li > span {
  display: block;
}

.guide-table {
  width: 100%;
  margin-block: var(--space-3);
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.guide-table th,
.guide-table td {
  padding: var(--space-2) var(--space-3);
  border: var(--border-hairline) solid var(--color-border);
  color: var(--color-text-secondary);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--color-surface-muted);
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

.guide-table td:last-child {
  white-space: nowrap;
}

.guide-table td[colspan] {
  white-space: normal;
}

.guide-table .guide-table__group {
  background: var(--color-brand-soft);
}

/* An invited parent confirms in the page and has no video to upload. */
.is-tailored [data-guide-done] {
  display: none;
}

/* Cảm ơn và khảo sát sau cuộc thi (#thankyou), bản 4 câu 20/11/2026. */
.survey__lead {
  margin: 0 0 var(--space-6);
}

.survey__thanks {
  margin: 0 0 var(--space-2);
  color: var(--color-brand-deep);
  font-family: var(--font-label);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

.survey__intro {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* Dòng gợi ý ngay dưới câu hỏi ("Có thể chọn nhiều đáp án."…). */
.survey__hint {
  margin: calc(-1 * var(--space-1)) 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.survey-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.registration-form .survey-scale__option,
.registration-form .survey-choice {
  position: relative;
  margin: 0;
  font-weight: var(--weight-regular);
}

.survey-scale__option input,
.survey-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.survey-scale__option > span,
.survey-choice > span {
  display: flex;
  min-height: 52px;
  align-items: center;
  border: var(--border-thin) solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-heading);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.survey-scale__option > span {
  justify-content: center;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.survey-choice > span {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

.survey-scale__option > span:hover,
.survey-choice > span:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
}

.survey-scale__option input:checked + span,
.survey-choice input:checked + span {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-inverse-text);
}

.survey-scale__option input:focus-visible + span,
.survey-choice input:focus-visible + span {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.survey-scale.is-invalid .survey-scale__option > span,
.survey-choices.is-invalid .survey-choice > span {
  border-color: var(--color-danger);
}

.survey-choices {
  display: grid;
  gap: var(--space-2);
}

/* Câu 2 chọn được nhiều đáp án: ô vuông có dấu tích phân biệt với các câu chấm điểm chọn một. */
.survey-choice--check > span {
  gap: var(--space-3);
}

.survey-choice__box {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--color-border-strong);
  border-radius: 6px;
  background: var(--color-surface);
  color: transparent;
}

.survey-choice__box .icon {
  width: 16px;
  height: 16px;
}

.survey-choice--check input:checked + span .survey-choice__box {
  border-color: var(--color-surface);
  color: var(--color-brand);
}

.survey-other {
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .survey-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Câu 3: mỗi khía cạnh một dòng, thang 1–5 nhỏ hơn câu 1. Điện thoại: tên khía cạnh ở trên, thang ở dưới. */
.survey-aspects {
  border-top: var(--border-hairline) solid var(--color-border);
}

.survey-aspect {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: var(--border-hairline) solid var(--color-border);
}

.survey-aspect__label {
  margin: 0;
  color: var(--color-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.survey-scale--compact .survey-scale__option > span {
  min-height: 44px;
  font-size: var(--text-base);
}

@media (min-width: 640px) {
  .survey-aspect {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
  }

  .survey-scale--compact {
    grid-template-columns: repeat(5, 44px);
  }
}

.registration-form textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-5);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
  resize: vertical;
}

.registration-form textarea::placeholder {
  color: var(--color-text-placeholder);
}

.registration-form textarea:focus {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-focus);
}

.survey-done p {
  margin: 0 0 var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* Lưu dần (29/11/2026): "Đang lưu…" / "Đã lưu câu trả lời" / lỗi, chữ nhỏ dưới nút gửi. Trống thì không chiếm chỗ. */
.survey-autosave {
  min-height: 1.5em;
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
}

.survey-autosave[data-state="saved"] {
  color: var(--color-brand-deep);
}

.survey-autosave[data-state="error"] {
  color: var(--color-danger);
}

/* ---------- Trang Hướng dẫn Vòng 2 (#huong-dan, #coaching, #The-Audition; ?lich=…) ----------
   body.is-schedule (script.js) ẩn mọi phần khác của trang, chỉ còn header (không menu), khối #lich và footer.
   Làm lại 29/11/2026 theo đúng ngôn ngữ trang chủ cuộc thi, không thêm kiểu trang trí mới:
   nền xanh sóng + doodle như khu Vòng thi; tiêu đề .section-title; lời dẫn như .tagline__lead; tab = tab độ tuổi
   (CSS chung ở khối .age-tab); dòng ngày như .round-slide__meta, tên phần như .round-slide h3 + chip; ô miền như thẻ
   giải thưởng (tiêu đề Baskerville in hoa, danh sách có icon tròn); trang phục là khối .steps "Tham gia trong 2 bước".
   Màu theo phần (data-round): Coaching xanh, The Audition hồng, giống các nhóm tuổi. Token: --schedule-* (tokens.css). */
body.is-schedule #main > :not(.schedule-page),
body.is-schedule #site-nav,
body.is-schedule .menu-toggle,
body.is-schedule .mobile-cta {
  display: none;
}

[data-round="coaching"] {
  --age-color: var(--schedule-coaching);
  --age-deep: var(--schedule-coaching-deep);
  --age-soft: var(--schedule-coaching-soft);
}

[data-round="audition"] {
  --age-color: var(--schedule-audition);
  --age-deep: var(--schedule-audition-deep);
  --age-soft: var(--schedule-audition-soft);
}

/* Khối phủ hết màn hình dưới header, footer nằm dưới mép màn hình. */
.schedule-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding-block: var(--space-9) var(--space-10);
  background: var(--schedule-page-bg);
}

/* Doodle trắng ở hai lề và chùm sao, cùng bộ với khu Vòng thi. Chỉ hiện khi lề đủ rộng. */
.schedule-page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    url("/landings/the-debaters/assets/img/pattern/doodle-pen.png") left max(var(--space-4), calc(50% - 640px)) top 7% / 88px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-compass.png") left max(var(--space-5), calc(50% - 620px)) top 46% / 60px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-bird.png") left max(var(--space-7), calc(50% - 600px)) top 84% / 40px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-search.png") right max(var(--space-5), calc(50% - 620px)) top 34% / 46px auto no-repeat,
    url("/landings/the-debaters/assets/img/pattern/doodle-earth.png") right max(var(--space-4), calc(50% - 640px)) top 70% / 88px auto no-repeat;
  content: "";
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

.schedule-page::after {
  position: absolute;
  z-index: -1;
  top: var(--space-8);
  right: max(var(--space-4), calc(50% - 620px));
  width: clamp(72px, 7vw, 104px);
  aspect-ratio: 76 / 84;
  background: url("/landings/the-debaters/assets/img/pattern/star-cluster.svg") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

@media (max-width: 1099px) {
  .schedule-page::before,
  .schedule-page::after {
    display: none;
  }
}

.schedule-page__inner {
  display: grid;
  gap: var(--space-8);
  max-width: var(--schedule-max);
}

.schedule-page__head {
  text-align: center;
}

/* Lời chúc mừng: như lời dẫn dưới "Speak your unique voice". */
.schedule-page__lead {
  max-width: 640px;
  margin: var(--space-5) auto 0;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.schedule-page__lead b {
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

/* Tab: kiểu ở khối .age-tab. Phần dưới tab cách gần hơn khoảng giữa các khối. */
.schedule-tabs {
  margin-bottom: calc(var(--space-2) - var(--space-8) + var(--space-6));
}

/* ----- Một phần (Coaching / The Audition) ----- */
.schedule-panel {
  display: grid;
  gap: var(--space-7);
}

.schedule-panel:focus:not(:focus-visible) {
  outline: none;
}

.schedule-panel:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 8px;
  border-radius: var(--radius-sm);
}

.schedule-panel__head {
  display: grid;
  gap: var(--space-3);
}

/* "VÒNG 2 · CHỦ NHẬT, 06/12/2026", như dòng ngày của từng vòng trên lộ trình. */
.schedule-panel__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-normal);
  text-transform: uppercase;
}

.schedule-panel__meta b {
  color: var(--age-color);
}

/* Tên phần + chip hình thức, như "PHÁT TRIỂN [SHAPE YOUR VOICE]". */
.schedule-panel__title {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--schedule-title-font);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

.schedule-panel__title > span:last-child {
  display: inline-block;
  margin-left: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--age-color);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-normal);
  vertical-align: middle;
}

/* ----- 2 miền (30/11/2026): MỘT lớp nền trắng chung cho cả 2 cột (không tách 2 thẻ; người dùng thấy cột mở trên nền
   xanh "xấu", muốn "1 lớp nền trắng phía sau"). Trong lớp: theo danh sách Hỏi đáp: tên miền Baskerville in hoa, vạch
   đậm màu của phần, các dòng cách nhau bằng vạch mảnh, icon tròn nền nhạt. ----- */
.schedule-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding: var(--space-7);
}

.schedule-region {
  min-width: 0;
}

/* Nền trắng: lớp chung của 2 miền và khối nộp bài. */
.schedule-regions,
.schedule-deadline {
  min-width: 0;
  border: var(--border-thin) solid var(--schedule-region-border);
  border-radius: var(--schedule-region-radius);
  background: var(--schedule-region-bg);
  box-shadow: var(--schedule-region-shadow);
}

.schedule-region__name {
  margin: 0;
  color: var(--age-color);
  font-family: var(--schedule-label-font);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  text-transform: uppercase;
}

.schedule-region__list {
  display: grid;
  margin: var(--space-3) 0 0;
  padding: 0;
  border-top: var(--border-thick) solid var(--age-color);
  list-style: none;
}

.schedule-region__list > li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: var(--border-hairline) solid var(--schedule-region-border);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

.schedule-region__list > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule-region__list .icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 7px;
  border-radius: var(--radius-full);
  background: var(--age-soft);
  color: var(--age-color);
}

/* Chữ thẳng hàng với giữa icon tròn 32px. */
.schedule-region__list li > span,
.schedule-region__list li > div {
  padding-top: 4px;
}

/* "Chi tiết phòng Zoom" (30/11/2026): bấm để mở link, mã cuộc họp, mật mã. Nút +/× như mục Hỏi đáp, thu nhỏ;
   quy tắc ẩn dấu mặc định và trạng thái mở dùng chung với .faq-item. */
.schedule-zoom summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: var(--space-2);
  color: var(--age-color);
  font-weight: var(--weight-bold);
  list-style: none;
  cursor: pointer;
}

.schedule-zoom summary span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--age-soft);
  color: var(--age-color);
  font-size: var(--text-base);
  line-height: 1;
  transition:
    transform var(--duration-base) var(--ease-spring),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.schedule-zoom p {
  margin: 0;
}

.schedule-region__list b {
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

/* Số liên hệ (30/11/2026): gạch chân màu của phần để thấy bấm gọi được; số không bị ngắt dòng. */
.schedule-region__list a {
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: var(--age-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ----- Nộp bài trước Coaching (30/11/2026): thẻ trắng duy nhất của trang (quy tắc khung ở trên); bên phải là đồng hồ
   đếm ngược của đầu trang chủ (.countdown), nút hồng như "Tham gia ngay". Điện thoại: xếp chồng, nút kéo hết ngang. */
.schedule-deadline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label count"
    "text count"
    "cta count";
  align-content: start;
  gap: var(--space-4) var(--space-7);
  padding: var(--space-7);
}

.schedule-deadline__label {
  grid-area: label;
  margin: 0;
  color: var(--age-color);
  text-wrap: balance;
}

.schedule-deadline__text {
  grid-area: text;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.schedule-deadline__countdown {
  display: grid;
  grid-area: count;
  align-content: center;
  gap: var(--space-3);
  padding-left: var(--space-7);
  border-left: var(--border-hairline) solid var(--schedule-region-border);
}

.schedule-deadline__cta {
  grid-area: cta;
  justify-self: start;
  margin-top: var(--space-2);
}

/* ----- Trang phục, Lưu ý: chữ mở trên nền, nhãn nhỏ như "THAM GIA TRONG 2 BƯỚC" ----- */
.schedule-note {
  display: grid;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.schedule-note p {
  margin: 0;
}

.schedule-note__label {
  margin: 0;
  color: var(--age-color);
}

.schedule-note__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-note__list li {
  position: relative;
  padding-left: var(--space-5);
}

.schedule-note__list li::before {
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--age-color);
  content: "";
}

.schedule-note__list b {
  color: var(--color-heading);
  font-weight: var(--weight-bold);
}

/* Trang phục dùng .steps; số thứ tự thay bằng icon. */
.schedule-dress .steps__number .icon {
  width: 20px;
  height: 20px;
}

/* ----- Nút về trang thông tin (dòng Hotline đã bỏ 30/11/2026) ----- */
.schedule-page__foot {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

/* Nút "Về trang thông tin cuộc thi", "Nộp nội dung bài nói của con": chữ dài nên được xuống dòng trên màn hẹp. */
.schedule-page__cta,
.schedule-deadline__cta {
  padding-block: var(--space-3);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

/* Điện thoại, máy tính bảng dọc: 2 ô miền xếp chồng. */
@media (max-width: 700px) {
  .schedule-page {
    padding-block: var(--space-7) var(--space-8);
  }

  .schedule-page__inner {
    gap: var(--space-7);
  }

  .schedule-page__lead {
    font-size: var(--text-base);
  }

  .schedule-tabs {
    margin-bottom: calc(var(--space-2) - var(--space-7) + var(--space-5));
  }

  /* "Vòng huấn luyện đặc biệt" dài hơn tab độ tuổi: cho xuống dòng thay vì tràn (tab vẫn chia đều bề ngang). */
  .schedule-tab {
    padding: var(--space-2);
    line-height: 1.1;
    white-space: normal;
    text-wrap: balance;
  }

  .schedule-panel {
    gap: var(--space-6);
  }

  .schedule-regions {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    padding: var(--space-5);
  }

  /* Tên phần dài ("Vòng huấn luyện đặc biệt", "Ghi hình chuyên nghiệp"): chip hình thức xuống dòng riêng, thẳng mép trái. */
  .schedule-panel__title > span:last-child {
    display: block;
    width: fit-content;
    margin: var(--space-2) 0 0;
  }

  .schedule-region__list > li {
    gap: var(--space-3);
    font-size: var(--text-sm);
  }

  .schedule-deadline {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "text"
      "count"
      "cta";
    padding: var(--space-5);
  }

  .schedule-deadline__text {
    font-size: var(--text-base);
  }

  .schedule-deadline__countdown {
    padding: var(--space-4) 0 0;
    border-top: var(--border-hairline) solid var(--schedule-region-border);
    border-left: 0;
  }

  .schedule-deadline__cta {
    justify-self: stretch;
    margin-top: 0;
  }

  .schedule-page__cta {
    justify-self: stretch;
    padding-inline: var(--space-5);
  }
}

/* Điện thoại rất hẹp: chữ tab nhỏ lại một bậc để tên phần dài không sát mép. */
@media (max-width: 380px) {
  .schedule-tab {
    font-size: var(--text-base);
  }
}

/* Switched off outright: a near-zero transition would still apply to every property, visibility included. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

}

/* ---------- Hết hạn Vòng 1 (23/11/2026): trang mass ẩn mọi nút mở form nộp bài ----------
   "Tham gia ngay" (vùng bấm trên banner, khối #register, thanh dưới điện thoại), "Đăng ký cho con … tuổi" (3 thẻ vòng thi)
   và "Đã hiểu, tải video lên" trong pop-up hướng dẫn. Chữ "THAM GIA NGAY!" vẽ trong ảnh banner thì vẫn còn.
   Trang lời mời (?sid=) không bị ảnh hưởng: script.js (pointToParticipate) thay các nút này bằng bản sao KHÔNG có
   data-open-register, dẫn về khối xác nhận; thẻ cha chỉ ẩn khi chưa có body.is-tailored. Mở lại: xoá khối này. */
[data-open-register],
body:not(.is-tailored) .journey-card__footer,
body:not(.is-tailored) .mobile-cta,
body:not(.is-tailored) [data-guide-done] {
  display: none !important;
}

@media (max-width: 700px) {
  /* Thanh "Tham gia ngay" dưới điện thoại đã ẩn: bỏ khoảng chừa cho nó ở cuối trang. */
  body:not(.is-tailored) {
    padding-bottom: 0;
  }
}
