/* Homepage, 2026 design (template-parts/home-v2.php). Mobile first. */
.hx { --wrap: 1200px; color: var(--ink); }
.hx-wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.hx a { text-underline-offset: .2em; }
.hx-kicker { margin: 0 0 12px; font: 700 .78rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.hx-kicker--light { color: #ffb766; }
.hx-kicker--gold { color: #e7c46b; }
.hx-h2 { margin: 0 0 16px; font: 700 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1.08 var(--serif); color: var(--navy); letter-spacing: -.015em; }
.hx-h2--light { color: #fff; }
.hx-muted { color: var(--muted); }
.hx-section { padding: clamp(56px, 8vw, 104px) 0; }
.hx-section--tint { background: var(--tint); }
.hx-section--rule { border-top: 1px solid var(--line); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }

/* Buttons and links */
.hx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.hx-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hx-btn:hover { background: var(--royal); border-color: var(--royal); color: #fff; }
.hx-btn:hover svg, .hx-link:hover svg { transform: translateX(3px); }
.hx-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.hx-btn--accent:hover { background: #ffa641; border-color: #ffa641; color: var(--navy); }
.hx-btn--quiet { background: transparent; color: var(--navy); }
.hx-btn--quiet:hover { background: var(--navy); color: #fff; }
.hx-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hx-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.hx-btn--small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.hx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--royal); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.hx-link svg { width: 16px; height: 16px; transition: transform .2s; }
.hx-link:hover { color: var(--navy); }
.hx-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; font: 700 .78rem/1.2 var(--font); letter-spacing: .04em; white-space: nowrap; }
.hx-tag--open { background: #e2f3ea; color: #0b6b3f; }
.hx-tag--soon { background: #eef1f6; color: #4a5670; }

/* Hero */
.hx-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); background: #fff; }
.hx-hero__grid { display: grid; gap: 40px; align-items: center; }
.hx-hero__title { margin: 0; font: 700 clamp(2.8rem, 1.6rem + 5vw, 5.4rem)/.98 var(--serif); color: var(--navy); letter-spacing: -.03em; }
.hx-hero__sub { display: block; margin-top: 20px; font: 600 clamp(1.15rem, 1rem + .7vw, 1.5rem)/1.3 var(--font); letter-spacing: 0; color: var(--royal); }
.hx-hero__lead { margin: 20px 0 0; max-width: 34em; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }
.hx-live { display: block; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); max-width: 34em; }
.hx-live__dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: #13985b; box-shadow: 0 0 0 4px #d8f1e4; vertical-align: 1px; }
.hx-hero__art { position: relative; margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.hx-plate { display: block; width: 100%; height: auto; transform: rotate(-2deg); filter: drop-shadow(0 24px 36px rgba(10, 31, 68, .14)); }
.hx-slip { position: absolute; right: 0; bottom: -18px; display: grid; gap: 4px; min-width: 220px; padding: 16px 18px; background: var(--navy); color: #dbe4f3; border-left: 4px solid var(--accent); font-size: .9rem; }
.hx-slip__tag { font: 700 .72rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #ffb766; }
.hx-slip__line { font: 700 1.25rem/1.2 var(--serif); color: #fff; }
.hx-slip strong { color: #fff; }

/* Mathematics registration */
.hx-campaign { padding: clamp(56px, 8vw, 96px) 0; background: var(--navy); color: #d7e0ef; }
.hx-campaign__grid { display: grid; gap: 48px; }
.hx-campaign__text { max-width: 36em; font-size: 1.08rem; line-height: 1.65; margin: 0 0 28px; }
.hx-meter { margin: 0 0 28px; max-width: 30em; }
.hx-meter__figure { margin: 0 0 10px; font-size: 1.05rem; color: #fff; }
.hx-meter__figure strong { font: 700 2rem/1 var(--serif); color: #ffb766; margin-right: 4px; }
.hx-meter__bar { height: 8px; background: rgba(255, 255, 255, .14); }
.hx-meter__bar span { display: block; height: 100%; background: var(--accent); }
.hx-meter__note { margin: 8px 0 0; font-size: .85rem; color: #a9b8d3; }
.hx-benefits { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.hx-benefits li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.hx-benefits__k { font: 700 .75rem/1.6 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #ffb766; }
.hx-benefits strong { display: block; font: 700 1.3rem/1.25 var(--serif); color: #fff; margin-bottom: 2px; }
.hx-benefits li > span:last-child { color: #b9c7de; }
.hx-admin-note { display: block !important; font-size: .88rem; color: #ffd9a8; }

/* Subjects: an index, not cards */
.hx-split { display: grid; gap: 32px; }
.hx-split__head p { max-width: 26em; }
.hx-index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.hx-index__row { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.hx-index__n { font: 600 1rem/1 var(--serif); color: var(--accent-text); grid-row: span 3; }
.hx-index__name { margin: 0; font: 700 1.45rem/1.2 var(--serif); }
.hx-index__name a { color: var(--navy); text-decoration: none; }
.hx-index__name a:hover { color: var(--royal); text-decoration: underline; }
.hx-index__body p { margin: 4px 0 0; color: var(--muted); }
.hx-index__classes { font-size: .9rem; font-weight: 600; color: var(--ink); }

/* Examinations: a class ladder */
.hx-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 36px; }
.hx-head-row > p { max-width: 30em; margin: 0; }
.hx-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.hx-ladder__step { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.hx-ladder__step p { margin: 0; }
.hx-ladder__classes { font: 700 1.7rem/1.1 var(--serif); }
.hx-ladder__classes a { color: var(--navy); text-decoration: none; }
.hx-ladder__classes a:hover { color: var(--royal); }
.hx-ladder__subject { font-weight: 600; color: var(--muted); }
.hx-ladder__facts { margin: 4px 0; display: grid; gap: 6px; font-size: .92rem; }
.hx-ladder__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.hx-ladder__facts dt { color: var(--muted); }
.hx-ladder__facts dd { margin: 0; font-weight: 600; }
.hx-ladder__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px !important; }
.hx-foot-link { margin: 28px 0 0; }

/* Scholarship */
.hx-scholar { padding: clamp(56px, 8vw, 104px) 0; background: #0d1a36; color: #d3dcec; }
.hx-scholar__grid { display: grid; gap: 48px; align-items: start; }
.hx-scholar__text { max-width: 34em; font-size: 1.05rem; line-height: 1.7; }
.hx-scholar__groups { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.hx-scholar__groups li { padding: 6px 12px; border: 1px solid rgba(231, 196, 107, .5); color: #f1dca4; font-size: .9rem; font-weight: 600; }
.hx-awards { width: 100%; border-collapse: collapse; background: #fff; color: var(--ink); font-size: .97rem; }
.hx-awards caption { text-align: left; font: 700 1.3rem/1.2 var(--serif); color: #fff; padding-bottom: 14px; }
.hx-awards th, .hx-awards td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.hx-awards thead th { background: var(--tint); font: 700 .75rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hx-awards tbody th { white-space: nowrap; font-weight: 700; }
.hx-awards td:last-child { font: 700 1.15rem/1 var(--serif); color: var(--navy); white-space: nowrap; }
.hx-medal { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; font: 700 .85rem/1 var(--serif); color: #2b2205; vertical-align: middle; border: 2px solid rgba(0, 0, 0, .12); }
.hx-medal--gold { background: #e8c35a; }
.hx-medal--silver { background: #cfd5de; }
.hx-medal--bronze { background: #d99a64; }
.hx-podium__note { margin: 16px 0 0; font-size: .92rem; line-height: 1.6; color: #b5c2da; }

/* Certificates */
.hx-cert { display: grid; gap: 48px; align-items: center; }
.hx-cert__preview { margin: 0; }
.hx-cert__sheet { position: relative; aspect-ratio: 1.414; max-width: 560px; padding: 7% 8%; background: #fff; border: 1px solid #1f5c4a; outline: 6px solid #fff; box-shadow: 0 0 0 7px #1f5c4a, var(--shadow); text-align: center; color: #18212b; overflow: hidden; }
.hx-cert__sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-24deg, transparent 0 14px, rgba(31, 92, 74, .05) 14px 15px); }
.hx-cert__sheet > * { position: relative; }
.hx-cert__sample { position: absolute !important; top: 14px; right: -34px; transform: rotate(35deg); background: var(--accent); color: var(--navy); font: 800 .7rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; padding: 6px 40px; }
.hx-cert__org { margin: 0; font: 700 1rem/1 var(--font); color: var(--navy); letter-spacing: .06em; }
.hx-cert__title { margin: 6% 0 4%; font: 600 clamp(1.2rem, 2.4vw, 1.8rem)/1.1 var(--serif); }
.hx-cert__small { margin: 0; font: italic 600 .9rem/1.4 var(--serif); color: #4a5560; }
.hx-cert__name { margin: 2% auto 3%; padding-bottom: 4px; border-bottom: 1px solid #b9c3be; max-width: 70%; font: 700 clamp(1.3rem, 2.6vw, 2rem)/1.1 var(--serif); color: #1f5c4a; }
.hx-cert__exam { margin: 2% 0 0; font: 700 1.05rem/1.2 var(--serif); }
.hx-cert__foot { display: flex; justify-content: space-between; align-items: end; margin-top: 7%; text-align: left; font-size: .72rem; color: #4a5560; }
.hx-cert__foot b { font-size: .8rem; color: #18212b; letter-spacing: .02em; }
.hx-cert__qr { width: 52px; height: 52px; background: conic-gradient(#18212b 25%, #fff 0 50%, #18212b 0 75%, #fff 0) 0 0 / 13px 13px; border: 3px solid #18212b; }
.hx-cert__preview figcaption { margin-top: 18px; font-size: .88rem; max-width: 560px; }
.hx-verify { margin: 24px 0; padding: 20px; background: var(--tint); border-top: 3px solid var(--navy); }
.hx-verify label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.hx-verify__row { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-verify input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border: 1px solid #b8c2d3; border-radius: 8px; font: 500 1rem/1 ui-monospace, monospace; letter-spacing: .03em; background: #fff; }

/* How it works */
.hx-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.hx-steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--navy); }
.hx-steps__n { display: block; font: 700 3rem/1 var(--serif); color: var(--accent); margin-bottom: 12px; }
.hx-steps h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--navy); }
.hx-steps p { margin: 0; color: var(--muted); }

/* Parents and schools */
.hx-duo { display: grid; }
.hx-duo__half { padding: clamp(48px, 7vw, 88px) 20px; background: #fff; }
.hx-duo__half--royal { background: var(--royal); color: #e3ebf8; }
.hx-duo__in { max-width: 520px; margin-inline: auto; }
.hx-ticks { list-style: none; margin: 8px 0 28px; padding: 0; }
.hx-ticks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.hx-ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.hx-ticks--light li { border-color: rgba(255, 255, 255, .22); }
.hx-ticks--light li::before { border-color: #ffc27e; }

/* Study materials */
.hx-classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--navy); }
.hx-classes a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hx-classes a:hover { color: var(--royal); }
.hx-classes__n { flex: none; width: 3.2em; font: 700 1.7rem/1 var(--serif); color: var(--navy); }
.hx-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.hx-topics a { display: inline-block; padding: 10px 14px; border: 1px solid #c4cddb; border-radius: 6px; color: var(--navy); font-weight: 600; text-decoration: none; }
.hx-topics a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Learning Hub */
.hx-hub { display: grid; gap: 36px; }
.hx-hub__lead h3 { margin: 6px 0 12px; font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.15 var(--serif); }
.hx-hub__lead h3 a { color: var(--navy); text-decoration: none; }
.hx-hub__lead h3 a:hover { text-decoration: underline; }
.hx-hub__lead p { color: var(--muted); max-width: 36em; }
.hx-hub__date, .hx-hub__list time { font: 700 .75rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.hx-hub__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.hx-hub__list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hx-hub__list a { font: 600 1.12rem/1.35 var(--serif); color: var(--navy); text-decoration: none; }
.hx-hub__list a:hover { text-decoration: underline; color: var(--royal); }

/* Tablet and up */
@media (min-width: 760px) {
	.hx-index__row { grid-template-columns: 56px 1fr 130px 130px; }
	.hx-index__n { grid-row: auto; }
	.hx-index__classes, .hx-index__row .hx-tag { justify-self: start; }
	.hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
	.hx-ladder__facts div { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 1000px) {
	.hx-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
	.hx-hero__art { justify-self: end; }
	.hx-campaign__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
	.hx-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
	.hx-split__head { position: sticky; top: 110px; align-self: start; }
	.hx-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; border-top: 0; gap: 14px; }
	.hx-ladder__step { padding: 20px 18px 22px; border: 0; border-top: 4px solid var(--navy); background: #fff; min-height: calc(330px + var(--step) * 26px); align-content: start; box-shadow: var(--shadow); }
	.hx-ladder__step:nth-child(odd) { border-top-color: var(--royal); }
	.hx-scholar__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
	.hx-cert { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
	.hx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
	.hx-hub { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
}
@media (prefers-reduced-motion: reduce) { .hx * { transition: none !important; } }
@media (max-width: 599px) {
	.hx-benefits li { grid-template-columns: 76px 1fr; gap: 12px; }
	.hx-cert__sheet { aspect-ratio: auto; padding: 28px 20px 22px; }
	.hx-cert__foot { margin-top: 20px; }
	.hx-slip { position: relative; right: auto; bottom: auto; margin: -24px 0 0 auto; width: max-content; max-width: 100%; }
}

/* Hero, revised: photo on the right in a navy frame, fact strip below. */
.hx-hero { position: relative; overflow: hidden; background: #f7f9fc; padding-bottom: 0; }
.hx-hero > .hx-wrap { position: relative; }
.hx-hero__art--photo { max-width: 600px; }
.hx-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 545 / 460; object-fit: cover; border-radius: 4px; position: relative; z-index: 1; box-shadow: 0 30px 60px -30px rgba(10, 31, 68, .45); }
.hx-hero__art--photo::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--navy); border-radius: 4px; }
.hx-hero__art--photo::after { content: ""; position: absolute; left: -14px; top: 36px; width: 6px; height: 120px; background: var(--accent); z-index: 2; }
.hx-hero__art--photo .hx-slip { z-index: 3; right: auto; left: -24px; bottom: -40px; }
.hx-facts { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); }
.hx-facts li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--accent); }
.hx-facts strong { font: 700 1.1rem/1.25 var(--serif); color: var(--navy); }
.hx-facts span { font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) { .hx-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
	.hx-hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34%; background: var(--tint-2); }
	.hx-hero__grid { position: relative; }
}
@media (max-width: 999px) {
	.hx-hero__art--photo::before, .hx-hero__art--photo::after { display: none; }
	.hx-hero__art--photo .hx-slip { position: relative; left: auto; right: auto; bottom: auto; margin: 0; width: auto; min-width: 0; }
	.hx-hero__img { border-radius: 4px 4px 0 0; }
	.hx-facts { margin-top: 40px; }
}

/* Hero picture: shown clean (it carries its own design), no extra frame; never enlarged past its size. */
.hx-hero__art--photo { max-width: 545px; }
.hx-hero__art--photo::before, .hx-hero__art--photo::after { display: none; }
.hx-hero__img { border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(10, 31, 68, .5); }
@media (min-width: 1000px) { .hx-hero__art--photo .hx-slip { left: -32px; bottom: -28px; } }
@media (max-width: 999px) { .hx-hero__img { border-radius: 14px 14px 0 0; } .hx-hero__art--photo { margin-inline: auto; } }

/* Equal-size boxes and buttons */
.hx-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hx-topics a { display: flex; align-items: center; height: 100%; }
.hx-scholar__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-width: 560px; }
.hx-scholar__groups li { text-align: center; }
@media (max-width: 599px) {
	.hx-topics { grid-template-columns: 1fr; }
	.hx-actions { flex-direction: column; align-items: stretch; }
	.hx-actions .hx-btn { justify-content: center; }
	.hx-scholar__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
