@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url('/fonts/source-serif.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('/fonts/hind-siliguri-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Hind Siliguri';
  src: url('/fonts/hind-siliguri-600.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D, U+25CC;
}

:root {
  --bg: #ffffff;
  --soft: #f3f6fb;
  --card: #ffffff;
  --ink: #1a1f2b;
  --ink-2: #3d4554;
  --muted: #6b7385;
  --line: #dfe4ee;
  --navy: #1b3a7a;
  --navy-2: #142d61;
  --navy-soft: #e7edf8;
  --sun: #d9452b;
  --sun-soft: #fdece8;
  --pass: #1a7f3c;
  --pass-soft: #e5f4ea;
  --fail: #b42318;
  --fail-soft: #fdecea;
  --radius: 8px;
  --max: 1160px;
  --gutter: 20px;
  --font: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Source Serif', 'Hind Siliguri', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--navy);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy-2);
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--navy) 45%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}
h3 {
  font-size: 1.08rem;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 64ch;
}
.bn {
  font-family: 'Hind Siliguri', var(--font);
}
.accent {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
}
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }
}
.narrow {
  max-width: 760px;
}

/* Small label above a section title (hidden; the title underline marks sections). */
.eyebrow {
  display: none !important;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sun);
}
/* Section titles get a short underline, a familiar pattern. */
.title-bar::after,
.section-head h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 12px;
  background: var(--sun);
}

/* ---------- Top strip ---------- */
.topbar {
  background: var(--navy-2);
  color: #d5def0;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
}
.topbar span + span::before {
  content: '|';
  margin: 0 10px;
  opacity: 0.4;
}
@media (max-width: 760px) {
  .topbar .hide-sm {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand > span {
  min-width: 0;
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.brand small {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.brand .bn {
  color: var(--ink-2);
  font-size: 14px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.icon-btn,
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font: 500 14px var(--font);
  cursor: pointer;
}
.search-btn {
  padding: 0 12px;
}
.search-btn kbd {
  display: none;
}
.icon-btn {
  width: 40px;
}
.icon-btn:hover,
.search-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.icon-btn svg,
.search-btn svg {
  width: 18px;
  height: 18px;
}

.navbar {
  background: var(--navy);
}
.nav {
  display: flex;
  flex-wrap: wrap;
}
.nav a {
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.nav a[aria-current='page'] {
  background: rgb(255 255 255 / 0.12);
  border-bottom-color: var(--sun);
}
.menu-btn,
.mobile-nav {
  display: none;
}
@media (max-width: 900px) {
  .navbar {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 68px);
    padding: 8px 0 32px;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s, visibility 0.15s;
  }
  .mobile-nav.open {
    visibility: visible;
    opacity: 1;
  }
  .mobile-nav a {
    display: block;
    padding: 14px var(--gutter);
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a[aria-current='page'] {
    color: var(--navy);
    background: var(--navy-soft);
    border-left: 4px solid var(--navy);
  }
}
@media (max-width: 600px) {
  .header-inner {
    min-height: 68px;
    gap: 10px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand strong {
    font-size: 1.02rem;
  }
  .brand small:not(.bn) {
    display: none;
  }
  .search-btn span {
    display: none;
  }
  .search-btn {
    width: 40px;
    padding: 0;
  }
  .header-actions .btn-results {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 15px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary,
.btn-accent {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover,
.btn-accent:hover {
  background: var(--navy-2);
  color: #fff;
}
.btn-sun {
  background: var(--sun);
  color: #fff;
}
.btn-sun:hover {
  background: color-mix(in srgb, var(--sun) 88%, black);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover {
  background: var(--navy-soft);
}
.btn-outline-white {
  border-color: rgb(255 255 255 / 0.7);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.link-arrow {
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: ' →';
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Home banner ---------- */
.banner {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--navy-2);
}
.banner picture,
.banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(14 30 66 / 0.88) 0%, rgb(14 30 66 / 0.6) 55%, rgb(14 30 66 / 0.25) 100%);
}
.banner .container {
  padding-top: 88px;
  padding-bottom: 96px;
}
.banner .welcome {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #c9d6f0;
  margin-bottom: 8px;
}
.banner h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: 6px;
}
.banner .bn-title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: #dce5f7;
  margin-bottom: 18px;
}
.banner p {
  max-width: 52ch;
  color: #e6ecf8;
  font-size: 1.05rem;
}
.banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
@media (max-width: 600px) {
  .banner .container {
    padding-top: 52px;
    padding-bottom: 64px;
  }
  .banner::after {
    background: rgb(14 30 66 / 0.78);
  }
}

/* ---------- Quick links ---------- */
.quick {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(20 40 90 / 0.06);
  overflow: hidden;
}
.quick-grid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background 0.15s;
}
.quick-grid a:last-child {
  border-right: 0;
}
.quick-grid a:hover {
  background: var(--soft);
}
.quick-grid .qi {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--navy-soft);
  color: var(--navy);
}
.quick-grid svg {
  width: 22px;
  height: 22px;
}
.quick-grid b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.quick-grid small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-grid a:nth-child(2) {
    border-right: 0;
  }
  .quick-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .quick {
    margin-top: -32px;
  }
  .quick-grid a {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .quick-grid small {
    display: none;
  }
}

/* ---------- Page banner (inner pages) ---------- */
.page-head {
  padding: 40px 0 36px;
  background: var(--navy);
  color: #fff;
}
.page-head h1 {
  color: #fff;
  margin: 0;
  max-width: 30ch;
}
.page-head .lead {
  margin: 10px 0 0;
  color: #d9e2f5;
  font-size: 1.02rem;
}
.crumbs {
  margin-bottom: 10px;
  font-size: 14px;
  color: #b9c6e3;
}
.crumbs a {
  color: #fff;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--soft);
}
@media (max-width: 560px) {
  .section {
    padding: 44px 0;
  }
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
}
.section-head > p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split.top {
  align-items: start;
}
.split.wide-left {
  grid-template-columns: 1.5fr 1fr;
}
@media (max-width: 860px) {
  .split,
  .split.wide-left {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.split > *,
.grid > *,
.portal > * {
  min-width: 0;
}
.frame {
  margin: 0;
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.frame figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.card {
  display: block;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  color: var(--ink-2);
  font-size: 15px;
}
.card > :last-child {
  margin-bottom: 0;
}
a.card {
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.card:hover {
  border-color: var(--navy);
  color: inherit;
}
a.card h3 {
  color: var(--navy);
}
.card .arrow {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.card-top {
}
.photo-card {
  padding: 0;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.photo-card .body {
  padding: 18px 20px 20px;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
}
.tag.new {
  margin-left: 6px;
  padding: 0 6px;
  background: var(--sun-soft);
  color: var(--sun);
  font-size: 11.5px;
  vertical-align: 2px;
}

/* ---------- Lists ---------- */
.checklist {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}
.card .checklist {
  margin-top: 12px;
}
ol.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
ol.rules li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
ol.rules li:last-child {
  border-bottom: 0;
}
ol.rules li::before {
  content: counter(r);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
}
.facts div {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts dt {
  font-size: 13px;
  color: var(--muted);
}
.facts dd {
  margin: 2px 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}
@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
tbody tr:nth-child(even) td {
  background: var(--soft);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tfoot th {
  background: var(--navy-soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 0;
}

/* ---------- Year plan ---------- */
.plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .plan {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .plan {
    grid-template-columns: 1fr;
  }
}
.plan .month {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan .month h3 {
  margin: 0;
  padding: 9px 16px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 15px;
}
.plan .month ul {
  margin: 0;
  padding: 12px 16px 14px 32px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.plan .month li + li {
  margin-top: 3px;
}
.plan .month.empty ul {
  color: var(--muted);
}

/* ---------- Notice board ---------- */
.notice-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.notice-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
}
.notice-board > header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}
.notice-board > header a {
  color: #fff;
  font-size: 14px;
}
.notice-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.notice-board .notice-list {
  border: 0;
  border-radius: 0;
}
.notice {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.notice:last-child {
  border-bottom: 0;
}
a.notice:hover {
  background: var(--soft);
  color: inherit;
}
.notice time {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}
.notice time small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
}
.notice h3 {
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
a.notice h3 {
  color: var(--navy);
}
.notice p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .notice {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .notice time {
    width: 52px;
    height: 52px;
    font-size: 12px;
  }
  .notice .tag {
    display: none;
  }
}

/* ---------- Head teacher message ---------- */
.hm {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hm .avatar,
.hm-avatar {
  display: none !important;
}
.hm .avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.hm b {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.hm small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats-strip div {
  padding: 22px 18px;
  text-align: center;
}
.stats-strip div + div {
  border-left: 1px solid var(--line);
}
.stats-strip b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.stats-strip span {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip div:nth-child(3) {
    border-left: 0;
  }
  .stats-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.gallery button {
  all: unset;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery button.wide {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.gallery span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.6));
}
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery button.wide {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
}
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgb(10 18 40 / 0.65);
}
.lightbox {
  width: min(1100px, 94vw);
}
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox p {
  margin-top: 10px;
  text-align: center;
  color: #fff;
}
.lightbox .close {
  position: absolute;
  top: -50px;
  right: 0;
}

/* ---------- Search ---------- */
.search-dialog {
  width: min(620px, calc(100vw - 24px));
  margin: 10vh auto auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgb(0 0 0 / 0.4);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.search-field input {
  flex: 1;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px var(--font);
}
.search-field kbd {
  font: 500 12px var(--font);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(60vh, 460px);
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.search-results a:hover,
.search-results a[aria-selected='true'] {
  background: var(--navy-soft);
}
.search-results small {
  display: block;
  font-size: 12.5px;
  color: var(--sun);
  font-weight: 600;
}
.search-results b {
  display: block;
  color: var(--navy);
}
.search-results p {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-results mark {
  background: #fff1c2;
  color: inherit;
}
.search-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Forms ---------- */
.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #c9d1e0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 16px var(--font);
}
.input::placeholder {
  color: #9aa2b2;
}
.input:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent);
}
.input:disabled {
  background: var(--soft);
  color: var(--muted);
}
.input[aria-invalid='true'] {
  border-color: var(--fail);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fail) 15%, transparent);
}
select.input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3a7a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}
.field .hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.input-group {
  position: relative;
}
.input-group .input {
  padding-right: 48px;
  letter-spacing: 0.05em;
}
.input-group button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.input-group button:hover {
  background: var(--soft);
  color: var(--navy);
}
.input-group svg {
  width: 18px;
  height: 18px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.toolbar .input {
  max-width: 320px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: 500 14px var(--font);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--navy);
}
.chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- Faculty ---------- */
.head-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  padding: 22px;
  background: var(--navy-soft);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hm-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.head-card small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}
.head-card b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}
.head-card .muted {
  font-size: 15px;
}
.dept {
  margin-bottom: 28px;
}
.dept h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--navy);
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.person {
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.person b {
  display: block;
  font-weight: 600;
}
.person small {
  font-size: 13.5px;
  color: var(--muted);
}
.person[hidden],
.dept[hidden] {
  display: none;
}

/* ---------- CTA band ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}
.cta h2 {
  color: #fff;
  margin-bottom: 4px;
}
.cta p {
  margin: 0;
  color: #d9e2f5;
}
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta .btn-primary,
.cta .btn-accent {
  background: #fff;
  color: var(--navy);
}
.cta .btn-ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.6);
  color: #fff;
}
@media (max-width: 560px) {
  .cta {
    padding: 24px 20px;
  }
}

/* ---------- Results portal ---------- */
.portal {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 940px) {
  .portal {
    grid-template-columns: 1fr;
  }
}
.form-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}
.form-card .form-title {
  margin-bottom: 20px;
}
@media (max-width: 520px) {
  .form-card {
    padding: 20px 16px;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.form-actions .btn-primary {
  min-width: 180px;
}
@media (max-width: 480px) {
  .form-actions .btn {
    width: 100%;
  }
}
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 15px;
  background: var(--fail-soft);
  border: 1px solid color-mix(in srgb, var(--fail) 30%, transparent);
  border-radius: 8px;
  font-size: 15px;
}
.alert svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--fail);
  flex-shrink: 0;
}
.side-note {
  display: grid;
  gap: 16px;
}
.side-note .card {
  padding: 20px;
}
.side-note h3 {
  font-size: 1rem;
  color: var(--navy);
}
.side-note ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.side-note li + li {
  margin-top: 6px;
}

.marksheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ms-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--navy);
  color: #fff;
}
.ms-head img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
}
.ms-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}
.ms-head p {
  margin: 0;
  font-size: 13.5px;
  color: #d9e2f5;
}
.ms-head .actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.ms-head .btn-ghost {
  background: transparent;
  border-color: rgb(255 255 255 / 0.6);
  color: #fff;
}
.ms-head .btn-ghost:hover {
  background: rgb(255 255 255 / 0.12);
}
.ms-student {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 20px;
  margin: 0;
  padding: 18px 22px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.ms-student dt {
  font-size: 13px;
  color: var(--muted);
}
.ms-student dd {
  margin: 1px 0 0;
  font-weight: 600;
}
.ms-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 22px 0;
  overflow-x: auto;
}
.ms-tabs button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: 500 14px var(--font);
  white-space: nowrap;
  cursor: pointer;
}
.ms-tabs button[aria-selected='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.ms-exam {
  padding: 18px 22px 22px;
}
.ms-exam h3 {
  color: var(--navy);
  margin-bottom: 12px;
}
.ms-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.ms-summary div {
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 8px;
  text-align: center;
}
.ms-summary small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.ms-summary b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ms-summary .pass {
  background: var(--pass-soft);
}
.ms-summary .pass b {
  color: var(--pass);
}
.ms-summary .fail {
  background: var(--fail-soft);
}
.ms-summary .fail b {
  color: var(--fail);
}
.bar {
  height: 8px;
  min-width: 60px;
  margin-top: 7px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--navy);
  border-radius: 4px;
}
.bar i.low {
  background: var(--fail);
}
.marksheet td:nth-child(4) {
  width: 24%;
}
.ms-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .ms-head {
    flex-wrap: wrap;
    padding: 16px;
  }
  .ms-head .actions {
    margin-left: 0;
    width: 100%;
  }
  .ms-student {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
  .ms-tabs {
    padding: 14px 16px 0;
  }
  .ms-exam {
    padding: 16px;
  }
  .ms-summary {
    grid-template-columns: 1fr 1fr;
  }
  .ms-foot {
    padding: 12px 16px;
  }
}
@media (max-width: 560px) {
  .marksheet td:nth-child(4),
  .marksheet th:nth-child(4) {
    display: none;
  }
  .marksheet th,
  .marksheet td {
    padding: 10px 10px;
  }
  .marksheet table {
    font-size: 14.5px;
  }
}

/* ---------- Map ---------- */
.map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-load {
  all: unset;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-align: center;
  color: var(--navy);
}
.map-load svg {
  width: 32px;
  height: 32px;
  color: var(--sun);
}
.map-load b {
  font-size: 1.05rem;
}
.map-load span {
  font-size: 14px;
  color: var(--muted);
}
.map-load:hover b {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 52px 0 0;
  background: var(--navy-2);
  color: #c3cee6;
  font-size: 15px;
}
.site-footer a {
  color: #e6ecf8;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
.foot-grid h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.foot-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.foot-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}
.foot-brand b {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.foot-brand span {
  font-size: 14px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding: 16px 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 13px;
  color: #93a2c4;
}

/* ---------- Misc ---------- */
.not-found {
  padding: 100px var(--gutter);
  text-align: center;
}
.not-found b {
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 12px;
}
.not-found .hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.mt-sm {
  margin-top: 10px;
}
.mt {
  margin-top: 18px;
}
.mt-lg {
  margin-top: 28px;
}
.mb-sm {
  margin-bottom: 20px;
}
.h-card {
  font-size: 1.3rem;
}

/* ---------- Print ---------- */
@media print {
  body {
    font-size: 12px;
  }
  .topbar,
  .site-header,
  .site-footer,
  .page-head,
  .no-print,
  .ms-head .actions,
  .ms-tabs,
  dialog {
    display: none !important;
  }
  .section {
    padding: 0;
  }
  .portal {
    display: block;
  }
  .marksheet {
    box-shadow: none;
  }
  .ms-head {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #000;
  }
  .ms-head h2,
  .ms-head p {
    color: #000;
  }
  th {
    background: #eee;
    color: #000;
  }
  .ms-exam[hidden] {
    display: block !important;
  }
  .ms-exam + .ms-exam {
    break-before: page;
  }
}
