/*
Theme Name: JEEInfo
Theme URI: https://jeeinfo.in
Description: Fast, mobile-first theme for JEEInfo: JEE Main/Advanced guides, rank and college predictors, and JoSAA cutoff pages.
Author: JEEInfo
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jeeinfo
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0d1330;
	--ink-2: #343c5c;
	--muted: #646c8a;
	--line: #e4e7f1;
	--bg: #ffffff;
	--bg-soft: #f5f6fb;
	--bg-dark: #0b1030;
	--brand: #3346ff;
	--brand-ink: #2233d6;
	--brand-soft: #eef0ff;
	--accent: #ffb020;
	--accent-ink: #1d1500;
	--good: #12805c;
	--good-bg: #e3f6ee;
	--ok: #1f5fd1;
	--ok-bg: #e6efff;
	--warn: #a15c00;
	--warn-bg: #fff2dc;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(13, 19, 48, .06), 0 8px 24px rgba(13, 19, 48, .06);
	--shadow-lg: 0 20px 50px rgba(13, 19, 48, .18);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--container: 1180px;
	--gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 28px; }
.section__head p { color: var(--muted); margin: 0; }
.subhead { margin-top: 32px; font-size: 17px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: #fff; letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
	transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(51, 70, 255, .3); }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffa000; color: var(--accent-ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #7b5cff); color: #fff; font-weight: 800; font-size: 18px; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand__name b { color: var(--brand); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name b { color: var(--accent); }
.brand__logo { max-height: 40px; width: auto; }

.nav-toggle { display: inline-flex; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline; }

.nav { display: none; }
/* backdrop-filter makes the header a containing block for fixed children,
   which clipped the open menu to the header's height. Drop it while open. */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.nav-open { overflow: hidden; }
.nav-open .nav { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px var(--gutter) 32px; border-top: 1px solid var(--line); }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__item > a { display: block; padding: 14px 0 6px; font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none; }
.nav__item { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.nav__sub a { display: block; padding: 9px 0 9px 14px; color: var(--ink-2); text-decoration: none; font-size: 16px; }
.nav__cta { margin-top: 20px; width: 100%; }
.nav__sub-label { padding: 12px 0 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.nav, .nav-open .nav { display: flex; align-items: center; gap: 4px; position: static; padding: 0; background: none; overflow: visible; }
	.nav__list { display: flex; gap: 2px; }
	.nav__item { position: relative; }
	.nav__item { border: 0; padding: 0; }
	.nav__item > a { padding: 10px 14px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; }
	.nav__item > a:hover, .nav__item.is-current > a { background: var(--brand-soft); color: var(--brand); }
	.nav__sub {
		position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: #fff;
		border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
	}
	.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
	.nav__sub a { padding: 9px 12px; border-radius: 8px; font-size: 15px; }
	.nav__sub-label { padding: 10px 12px 4px; }
	.nav__sub--wide { min-width: 520px; column-count: 2; column-gap: 8px; }
	.nav__sub--wide li { break-inside: avoid; }
	.nav__sub--wide .nav__sub-label { break-after: avoid; }
	.nav__sub a:hover { background: var(--bg-soft); color: var(--brand); }
	.nav__cta { margin: 0 0 0 10px; width: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden; color: #c9cdf0;
	background: radial-gradient(800px 400px at 85% 10%, rgba(123, 92, 255, .35), transparent 60%),
	            radial-gradient(600px 400px at 0% 100%, rgba(51, 70, 255, .35), transparent 60%), var(--bg-dark);
	padding: 56px 0 64px;
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero__title { color: #fff; font-size: clamp(32px, 6vw, 56px); }
.hero__title .hl { background: linear-gradient(90deg, #8fa0ff, #c4b5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: 18px; max-width: 600px; }
.hero-form { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 24px 0 18px; }
.hero-form input {
	min-height: 54px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .15);
	background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 17px;
}
.hero-form input::placeholder { color: #9aa0c7; }
.hero-form input:focus { outline: none; border-color: var(--accent); }
.hero-form .btn { min-height: 54px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.hero__trust .icon { color: var(--accent); }
.hero__panel { display: none; }
.mock-card { background: #fff; color: var(--ink-2); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); max-width: 360px; margin-left: auto; transform: rotate(-2deg); }
.mock-card__label { font-size: 13px; color: var(--muted); }
.mock-card__big { display: block; font-size: 34px; color: var(--ink); margin-bottom: 14px; }
.mock-card__row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.mock-card__row b { color: var(--ink); }
.mock-card__bar { height: 8px; background: var(--brand-soft); border-radius: 99px; margin: 14px 0; overflow: hidden; }
.mock-card__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7b5cff); }
.mock-card__foot { font-weight: 700; color: var(--brand); font-size: 14px; }
@media (min-width: 640px) {
	.hero-form { flex-direction: row; background: rgba(255, 255, 255, .08); padding: 6px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .12); }
	.hero-form input { flex: 1; border: 0; background: none; }
}
@media (min-width: 960px) {
	.hero { padding: 88px 0 96px; }
	.hero__inner { grid-template-columns: 1.4fr 1fr; }
	.hero__panel { display: block; }
}

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 10px; }
.page-hero__lede { color: var(--muted); font-size: 18px; max-width: 780px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.meta-updated { display: inline-flex; align-items: center; gap: 6px; }
.page-hero--tool { background: linear-gradient(180deg, var(--brand-soft), #fff); }

.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #b3b8cf; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- Layout & prose ---------- */
.layout { padding-top: 32px; padding-bottom: 56px; max-width: 860px; }
.layout--wide { max-width: var(--container); }

/* Article + sticky sidebar: the article starts at the same left edge as the
   page title and keeps a readable measure; the sidebar fills the right. */
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; }
.layout-grid > .entry { min-width: 0; max-width: 800px; }
.sidebar { display: none; }
@media (min-width: 1024px) {
	.layout-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
	.sidebar { display: block; }
	.sidebar__inner { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.toc, .side-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toc__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol, .side-card ul { list-style: none; margin: 0; padding: 0; }
.toc li { border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--brand); }
.toc li:has(a:hover) { border-left-color: var(--brand); }
.side-card { background: var(--bg-soft); }
.side-card a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.side-card a .icon { color: var(--brand); }
.side-card a:hover { color: var(--brand); }
.prose h2[id], .cutoff-block h2 { scroll-margin-top: 84px; }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .wp-block-table, .prose figure.wp-block-table { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table, .jee-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.prose table td, .prose table th, .jee-table td, .jee-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table thead th, .prose table:not(.jee-table):not(:has(thead)) tr:first-child td, .jee-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
.prose .wp-block-table table { border: 1px solid var(--line); border-radius: var(--radius-sm); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose .wp-block-table td, .prose .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }
.prose .wp-block-table td:first-child { font-weight: 600; color: var(--ink); }
.jee-table thead th { position: sticky; top: 0; white-space: nowrap; }
.jee-table tbody tr:hover { background: #fafbff; }
.jee-table tbody th { font-weight: 600; color: var(--ink); min-width: 160px; }
@media (min-width: 768px) { .jee-table tbody th { min-width: 240px; } }
.jee-table td, .jee-table th { font-size: 14px; }
@media (min-width: 768px) { .jee-table td, .jee-table th { font-size: 15px; } }
.jee-table small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.jee-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 12px; max-height: 80vh; }
.table-wrap .jee-table tr:last-child td, .table-wrap .jee-table tr:last-child th { border-bottom: 0; }

.table-note { font-size: 14px; color: var(--muted); margin: 0 0 1.5em; }
.prose .table-wrap { margin-top: 1em; }

/* ---------- College facts ---------- */
.facts-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
.facts-grid > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.facts-grid dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.facts-grid dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.facts-grid small { color: var(--muted); font-weight: 400; }
.reach-list { padding-left: 1.2em; }
.reach-list li { margin-bottom: 6px; }
.college-reach .btn { margin: 0 8px 8px 0; }

/* ---------- Year navigation ---------- */
.year-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.year-tabs__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.year-tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.year-tabs a.is-active, .year-tabs a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 768px) { .filter-bar--two { grid-template-columns: 1fr 1fr auto; } }
.archive-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.archive-note a { color: inherit; font-weight: 700; }
.jee-table th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }
.jee-table thead th:first-child { background: var(--bg-soft); z-index: 2; }

/* ---------- Ads (rendered only when AdSense is enabled) ---------- */
.ad-slot { margin: 32px 0; min-height: 280px; text-align: center; clear: both; }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot--sidebar { min-height: 250px; margin: 0; }
.buy-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.buy-link:hover { border-color: var(--accent); }
.buy-link::after { content: "↗"; font-size: 12px; color: var(--muted); }

/* ---------- People ---------- */
.meta-reviewer a { color: var(--ink-2); font-weight: 600; }
.person-card { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); scroll-margin-top: 80px; }
.person-card__avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7b5cff); color: #fff; font-weight: 800; font-size: 22px; }
.person-card > div { min-width: 0; padding-top: 4px; }
.prose .person-card__name, .person-card__name { margin: 0; font-size: 22px; line-height: 1.25; }
.person-card__role { margin: 2px 0 10px; color: var(--brand); font-weight: 700; font-size: 14px; }
.person-card p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .person-card { flex-direction: column; gap: 12px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card--link { text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card__text { color: var(--muted); font-size: 15px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 14px; padding-top: 8px; }
.child-pages { margin-top: 40px; }

.tool-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card {
	display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; border: 1px solid var(--line);
	background: #fff; color: var(--muted); text-decoration: none; font-size: 15px; transition: .15s;
}
.tool-card strong { color: var(--ink); font-size: 19px; }
.tool-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--muted); }
.tool-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.tool-card__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.tool-card--feature { background: linear-gradient(160deg, var(--brand), #6a4dff); border: 0; color: #dfe3ff; }
.tool-card--feature strong, .tool-card--feature .tool-card__go { color: #fff; }
.tool-card--feature .tool-card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.tool-card--feature:hover { color: #dfe3ff; }

.type-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card { padding: 22px; border-radius: var(--radius); background: var(--bg-dark); color: #aab0d6; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.type-card strong { font-size: 26px; color: #fff; }
.type-card:hover { background: var(--brand); color: #fff; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.pill-list a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.timeline__when { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.timeline__item strong { color: var(--ink); }
.status { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.status--expected { background: var(--warn-bg); color: var(--warn); }
.status--confirmed { background: var(--good-bg); color: var(--good); }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-grid .icon { color: var(--brand); margin-bottom: 8px; }
.trust-grid p { color: var(--muted); font-size: 15px; }

/* ---------- Next steps ---------- */
.next-steps { margin-top: 48px; padding: 24px; border-radius: 20px; background: var(--bg-dark); color: #aab0d6; }
.next-steps__title { color: #fff; font-size: 22px; }
.next-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .next-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .layout--wide .next-steps__list { grid-template-columns: repeat(4, 1fr); } }
.next-steps__list a { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background .15s; }
.next-steps__list a:hover { background: var(--brand); color: #fff; }
.next-steps__list small { display: block; color: #aab0d6; font-size: 13px; }
.next-steps__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); flex: none; }

/* ---------- College pages ---------- */
.answer-box { padding: 20px 22px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid #d6dbff; margin-bottom: 24px; }
.answer-box__title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px; }
.answer-box p { color: var(--ink); }
.filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 28px; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.filter-bar .btn { min-height: 44px; }
@media (min-width: 768px) { .filter-bar { grid-template-columns: repeat(3, 1fr) auto; } }
.cutoff-block { margin-bottom: 36px; }
.cutoff-block h2 { font-size: clamp(19px, 2.4vw, 24px); }
.type-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.type-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.type-tabs a.is-active, .type-tabs a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.source-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 14px; color: var(--muted); }
.source-note .icon { color: var(--good); margin-top: 3px; }
.source-note p { margin: 0; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq__item summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; padding-right: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--brand); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 18px 16px; margin: 0; }

/* ---------- Forms & tools ---------- */
select, input[type=text], input[type=number], input[type=search], input[type=email] {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #cfd4e6; border-radius: 12px;
	background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.jee-tool { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 0 28px; }
.jee-tool__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jee-tool__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .jee-tool__grid { grid-template-columns: repeat(3, 1fr); } }
.jee-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.jee-field[hidden] { display: none; }
.jee-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); align-self: end; min-height: 48px; }
.jee-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.jee-tool__more { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.jee-tool__more summary { cursor: pointer; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.jee-tool__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.jee-tool__note { font-size: 14px; color: var(--muted); }
.jee-tool__error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #a3201c; font-weight: 600; }
.jee-tool.is-loading .btn--primary { opacity: .6; pointer-events: none; }
.jee-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.jee-tabs button { flex: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.jee-tabs button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.jee-results { margin: 0 0 32px; scroll-margin-top: 80px; }
.jee-results__head p { color: var(--muted); }
.jee-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.jee-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.jee-chips button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge--high { background: var(--good-bg); color: var(--good); }
.badge--good { background: var(--ok-bg); color: var(--ok); }
.badge--borderline { background: var(--warn-bg); color: var(--warn); }
.jee-empty { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.jee-stat-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 640px) { .jee-stat-row { grid-template-columns: 1fr 1fr; } }
.jee-stat { padding: 20px; border-radius: var(--radius); background: var(--bg-dark); color: #aab0d6; }
.jee-stat strong { display: block; font-size: clamp(26px, 4vw, 36px); color: #fff; font-variant-numeric: tabular-nums; }

.search-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.search-form .search-submit { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #9aa0c7; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #d5d8f3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.site-footer__about { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .site-footer__about { grid-column: auto; } }
.site-footer__h { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__disclaimer { font-size: 13px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Legacy block content from the previous theme ---------- */
.prose .wp-block-cover { min-height: 0 !important; padding: 0 !important; }
.prose .wp-block-media-text { display: block; }
.prose .wp-block-media-text__media { display: none; }
.prose [class*="has-ast-global-color"] { color: inherit; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
