/* onlinevorti.com — portal + institution pages. Mobile first.
   Portal: School360 red -> purple gradient (same family as the fee payment portal).
   Institution pages: --primary from the school colour (Theme.php). */
:root {
    --ink: #1E1534;
    --ink-2: #645D74;
    --paper: #FAF8FC;
    --surface: #FFFFFF;
    --line: #E9E4F0;
    --red: #C21F30;
    --plum: #7A1F5C;
    --violet: #3A1677;
    --grad: linear-gradient(180deg, #C21F30 0%, #8A1F55 48%, #3A1677 100%);
    --btn: linear-gradient(90deg, #A3204A 0%, #4E1A7E 100%);
    --gold: #F6E7A1;
    --primary: #7A1F5C;
    --primary-hover: #5E1747;
    --primary-soft: #F4E8F1;
    --on-primary: #FFFFFF;
    --open: #13795B;
    --open-bg: #E2F3EC;
    --soon: #8A5300;
    --soon-bg: #FDF0DA;
    --closed: #5E6B73;
    --closed-bg: #EEEDF1;
    --err: #B42318;
    --err-bg: #FDECEA;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 18px;
    --font: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
    --font-head: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid #F2B8C6; outline-offset: 2px; }
.wrap { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; transition: background .25s, box-shadow .25s; }
.bar.is-stuck { box-shadow: 0 8px 24px -16px rgba(30, 21, 52, .35); }
.bar--grad { background: linear-gradient(90deg, #C21F30, #6A1B63 60%, #3A1677); border: 0; color: #fff; }
.has-hero .bar--grad { position: fixed; inset: 0 0 auto; }
.js .has-hero .bar--grad:not(.is-stuck) { background: transparent; }   /* clear over the hero, gradient once the page scrolls */
.has-hero .bar--grad.is-stuck { box-shadow: 0 10px 30px -18px rgba(20, 8, 50, .6); }
@media (min-width: 40rem) { .bar__in { transition: min-height .25s; } .bar.is-stuck .bar__in { min-height: 3.75rem; } }
html { scroll-padding-top: 5rem; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; min-width: 0; }
.brand__logo { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand__name { font-weight: 600; font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lockup { display: flex; align-items: center; gap: .8rem; color: #fff; }
.lockup__logo { width: 92px; height: auto; flex: none; }
.lockup__text { display: flex; flex-direction: column; line-height: 1.2; padding-left: .8rem; border-left: 1.5px solid rgba(255, 255, 255, .45); }
.lockup__text strong { font-size: 1.1rem; font-weight: 700; }
.lockup__text small { font-size: .78rem; opacity: .85; font-weight: 500; }
.brand__name small { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.bar__user { font-size: .9rem; opacity: .85; }
@media (max-width: 30rem) { .bar .lockup__text small { display: none; } .bar .lockup__logo { width: 76px; } }
.bar__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.lang { display: flex; gap: .15rem; }
.lang a { padding: .3rem .55rem; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.lang a[aria-current] { background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.bar--grad .lang a { color: rgba(255, 255, 255, .85); }
.bar--grad .lang a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }
.hbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; background: transparent; }
.hbtn--line { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.hbtn--line:hover { background: rgba(255, 255, 255, .12); }
.hbtn--wide { display: none; }
@media (min-width: 40rem) { .hbtn--wide { display: inline-flex; } }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--grad); color: #fff; padding: 6.5rem 0 2.25rem; border-radius: 0 0 1.5rem 1.5rem; position: relative; overflow: hidden; }
@media (max-width: 40rem) {
    .hero__lead { font-size: .98rem; }
    .steps { padding: .25rem 1rem; }
    .steps__item { padding: .7rem 0; gap: .8rem; }
    .steps__num { width: 1.9rem; height: 1.9rem; font-size: .9rem; }
    .steps strong { font-size: .98rem; }
    .steps__item span span { font-size: .85rem; }
}
.hero::after { content: ""; position: absolute; width: 26rem; height: 26rem; right: -9rem; bottom: -13rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 4rem rgba(255, 255, 255, .03); pointer-events: none; }
.hero__in { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; margin: 0 0 .9rem; padding: .2rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; font-size: .88rem; }
.hero__eyebrow::before { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--gold); margin-right: .55rem; vertical-align: middle; }
.hero__title { margin: 0 0 1rem; color: var(--gold); font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); line-height: 1.18; font-weight: 700; max-width: 15ch; text-wrap: balance; }
.hero__lead { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .9); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: .5rem 1.25rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.steps__item { display: flex; gap: 1rem; align-items: center; padding: .95rem 0; }
.steps__item + .steps__item { border-top: 1px solid rgba(255, 255, 255, .16); }
.steps__num { width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-weight: 600; }
.steps strong { display: block; color: var(--gold); font-size: 1.05rem; line-height: 1.3; }
.steps__item span span { display: block; font-size: .92rem; color: rgba(255, 255, 255, .85); }
@media (min-width: 56rem) {
    .hero { padding: 8rem 0 3.75rem; }
    .hero__in { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
}

/* ---------------------------------------------------------------- finder + cards */
.finder-sec { padding: 2.25rem 0 3.5rem; }
.finder-sec__head { margin-bottom: .9rem; }
.finder-sec__title { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); line-height: 1.25; }
.finder-sec__count { margin: .1rem 0 0; color: var(--ink-2); }

/* search + filters: one bar; on phones it stays under the fixed header while scrolling */
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.5rem; }
.search { position: relative; order: 2; flex: 0 1 24rem; }
.search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; font: inherit; padding: .8rem 2.6rem .8rem 2.75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 21, 52, .04); }
.search input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px var(--primary-soft); }
.search__key { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: .78rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 .4rem; background: var(--paper); }
.search input:focus + .search__key, .search input:not(:placeholder-shown) + .search__key { display: none; }
.seg { order: 1; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn { flex: none; font: inherit; font-size: .92rem; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.seg__btn span { color: var(--ink-2); margin-left: .2rem; }
.seg__btn[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.seg__btn[aria-pressed="true"] span { color: #D9CCEF; }
.seg__btn:disabled { opacity: .45; cursor: default; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.card { display: flex; }
.card__link { flex: 1; display: flex; flex-direction: column; text-align: center; padding: 1rem 1.1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(30, 21, 52, .04); transition: border-color .15s, box-shadow .2s, transform .2s; }
.card__link::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--btn); }
.card__link:hover { border-color: #D7C7E6; box-shadow: 0 18px 36px -24px rgba(58, 22, 119, .55); transform: translateY(-2px); }
.card__top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--ink-2); margin-bottom: .75rem; }
.card__arrow { width: 1.6rem; height: 1.6rem; padding: .35rem; border-radius: 50%; background: var(--paper); fill: none; stroke: var(--plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__logo { height: 7rem; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 1rem; background: linear-gradient(135deg, #FDEFF3, #F2EEFB); flex: none; }
.card:nth-child(4n+2) .card__logo { background: linear-gradient(135deg, #EAF7F4, #EEF1FC); }
.card:nth-child(4n+3) .card__logo { background: linear-gradient(135deg, #FEF6E7, #FBEFF4); }
.card:nth-child(4n+4) .card__logo { background: linear-gradient(135deg, #F1F3F6, #F6EEF9); }
.card__logo img { width: 88px; height: 88px; object-fit: contain; }
.card__initials { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--plum); font-weight: 700; font-size: 1.4rem; box-shadow: 0 0 0 1px var(--line); }
.card__text { display: flex; flex-direction: column; }
.card__name { font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.card__alt { color: var(--ink-2); font-size: .88rem; line-height: 1.4; margin-top: .3rem; }
.card__state { align-self: center; display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; margin: .8rem 0 1rem; padding: .15rem .7rem; border-radius: 999px; white-space: nowrap; }
.card__state::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.card__state--open { background: var(--open-bg); color: var(--open); }
.card__state--soon { background: var(--soon-bg); color: var(--soon); }
.card__state--closed { background: var(--closed-bg); color: var(--closed); }
.card__btn { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--btn); color: #fff; font-weight: 700; font-size: .98rem; }
.card__btn .i { transition: transform .15s; }
.card__link:hover .card__btn .i { transform: translateX(3px); }
.none { padding: 2rem 0; color: var(--ink-2); }

.help { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-radius: var(--r-lg); background: linear-gradient(90deg, #F7EAF0, #EFE9F8); border: 1px solid #E6D9EE; }
.help strong { display: block; font-size: 1.05rem; }
.help span { color: var(--ink-2); font-size: .95rem; }
.help__btn { padding: .6rem 1.1rem; border-radius: var(--r-sm); background: #fff; color: var(--violet); font-weight: 700; text-decoration: none; border: 1px solid #E6D9EE; white-space: nowrap; }

/* phones: compact row cards, sticky search, full-width actions */
@media (max-width: 40rem) {
    .finder-bar { position: sticky; top: 4.5rem; z-index: 10; margin: 0 -1rem 1rem; padding: .6rem 1rem .7rem; background: rgba(250, 248, 252, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
    .finder-bar.is-pinned { border-bottom-color: var(--line); }
    .search { order: 1; flex: 1 1 100%; }
    .search input { padding-top: .7rem; padding-bottom: .7rem; font-size: 16px; }   /* 16px: iPhone does not zoom in */
    .search__key { display: none; }
    .seg { order: 2; flex: 1 1 100%; margin: 0 -1rem; padding: 0 1rem; }
    .cards { grid-template-columns: 1fr; gap: .75rem; }
    .card__link { display: grid; grid-template-columns: 4.5rem 1fr; grid-template-areas: "logo text" "logo state" "btn btn"; gap: .2rem .9rem; text-align: left; padding: 1rem; align-items: center; }
    .card__link:hover { transform: none; }
    .card__top { display: none; }
    .card__logo { grid-area: logo; width: 4.5rem; height: 4.5rem; margin: 0; align-self: start; }
    .card__logo img { width: 56px; height: 56px; }
    .card__initials { width: 3.4rem; height: 3.4rem; font-size: 1.1rem; }
    .card__text { grid-area: text; }
    .card__name { font-size: 1.02rem; }
    .card__alt { font-size: .82rem; margin-top: .1rem; }
    .card__state { grid-area: state; align-self: start; justify-self: start; margin: .3rem 0 0; font-size: .8rem; }
    .card__btn { grid-area: btn; margin-top: .8rem; padding: .65rem .9rem; }
    .help { padding: 1rem 1.1rem; }
    .help__btn { flex: 1 1 100%; text-align: center; }
}

/* ---------------------------------------------------------------- institution pages (school colour from Theme.php) */
/* header, menu and footer in the school's website_main_color */
.is-institute .bar { background: var(--primary); color: var(--on-primary); border-bottom: 0; }
.is-institute .bar.is-stuck { box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .45); }
.is-institute .brand__logo { width: 44px; height: 44px; padding: 4px; background: #fff; border-radius: 10px; }
.is-institute .brand__name small { color: inherit; opacity: .8; }
.is-institute .lang a { color: inherit; opacity: .8; }
.is-institute .lang a[aria-current] { opacity: 1; background: rgba(255, 255, 255, .18); color: inherit; }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: .8rem .9rem .7rem; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--primary-ink, var(--primary)); border-bottom-color: var(--primary); font-weight: 600; }
.is-institute .foot { background: linear-gradient(180deg, var(--primary-hover) 0%, var(--primary-deep) 100%); }
.is-institute .foot__title { color: #fff; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-hero { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); padding: 2.25rem 0 2.5rem; }
.ac-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 22rem at 85% -10%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(160deg, transparent 40%, var(--primary-hover) 100%); pointer-events: none; }
.ac-hero::after { content: ""; position: absolute; width: 22rem; height: 22rem; left: -8rem; bottom: -14rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .04); pointer-events: none; }
.ac-hero__in { position: relative; z-index: 1; }
.ac-hero__in { display: grid; gap: 1.5rem; align-items: center; position: relative; z-index: 1; }
.ac-hero__school { display: flex; gap: 1rem; align-items: center; }
.ac-hero__logo { width: 64px; height: 64px; flex: none; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .4); }
.ac-hero__logo img { width: 52px; height: 52px; object-fit: contain; }
.ac-hero__kicker { margin: 0 0 .15rem; font-size: .92rem; opacity: .85; font-weight: 500; }
.ac-hero__title { margin: 0; font-size: clamp(1.45rem, 1.05rem + 2vw, 2.3rem); line-height: 1.25; text-wrap: balance; }
.ac-hero__addr { margin: .25rem 0 0; opacity: .85; font-size: .95rem; }
.ac-status { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.ac-status__pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; padding: .15rem .7rem; border-radius: 999px; background: var(--closed-bg); color: var(--closed); }
.ac-status__pill i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.ac-status--open .ac-status__pill { background: var(--open-bg); color: var(--open); }
.ac-status--open .ac-status__pill i { animation: ac-pulse 1.6s ease-in-out infinite; }
.ac-status--soon .ac-status__pill { background: var(--soon-bg); color: var(--soon); }
@keyframes ac-pulse { 50% { opacity: .35; } }
.ac-status__main { margin: .7rem 0 .1rem; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.ac-status__main b { color: var(--primary-ink, var(--primary)); }
.ac-status__sub { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ac-status__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; padding: .7rem 1.2rem; border-radius: var(--r-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.ac-btn--main, .ac-btn--solid { background: var(--primary); color: var(--on-primary); }
.ac-btn--main:hover, .ac-btn--solid:hover { background: var(--primary-hover); }
.ac-btn--line, .ac-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.ac-btn--line:hover, .ac-btn--ghost:hover { border-color: var(--primary-tint); background: var(--primary-wash); }
@media (min-width: 56rem) {
    .ac-hero { padding: 3rem 0 3.25rem; }
    .ac-hero__in { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
}
@media (max-width: 40rem) { .ac-status__actions .ac-btn { flex: 1 1 100%; } }

.ac { padding: 1.75rem 0 3.5rem; display: grid; gap: 1.25rem; }
.ac--narrow { max-width: 46rem; }
.ac-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--primary-wash); border: 1px solid var(--primary-tint); color: var(--ink); }
.ac-note .ico { color: var(--primary-ink, var(--primary)); margin-top: .15rem; }
.ac-services { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ac-svc { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .2s; }
.ac-svc:hover { border-color: var(--primary-tint); box-shadow: 0 12px 28px -22px var(--primary); transform: translateY(-1px); }
.ac-svc__icon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink, var(--primary)); }
.ac-svc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ac-svc__text small { color: var(--ink-2); font-size: .85rem; }
.ac-svc__go { color: var(--ink-2); }
.ac-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; }
.ac-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.ac-card__title { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: 1.15rem; }
.ac-card__head .ac-card__title { margin: 0; }
.ac-card__title .ico { color: var(--primary-ink, var(--primary)); }
.ac-chip { font-size: .85rem; padding: .15rem .7rem; border-radius: 999px; background: var(--primary-wash); color: var(--primary-ink, var(--primary)); font-weight: 600; }
.ac-empty { color: var(--ink-2); margin: .25rem 0; }
.ac-sched { display: grid; gap: .75rem; }
.ac-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: .95rem 1rem; border-left: 4px solid var(--closed-bg); }
.ac-row--open { border-left-color: var(--open); }
.ac-row--soon { border-left-color: var(--soon); }
.ac-row__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ac-row h3 { margin: 0; font-size: 1.05rem; }
.ac-row__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; }
.ac-row__tags span { font-size: .82rem; padding: .05rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.ac-row__tags:empty { display: none; }
.ac-badge { flex: none; font-size: .8rem; padding: .1rem .6rem; border-radius: 999px; background: var(--closed-bg); color: var(--closed); }
.ac-badge--open { background: var(--open-bg); color: var(--open); }
.ac-badge--soon { background: var(--soon-bg); color: var(--soon); }
.ac-row__facts { display: grid; gap: .5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: .85rem 0 0; }
.ac-row__facts div { min-width: 0; }
.ac-row__facts dt { font-size: .8rem; color: var(--ink-2); }
.ac-row__facts dd { margin: 0; font-weight: 500; }
.ac-row__fee dd { color: var(--primary-ink, var(--primary)); font-weight: 700; }
.ac-two { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .ac-two { grid-template-columns: 1fr 1fr; align-items: start; } }
.ac-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ac-files a { display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.ac-files a:hover { border-color: var(--primary-tint); background: var(--primary-wash); }
.ac-files a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.ac-files small { color: var(--ink-2); }
.ac-files__type { font-size: .72rem; font-weight: 700; padding: .2rem .4rem; border-radius: 4px; background: #FDECEA; color: #B42318; }
.ac-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.ac-contacts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.ac-contacts li:last-child { border-bottom: 0; }
.ac-contacts__who { color: var(--ink-2); }
.ac-contacts a { font-weight: 600; color: var(--primary-ink, var(--primary)); text-decoration: none; white-space: nowrap; }
.prose { line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose img { height: auto; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .4rem .6rem; }

.sub-head { background: linear-gradient(160deg, var(--primary) 40%, var(--primary-hover) 100%); color: var(--on-primary); padding: 1.5rem 0 1.6rem; }
.sub-head__back { color: inherit; opacity: .85; font-size: .9rem; text-decoration: none; }
.sub-head__back::before { content: "← "; }
.sub-head__back:hover { opacity: 1; text-decoration: underline; }
.sub-head h1 { margin: .25rem 0 0; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.3; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ac-steps li { display: flex; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.ac-steps__no { width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.ac-steps h2 { margin: .2rem 0 .25rem; font-size: 1.05rem; }
.ac-center { text-align: center; }
.ac-pdf__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-bottom: 1rem; }
.ac-pdf__frame { width: 100%; height: 75vh; min-height: 28rem; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- simple pages, forms, admin */
.notice-page { padding: 3rem 0; max-width: 36rem; }
.notice-page h1, .admin h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 .5rem; }
.notice-page p { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .6rem 1.2rem; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--btn); color: #fff; text-decoration: none; cursor: pointer; }
.is-institute .btn { background: var(--primary); color: var(--on-primary); }
.btn:hover { filter: brightness(.94); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { filter: none; border-color: #CFC3DD; background: #FCFBFE; }
.btn--sm { padding: .35rem .8rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn .i { width: 1.1em; height: 1.1em; }
.alert { padding: .7rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; border: 1px solid transparent; }
.alert--ok { background: var(--open-bg); color: var(--open); border-color: #BFE3D3; }
.alert--warn { background: var(--soon-bg); color: var(--soon); border-color: #F3D9A8; }
.alert--err { background: var(--err-bg); color: var(--err); border-color: #F6C7C1; }

.auth { min-height: calc(100vh - 4.5rem); display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(60rem 30rem at 50% -10%, #F6E4EC, transparent); }
.auth__card { width: min(100%, 26rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; box-shadow: 0 24px 48px -32px rgba(58, 22, 119, .45); }
.auth__card h1 { margin: 0; font-size: 1.5rem; }
.auth__lead { color: var(--ink-2); margin: .25rem 0 1.5rem; }

.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; font-weight: 600; margin: 0; }
.field input { font: inherit; font-weight: 400; padding: .62rem .8rem; border: 1px solid #D5CCE0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__help { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field__err { font-weight: 500; color: var(--err); font-size: .88rem; }
.affix { display: flex; }
.affix input { border-radius: var(--r-sm) 0 0 var(--r-sm); min-width: 0; }
.affix__text { display: flex; align-items: center; padding: 0 .8rem; border: 1px solid #D5CCE0; border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--paper); color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.logo-field label { font-weight: 600; }
.logo-field__row { display: flex; gap: .75rem; align-items: center; }
.logo-field__row input { flex: 1; }
.logo-field__preview { width: 3rem; height: 3rem; flex: none; border: 1px dashed #D5CCE0; border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-field__preview img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.choice { border: 0; padding: 0; }
.choice legend { padding: 0; margin-bottom: .35rem; }
.choice__item { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 400; }
.choice__item + .choice__item { margin-top: .5rem; }
.choice__item:has(input:checked) { border-color: var(--plum); background: #FBF6FA; }
.choice__item input { margin-top: .35rem; accent-color: var(--plum); }
.choice__item strong { display: block; }
.choice__item small { color: var(--ink-2); }
.form__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .25rem; }

.admin { padding: 2rem 0 3.5rem; }
.admin__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.admin__sub { margin: 0; color: var(--ink-2); }
.admin__cols { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .admin__cols { grid-template-columns: minmax(0, 1fr) 20rem; } }
.crumb { margin: 0 0 .25rem; color: var(--ink-2); font-size: .92rem; }
.crumb a { color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: 0 1px 2px rgba(30, 21, 52, .04); }
.panel.table-scroll { padding: 0; overflow-x: auto; }
.empty-panel h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.empty-panel p { margin: 0; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; min-width: 44rem; }
.tbl th, .tbl td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-weight: 600; color: var(--ink-2); font-size: .88rem; background: #FCFBFE; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.is-off td { color: var(--ink-2); }
.tbl__inst { display: flex; gap: .8rem; align-items: center; }
.tbl__logo { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; background: #fff; }
.tbl__logo img { width: 36px; height: 36px; object-fit: contain; }
.tbl__logo .card__initials { width: 100%; height: 100%; border-radius: 0; box-shadow: none; font-size: .95rem; }
.tbl__url, .tbl__err, .tbl__when { display: block; font-size: .85rem; }
.tbl__url { color: var(--plum); }
.tbl__err { color: var(--err); }
.tbl__when { color: var(--ink-2); margin-top: .2rem; }
.tbl__mono { font-variant-numeric: tabular-nums; }
.tbl__act { text-align: right; }
.badge { display: inline-block; font-size: .82rem; font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: var(--closed-bg); color: var(--closed); white-space: nowrap; }
.badge--open { background: var(--open-bg); color: var(--open); }
.badge--soon { background: var(--soon-bg); color: var(--soon); }
.badge--mode { background: #F1EAF7; color: var(--violet); }
.badge--mode.badge--closed { background: var(--closed-bg); color: var(--closed); }
.admin__refresh { margin-top: 1rem; }
.btn--danger { background: var(--surface); color: var(--err); border-color: #F1C4BE; }
.btn--danger:hover:not(:disabled) { filter: none; background: var(--err); color: #fff; border-color: var(--err); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.inline-form { display: inline; margin: 0; }
.tbl__act { white-space: nowrap; }
.tbl__act .inline-form { margin-left: .35rem; }
.danger { margin-top: 1.25rem; border-color: #F1C4BE; display: grid; gap: 1rem; }
.danger h2 { margin: 0 0 .3rem; font-size: 1.05rem; color: var(--err); }
.danger p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.danger__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.danger__form .field { flex: 1 1 16rem; max-width: 22rem; }
.danger code { font-size: .95em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
@media (min-width: 52rem) { .danger { grid-template-columns: 1fr auto; align-items: end; } }
.side h2 { font-size: 1.05rem; margin: 0 0 1rem; }
.side__inst { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.side__inst strong { display: block; line-height: 1.35; }
.side__inst small { color: var(--ink-2); }
.side__dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.side__dl dt { color: var(--ink-2); }
.side__dl dd { margin: 0; }
.side__note { margin: 0; font-size: .88rem; color: var(--ink-2); }
.side__steps { margin: 0; padding-left: 1.2rem; color: var(--ink-2); display: grid; gap: .5rem; }
.is-admin { background: #F7F5FA; }

/* ---------------------------------------------------------------- footer (same as the School360 fee payment portal) */
.foot { background: var(--grad); color: rgba(255, 255, 255, .9); padding-top: 3rem; font-size: 1rem; }
.foot__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.foot__brand .lockup__logo { width: 104px; }
.foot__brand p { max-width: 30ch; margin: 1.25rem 0 0; font-size: 1.05rem; line-height: 1.55; }
.foot__title { color: #fff; font-size: 1.2rem; font-weight: 700; margin: .4rem 0 1rem; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot__addr { max-width: 28ch; line-height: 1.6; }
.foot__link { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.foot__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__link .i { width: .75em; height: .75em; }
.foot__logos { border-top: 1px solid rgba(255, 255, 255, .16); padding: 1.75rem 0 2rem; display: grid; gap: 1.5rem; justify-items: center; }
.foot__pay-wrap { width: 100%; display: flex; justify-content: center; }
.foot__pay { width: 100%; max-width: 1024px; height: auto; }
.foot__support { background: #fff; border-radius: 6px; padding: .35rem .75rem; width: min(100%, 22rem); }
.foot__support img { width: 100%; height: auto; }
.foot__bottom { border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: 1.2rem 0 1.5rem; font-size: .92rem; color: rgba(255, 255, 255, .85); }
@media (min-width: 40.01rem) and (max-width: 52rem) {
    .foot__grid { grid-template-columns: 1fr 1fr; }
    .foot__brand { grid-column: 1 / -1; }
}
@media (min-width: 52rem) { .foot__grid { grid-template-columns: 1.5fr 1fr 1.1fr; } }
/* payment strip on phones: the same image in two rows (split between two logos), no sideways scrolling */
.foot__pay-half { display: none; width: 100%; background-repeat: no-repeat; }
.foot__pay-half--a { aspect-ratio: 517 / 48; background-size: 198.07% auto; background-position: left center; }
.foot__pay-half--b { aspect-ratio: 507 / 48; background-size: 201.97% auto; background-position: right center; }
@media (max-width: 40rem) {
    .foot { padding-top: 2rem; font-size: .95rem; text-align: center; }
    .foot__grid { gap: 0; padding-bottom: .5rem; }
    .foot__grid > div { padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
    .foot__grid > .foot__brand { border-top: 0; padding-top: 0; }
    .foot__brand .lockup { justify-content: center; }
    .foot__brand p { margin: .9rem auto 0; }
    .foot__title { font-size: 1.02rem; margin: 0 0 .7rem; }
    .foot__list { gap: .55rem; justify-items: center; }
    .foot__addr { margin-inline: auto; }
    .foot__logos { padding: 1.25rem 0 1.5rem; gap: 1.1rem; }
    .foot__pay-wrap { flex-direction: column; gap: .5rem; max-width: 26rem; margin-inline: auto; }
    .foot__pay { display: none; }
    .foot__pay-half { display: block; }
    .foot__support { width: min(100%, 17rem); }
    .foot__bottom { flex-direction: column; align-items: center; text-align: center; font-size: .82rem; gap: .2rem; padding: 1rem 0 1.25rem; }
}


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

/* ---------------------------------------------------------------- admission form (wizard) — copied from the school website */
.is-institute { --muted: var(--ink-2); --line-2: #EEF1F6; }
.af-wrap { padding: 1.5rem 0 3rem; }
.ac-btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.muted { color: var(--ink-2); }
.link-more { font: inherit; background: none; border: 0; padding: 0; color: var(--primary-ink, var(--primary)); text-decoration: underline; cursor: pointer; }
.af .ac-btn:disabled { opacity: .6; cursor: progress; }
/* ---------- admission form (wizard) ---------- */
.af-wrap { max-width: 1040px; }
.af-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.af-steps li { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #EEF1F6; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.af-steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.af-steps li.is-on { border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px var(--primary-glow); } .af-steps li.is-on b { background: var(--primary); color: var(--on-primary); }
.af-steps li.is-done b { background: #DCFCE7; color: #15803D; }
.af { padding: 30px; border-radius: 26px; background: #fff; border: 1px solid #EEF1F6; box-shadow: 0 20px 50px rgba(15,23,42,.07); }
.af-step__title { margin: 0 0 20px; font-size: 22px; font-weight: 800; }
.af-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.af-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-field--wide { grid-column: 1 / -1; }
.af-label { font-weight: 700; font-size: 14.5px; color: var(--ink-2); } .af-label i { color: #DC2626; font-style: normal; }
.af-field input:not([type=checkbox]):not([type=radio]), .af-field select, .af-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #F8FAFC; padding: 10px 14px; font-size: 15.5px; color: var(--ink); }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.af-field.is-bad input, .af-field.is-bad select, .af-field.is-bad textarea { border-color: #F87171; background: #FEF2F2; }
.af-err { color: #B91C1C; font-size: 13px; min-height: 0; } .af-err:empty { display: none; }
.af-hint { color: var(--muted); font-size: 12.5px; }
.af-radios { display: flex; gap: 10px; flex-wrap: wrap; } .af-radios label, .af-options label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #F8FAFC; }
.af-radios label:has(input:checked), .af-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
.af-options label:has(input:disabled:not(:checked)) { opacity: .5; cursor: not-allowed; }
.af-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.af-window { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border-radius: 16px; background: var(--primary-wash); border: 1px solid var(--primary-tint); }
.af-window span { display: flex; flex-direction: column; padding-right: 20px; } .af-window small { color: var(--muted); font-size: 12.5px; font-weight: 600; } .af-window b { color: var(--primary-ink); font-size: 16px; }
.af-subj { margin-bottom: 14px; } .af-subj h4 { margin: 0 0 8px; font-size: 15px; } .af-subj h4 small { color: var(--muted); font-weight: 500; }
.af-subj.is-bad h4 { color: #B91C1C; }
.af-chips { display: flex; flex-wrap: wrap; gap: 6px; } .af-chips span { padding: 6px 12px; border-radius: 999px; background: var(--line-2); font-size: 14px; }
.af-options { display: flex; flex-wrap: wrap; gap: 8px; }
.af-edu { margin: 0 0 14px; padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; } .af-edu legend { font-weight: 800; padding: 0 6px; }
.af-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.af-review h3 { font-size: 16px; margin: 18px 0 8px; color: var(--primary-ink); }
.af-review dl { margin: 0; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.af-review dt { font-size: 12.5px; color: var(--muted); font-weight: 600; } .af-review dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.af-agree { margin-top: 20px; font-weight: 600; }
.af-saved { margin: 14px 0 0; font-size: 13px; text-align: center; }
.af-done { text-align: center; } .af-done .sp-facts { padding: 18px 0; text-align: left; }
.af-done__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: #DCFCE7; color: #15803D; font-size: 32px; font-weight: 800; }
.af-pin { margin: 4px 0 6px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: .06em; color: var(--primary-ink); }
@media (max-width: 639px) { .af { padding: 20px 16px; border-radius: 20px; } .af-nav .btn { flex: 1; } }
@media print { .site-header, .topbar, .site-footer, .btn-row, .to-top, .scroll-progress { display: none !important; } }

/* ---------- my application (lookup + timeline) ---------- */
.lk { text-align: center; } .lk .ct-form { text-align: left; margin-top: 18px; }
.lk__icon { display: inline-flex; width: 60px; height: 60px; border-radius: 18px; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-ink); margin-bottom: 10px; }
.lk h2 { margin: 0 0 6px; } .lk__note { font-size: 13px; margin-top: 14px; }
.st-app__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.st-app__who { display: flex; align-items: center; gap: 16px; }
.st-app__who > div { display: flex; flex-direction: column; } .st-app__who small { color: var(--muted); font-weight: 600; }
.st-app__who .af-pin { margin: 0; font-size: 30px; } .st-app__who span { color: var(--ink-2); }
.st-app__photo { position: relative; width: 70px; height: 80px; border-radius: 16px; overflow: hidden; background: var(--primary-soft); color: var(--primary-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }

/* application submitted */
.ac-done { text-align: center; padding: 2rem 1.5rem; }
.ac-done__tick { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--open-bg); color: var(--open); }
.ac-done__tick svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ac-done__msg { font-weight: 600; margin: 0 0 1rem; }
.ac-done__label { margin: 0; color: var(--ink-2); }
.ac-done__pin { margin: .2rem 0 1rem; font-size: clamp(2rem, 1.5rem + 3vw, 2.8rem); font-weight: 700; letter-spacing: .06em; color: var(--primary-ink, var(--primary)); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- phone tab bar (institution pages) */
.tabbar { display: none; }
@media (max-width: 40rem) {
    .subnav { display: none; }
    .tabbar { display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); position: fixed; inset: auto 0 0; z-index: 40;
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px -18px rgba(30, 21, 52, .45); padding-bottom: env(safe-area-inset-bottom, 0); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .15rem .45rem; color: var(--ink-2); text-decoration: none; font-size: .72rem; line-height: 1.2; text-align: center; position: relative; }
    .tabbar svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
    .tabbar a[aria-current] { color: var(--primary-ink, var(--primary)); font-weight: 600; }
    .tabbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
    .tabbar a:active { background: var(--primary-wash); }
    body.is-institute { padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0)); }
}

/* unique-ID box and the verified-student card */
.uid { text-align: center; padding: 2rem 1.5rem; }
.uid__icon { width: 3.5rem; height: 3.5rem; margin: 0 auto .9rem; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink, var(--primary)); }
.uid__icon svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.uid h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.uid__form { display: flex; gap: .5rem; max-width: 26rem; margin: 1.25rem auto 0; }
.uid__form input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; letter-spacing: .04em; text-align: center; padding: .75rem 1rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.uid__form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow, var(--primary-soft)); }
.uid__form input[aria-invalid="true"] { border-color: var(--err); }
.uid__err { color: var(--err); margin: .75rem 0 0; }
.uid__note { text-align: left; margin-top: 1.5rem; }
@media (max-width: 30rem) { .uid__form { flex-direction: column; } .uid__form input { font-size: 16px; } }
.af-verified { display: grid; gap: .6rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin: 0 0 .5rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--primary-wash); border: 1px solid var(--primary-tint); }
.af-verified dt { font-size: .8rem; color: var(--ink-2); }
.af-verified dd { margin: 0; font-weight: 600; }

/* review step: one card per step, with an edit button */
.af-review { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.af-rv { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.af-rv header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; background: var(--primary-wash); border-bottom: 1px solid var(--line); }
.af-rv h3 { margin: 0; font-size: 1rem; color: var(--primary-ink, var(--primary)); }
.af-rv__edit { font: inherit; font-size: .88rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--primary-tint); background: var(--surface); color: var(--primary-ink, var(--primary)); cursor: pointer; }
.af-rv__edit:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.af-review .af-rv dl { margin: 0; padding: .9rem 1rem 1rem; display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.af-review .af-rv dt { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.af-review .af-rv dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.af-review h3 { margin-top: 0; }
@media (max-width: 40rem) { .af-review .af-rv dl { grid-template-columns: 1fr 1fr; } }
.cf-turnstile { margin: .25rem 0 1rem; }
.ac-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
@media (max-width: 30rem) { .ac-done__actions .ac-btn { flex: 1 1 100%; } }

/* chosen file preview */
.af-field input[type=file] { padding: .55rem; background: var(--surface); border: 1px dashed var(--primary-tint); border-radius: 12px; cursor: pointer; }
.af-file { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.af-file.is-bad { border-color: #F87171; background: #FEF2F2; }
.af-file img { width: 3.25rem; height: 3.75rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.af-file__pdf { width: 3.25rem; height: 3.75rem; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: #FDECEA; color: #B42318; }
.af-file__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-file__info b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-file__info small { color: var(--ink-2); }
.af-file.is-bad small { color: #B91C1C; }
.af-file__del { font: inherit; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); flex: none; }

/* PIN box */
.lk { display: grid; gap: .9rem; max-width: 24rem; margin: 1.25rem auto 0; text-align: left; }
.lk__field { display: grid; gap: .3rem; font-weight: 600; }
.lk__field input { font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.lk__field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.lk .ac-btn { width: 100%; }
.lk__err { max-width: 24rem; margin: 1rem auto 0; text-align: left; }
.lk__note { font-size: .88rem; margin-top: 1rem; }
@media (max-width: 30rem) { .lk__field input { font-size: 16px; } }

/* my application */
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.st-head__photo { position: relative; width: 4.5rem; height: 5.25rem; flex: none; border-radius: 14px; overflow: hidden; background: var(--primary-soft); color: var(--primary-ink, var(--primary)); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.st-head__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-head__who { display: flex; flex-direction: column; min-width: 0; }
.st-head__who small { color: var(--ink-2); }
.st-head__pin { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.4rem); line-height: 1.15; letter-spacing: .05em; color: var(--primary-ink, var(--primary)); font-variant-numeric: tabular-nums; }
.st-head__who span { color: var(--ink-2); }
.st-head__keep { flex-basis: 100%; margin: 0; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--soon-bg); color: var(--soon); font-weight: 600; }
.st-actions { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.st-act { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .15s, box-shadow .2s; }
.st-act .ico { color: var(--primary-ink, var(--primary)); }
.st-act:hover { border-color: var(--primary-tint); box-shadow: 0 12px 28px -22px var(--primary); }
.st-act small { display: block; font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.st-act.is-off { opacity: .6; cursor: not-allowed; }
.st-act.is-off:hover { box-shadow: none; border-color: var(--line); }
.st-tl { list-style: none; margin: 0; padding: 0; }
.st-tl__item { position: relative; display: flex; gap: .9rem; padding-bottom: 1.25rem; }
.st-tl__item:last-child { padding-bottom: 0; }
.st-tl__item:not(:last-child)::before { content: ""; position: absolute; left: 1rem; top: 2rem; bottom: .25rem; width: 2px; background: var(--line); }
.st-tl__item.is-done:not(:last-child)::before { background: var(--open); }
.st-tl__dot { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--closed-bg); color: var(--closed); position: relative; z-index: 1; }
.is-done .st-tl__dot { background: var(--open); color: #fff; }
.is-now .st-tl__dot { background: var(--soon-bg); color: var(--soon); box-shadow: 0 0 0 4px rgba(201, 138, 0, .15); }
.st-tl__body { flex: 1; min-width: 0; padding-top: .2rem; }
.st-tl__body p { margin: .15rem 0 0; color: var(--ink-2); }
.st-tl__soon { padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--primary-wash); color: var(--ink) !important; }
.st-facts { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); margin: 0; }
.st-facts dt { font-size: .8rem; color: var(--ink-2); }
.st-facts dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.st-sub { margin: 1.5rem 0 .6rem; font-size: 1rem; }
.st-table { overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.st-table th, .st-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.st-table th { font-size: .85rem; color: var(--ink-2); font-weight: 600; background: var(--paper); }

/* payment choice (copied from the school website) */
.pay { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.pay__opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.pay__opt:has(input:checked), .pay__opt--one { border-color: var(--primary); background: var(--primary-wash); box-shadow: 0 6px 16px var(--primary-glow); }
.pay__opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); }
.pay__name { flex: 1; display: flex; flex-direction: column; gap: 6px; } .pay__name strong { font-size: 16.5px; }
.pay__chips { display: flex; flex-wrap: wrap; gap: 5px; } .pay__chips em { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pay__sum { display: flex; flex-direction: column; align-items: flex-end; text-align: right; } .pay__sum b { font-size: 20px; color: var(--primary-ink); } .pay__sum small { color: var(--muted); font-size: 12px; }
.pay__go { align-self: flex-start; } .pay__go[disabled] { opacity: .7; } .pay__note { font-size: 13px; margin: 0; }
@media (max-width: 639px) { .pay__opt { flex-wrap: wrap; } .pay__sum { align-items: flex-start; text-align: left; width: 100%; } .pay__go { width: 100%; } }
.pay__logo { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; margin-bottom: .2rem; background: #E8F0FE; color: #1A4FB4; }
.pay__logo--bkash { background: #FDE7F1; color: #C4135E; }
.pay__logo--sb { background: #E6F4EA; color: #146C2E; }
.pay__note { font-size: .88rem; margin: 0; }

/* 404 */
.e404 { padding: 4rem 0 5rem; text-align: center; }
.e404__in { max-width: 36rem; }
.e404__code { margin: 0; font-size: clamp(4.5rem, 3rem + 8vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover, var(--violet))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-portal .e404__code { background-image: var(--btn); }
.e404 h1 { margin: .5rem 0 .4rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.e404__text { color: var(--ink-2); margin: 0 auto 1.5rem; max-width: 30rem; }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.e404__help { margin-top: 2rem; color: var(--ink-2); font-size: .95rem; }
.e404__help a { font-weight: 600; }


/* ---------------------------------------------------------------- readability (Bangla) */
body { font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, .hero__title, .ac-hero__title, .brand__name, .lockup__text strong, .card__name, .cl__name { font-family: var(--font-head); }
small, .muted { line-height: 1.5; }

/* footer logo on phones: full lockup, smaller */
@media (max-width: 40rem) {
    .foot__brand .lockup { gap: .65rem; }
    .foot__brand .lockup__logo { width: 84px; }
    .foot__brand .lockup__text { padding-left: .65rem; }
    .foot__brand .lockup__text strong { font-size: 1.05rem; }
    .foot__brand .lockup__text small { display: block; font-size: .78rem; }
}

/* ---------------------------------------------------------------- class list (admission centre) */
.cl-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.cl { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: .95rem 1.05rem 1rem; background: var(--surface); display: flex; flex-direction: column; gap: .55rem; }
.cl::before { content: ""; position: absolute; left: 0; top: .9rem; bottom: .9rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--closed-bg); }
.cl--open::before { background: var(--open); }
.cl--soon::before { background: var(--soon); }
.cl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cl__name { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.cl__name small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-2); font-family: var(--font); }
.cl__badge { flex: none; font-size: .82rem; font-weight: 600; padding: .15rem .65rem; border-radius: 999px; background: var(--closed-bg); color: var(--closed); white-space: nowrap; }
.cl--open .cl__badge { background: var(--open-bg); color: var(--open); }
.cl--soon .cl__badge { background: var(--soon-bg); color: var(--soon); }
.cl__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.cl__tags span { font-size: .85rem; padding: .05rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.cl__when { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin: 0; padding: .55rem .7rem; border-radius: var(--r-sm); background: var(--primary-wash); }
.cl__when svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--primary-ink, var(--primary)); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cl__dates { font-weight: 600; white-space: nowrap; }
.cl__left { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--open); white-space: nowrap; }
.cl__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .45rem 1rem; margin: 0; }
.cl__facts dt { font-size: .78rem; color: var(--ink-2); }
.cl__facts dd { margin: 0; font-weight: 500; white-space: nowrap; }
.cl__fee dd { color: var(--primary-ink, var(--primary)); font-weight: 700; white-space: normal; }
.cl-more { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: .9rem; }
.cl-more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.cl-more summary::-webkit-details-marker { display: none; }
.cl-more summary::before { content: "▸"; transition: transform .15s; }
.cl-more[open] summary::before { transform: rotate(90deg); }
.cl-more summary span { font-size: .8rem; padding: 0 .45rem; border-radius: 999px; background: var(--closed-bg); }
.cl-more .cl-list { margin-top: .9rem; }
.cl-list--compact .cl { padding: .75rem .95rem; }
.cl-list--compact .cl__name { font-size: 1.05rem; }
@media (max-width: 30rem) { .cl__name { font-size: 1.1rem; } .cl__left { margin-left: 0; } }

/* ================================================================ institution pages: softer look (v2)
   Light header, tinted gradient instead of a flat block of the school colour, soft active menu pill,
   deep neutral footer. The school colour stays as an accent (buttons, active menu, icons). */
.is-institute .bar { background: rgba(255, 255, 255, .97); color: var(--ink); border-bottom: 1px solid var(--line); }
.is-institute .bar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--primary-deep), var(--primary) 45%, var(--primary-tint)); }
.is-institute .bar.is-stuck { box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .35); }
.is-institute .brand__logo { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.is-institute .brand__name { color: var(--ink); }
.is-institute .brand__name small { color: var(--ink-2); opacity: 1; }
.is-institute .lang a { color: var(--ink-2); opacity: 1; }
.is-institute .lang a[aria-current] { background: var(--primary-wash); color: var(--primary-ink, var(--primary)); }

/* menu: soft pill on the page you are on */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav__in { gap: .35rem; padding: .45rem 0; }
.subnav a { padding: .45rem .95rem; border: 0; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.subnav a:hover { background: var(--paper); color: var(--ink); }
.subnav a[aria-current] { background: var(--primary-wash); color: var(--primary-ink, var(--primary)); font-weight: 600; border: 0; box-shadow: inset 0 0 0 1px var(--primary-tint); }

/* hero and page titles: tinted gradient, dark text */
.ac-hero, .sub-head {
    color: var(--ink);
    background: var(--primary-wash);
    background: radial-gradient(55rem 24rem at 100% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 62%),
                radial-gradient(40rem 20rem at -10% 120%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 60%),
                linear-gradient(180deg, var(--primary-wash) 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}
.ac-hero::before { display: none; }
.ac-hero::after { border-color: color-mix(in srgb, var(--primary) 18%, transparent); box-shadow: 0 0 0 3.5rem color-mix(in srgb, var(--primary) 5%, transparent); }
.ac-hero__kicker { color: var(--primary-ink, var(--primary)); opacity: 1; font-weight: 600; }
.ac-hero__title { color: var(--ink); }
.ac-hero__addr { color: var(--ink-2); opacity: 1; }
.ac-hero__logo { box-shadow: 0 10px 26px -16px rgba(15, 23, 42, .45), 0 0 0 1px var(--line); }
.ac-status { border: 1px solid var(--line); box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--primary) 60%, #0F172A); }
.sub-head__back { color: var(--primary-ink, var(--primary)); opacity: 1; }
.sub-head h1 { color: var(--ink); }

/* buttons: gentle gradient of the school colour */
.ac-btn--main, .ac-btn--solid {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 8px 18px -12px var(--primary);
}
.ac-btn--main:hover, .ac-btn--solid:hover { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-deep) 100%); }

/* footer: deep neutral with a hint of the school colour */
.is-institute .foot {
    background: #0F172A;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 55%, #0F172A) 0%, #0B1220 100%);
}

/* ================================================================ v3: middle way
   Admission centre hero: rich gradient of the school colour with a soft light and a fine dot texture
   (not a flat block). Inner page titles stay light, with a gradient accent line. */
.ac-hero {
    color: var(--on-primary);
    background: var(--primary);
    background:
        radial-gradient(42rem 22rem at 88% -20%, color-mix(in srgb, #fff 22%, transparent), transparent 60%),
        radial-gradient(30rem 18rem at 0% 110%, color-mix(in srgb, var(--primary-deep) 70%, transparent), transparent 70%),
        linear-gradient(125deg, var(--primary-deep) 0%, var(--primary) 52%, color-mix(in srgb, var(--primary) 78%, #fff) 100%);
    border-bottom: 0;
}
.ac-hero::before { display: block; content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, #fff 14%, transparent) 1px, transparent 1.2px); background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.ac-hero::after { border-color: rgba(255, 255, 255, .16); box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .04); }
.ac-hero__kicker { color: inherit; opacity: .85; font-weight: 500; }
.ac-hero__title { color: inherit; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ac-hero__addr { color: inherit; opacity: .85; }
.ac-hero__logo { box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .45); }
.ac-status { border: 0; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .55); }

/* inner pages: light title band + gradient accent */
.sub-head { position: relative; padding-bottom: 1.4rem; }
.sub-head::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--primary-deep), var(--primary) 40%, transparent); }
.sub-head h1 { color: var(--primary-ink, var(--primary)); }

/* form steps: the current one in the school colour */
.af-steps li.is-on, .af-steps [aria-current="step"] { border-color: var(--primary); }

/* admin: own domain */
.own-domain input[name=domain] { font: inherit; font-weight: 400; padding: .62rem .8rem; border: 1px solid #D5CCE0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); width: 100%; }
.own-domain code { font-size: .85em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin-top: .4rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--plum); }

/* admin: system check */
.admin__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.sys__form { display: flex; gap: .5rem; }
.sys__form select { font: inherit; padding: .5rem .7rem; border: 1px solid #D5CCE0; border-radius: var(--r-sm); background: var(--surface); }
.sys__sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md); margin-bottom: 1rem; border: 1px solid; }
.sys__sum--ok { background: var(--open-bg); border-color: #BFE3D3; color: var(--open); }
.sys__sum--warn { background: var(--soon-bg); border-color: #F3D9A8; color: var(--soon); }
.sys__sum--fail { background: var(--err-bg); border-color: #F6C7C1; color: var(--err); }
.sys__sum span { color: var(--ink); } .sys__sum b.ok { color: var(--open); } .sys__sum b.warn { color: var(--soon); } .sys__sum b.fail { color: var(--err); }
.sys__sec { padding: 0; margin-bottom: .75rem; overflow: hidden; }
.sys__sec summary { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; cursor: pointer; font-weight: 600; list-style: none; }
.sys__sec summary::-webkit-details-marker { display: none; }
.sys__sec summary em { font-style: normal; font-size: .8rem; padding: .05rem .55rem; border-radius: 999px; background: var(--soon-bg); color: var(--soon); }
.sys__sec summary i { font-style: normal; color: var(--open); }
.sys__list { list-style: none; margin: 0; padding: 0 1.1rem .8rem; border-top: 1px solid var(--line); }
.sys__list li { display: grid; grid-template-columns: .9rem minmax(10rem, 22rem) 1fr; gap: .4rem .8rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.sys__list li:last-child { border-bottom: 0; }
.sys__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--open); align-self: center; }
.is-warn .sys__dot { background: #D97706; } .is-fail .sys__dot { background: var(--err); }
.sys__what { font-weight: 500; overflow-wrap: anywhere; }
.sys__note { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.is-fail .sys__note { color: var(--err); }
@media (max-width: 40rem) { .sys__list li { grid-template-columns: .9rem 1fr; } .sys__note { grid-column: 2; } .sys__form { width: 100%; } .sys__form select { flex: 1; } }

/* ---------------------------------------------------------------- one-page form (/admin: "On one page") */
.af-jump { position: sticky; top: 4.6rem; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1rem; padding: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .35); }
.af-jump::-webkit-scrollbar { display: none; }
.af-jump a { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.af-jump a b { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--primary-wash); color: var(--primary-ink, var(--primary)); font-size: .78rem; }
.af-jump a:hover { background: var(--primary-wash); color: var(--primary-ink, var(--primary)); }
.af--single .af-step { scroll-margin-top: 8rem; }
.af--single .af-step:not([hidden]) + .af-step:not([hidden]) { margin-top: 1.25rem; }
.af--single .af-step:not(:last-child) .af-step__title { display: flex; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.af-nav--single { margin-top: 1.5rem; }
@media (max-width: 40rem) { .af-jump { top: 4.4rem; border-radius: var(--r-md); } }

/* ---------------------------------------------------------------- policy pages (/terms, /privacy, /refund) */
.pol-head { padding: 2rem 0 1.5rem; background: linear-gradient(180deg, #F7EAF0 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.pol-head h1 { margin: .9rem 0 .2rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.pol-date { margin: 0; color: var(--ink-2); font-size: .92rem; }
.pol-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pol-tabs a { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.pol-tabs a[aria-current] { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 600; }
.pol { max-width: 48rem; padding: 2rem 0 3.5rem; }
.pol-intro { font-size: 1.08rem; color: var(--ink); margin: 0 0 1.75rem; padding: 1rem 1.2rem; border-left: 4px solid var(--plum); background: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pol-sec { margin-bottom: 1.6rem; }
.pol-sec h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin: 0 0 .6rem; }
.pol-sec h2 span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #F1EAF7; color: var(--violet); font-size: .9rem; flex: none; }
.pol-sec p, .pol-sec li { color: #334155; line-height: 1.75; }
.pol-sec p { margin: 0 0 .6rem; }
.pol-sec ul { margin: 0 0 .6rem; padding-left: 1.3rem; }
.pol-sec li { margin-bottom: .35rem; }

/* quota heading inside the form grid */
.af-sub { grid-column: 1 / -1; margin: .75rem 0 -.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.af-sub h3 { margin: 0; font-size: 1.05rem; }
.af-sub h3 small { font-weight: 500; color: var(--ink-2); font-size: .85rem; }
.af-sub p { margin: .2rem 0 0; color: var(--ink-2); font-size: .9rem; }

/* the school's own quota list in the form */
.af-quotas { grid-column: 1 / -1; }
.af-quota-list { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.af-quota { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.af-quota:hover { border-color: var(--primary-tint); }
.af-quota:has(input:checked) { border-color: var(--primary); background: var(--primary-wash); }
.af-quota input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex: none; }

/* admin: quota rows */
.qrows { display: grid; gap: .5rem; }
.qrow { display: grid; grid-template-columns: 1fr 1fr 11rem auto; gap: .5rem; align-items: center; }
.qrow input, .qrow select { font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid #D5CCE0; border-radius: var(--r-sm); background: var(--surface); width: 100%; min-width: 0; }
.qrow__del { font: inherit; padding: .45rem .7rem; border: 1px solid #F1C4BE; border-radius: var(--r-sm); background: #fff; color: var(--err); cursor: pointer; }
.qadd { justify-self: start; font: inherit; font-weight: 600; padding: .45rem .9rem; border: 1px dashed #CFC3DD; border-radius: var(--r-sm); background: #fff; cursor: pointer; color: var(--violet); }
@media (max-width: 40rem) { .qrow { grid-template-columns: 1fr 1fr; } }

/* "same as present address" on the title line (CI3 layout) */
.af-label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; }
.af-label-row .af-label { margin: 0; }
.af-same { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); cursor: pointer; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.af-same:has(input:checked) { border-color: var(--primary); background: var(--primary-wash); color: var(--primary-ink, var(--primary)); }
.af-same input { width: 1rem; height: 1rem; accent-color: var(--primary); }
textarea.is-same { background: var(--paper); color: var(--ink-2); }

/* class cards: facts as label / value rows (long date ranges never run into the fee) */
.cl__facts { grid-template-columns: 1fr; gap: 0; }
.cl__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .4rem 0; border-top: 1px dashed var(--line); }
.cl__facts dt { flex: none; font-size: .82rem; }
.cl__facts dd { white-space: normal; text-align: right; font-weight: 600; }
.cl__fee dd { font-size: 1.02rem; }
