/* JTS in the ScholarAxis design system (2026), loaded after main.css.
   Same palette, type, buttons, header, footer and page headers as scholaraxis.org.
   Layout and functionality are unchanged: this file only restyles. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
	/* ScholarAxis palette mapped onto the JTS names, so every existing rule follows. */
	--purple: #1747a6; --purple-dark: #0a1f44; --purple-soft: #eaf0f8; --lavender: #e2e8f3;
	--navy: #0a1f44; --navy-deep: #061433;
	--blue: #1747a6; --blue-dark: #0f3a8a; --blue-soft: #eaf0f8; --royal: #1747a6;
	--gold: #f7901e; --gold-deep: #b85304; --gold-soft: #fff1de;
	--ink: #111a2e; --ink-2: #4a5670; --line: #dfe4ec; --tint: #f5f7fa;
	--display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r-sm: 8px; --r: 10px; --r-lg: 14px;
	--shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 8px 24px -16px rgba(10, 31, 68, .25);
	--shadow-lg: 0 30px 60px -30px rgba(10, 31, 68, .45);
}
body { font-family: var(--body); }
h1, h2, h3, h4, .section-title, .page-header__title, .hero__title { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; color: var(--navy); }
::selection { background: #ffe1bd; color: var(--navy); }
:focus-visible { outline: 3px solid #f7901e; outline-offset: 2px; }

/* Buttons: as on scholaraxis.org — square-ish, flat, navy / orange. */
.jts-btn { border-radius: 8px; box-shadow: none !important; font-family: var(--body); font-weight: 700; }
.jts-btn--primary { background: var(--navy); color: #fff; }
.jts-btn--primary:hover { background: var(--royal); color: #fff; }
.jts-btn--accent { background: var(--gold); color: var(--navy); }
.jts-btn--accent:hover { background: #ffa641; color: var(--navy); }
.jts-btn--outline, .jts-btn--ghost { color: var(--navy); border-color: var(--navy); }
.jts-btn--outline:hover, .jts-btn--ghost:hover { background: var(--navy); color: #fff; }

/* Top strip and header, as on scholaraxis.org */
.portal-bar { background: var(--navy); color: #d7e0ef; }
.portal-bar a { color: #fff; }
.site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.brand--sa { gap: 14px; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-label { padding-left: 14px; border-left: 1px solid var(--line); font: 700 .8rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); max-width: 9em; }
.primary-nav .menu a { border-radius: 0; background: none !important; font-weight: 600; color: var(--ink); }
.primary-nav .menu a:hover { color: var(--royal); }
.primary-nav .current-menu-item > a { color: var(--royal); box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 640px) { .brand-logo { height: 38px; } .brand-label { font-size: .7rem; padding-left: 10px; } }

/* Hero: flat, light, ScholarAxis colours (no purple wash). */
.hero { background: #f7f9fc; }
.hero__glow, .art__blob { display: none; }
.hero__free li { border-radius: 4px; background: #e2f3ea; color: #0b6b3f; }
.hero__title { color: var(--navy); }
.hero__spark { fill: var(--gold); opacity: .9; }
.hero__link { color: var(--royal); }
.hero__media { border-radius: 4px; }
.hero__media--art { background: var(--navy); box-shadow: var(--shadow-lg); }
.art .vcard { border-radius: 6px; }
.art .vcard--free { background: #0b6b3f; }
.art .vcard__bar span { background: var(--gold); }
.art .vcard__timer { color: var(--gold-deep); }
.art .ring__fill { stroke: var(--gold); }

/* Dark blocks: flat navy with the orange rule, like ScholarAxis page headers. */
.page-header { position: relative; background: var(--navy); color: #cbd6ea; }
.page-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 3px; background: var(--gold); }
.page-header__title { color: #fff; }
.panel--dark, .stats, .cta { background: var(--navy); }
.cta::before, .hero__sky { display: none; }
.panel { border-radius: var(--r-lg); }
.panel--soft { background: var(--tint); }
.pill { border-radius: 4px; }
.pill--class { background: var(--royal); }
.achiever__initials { background: var(--navy); }
.certificate { background: var(--tint); }
.feature--free { background: #f2faf6; }

/* Cards and forms: quieter corners. */
.course-card, .post-card, .feature, .path, .landing-card, .landing-sidecard, .contact-card, .faq__item, .faq-item, .jts-tile, .exam-row { border-radius: var(--r); }
.jts-field input, .jts-field select, .jts-field textarea { border-radius: 8px; }

/* Footer, as on scholaraxis.org */
.site-footer { background: var(--navy-deep); border-top: 3px solid var(--gold); color: #b9c7de; }
.site-footer .brand-logo { height: 48px; }
.site-footer .brand-label { color: #e8edf7; border-left-color: rgba(255, 255, 255, .25); }
.footer-widget__title, .site-footer h2, .site-footer h3 { font-family: var(--body); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; color: #e8edf7; }

/* Remaining purple washes → flat ScholarAxis navy */
.area--featured, .area:hover, .area:focus-visible { background: var(--navy); box-shadow: var(--shadow-lg); transform: none; }
.how__final { background: var(--navy); border-radius: var(--r-lg); }
.how__final .step__num { color: #ffb766; }
.step__num { color: var(--gold-deep); }
.course-card--subject:hover { box-shadow: var(--shadow-lg); }
.cta .jts-btn--primary, .panel--dark .jts-btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cta .jts-btn--primary:hover, .panel--dark .jts-btn--primary:hover { background: #ffa641; color: var(--navy); }
.cta__contact li { border-radius: var(--r); }
.page-header { margin: 0; border-radius: 0; }
.site-footer { margin: 0; border-radius: 0; background: var(--navy-deep); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { border-color: var(--royal) !important; outline: 3px solid rgba(23, 71, 166, .25) !important; }
.verify-form input:focus, .jts-field input:focus, .jts-field select:focus { box-shadow: 0 0 0 4px rgba(23, 71, 166, .15); }
.vcard__bar span { background: var(--gold); }

/* Header fits a long menu: tighter links on mid-size screens */
@media (max-width: 1360px) {
	.primary-nav .menu a { padding-inline: 8px; font-size: .94rem; }
	.brand-logo { height: 40px; }
	.brand-label { font-size: .72rem; padding-left: 12px; }
}

/* Headline numbers: four in a row on wide screens, two by two on tablets. */
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--navy); }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat__value { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }

/* One SVG logo (ScholarAxis + Junior Talent Search) */
.brand--sa { gap: 0; }
.brand-logo { height: 52px; width: auto; max-width: none; }
.site-footer .brand-logo { height: 56px; }
@media (max-width: 1360px) { .brand-logo { height: 46px; } }
@media (max-width: 640px) { .brand-logo { height: 40px; } }

/* Equal-size boxes: the "Free registration / Free course material" pair */
.hero__free { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.hero__free li { justify-content: center; text-align: center; }
@media (max-width: 420px) { .hero__free { grid-template-columns: 1fr; max-width: none; } .hero__free li { justify-content: flex-start; } }

/* Homepage H1: the keyword line under the headline */
.hero__kw { display: block; margin-top: 14px; font: 600 clamp(1.05rem, .95rem + .5vw, 1.3rem)/1.35 var(--body); letter-spacing: 0; color: var(--royal); }
