/* Shared public header: native details owns visibility and expanded state. */
.site-header { position: relative; z-index: 20; overflow: visible; }
.site-header .header-inner { gap: 24px; overflow: visible; }
.site-header .brand { flex-shrink: 0; min-height: 44px; }
.site-header .public-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 20px; margin-left: 0; font-size: 15px; line-height: 1.5; }
.site-header .public-nav a,.site-header .public-nav summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 2px; font-family: var(--ui-heading-font); font-weight: 700; font-size: inherit; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; text-decoration: none; color: var(--ink); }
.site-header .public-nav a:hover,.site-header .public-nav summary:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 8px; }
.site-header .public-nav a[aria-current="page"],.site-header .competition-disclosure.is-current>summary { color: var(--brand); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header .competition-disclosure { position: relative; border: 0; padding: 0; }
.site-header .competition-disclosure>summary { list-style: none; cursor: pointer; }
.site-header .competition-disclosure>summary::-webkit-details-marker { display: none; }
.site-header .competition-disclosure>summary::after { content: none; }
.site-header .competition-disclosure[open]>summary>span { transform: rotate(180deg); }
.site-header .competition-links { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 200px; padding: 8px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--white); box-shadow: 0 5px 0 var(--line); }
.site-header .competition-links a { display: flex; padding: 10px 14px; border-radius: 6px; }
.site-header .competition-links a:hover { background: var(--pale-selected); }
.site-header .login { min-height: 48px; display: inline-flex; align-items: center; flex-shrink: 0; font-size: 14px; padding-left: 20px; }
.site-header a:focus-visible,.site-header summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 1100px) {
  .site-header .header-inner { flex-wrap: wrap; gap: 8px 20px; padding-block: 12px; }
  .site-header .login { margin-left: auto; padding-left: 0; border: 0; }
  .site-header .public-nav { order: 3; flex-basis: 100%; width: 100%; justify-content: flex-start; margin: 0; padding-top: 6px; border-top: 1px solid var(--line); gap: 0 20px; }
}
@media (max-width: 480px) {
  .site-header .public-nav { column-gap: 18px; font-size: 14px; }
  .site-header .brand { font-size: 23px; }
  /* In-flow disclosure keeps tap targets visible without covering page content. */
  .site-header .competition-disclosure[open] { flex-basis: 100%; }
  .site-header .competition-links { position: static; min-width: 0; margin-bottom: 8px; box-shadow: none; }
}

/* Assessment action shares the public header across pages. */
.site-header .header-actions { display:flex; align-items:center; gap:16px; flex-shrink:0; margin-left:auto; }
.site-header .header-assessment { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 16px; background:var(--brand); color:white; border-radius:8px; font:800 15px var(--ui-heading-font); text-decoration:none; }
.site-header .header-assessment:hover { background:var(--brand-hover); }
.site-header .header-assessment .material-symbols-outlined { font-size:22px; }
.site-header .header-actions .login { padding:10px 12px; border:0; border-radius:8px; text-decoration:none; }
.site-header .header-actions a:hover { text-decoration:none; }
.site-header .header-actions .login:hover { background:var(--pale-selected); }
@media(max-width:1100px){.site-header .header-actions{margin-left:auto;}.site-header .public-nav{order:3;}}
@media(max-width:480px){.site-header .header-actions{gap:10px;}.site-header .header-assessment{padding:10px;font-size:14px;}.site-header .header-assessment .material-symbols-outlined{display:none;}.site-header .header-actions .login{font-size:13px;}.site-header .brand{font-size:20px;}.site-header .header-inner{column-gap:10px;}}

/* Course flyouts: compact grade grid, with native tap and keyboard disclosure. */
.site-header .course-disclosure>.competition-links { min-width: 232px; border-radius: 14px; }
.site-header .grade-disclosure>summary { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; background: transparent; color: var(--ink); font: 700 15px/1.5 var(--ui-heading-font); cursor: pointer; border-radius: 8px; }
.site-header .grade-disclosure[open]>summary { background: var(--pale-selected); color: var(--brand-hover); }
.site-header .grade-disclosure[open]>summary>span { transform: rotate(90deg); }
.site-header .grade-menu { position: absolute; top: 0; left: calc(100% - 1px); right: auto; width: 300px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 6px 18px rgb(16 63 57 / 10%); }
.site-header .grade-menu-title { margin: 0 0 12px; font: 800 16px/1.4 var(--ui-heading-font); color: var(--ink); }
.site-header .grade-menu-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.site-header .grade-menu-grid a { justify-content: center; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--pale-selected); font-size: 14px; }
.site-header .grade-menu-grid a:hover { background: var(--brand); color: white; text-decoration: none; }
.site-header .grade-menu-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
@media(max-width:720px) {
  .site-header .course-disclosure[open] { flex-basis: 100%; }
  .site-header .course-disclosure>.competition-links { position: static; min-width: 0; width: 100%; margin-bottom: 8px; box-shadow: none; }
  .site-header .grade-menu { position: static; width: 100%; margin-block: 4px 8px; padding: 12px; box-shadow: none; }
}

.site-header .grade-menu[hidden] { display: none; }
.site-header .grade-disclosure>summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Homepage composition only. Shared navigation, fonts and emerald contracts are inherited. */
.emerald-home { --garden-ivory: #fffaf0; --garden-forest: #143f36; background: var(--garden-ivory); color: var(--garden-forest); }
.emerald-home .garden-main { font: 400 16px/1.65 var(--ui-font); }
.emerald-home .g-wrap { width: min(1208px, calc(100% - 64px)); margin-inline: auto; }
.emerald-home .garden-main :is(h1,h2,h3) { color: var(--garden-forest); font-family: var(--ui-heading-font); font-weight: 800; text-wrap: balance; }
.emerald-home .garden-main h2 { font-size: clamp(30px,3.1vw,44px); line-height: 1.18; letter-spacing: -.02em; }
.emerald-home .garden-main p { max-width: 65ch; }
.emerald-home .garden-main img { display: block; width: 100%; height: auto; }
.emerald-home .garden-main [hidden] { display: none !important; }
.emerald-home .garden-main .material-symbols-outlined { display: inline-block; width: auto; height: auto; padding: 0; background: transparent; color: inherit; font-size: 24px; }
.emerald-home :is(a,button,summary,input):focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
.emerald-home .g-eyebrow { display: flex; align-items: center; gap: 8px; font: 600 13px/1.5 var(--ui-font); letter-spacing: .02em; color: var(--brand-hover); }
.emerald-home .g-section { position: relative; padding-block: clamp(40px,5vw,64px); }
.emerald-home .g-anchor { position: absolute; top: 0; }
.emerald-home :is(section,details,[id]) { scroll-margin-top: 24px; }
.emerald-home .g-section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.emerald-home .g-section-head h2 { margin-top: 12px; }
.emerald-home .g-section-head > p { max-width: 31ch; color: var(--muted); }
.emerald-home .g-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 22px; border: 1px solid transparent; border-radius: 16px; font: 800 16px/1.5 var(--ui-heading-font); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color 200ms cubic-bezier(.23,1,.32,1),transform 200ms cubic-bezier(.23,1,.32,1); touch-action: manipulation; }
.emerald-home .g-primary { background: var(--brand); color: var(--white); }
.emerald-home .g-primary:hover { background: var(--brand-hover); transform: translateY(-2px); }
.emerald-home .g-secondary { background: transparent; border-color: var(--line); color: var(--garden-forest); }
.emerald-home .g-secondary:hover { background: var(--pale-selected); }
.emerald-home .g-button:active { transform: translateY(1px); }
.emerald-home .g-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
/* Desktop pairs the reading column with the full, uncropped garden image. */
.emerald-home .g-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); align-items: center; gap: clamp(24px,3vw,48px); padding-block: 40px 24px; text-align: left; }
.emerald-home .g-hero-copy { min-width: 0; }
.emerald-home .g-hero h1 { max-width: none; margin: 12px 0 20px; font-size: clamp(32px,3vw,42px); line-height: 1.12; letter-spacing: -.03em; }
.emerald-home .g-hero h1 span { color: var(--brand); }
.emerald-home .g-lead { font-size: 16px; line-height: 1.7; }
.emerald-home .g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.emerald-home .g-actions .g-button { max-width: 100%; white-space: normal; }
.emerald-home .g-actions .material-symbols-outlined { flex: none; }
.emerald-home .g-garden { min-width: 0; width: 100%; margin: 0; }
.emerald-home .g-garden > img { object-fit: contain; border-radius: 24px; }
@media (max-width: 899px) {
  .emerald-home .g-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .emerald-home .g-garden { max-width: 696px; margin-inline: auto; }
}
/* A compact value row keeps the parent promise close to the first action. */
.emerald-home .site-header .header-assessment { background: transparent; color: var(--garden-forest); text-decoration: none; }
.emerald-home .site-header .header-assessment:hover { background: var(--pale-selected); }
.emerald-home .g-signup-helper { margin-top: 12px; }
.emerald-home .g-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 20px 0; border-block: 1px solid var(--line); }
.emerald-home .g-benefits li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.emerald-home .g-benefits .material-symbols-outlined { flex: none; color: var(--brand-hover); }
.emerald-home .g-progress-signup { margin-top: 20px; }
/* Native scroll snap keeps both exam stories available without JavaScript. */
.emerald-home .g-exam-slider { position: relative; min-width: 0; padding-inline: 24px; }
.emerald-home .g-exam-slider:focus-visible { outline: 3px solid var(--brand); outline-offset: 7px; border-radius: 28px; }
.emerald-home .g-exam-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; border-radius: 28px; }
.emerald-home .g-exam-slider.is-interactive .g-exam-track { scrollbar-width: none; }
.emerald-home .g-exam-slider.is-interactive .g-exam-track::-webkit-scrollbar { display: none; }
.emerald-home .g-exam-slide { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr); flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--pale-selected); border: 1px solid var(--line); border-radius: 28px; }
.emerald-home .g-exam-fmo { background: var(--accent-sunshine-soft); }
.emerald-home .g-exam-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(26px,3.5vw,48px); }
.emerald-home .g-exam-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 12px; font-weight: 600; color: var(--brand-hover); }
.emerald-home .g-exam-kicker .material-symbols-outlined { flex: none; font-size: 22px; }
.emerald-home .g-exam-copy h3 { margin: 0; font-size: clamp(52px,6vw,80px); line-height: 1; letter-spacing: -.045em; }
.emerald-home .g-exam-fullname { display: block; margin-top: 16px; font: 700 clamp(17px,1.65vw,22px)/1.45 var(--ui-heading-font); letter-spacing: 0; }
.emerald-home .g-exam-copy > p:not(.g-exam-kicker) { margin-top: 22px; max-width: 39ch; color: var(--muted); line-height: 1.75; }
.emerald-home .g-exam-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 28px; }
.emerald-home .g-exam-tags li { padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(20 63 54 / 9%); font-size: 12px; font-weight: 600; }
.emerald-home .g-exam-copy .g-button { margin-top: auto; gap: 18px; }
.emerald-home .g-exam-photo { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 16px 16px 16px 0; }
.emerald-home .g-exam-photo img { width: 100%; height: 100%; min-height: 360px; flex: 1; object-fit: cover; object-position: center; border-radius: 18px; }
.emerald-home .g-exam-photo figcaption { padding: 12px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.emerald-home .g-exam-photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.emerald-home .g-exam-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.emerald-home .g-exam-arrows button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--garden-forest); cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.emerald-home .g-exam-arrows [data-exam-prev] { left: 0; }
.emerald-home .g-exam-arrows [data-exam-next] { right: 0; }
.emerald-home .g-exam-arrows button:hover { background: var(--brand); color: var(--white); }
.emerald-home .g-exam-navigation button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 700px) {
  .emerald-home .g-exam-slide { grid-template-columns: minmax(0,1fr); border-radius: 22px; }
  .emerald-home .g-exam-track { border-radius: 22px; }
  .emerald-home .g-exam-copy { padding: 24px; }
  .emerald-home .g-exam-copy h3 { font-size: 56px; }
  .emerald-home .g-exam-kicker { font-size: 11px; margin-bottom: 18px; }
  .emerald-home .g-exam-fullname { font-size: 18px; margin-top: 12px; }
  .emerald-home .g-exam-copy > p:not(.g-exam-kicker) { margin-top: 16px; font-size: 14px; }
  .emerald-home .g-exam-tags { margin: 16px 0 22px; gap: 6px; }
  .emerald-home .g-exam-photo { padding: 0 16px 16px; }
  .emerald-home .g-exam-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 14px; }
  .emerald-home .g-exam-photo figcaption { font-size: 10px; }
}
/* With no JS, all three articles remain readable and the inactive controls stay hidden. */
.emerald-home .g-path-section { background: var(--pale-selected); }
.emerald-home .g-path { display: grid; gap: 32px; }
.emerald-home .g-path.is-interactive { grid-template-columns: minmax(0,.85fr) minmax(0,1.45fr); align-items: start; }
.emerald-home .g-path-controls { display: grid; gap: 12px; }
.emerald-home .g-node { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; gap: 16px; align-items: center; width: 100%; min-height: 104px; padding: 18px 16px; background: transparent; border: 1px solid var(--line); border-radius: 20px; text-align: left; color: var(--garden-forest); cursor: pointer; transition: background-color 200ms cubic-bezier(.23,1,.32,1),border-color 200ms cubic-bezier(.23,1,.32,1); }
.emerald-home .g-node[aria-pressed="true"] { background: var(--white); border-color: var(--brand); box-shadow: 0 3px 0 var(--line); }
.emerald-home .g-node:hover { background: var(--white); }
.emerald-home .g-node-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-sunshine); font: 800 16px var(--ui-heading-font); }
.emerald-home .g-node:nth-child(2) .g-node-number { background: var(--accent-coral); }
.emerald-home .g-node:nth-child(3) .g-node-number { background: var(--accent-lavender); }
.emerald-home .g-node strong { display: block; font: 800 21px/1.3 var(--ui-heading-font); }
.emerald-home .g-node small { display: block; margin-top: 5px; font: 400 13px/1.5 var(--ui-font); color: var(--muted); }
.emerald-home .g-path-panels { min-width: 0; }
.emerald-home .g-path-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center; margin-bottom: 24px; padding: 24px; border-radius: 24px; background: var(--white); }
.emerald-home .is-interactive .g-path-panel { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); min-height: 380px; margin: 0; }
.emerald-home .g-path-panel figure { margin: 0; min-width: 0; }
.emerald-home .g-path-panel img { object-fit: contain; border-radius: 16px; }
.emerald-home .g-step-label { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; color: var(--muted); }
.emerald-home .g-path-panel h3 { margin-top: 10px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.emerald-home .g-path-panel p { margin-top: 14px; }
.emerald-home .g-text-link { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 8px; color: var(--garden-forest); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
/* Small, real arithmetic interaction, using the existing home-sample.js contract. */
.emerald-home .g-sample-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); align-items: center; gap: clamp(32px,7vw,100px); }
.emerald-home .g-sample-intro h2 { margin: 14px 0 18px; font-size: clamp(32px,3.1vw,44px); }
.emerald-home .g-sample-intro .g-sample-symbol { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 26px; border-radius: 24px; background: var(--accent-sunshine); font-size: 40px; transform: rotate(-8deg); }
.emerald-home .g-sample { min-width: 0; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--accent-lavender); }
.emerald-home .g-sample fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.emerald-home .g-sample legend { width: 100%; font: 800 23px/1.4 var(--ui-heading-font); }
.emerald-home .g-dot-equation { display: flex; justify-content: center; align-items: center; gap: 24px; padding-block: 30px; font: 800 28px var(--ui-heading-font); }
.emerald-home .g-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 60px; flex: none; }
.emerald-home .g-dots i { width: 23px; height: 23px; border-radius: 50%; background: var(--brand); }
.emerald-home .g-dots-four i { background: var(--accent-coral); }
.emerald-home .g-answers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.emerald-home .g-answers label { position: relative; cursor: pointer; }
.emerald-home .g-answers input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.emerald-home .g-answers label > span { display: grid; place-items: center; min-height: 56px; border: 2px solid var(--line); border-radius: 16px; font: 800 22px var(--ui-heading-font); }
.emerald-home .g-answers input:checked + span { background: var(--pale-selected); border-color: var(--brand); }
.emerald-home .g-answers input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.emerald-home .g-sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.emerald-home .g-reset { padding: 12px 8px; min-height: 48px; border: 0; background: transparent; font: 600 14px var(--ui-font); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.emerald-home .g-feedback { min-height: 72px; margin-top: 20px; padding: 12px 16px; border-radius: 16px; background: var(--accent-lavender); font-size: 14px; line-height: 1.6; }
.emerald-home .g-feedback[data-state="correct"] { background: var(--pale-selected); }
.emerald-home .g-feedback[data-state="incorrect"] { background: var(--accent-coral-soft); }
/* Parent reassurance uses native disclosures rather than another row of feature cards. */
.emerald-home .g-parent-section { background: var(--white); }
.emerald-home .g-parent-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 72px; }
.emerald-home .g-parent-layout h2 { margin: 14px 0 20px; }
.emerald-home .g-parent-layout > div > p:last-child { color: var(--muted); max-width: 39ch; }
.emerald-home .g-faq details { border-bottom: 1px solid var(--line); }
.emerald-home .g-faq details:first-child { border-top: 1px solid var(--line); }
.emerald-home .g-faq summary { min-height: 72px; padding: 22px 36px 22px 0; font: 800 18px/1.5 var(--ui-heading-font); color: var(--garden-forest); }
.emerald-home .g-faq summary::after { top: 20px; }
.emerald-home .g-faq details p { padding: 0 24px 24px 0; font-size: 16px; color: var(--muted); }
.emerald-home .g-final { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-block: 56px; padding: 40px; border-radius: 24px; background: var(--accent-sunshine); }
.emerald-home .g-final h2 { margin: 10px 0; }
.emerald-home .g-final .g-button { flex-shrink: 0; }
.emerald-home .footer { border-top: 1px solid var(--line); gap: 24px; }
.emerald-home .footer > p { max-width: 45ch; font-size: 12px; }
.emerald-home .footer .back-top { min-height: 44px; }
@media (max-width: 1100px) {
  .emerald-home .g-node { gap: 12px; padding-inline: 12px; }
  .emerald-home .g-node strong { font-size: 18px; }
  .emerald-home .g-path.is-interactive { grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr); gap: 24px; }
  .emerald-home .is-interactive .g-path-panel { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .emerald-home .is-interactive .g-path-panel figure { width: min(100%,240px); margin-inline: auto; }
  .emerald-home .g-parent-layout { gap: 40px; }
  .emerald-home .g-final { padding: 32px; }
}
@media (max-width: 700px) {
  .emerald-home .g-wrap { width: calc(100% - 36px); }
  .emerald-home .g-hero { padding-top: 24px; }
  .emerald-home .g-benefits { gap: 12px; padding-block: 16px; }
  .emerald-home .g-benefits li { flex-direction: column; gap: 8px; text-align: center; font-size: 13px; line-height: 1.5; }
  .emerald-home .g-hero h1 { font-size: clamp(32px,8.6vw,46px); margin-block: 14px; }
  .emerald-home .g-hero-copy > .g-eyebrow { font-size: 11px; }
  .emerald-home .g-actions { gap: 10px; }
  .emerald-home .g-button { min-height: 48px; padding: 12px 16px; font-size: 15px; }
  .emerald-home .g-garden > img { border-radius: 20px; }
  .emerald-home .g-section-head { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .emerald-home .g-section-head > p { max-width: 100%; }
  .emerald-home .g-path.is-interactive,.emerald-home .g-sample-layout,.emerald-home .g-parent-layout { grid-template-columns: minmax(0,1fr); }
  .emerald-home .g-path-controls { gap: 10px; }
  .emerald-home .g-node { min-height: 88px; padding: 14px; gap: 14px; }
  .emerald-home .g-node strong { font-size: 20px; }
  .emerald-home .g-path-panel,.emerald-home .is-interactive .g-path-panel { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 24px; }
  .emerald-home .g-path-panel figure { max-width: 240px; margin-inline: auto; }
  .emerald-home .g-path-panel h3 { font-size: 27px; }
  .emerald-home .g-sample-intro .g-sample-symbol { display: none; }
  .emerald-home .g-sample { padding: 22px; }
  .emerald-home .g-dot-equation { gap: 16px; font-size: 24px; }
  .emerald-home .g-sample legend { font-size: 22px; }
  .emerald-home .g-parent-layout { gap: 28px; }
  .emerald-home .g-final { flex-direction: column; align-items: start; margin-block: 36px; padding: 28px; gap: 20px; }
  .emerald-home .g-final h2 { font-size: 32px; }
  .emerald-home .footer { flex-wrap: wrap; align-items: start; }
  .emerald-home .footer > p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .emerald-home *, .emerald-home *::before, .emerald-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .emerald-home .g-button:hover { transform: none; }
}

/* Report, progress and course compositions: real text and static, labelled demo values. */
.emerald-home .g-report-section { background: var(--white); }
.emerald-home :is(.g-report-layout,.g-progress-layout,.g-course-layout) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); gap: clamp(32px,5vw,72px); align-items: center; }
.emerald-home :is(.g-report-copy,.g-progress-copy,.g-course-layout > div) > h2 { margin: 14px 0 20px; }
.emerald-home .g-reasons { display: grid; gap: 12px; list-style: none; margin: 24px 0; padding: 0; }
.emerald-home .g-reasons li { display: flex; align-items: center; gap: 12px; }
.emerald-home .g-reasons .material-symbols-outlined { color: var(--brand); }
.emerald-home :is(.g-report,.g-progress-chart) { min-width: 0; margin: 0; padding: clamp(20px,3vw,32px); border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.emerald-home .g-report { background: var(--pale); box-shadow: 8px 8px 0 var(--pale-selected); }
.emerald-home .g-report-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.emerald-home .g-report-top h3 { margin-top: 6px; font-size: 24px; }
.emerald-home .g-report-top > .material-symbols-outlined { color: var(--brand); font-size: 32px; }
.emerald-home .g-group-bars { display: grid; gap: 22px; margin: 24px 0; }
.emerald-home .g-group-bars > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 12px; align-items: center; }
.emerald-home .g-group-bars dt { font-size: 15px; font-weight: 600; }
.emerald-home .g-group-bars dd { margin: 0; display: flex; flex-direction: column; align-items: end; gap: 8px; }
.emerald-home .g-group-bars strong { padding: 3px 8px; border-radius: 6px; background: var(--white); color: var(--garden-forest); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.emerald-home .g-bar-track { display: block; width: 100%; height: 18px; background: var(--line); border-radius: 6px; overflow: hidden; }
.emerald-home .g-bar-track > span { display: block; height: 100%; }
.emerald-home .g-group-bars [data-group="logic"] .g-bar-track > span { background: var(--logic); }
.emerald-home .g-group-bars [data-group="geometry"] .g-bar-track > span { background: var(--geometry); }
.emerald-home .g-group-bars [data-group="counting"] .g-bar-track > span { background: var(--counting); }
.emerald-home .g-report-observation { display: flex; gap: 12px; padding: 16px; background: var(--accent-sky); border-radius: 12px; }
.emerald-home .g-report-observation strong { font-size: 15px; font-weight: 600; }
.emerald-home .g-report-observation p { margin-top: 6px; font-size: 14px; }
.emerald-home .g-report-observation > span { flex: none; }
.emerald-home .g-report > .g-text-link { margin-top: 16px; }
.emerald-home .g-progress-chart { background: var(--accent-lavender); }
.emerald-home .g-progress-chart h3 { margin: 0 0 8px; font-size: 26px; }
.emerald-home .g-session-bars { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 24px 0 16px; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.emerald-home .g-session-bars li { display: grid; justify-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.emerald-home .g-session-bars strong { padding: 4px 6px; border-radius: 6px; background: var(--white); color: var(--garden-forest); font-weight: 600; max-width: 100%; white-space: normal; text-align: center; }
.emerald-home .g-session-track { display: flex; align-items: end; width: min(100%,76px); height: clamp(176px,18vw,224px); background: repeating-linear-gradient(to top,var(--line) 0 1px,transparent 1px 20%); border-radius: 6px 6px 0 0; overflow: hidden; }
.emerald-home .g-session-track > span { display: block; width: 100%; background: var(--brand); border-radius: 6px 6px 0 0; }
.emerald-home .g-session-bars li:nth-child(2) .g-session-track > span { background: var(--accent-coral); }
.emerald-home .g-session-bars li:nth-child(3) .g-session-track > span { background: var(--accent-sunshine); }
.emerald-home .g-session-bars li:nth-child(4) .g-session-track > span { background: var(--accent-lavender-ink); }
.emerald-home .g-progress-measures { display: grid; gap: 20px; margin: 24px 0; }
.emerald-home .g-progress-measures dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.emerald-home .g-progress-measures dd { margin: 6px 0 0 34px; color: var(--muted); }
.emerald-home .g-course-section { background: var(--accent-lavender); }
.emerald-home .g-course-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
.emerald-home .g-course-header h2 { margin: 12px 0 16px; }
.emerald-home .g-course-controls { display: flex; align-items: center; margin-left: auto; }
.emerald-home .g-course-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff80; }
.emerald-home .g-course-tabs button { min-width: 100px; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 13px; background: transparent; color: var(--garden-forest); font: 800 17px/1.4 var(--ui-heading-font); cursor: pointer; }
.emerald-home .g-course-tabs button[aria-selected="true"] { background: var(--garden-forest); color: var(--white); }
.emerald-home .g-course-catalog { display: grid; gap: 32px; margin-bottom: 28px; }
.emerald-home .g-course-group { min-width: 0; }
.emerald-home .g-course-section.is-interactive .g-course-catalog { gap: 0; }
.emerald-home .g-course-section.is-interactive .g-course-group-heading { display: none; }
.emerald-home .g-course-section.is-interactive .g-course-group { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 700ms ease, transform 700ms ease, visibility 0s 700ms; pointer-events: none; }
.emerald-home .g-course-section.is-interactive .g-course-group.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
.emerald-home .g-course-group-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.emerald-home .g-course-group-heading h3 { margin: 0; font-size: 26px; }
.emerald-home .g-course-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.emerald-home .g-course-card { min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.emerald-home .g-course-art { position: relative; aspect-ratio: 1; border-radius: 15px; background-image: url('/seo/assets/courses-20261029/timo-grades.png'); background-size: 300% 200%; background-repeat: no-repeat; }
.emerald-home [data-contest="fmo"] .g-course-art { background-image: url('/seo/assets/courses-20261029/fmo-grades.png'); }
.emerald-home .g-course-card-copy { padding: 18px 12px 16px; }
.emerald-home .g-course-grade { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-lavender); color: var(--garden-forest); font: 800 22px/1 var(--ui-heading-font); }
.emerald-home [data-contest="fmo"] .g-course-grade { background: var(--accent-sunshine); }
.emerald-home .g-course-card h4 { margin: 0 0 8px; color: var(--garden-forest); font: 800 18px/1.4 var(--ui-heading-font); }
.emerald-home .g-course-card p { margin: 0; color: var(--muted); font-size: 13px; }
.emerald-home .g-course-price { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--garden-forest); }
.emerald-home .g-course-price > span { color: var(--muted); font-size: 11px; }
.emerald-home .g-course-price strong { font: 800 22px/1.4 var(--ui-heading-font); }
.emerald-home .g-course-price small { font-size: 12px; font-weight: 600; }
@media (max-width: 1100px) { .emerald-home .g-course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) { .emerald-home .g-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .emerald-home .g-course-group-heading h3 { font-size: 23px; } }
@media (max-width: 380px) { .emerald-home .g-course-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .emerald-home .g-course-section.is-interactive .g-course-group { transition: none; transform: none; } }
.emerald-home .g-course-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.emerald-home .g-course-image { width: min(100%,280px); margin: 0 auto; }
.emerald-home .g-course-image img { border-radius: 20px; }
.emerald-home .g-course-links { display: grid; gap: 12px; margin: 24px 0 12px; }
.emerald-home .g-course-links a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; }
.emerald-home .g-course-links a > span:last-child { margin-left: auto; }
.emerald-home .g-course-links a:hover { border-color: var(--brand); background: var(--pale); }
@media (max-width: 1100px) {
  .emerald-home :is(.g-report-layout,.g-progress-layout,.g-course-layout) { gap: 32px; }
}
@media (max-width: 700px) {
  .emerald-home :is(.g-report-layout,.g-progress-layout,.g-course-layout) { grid-template-columns: minmax(0,1fr); }
  .emerald-home .g-progress-copy { grid-row: 1; }
  .emerald-home .g-course-image { width: min(100%,240px); }
  .emerald-home .g-course-layout > div { grid-row: 1; }
  .emerald-home .g-report { box-shadow: 4px 4px 0 var(--pale-selected); }
  .emerald-home .g-session-bars { gap: 8px; }
  .emerald-home .g-session-bars strong { font-size: 12px; }
  .emerald-home .g-report .g-text-link { font-size: 14px; }
}

@media (max-width: 480px) {
  .emerald-home .site-header .header-actions { width: 100%; justify-content: space-between; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.emerald-home) { scroll-behavior: auto; }
}

.local-course-catalog{padding-block:48px}.local-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.local-course-grid article{padding:20px;background:white;border:1px solid var(--line);border-radius:16px;scroll-margin-top:24px}.local-course-grid article:target{outline:3px solid var(--brand);background:var(--pale-selected)}@media(max-width:720px){.local-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.local-course-grid{grid-template-columns:1fr}}

/* Distinct homepage surfaces preserve the shared text, action and skill colors. */
.emerald-home .garden-main > :is(.g-hero,#chon-ky-thi,.g-progress-layout,.g-sample-layout,.g-benefits) { width: 100%; padding-inline: max(32px, calc((100% - 1208px) / 2)); }
.emerald-home .garden-main > .g-hero { background: #fffaf0; }
.emerald-home #chon-ky-thi { background: #e6f6ee; }
.emerald-home #cach-luyen { background: #ede3ff; }
.emerald-home .g-benefits { background: #eef4f8; }
.emerald-home #bao-cao { background: #fff0e6; }
.emerald-home #tien-bo { background: #edf4ff; }
.emerald-home #buoc-luyen { background: #fff6d9; }
.emerald-home #trai-nghiem { background: #fcebf0; }
.emerald-home #dong-hanh { background: #f0edff; }
.emerald-home .g-final { background: #ffdc83; }
@media (max-width: 700px) { .emerald-home .garden-main > :is(.g-hero,#chon-ky-thi,.g-progress-layout,.g-sample-layout,.g-benefits) { padding-inline: 18px; } }
