/* SKNAU Examination Portal — v2 ("fresh look", 2026-10-12)
   Accessible, high-contrast academic style. Mobile-first: base rules are for phones,
   min-width queries add tablet (768) and desktop (1024 / 1200) layouts.
   Motion (assets/motion.js) only animates transform/opacity; the page is complete without it. */

:root {
  --navy-950: #071F3D;
  --navy-900: #0B2E59;
  --navy-800: #0F3A6E;
  --blue-700: #0A4A8B;
  --blue-600: #0C58A4;
  --blue-50:  #EAF2FB;
  --coral-700: #B93A28;
  --coral-600: #C9452F;
  --coral-50:  #FDEDEA;
  --amber-50:  #FFF6E0;
  --amber-800: #7A4B00;
  --green-700: #136C3C;
  --green-50:  #E6F4EC;
  --red-700:   #B42318;
  --red-50:    #FDECEA;
  --bg:      #F4F7FB;
  --surface: #FFFFFF;
  --line:    #E2E8F0;
  --line-2:  #CBD5E1;
  --text:    #0F172A;
  --muted:   #475569;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 6px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 40px rgba(7, 31, 61, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 64px;
  --tabbar-h: 64px;
  --font: "Atkinson Hyperlegible", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
main { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; color: var(--navy-900); line-height: 1.25; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
[lang="hi"] { font-family: "Noto Sans Devanagari", var(--font); }
.ic { flex-shrink: 0; vertical-align: -0.2em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
button { font-family: inherit; cursor: pointer; }
a, button, .btn, summary, select, label[for] { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .page-hero :focus-visible, .topbar :focus-visible, .site-footer :focus-visible { outline-color: #FFD166; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- top strip (tablet+) ---------- */
.topbar { display: none; background: var(--navy-950); color: #DCE6F3; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: #DCE6F3; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-help { display: flex; gap: 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .25s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.header-in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none; color: var(--navy-900); }
.brand:hover { text-decoration: none; color: var(--navy-900); }
.brand img { display: block; height: 42px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
/* Hindi leads: larger and bolder, English follows smaller (house rule for SKNAU portals) */
.brand-hi { font-family: "Noto Sans Devanagari", var(--font); font-weight: 700; font-size: 15px; color: var(--navy-900); line-height: 1.3; }
.brand-en { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.brand-sub { font-size: 11.5px; font-weight: 700; color: var(--coral-600); margin-top: 1px; }
.brand-sub [lang="hi"] { font-size: 12.5px; }
.main-nav .nav-ext { display: none; }
.site-header .nav-cta { display: none; }
.b-full { display: none; }
.hero .eyebrow { display: none; }
.main-nav { display: none; }
.nav-cta { display: none; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy-900); border-radius: 12px; flex-shrink: 0; }
.burger:hover { background: var(--blue-50); }

.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; color: var(--navy-900); font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.nav-link.is-active { color: var(--blue-600); box-shadow: inset 0 -3px 0 var(--coral-600); border-radius: 10px 10px 4px 4px; }
.nav-link .chev { transition: transform .25s var(--ease-out); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 50; transform-origin: top left; }
.nav-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.nav-menu a:hover { background: var(--blue-50); color: var(--blue-700); }
.nm-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600); }

.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--coral-600); color: #fff; font-weight: 700; text-decoration: none; border: 0; transition: background-color .2s, box-shadow .2s; box-shadow: 0 4px 12px rgba(201, 69, 47, .28); }
.btn-cta:hover, .btn-cta:focus { background: var(--coral-700); color: #fff; text-decoration: none; }

/* ---------- drawer (mobile menu) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(7, 31, 61, .5); opacity: 0; transition: opacity .3s var(--ease-out); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(88vw, 360px); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(104%); transition: transform .38s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-scrim { opacity: 1; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); min-height: var(--header-h); }
.drawer-head strong { font-size: 1.1rem; color: var(--navy-900); }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--bg); border-radius: 12px; color: var(--navy-900); }
.drawer-body { overflow-y: auto; padding: 8px 12px 24px; overscroll-behavior: contain; }
.drawer-label { margin: 16px 8px 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.drawer-link:hover, .drawer-link.is-active { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.drawer-link .ic { color: var(--blue-600); }

/* ---------- notice ---------- */
.notice-bar { background: var(--amber-50); border-bottom: 1px solid #F3DFB0; color: var(--amber-800); }
.notice-in { display: flex; align-items: flex-start; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.notice-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #FFE7B3; flex-shrink: 0; }
.notice-text { margin: 0; flex: 1; font-size: 15px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 4px; }
.notice-bar.is-open .notice-text { -webkit-line-clamp: unset; display: block; }
.notice-more { border: 0; background: none; color: var(--amber-800); font-weight: 700; text-decoration: underline; min-height: 40px; padding: 0 4px; flex-shrink: 0; }
.notice-more[hidden] { display: none; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 28px 0 36px;
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(201, 69, 47, .45), transparent 60%),
    radial-gradient(800px 420px at -10% 120%, rgba(12, 88, 164, .65), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 700; color: #E6EEF8; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.2rem); margin: 14px 0 4px; letter-spacing: -.01em; }
.hero .hero-hi { font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 600; color: #FFD9D2; margin: 0 0 10px; }
.hero .lead { color: #DCE6F3; font-size: 1.05rem; max-width: 34em; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; max-width: 520px; }
.stat-box { padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.stat-num { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.stat-label { display: block; font-size: 13px; color: #C9D6E8; line-height: 1.3; margin-top: 4px; }

.check-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.check-card h2 { font-size: 1.25rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.check-card .card-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.chip-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.chip-ic.coral { background: var(--coral-50); color: var(--coral-600); }
.chip-ic.amber { background: var(--amber-50); color: var(--amber-800); }
.chip-ic.green { background: var(--green-50); color: var(--green-700); }

/* ---------- sections & cards ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; min-height: 44px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 120px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease-out), border-color .25s, transform .25s var(--ease-out); }
.tile:hover { text-decoration: none; color: var(--text); border-color: #B9CDE6; box-shadow: var(--shadow); transform: translateY(-3px); }
.tile-title { font-weight: 700; line-height: 1.3; color: var(--navy-900); }
.tile-hint { font-size: 14px; color: var(--muted); line-height: 1.4; display: none; }
.tile .go { position: absolute; top: 16px; right: 14px; color: #94A3B8; transition: transform .25s var(--ease-out), color .25s; }
.tile:hover .go { color: var(--blue-600); transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.chip:hover { border-color: var(--blue-600); color: var(--blue-700); text-decoration: none; }
.chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.form-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.form-item { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-item h3 { font-size: 1.02rem; margin: 0; color: var(--text); line-height: 1.4; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.due { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.due.ok { background: var(--green-50); color: var(--green-700); }
.due.soon { background: var(--amber-50); color: var(--amber-800); }
.due.last { background: var(--red-50); color: var(--red-700); }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-new { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--coral-600); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }

.news { list-style: none; margin: 0; padding: 0; }
.news li { border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news a, .news .news-plain { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; color: var(--text); text-decoration: none; min-height: 48px; border-radius: 10px; }
.news a:hover { background: var(--bg); }
.news a:hover .news-title { color: var(--blue-700); text-decoration: underline; }
.news .ic-doc { color: var(--blue-600); margin-top: 3px; }
.news-title { font-weight: 600; line-height: 1.45; }
.news .ext { color: #94A3B8; margin-left: auto; margin-top: 4px; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .chip-ic { margin: 0 auto 10px; width: 52px; height: 52px; }
.empty p { margin: 0 0 4px; }

.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.help-list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--bg); color: var(--text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.help-list a:hover { background: var(--blue-50); color: var(--blue-700); }
.video-wrap { position: relative; border-radius: 12px; overflow: hidden; background: var(--navy-950); aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; display: block; }

/* ---------- inner pages ---------- */
.page-hero { color: #fff; padding: 20px 0 64px;
  background: radial-gradient(900px 300px at 100% 0, rgba(201, 69, 47, .35), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800)); }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 6px 0 0; }
.page-sub { color: #C9D6E8; margin: 6px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: #C9D6E8; }
.crumbs a { color: #fff; font-weight: 700; }
.page-wrap { margin-top: -44px; margin-bottom: 32px; position: relative; }
.page-wrap.narrow { max-width: 520px; }
.page-wrap.mid { max-width: 940px; }
.surface { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 16px; border: 1px solid var(--line); }
.surface > h4:first-child, .surface > div:first-child h4 { margin-top: 0; }

/* ---------- Bootstrap refinements ---------- */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15.5px; line-height: 1.2; transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--blue-600); border-color: var(--blue-600); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-700); border-color: var(--blue-700); }
.btn-primary:not(:disabled):not(.disabled):active { background: var(--navy-900); border-color: var(--navy-900); }
.btn-outline-primary { color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-outline-secondary { color: var(--muted); border-color: var(--line-2); background: #fff; }
.btn-outline-secondary:hover { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.btn-link { font-weight: 700; }
.btn:focus, .btn.focus, .form-control:focus { box-shadow: 0 0 0 3px rgba(12, 88, 164, .28); }
.btn-main, .btn-alt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn-main { background: var(--coral-600); color: #fff; }
.btn-main:hover { background: var(--coral-700); color: #fff; text-decoration: none; }
.btn-alt { background: #fff; color: var(--blue-700); border-color: var(--line-2); }
.btn-alt:hover { border-color: var(--blue-600); color: var(--blue-700); text-decoration: none; }
label { font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.form-control { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 16px; color: var(--text); padding: 10px 14px; }
.form-control-sm { min-height: 40px; font-size: 15px; border-radius: 10px; }
.form-control:focus { border-color: var(--blue-600); }
textarea.form-control { min-height: 110px; }
select.form-control { padding-right: 36px; }
.form-text, small.text-muted { color: var(--muted) !important; }
.form-check-input { width: 18px; height: 18px; margin-top: 4px; }
.form-check-label { font-weight: 400; color: var(--text); padding-left: 6px; }
.alert { border-radius: 12px; border: 0; border-left: 4px solid; padding: 12px 16px; font-weight: 600; }
.alert-success { background: var(--green-50); color: var(--green-700); border-left-color: var(--green-700); }
.alert-danger { background: var(--red-50); color: var(--red-700); border-left-color: var(--red-700); }
.alert-warning { background: var(--amber-50); color: var(--amber-800); border-left-color: #D69500; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border-left-color: var(--blue-600); }
.table { color: var(--text); margin-bottom: 1rem; }
.table thead th, .table th { background: #F1F5F9; color: var(--navy-900); border-color: var(--line); font-weight: 700; }
.table td, .table th { border-color: var(--line); padding: 10px 12px; vertical-align: middle; }
.table-bordered { border-color: var(--line); border-radius: 12px; }
.table-responsive { border-radius: 12px; }
details summary { font-weight: 700; color: var(--blue-700); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.badge-reval { display: inline-block; background: var(--amber-50); color: var(--amber-800); font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }

/* ---------- auth ---------- */
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-badge { width: 60px; height: 60px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-900)); box-shadow: 0 10px 22px rgba(12, 88, 164, .3); }
.auth-head h2 { font-size: 1.35rem; margin: 0 0 4px; }
.auth-head p { color: var(--muted); margin: 0; }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 10px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--blue-700); background: var(--bg); }
.auth-foot { text-align: center; color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.field-hint { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- results ---------- */
.search-box { position: relative; flex: 1 1 260px; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .form-control { padding-left: 44px; }
.res-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.res-count { color: var(--muted); font-size: 15px; margin: 0; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.res-list a { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.res-list a:hover { border-color: #B9CDE6; box-shadow: var(--shadow); transform: translateY(-2px); }
.res-date { display: grid; place-items: center; text-align: center; height: 58px; border-radius: 12px; background: var(--blue-50); color: var(--navy-900); line-height: 1.05; font-variant-numeric: tabular-nums; }
.res-date b { font-size: 1.35rem; display: block; }
.res-date small { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--blue-700); }
.res-name { font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.res-sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.res-list .go { color: #94A3B8; }
.res-list a:hover .go { color: var(--blue-600); }
.lookup { display: grid; gap: 20px; }
.lookup-info { padding: 16px; border-radius: var(--radius); background: var(--blue-50); }
.lookup-info h2 { font-size: 1.15rem; margin: 8px 0 6px; overflow-wrap: anywhere; }
.lookup-info ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

.marksheet { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.marksheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--navy-900), var(--blue-600), var(--coral-600)); }
.marksheet .ms-head { text-align: center; border-bottom: 1px solid var(--line); padding: 8px 0 14px; margin-bottom: 16px; }
.marksheet .ms-head img { height: 56px; width: auto; }
.ms-uni { display: block; font-family: "Noto Sans Devanagari", var(--font); font-weight: 700; color: var(--navy-900); font-size: 1.2rem; margin-top: 6px; }
.ms-uni-en { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }
.marksheet .ms-head h3 { font-size: 1.1rem; margin: 12px 0 4px; overflow-wrap: anywhere; }
.marksheet .ms-head .sub { color: var(--muted); font-size: 14.5px; }
.marksheet table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.marksheet td, .marksheet th { border: 1px solid var(--line); padding: 8px 10px; }
.marksheet th { background: #F1F5F9; color: var(--navy-900); font-weight: 700; }
.marksheet .info th { width: 22%; text-align: left; }
.marksheet .totals td { font-weight: 700; background: #F8FAFC; }
.marksheet .status-pass, .marksheet .status-other { font-weight: 700; }
.marksheet .status-pass { color: var(--green-700); }
.marksheet .status-other { color: var(--red-700); }
.marksheet .status-pass::before { content: "✓ "; }
.marksheet .status-other::before { content: "! "; }
.marksheet .note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.ms-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.ms-scroll table { min-width: 620px; }
.result-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sum-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sum-box small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.sum-box b { font-size: 1.35rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.sum-box.pass { background: var(--green-50); border-color: #BFE3CD; }
.sum-box.pass b { color: var(--green-700); }
.sum-box.fail { background: var(--red-50); border-color: #F5C2BC; }
.sum-box.fail b { color: var(--red-700); }

/* ---------- footer & tab bar ---------- */
.site-footer { background: var(--navy-950); color: #DCE6F3; padding: 32px 0 16px; margin-top: auto; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.footer-hi { color: #FFD9D2; margin: 0 0 8px; }
.footer-muted { color: #A9BCD6; font-size: 15px; }
.footer-head { font-weight: 700; color: #fff; margin: 0 0 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 2px 0; display: flex; align-items: center; gap: 8px; }
.footer-links a { color: #DCE6F3; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 20px; padding-top: 14px; font-size: 14px; color: #A9BCD6; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); color: var(--muted); font-size: 12.5px; font-weight: 700; text-decoration: none; position: relative; }
.tabbar a.is-active { color: var(--blue-600); }
.tabbar a.is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--coral-600); }

/* ---------- motion helpers ---------- */
html.motion [data-hero] { opacity: 0; }

/* ---------- ≥ 480 ---------- */
@media (min-width: 480px) {
  .tile-hint { display: block; }
}

/* ---------- ≥ 768 (tablet) ---------- */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topbar { display: block; }
  .wrap { padding: 0 24px; }
  .site-header .nav-cta { display: inline-flex; }
  .b-full { display: inline; }
  .b-short { display: none; }
  .hero .eyebrow { display: inline-flex; }
  .brand img { height: 50px; }
  .brand-hi { font-size: 18px; }
  .brand-en { font-size: 14px; color: var(--navy-800); letter-spacing: 0; }
  .brand-sub { font-size: 12.5px; }
  .brand-sub [lang="hi"] { font-size: 13.5px; }
  .hero { padding: 48px 0 56px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 40px 0; }
  .form-item { flex-direction: row; align-items: center; justify-content: space-between; }
  .item-actions { flex-shrink: 0; }
  .surface { padding: 28px; }
  .check-card { padding: 28px; }
  .marksheet { padding: 24px; }
  .marksheet .ms-head img { height: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .lookup { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .res-list a { grid-template-columns: 64px 1fr auto; padding: 14px 16px; }
  .res-date { height: 64px; }
}

/* ---------- ≥ 1024 (desktop) ---------- */
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .brand img { height: 58px; }
  .burger { display: none; }
  .brand { flex: 0 0 auto; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .home-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
  .info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1200px) {
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .main-nav .nav-ext { display: inline-flex; }
  .brand-hi { font-size: 20px; }
  .brand-en { font-size: 15px; }
  :root { --header-h: 84px; }
  .brand { gap: 12px; }
  .brand img { height: 66px; }
}
@media (max-width: 1023.98px) {
  .home-cols > * + *, .info-cols > * + * { margin-top: 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .tile:hover, .res-list a:hover { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .topbar, .site-header, .drawer, .drawer-scrim, .tabbar, .site-footer, .notice-bar, .page-hero, .no-print, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; }
  .page-wrap { margin: 0; max-width: none !important; padding: 0; }
  .surface { box-shadow: none; border: 0; padding: 0; }
  .marksheet { border: 1.5px solid #000; border-radius: 0; }
  .ms-scroll { overflow: visible; }
  .ms-scroll table { min-width: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Motion handles hover lift once loaded (avoids CSS + inline transform fighting) */
.has-motion .tile:hover, .has-motion .res-list a:hover { transform: none; }

/* Marksheet student details: label / value pairs stack in two columns on phones */
@media (max-width: 575.98px) {
  .marksheet .info, .marksheet .info tbody { display: block; }
  .marksheet .info tr { display: grid; grid-template-columns: 38% 1fr; }
  .marksheet .info th, .marksheet .info td { display: block; width: auto !important; border-top: 0; }
  .marksheet .info tr:first-child th, .marksheet .info tr:first-child td { border-top: 1px solid var(--line); }
  .marksheet .info tr:first-child th:nth-of-type(2), .marksheet .info tr:first-child td:nth-of-type(2) { border-top: 0; }
}
