/* Gomti Nandan Public School website.
   The layout and font (Hind Guntur) of the school's earlier website, in the logo's colours:
   logo indigo for structure, logo lime as the accent, a pale lime tint for alternate bands. */
:root {
  --indigo: #2E3092;
  --indigo-deep: #1F2070;
  --lime: #BFD730;
  --lime-deep: #8FA51A;
  --tint: #F4F8E2;
  --ink: #141415;
  --muted: #55585e;
  --line: rgba(20, 20, 21, .18);
  --line-soft: rgba(20, 20, 21, .1);
  --white: #ffffff;
  --error: #b3261e;
  --font: "Hind Guntur", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p a { color: var(--indigo); font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.15em; flex: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 64px; }
.band.tint { background: var(--tint); }
.band.deep { background: var(--indigo-deep); color: var(--white); }
.band.deep .title h2 { color: var(--white); }
.band.deep .title p { color: rgba(255,255,255,.85); }
.title { margin-bottom: 32px; max-width: 70ch; }
.title h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; margin-bottom: 10px; color: var(--indigo-deep); }
.title p { margin: 0; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; color: var(--indigo-deep); margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; font-weight: 600; color: var(--indigo); margin: 24px 0 8px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.lead { font-size: 19px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 36px; border-radius: 50px; border: 1px solid var(--indigo); background: var(--indigo); color: var(--white); font: 500 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.outline { background: transparent; color: var(--indigo); }
.btn.outline:hover { background: var(--indigo); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--indigo-deep); color: var(--white); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; padding-block: 9px; }
.topbar a { text-decoration: none; font-weight: 500; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.masthead { position: relative; z-index: 5; height: 0; }
.nav { position: absolute; top: 0; left: 0; right: 0; color: var(--white); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.nav ul a { text-decoration: none; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--lime); }
.nav .apply { border: 1px solid var(--white); border-radius: 50px; padding: 6px 18px; }
.nav .apply:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--white); color: var(--white); border-radius: 6px; padding: 6px 12px; font: 500 15px var(--font); cursor: pointer; }
.menu-btn__close, .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }

/* ---------- Home banner: a full-screen slideshow of photos and drone videos ---------- */
.hero { position: relative; display: flex; flex-direction: column; height: calc(100svh - var(--topbar-h, 41px)); min-height: 540px; max-height: 1200px; color: var(--white); background: var(--indigo-deep); overflow: hidden; }
.hero__media, .hero__poster, .hero__slide, .hero__slide img, .hero__slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster, .hero__slide img, .hero__slide video { object-fit: cover; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero__slide.is-on { opacity: 1; z-index: 2; }
.hero__slide.is-leaving { opacity: 1; z-index: 1; }
/* Photos drift slowly while they show, alternately closer and further. */
.hero__slide.is-on img, .hero__slide.is-leaving img { animation: hero-zoom-in 9s ease-out both; }
.hero__slide.is-out.is-on img, .hero__slide.is-out.is-leaving img { animation-name: hero-zoom-out; }
@keyframes hero-zoom-in { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes hero-zoom-out { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  linear-gradient(180deg, rgba(18,18,48,.6) 0%, rgba(18,18,48,0) 24%),
  linear-gradient(90deg, rgba(18,18,48,.6) 0%, rgba(18,18,48,.15) 55%, rgba(18,18,48,0) 100%),
  linear-gradient(0deg, rgba(18,18,48,.55) 0%, rgba(18,18,48,0) 30%); }
.hero__text { position: relative; z-index: 4; flex: 1; display: flex; align-items: center; padding-top: 100px; }
.hero__text .wrap { width: 100%; }
.hero h1, .hero__slogan { text-transform: uppercase; text-shadow: 0 2px 16px rgba(0,0,0,.45); text-wrap: balance; }
.hero h1 { font-size: clamp(20px, min(3.2vw, 4.6vh), 40px); font-weight: 500; letter-spacing: .02em; line-height: 1.1; }
.hero h1 strong { display: block; max-width: 16ch; margin-top: 4px; font-size: clamp(32px, min(5.6vw, 8vh), 72px); font-weight: 700; line-height: 1.02; }
.hero__slogan { margin: clamp(20px, 5vh, 56px) 0 0; font-size: clamp(36px, min(7vw, 10vh), 96px); font-weight: 700; line-height: .95; }
.hero__slogan span { display: block; }
.hero__slogan span + span { color: var(--lime); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 34px); }
.hero__foot { position: relative; z-index: 4; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)); }
.hero__foot .wrap { position: relative; display: flex; align-items: flex-end; min-height: 58px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero__facts b { color: var(--lime); font-weight: 600; margin-right: 4px; }
.hero__cue { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.hero__cue span { position: relative; width: 2px; height: 36px; overflow: hidden; background: rgba(255,255,255,.4); }
.hero__cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white); animation: hero-drop 1.8s ease-in-out infinite; }
@keyframes hero-drop { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__slide img, .hero__cue span::after { animation: none !important; }
}

/* ---------- Inner page banner ---------- */
.pagehead { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; color: var(--white); background: var(--indigo-deep) var(--banner) center / cover no-repeat; padding: 150px 0 56px; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,32,112,.85) 0%, rgba(31,32,112,.55) 100%); }
.pagehead .wrap { position: relative; width: 100%; }
.pagehead h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; }
.pagehead .lead { margin: 10px 0 0; max-width: 60ch; opacity: .92; }
.crumbs { display: flex; gap: 8px; font-size: 14px; margin-bottom: 12px; opacity: .85; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }

/* ---------- Home sections ---------- */
.welcome-grid { display: grid; grid-template-columns: 5fr 1fr; gap: 24px; align-items: center; margin-top: 48px; }
.welcome-grid img { width: 100%; }
.shadow-title { font-size: clamp(40px, 6vw, 66px); font-weight: 700; color: rgba(46,48,146,.35); line-height: 1.05; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__item { display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden; }
.why__item .ph { overflow: hidden; }
.why__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.why__item:hover img { transform: scale(1.05); }
.why__item div { padding: 22px 24px 26px; }
.why__item h3 { font-size: 21px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 6px; }
.why__item p { margin: 0; color: var(--muted); }
.why__item:hover h3 { color: var(--indigo); text-decoration: underline; }
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.safety__item { display: flex; gap: 16px; align-items: flex-start; }
.safety__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--indigo); display: grid; place-items: center; font-size: 26px; }
.safety__icon .icon { fill: none; vertical-align: 0; }
.safety__item h3 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 4px; }
.safety__item p { margin: 0; color: var(--muted); }
.safety__item a { color: var(--indigo); font-weight: 600; }
.band.tint .topper__initial { background: var(--white); }
.toppers { margin-bottom: 40px; text-align: center; }
.toppers__title { font-size: 22px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 18px; }
.toppers__group + .toppers__group { margin-top: 28px; }
.toppers__group h4 { font-size: 17px; font-weight: 600; color: var(--indigo); margin-bottom: 14px; }
.toppers__group h4 span { font-weight: 400; color: var(--muted); }
.toppers__group h4 span::before { content: "· "; }
.toppers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; }
.topper { width: 140px; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.topper img, .topper__initial { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--lime); background: var(--tint); margin-bottom: 10px; }
.topper__initial { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--indigo); }
.topper b { font-weight: 600; color: var(--indigo-deep); }
.topper span:last-child { font-size: 16px; font-weight: 600; color: var(--lime-deep); }
.achievements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.achievement { border: 1px solid var(--line); border-top: 4px solid var(--lime); padding: 24px; background: var(--white); }
.achievement__stat { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--indigo); margin-bottom: 8px; }
.achievement h3 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 6px; }
.achievement p { margin: 0; color: var(--muted); }
.achievement p.achievement__when { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--lime-deep); }
.facilities { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facility { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 10px 22px; text-align: center; }
.facility img { width: 64px; height: 64px; margin: 0 auto 14px; }
.facility h3 { font-size: 16px; font-weight: 600; }
.notice { display: flex; gap: 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.notice:hover { background: var(--white); padding-inline: 22px; }
.band.tint .notice:hover { background: var(--white); }
.band:not(.tint) .notice:hover { background: var(--tint); }
.notice .date { flex: none; width: 76px; text-align: center; background: var(--indigo); color: var(--lime); padding: 8px 0 6px; line-height: 1.1; }
.notice .date b { display: block; font-size: 26px; color: var(--white); }
.notice h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--muted); }
.notice a { color: var(--indigo); font-weight: 600; }
.notice-empty { color: var(--muted); }
.alumni { display: grid; grid-template-columns: 300px 1fr; max-width: 900px; margin: 0 auto; background: var(--tint); }
.alumni img { width: 100%; height: 100%; object-fit: cover; }
.alumni blockquote { margin: 0; padding: 36px 40px; font-size: 18px; }
.alumni cite { display: block; margin-top: 16px; font-style: normal; font-weight: 600; }
.reviews { margin: 32px auto 0; text-align: center; }
.reviews__brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--indigo-deep); }
.reviews__brand .icon { font-size: 30px; vertical-align: 0; }
.reviews__actions .icon { font-size: 20px; }
.reviews__score { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 12px; margin: 0 0 20px; color: var(--muted); }
.reviews__score b { font-size: 40px; line-height: 1; color: var(--indigo-deep); }
.stars { color: #f5a623; letter-spacing: 2px; }
.reviews__score .stars { font-size: 22px; }
/* All reviews in one row: side by side on wide screens, a swipeable row on smaller ones. */
.reviews__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; text-align: left; margin-bottom: 24px; }
.reviews__list .review { padding: 20px 18px; font-size: 16px; }
.review { margin: 0; padding: 22px 24px; border: 1px solid var(--line); background: var(--white); }
.review blockquote { margin: 8px 0 12px; }
.review figcaption { font-weight: 600; color: var(--indigo-deep); }
.review figcaption a { color: inherit; text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; }
.review__by { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tint); }
.review__avatar--initial { display: grid; place-items: center; background: var(--indigo); color: var(--white); font-size: 19px; font-weight: 600; }
.review__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review__when { font-size: 14px; font-weight: 400; color: var(--muted); }
.reviews__list .review blockquote { white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.reviews__list .review.is-open blockquote { display: block; }
.review__more { background: none; border: 0; padding: 0; margin: -6px 0 12px; font: inherit; font-weight: 600; color: var(--indigo); cursor: pointer; }
.review__more:hover { text-decoration: underline; }
.reviews__source { margin: -8px 0 18px; font-size: 14px; color: var(--muted); }
.reviews__source a { color: inherit; }
.reviews__actions { margin: 0; }
.feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feed img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.social--left { justify-content: flex-start; margin-top: 14px; }
.social .btn .icon { font-size: 20px; }
.social .btn .icon--facebook { color: #1877f2; }
.social .btn .icon--instagram { color: #e1306c; }
.social .btn .icon--youtube { color: #ff0000; }
.social .btn:hover .icon { color: currentColor; }
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-strip div { border: 1px solid var(--line); padding: 28px; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; align-items: center; }
.contact-strip__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--indigo); display: grid; place-items: center; font-size: 22px; }
.contact-strip__icon .icon { vertical-align: 0; }
.contact-strip__icon--tall { grid-row: span 3; }
.contact-strip p.contact-strip__also { font-size: 16px; margin-top: 6px; }
.contact-strip__also a { color: var(--indigo); font-weight: 600; }
.contact-strip__also .icon { color: #25d366; font-size: 18px; margin-right: 2px; }
.contact-strip__icon .icon--google-maps { font-size: 28px; }
.contact-strip h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 2px; align-self: end; }
.contact-strip p { margin: 0; font-size: 22px; line-height: 1.35; align-self: start; overflow-wrap: anywhere; }
.contact-strip a { text-decoration: none; }
.contact-strip a:hover { color: var(--indigo); text-decoration: underline; }

/* ---------- Shared blocks for inner pages ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; max-height: 520px; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.band.tint .card { border-color: transparent; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .k { display: block; font-size: 40px; font-weight: 700; color: var(--indigo); line-height: 1; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.facts b { display: block; font-size: 44px; font-weight: 700; color: var(--lime); line-height: 1; }
.facts span { color: rgba(255,255,255,.85); }
.stage { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: 0; padding-top: 0; }
.stage img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stage .tag { display: inline-block; background: var(--indigo); color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.stage h2 { font-size: 26px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 12px; }
.stage ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.person { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.person .photo { background: var(--indigo); color: var(--white); aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 20px; }
.person .photo b { display: block; font-size: 54px; line-height: 1; color: var(--lime); }
.person .photo span { font-size: 14px; opacity: .85; }
.person h2 { font-size: 26px; font-weight: 600; color: var(--indigo-deep); }
.person .role { color: var(--indigo); font-weight: 600; margin: 4px 0 16px; }
.person blockquote { margin: 0; padding-left: 18px; border-left: 4px solid var(--lime); }
.person .sign { font-weight: 600; margin-top: 12px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.staff-grid div { background: var(--white); border: 1px solid var(--line); padding: 20px; text-align: center; }
.staff-grid b { display: block; font-size: 34px; color: var(--indigo); line-height: 1.1; }
.staff-grid span { color: var(--muted); font-size: 15px; }
.motto { text-align: center; max-width: 60ch; margin: 0 auto; }
.motto .sa { font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; color: var(--indigo-deep); line-height: 1.5; }
.motto .en { color: var(--muted); margin-top: 6px; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-cards div { border: 1px solid var(--line); padding: 28px; background: var(--white); }
.contact-cards h3 { font-size: 20px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 10px; }
.contact-cards p { margin: 0 0 6px; }
.contact-cards a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.contact-cards a:hover { text-decoration: underline; }
.contact-cards a .icon, .map + p .icon { font-size: 18px; margin-right: 4px; }
.contact-cards a .icon--whatsapp { color: #25d366; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 60px; min-height: 44px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--lime); font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.steps b { display: block; font-size: 18px; color: var(--indigo-deep); }
.steps span { color: var(--muted); }
.split.admissions { align-items: start; }
.fees { display: grid; gap: 48px; max-width: 900px; }
.fees__part h2 { margin-bottom: 16px; }
.fees__part p { max-width: 70ch; }
.fees__part .btn .icon { width: 18px; height: 18px; }
.admissions .title h2 { margin-top: 0; }
.admissions__sub { font-size: 20px; font-weight: 600; color: var(--indigo-deep); margin: 32px 0 10px; }
.admissions__list { margin: 0 0 8px; padding-left: 22px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; max-width: 820px; }
.form fieldset { border: 1px solid var(--line); padding: 20px 22px 6px; margin: 0; display: grid; gap: 16px; background: var(--white); }
.form legend { font-weight: 600; color: var(--indigo); padding: 0 8px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px 8px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(46,48,146,.15); }
.field [aria-invalid="true"] { border-color: var(--error); }
.choices { display: flex; gap: 20px; min-height: 48px; align-items: center; }
.choices label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.choices input { width: 18px; height: 18px; accent-color: var(--indigo); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__alt { margin: 0; color: var(--muted); font-size: 15px; }
.form__alt a { color: var(--indigo); font-weight: 600; }
.form__status { margin: 0; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status.is-done { color: #146c2e; background: #ebf6ee; padding: 14px 16px; border-radius: 6px; }
.form__status.is-info { color: var(--indigo-deep); background: var(--tint); padding: 14px 16px; border-radius: 6px; }
.form.compact { max-width: 560px; }

.form__hint { margin: 0; color: var(--muted); font-size: 15px; }
.form__hint a { color: var(--indigo); font-weight: 600; }
.field input[type="file"] { padding: 10px; min-height: 0; }
.field .is-filled { background: var(--tint); border-color: var(--lime-deep); }

/* ---------- Careers: vacancies, job assistant, application ---------- */
.vacancy { display: flex; flex-direction: column; gap: 8px; }
.vacancy h3 { margin: 0; }
.vacancy p { margin: 0; }
.vacancy__actions { display: flex; align-items: center; gap: 12px; margin-top: auto !important; padding-top: 6px; }
.vacancy__actions .btn { padding: 9px 28px; }
.vacancy__tag { align-self: flex-start; background: var(--indigo); color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 12px 1px; border-radius: 50px; }
.share-wa { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: #1da851; font-size: 20px; }
.share-wa:hover { background: #1da851; border-color: #1da851; color: var(--white); }
.job-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 15px; }
.job-facts b { color: var(--indigo-deep); font-weight: 600; }
.job-facts a { color: var(--indigo); font-weight: 600; }
.job-ad { max-width: 820px; border: 1px solid var(--line); border-top: 6px solid var(--lime); padding: 28px 32px; display: grid; gap: 12px; }
.job-ad p { margin: 0; }
.job-ad h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 600; color: var(--indigo-deep); }
.job-ad .job-facts { font-size: 17px; }
.job-ad .actions { margin-top: 8px; }
.job-ad .btn .icon { font-size: 18px; }
.job-ad__label { color: var(--lime-deep); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.job-closed { margin-bottom: 24px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.perks b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--indigo); line-height: 1.1; }
.perks span { color: var(--muted); }
.req { color: var(--error); font-weight: 700; }
.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 820px; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.stepper span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-weight: 700; padding-top: 3px; }
.stepper li[aria-current] { color: var(--indigo-deep); font-weight: 600; }
.stepper li[aria-current] span { background: var(--indigo); border-color: var(--indigo); color: var(--lime); }
.stepper li.is-done span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.job-form .form__actions { padding-bottom: 14px; }
.more { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--indigo); padding: 4px 0 10px; }
.more__body { display: grid; gap: 16px; padding-bottom: 6px; }
.job-questions { display: grid; gap: 16px; }
.job-questions:empty { display: none; }
.job-done { max-width: 820px; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--lime); padding: 28px; }
.job-done h3 { font-size: 22px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 10px; }
.job-done:focus { outline: none; }

/* ---------- "Ask us a question": the GNPS Assistant (AI, powered by Claude), on every page ---------- */
.ai { --ai-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.829 1.828l1.936.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.829l-.645 1.936a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.73 1.73 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69A1.73 1.73 0 0 0 2.31 4.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.73 1.73 0 0 0 3.407 2.31zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.16 1.16 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.16 1.16 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732z'/%3E%3C/svg%3E"); --ai-coral: #D97757; --ai-coral-deep: #C15F3C; --ai-cream: #FAF9F5; --ai-sand: #F0EEE6; --ai-ink: #141413; --ai-muted: #6B6A66; }
.ai-btn { position: fixed; right: 22px; bottom: 92px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px 10px 18px; border: 0; border-radius: 50px; background: var(--ai-coral); color: var(--white); font: 600 16px/1.2 var(--font); cursor: pointer; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.ai-btn .icon { font-size: 19px; vertical-align: 0; }
.ai-btn:hover, .ai.is-open .ai-btn { background: var(--ai-coral-deep); }
.ai-panel { position: fixed; right: 22px; bottom: 150px; z-index: 61; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 180px)); display: flex; flex-direction: column; background: var(--ai-cream); color: var(--ai-ink); border: 1px solid rgba(20,20,19,.12); border-radius: 16px; overflow: hidden; box-shadow: 0 28px 70px -24px rgba(0,0,0,.55); }
.ai-panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 12px 16px; background: var(--ai-sand); border-bottom: 1px solid rgba(20,20,19,.08); }
.ai-panel__head > div { flex: 1; min-width: 0; }
.ai-panel__head h2 { font-size: 17px; font-weight: 600; }
.ai-panel__head p { margin: 0; font-size: 13px; color: var(--ai-muted); }
.ai-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ai-coral); color: var(--white); font-size: 18px; }
.ai-avatar .icon { vertical-align: 0; }
.ai-panel__new { background: none; border: 1px solid rgba(20,20,19,.18); border-radius: 50px; padding: 5px 12px 3px; font: 500 13px/1.2 var(--font); color: var(--ai-ink); cursor: pointer; }
.ai-panel__new:hover { background: var(--white); }
.ai-panel__close { background: none; border: 0; color: var(--ai-ink); font-size: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.ai-panel__close:hover { background: rgba(20,20,19,.08); }
.ai-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.ai-msg.is-bot { align-self: flex-start; position: relative; padding-left: 26px; }
.ai-msg.is-bot::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--ai-coral); -webkit-mask: var(--ai-star) center / contain no-repeat; mask: var(--ai-star) center / contain no-repeat; }
.ai-msg.is-user { align-self: flex-end; background: var(--ai-sand); padding: 9px 14px 7px; border-radius: 14px 14px 4px 14px; }
.ai-msg.is-error { color: var(--error); }
.ai-msg a { color: var(--ai-coral-deep); font-weight: 600; }
.ai-msg.is-typing { display: flex; gap: 5px; align-items: center; height: 24px; }
.ai-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ai-coral); animation: ai-dot 1.2s infinite ease-in-out; }
.ai-msg.is-typing span:nth-child(2) { animation-delay: .15s; }
.ai-msg.is-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 16px 12px; }
.ai-suggest button { padding: 8px 14px 6px; border-radius: 12px; border: 1px solid rgba(20,20,19,.15); background: var(--white); color: var(--ai-ink); font: 500 14px/1.3 var(--font); text-align: left; cursor: pointer; }
.ai-suggest button:hover { border-color: var(--ai-coral); color: var(--ai-coral-deep); }
.ai-form { display: flex; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; background: var(--white); border: 1px solid rgba(20,20,19,.15); border-radius: 14px; }
.ai-form:focus-within { border-color: var(--ai-coral); box-shadow: 0 0 0 3px rgba(217,119,87,.18); }
.ai-form input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ai-ink); padding: 6px 0 4px; }
.ai-form input:focus { outline: none; }
.ai-form button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--ai-coral); color: var(--white); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.ai-form button:hover { background: var(--ai-coral-deep); }
.ai-form button[disabled] { opacity: .5; cursor: wait; }
.ai-form button .icon { vertical-align: 0; }
.ai-note { margin: 8px 16px 10px; font-size: 12px; line-height: 1.4; color: var(--ai-muted); text-align: center; }

/* ---------- Staff hiring page ---------- */
.hr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.hr-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-tabs button { padding: 10px 24px 8px; border-radius: 50px; border: 1px solid var(--indigo); background: transparent; color: var(--indigo); font: 500 16px/1.2 var(--font); cursor: pointer; }
.hr-tabs button[aria-selected="true"] { background: var(--indigo); color: var(--white); }
.hr-me { margin: 0; color: var(--muted); }
.hr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 12px; }
.hr-filters .field { min-width: 160px; }
.hr-filters__search { flex: 1; }
.hr-count { color: var(--muted); margin: 0 0 8px; }
.hr-help { color: var(--muted); max-width: 70ch; }
.hr-table td { vertical-align: middle; }
.hr-table td:first-child { width: auto; }
.hr-table tbody tr { cursor: pointer; }
.hr-table tbody tr:hover { background: #eef0fb; }
.hr-table .btn { padding: 6px 18px; }
.hr-empty { color: var(--muted); font-style: italic; }
.hr-ad { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-table .hr-ad .btn { padding: 5px 14px; font-size: 14px; }
.hr-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--indigo); cursor: pointer; text-align: left; }
.hr-link:hover { text-decoration: underline; }
.hr-sub { display: block; color: var(--muted); font-size: 14px; }
.hr-score { display: inline-block; min-width: 44px; text-align: center; padding: 3px 10px 1px; border-radius: 50px; font-weight: 700; background: var(--line-soft); }
.hr-score.is-strong { background: #d8f0de; color: #146c2e; }
.hr-score.is-consider { background: #fdf0cf; color: #7a5300; }
.hr-score.is-weak { background: #fbeaea; color: var(--error); }
.hr-score.is-pending { font-weight: 400; color: var(--muted); }
.hr-pill { display: inline-block; padding: 3px 12px 1px; border-radius: 50px; font-size: 14px; font-weight: 600; background: var(--line-soft); white-space: nowrap; }
.hr-pill.is-new { background: #e3e4f7; color: var(--indigo-deep); }
.hr-pill.is-shortlisted, .hr-pill.is-interview { background: #fdf0cf; color: #7a5300; }
.hr-pill.is-selected { background: #d8f0de; color: #146c2e; }
.hr-pill.is-rejected { background: #fbeaea; color: var(--error); }
.hr-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.hr-dialog--narrow { width: min(640px, calc(100vw - 32px)); }
.hr-dialog::backdrop { background: rgba(31,32,112,.55); }
.hr-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px 14px; background: var(--indigo-deep); color: var(--white); }
.hr-dialog__head h2 { font-size: 22px; font-weight: 600; }
.hr-dialog__close { background: none; border: 0; color: var(--white); font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.hr-dialog__close:hover { background: rgba(255,255,255,.15); }
.hr-dialog__body { padding: 20px 24px 28px; display: grid; gap: 16px; max-width: none; }
.hr-meta { margin: 0; color: var(--muted); }
.hr-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.hr-contact .btn { padding: 9px 22px; }
.hr-manage { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px 16px; align-items: end; background: var(--tint); padding: 16px; }
.hr-manage .form__status { grid-column: 1 / -1; }
.hr-section { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.hr-section h3 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); }
.hr-section h4 { font-size: 16px; color: var(--indigo); margin-top: 4px; }
.hr-section p, .hr-section ul { margin: 0; }
.hr-section ul { padding-left: 20px; }
.hr-section .btn { justify-self: start; }
.hr-ai__head { display: flex; align-items: center; gap: 12px; }
.hr-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.hr-details dt { color: var(--muted); }
.hr-details dd { margin: 0; overflow-wrap: anywhere; }
.hr-q { font-weight: 600; }
.hr-a { white-space: pre-wrap; padding-left: 14px; border-left: 3px solid var(--lime); }
.hr-foot { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

/* Staff admin page (/admin) */
.admin-sec { margin-top: 36px; }
.admin-sec h3 { font-size: 21px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 10px; }
.admin-table td { vertical-align: top; }
.admin-table input, .admin-table textarea { width: 100%; min-width: 120px; padding: 6px 10px 4px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.admin-table textarea { resize: vertical; min-width: 220px; }
.admin-table input:focus, .admin-table textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(46,48,146,.15); }
.admin-num { color: var(--muted); padding-top: 14px; }
.admin-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 6px; }
.admin-link__what { overflow-wrap: anywhere; }
.admin-link__what a { color: var(--indigo); }
.admin-actions { display: inline-flex; white-space: nowrap; }
.admin-icon { width: 34px; height: 34px; margin-right: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--indigo); font: 600 16px/1 var(--font); cursor: pointer; }
.admin-icon:hover:not([disabled]) { background: var(--indigo); color: var(--white); }
.admin-icon[disabled] { opacity: .35; cursor: default; }
.admin-icon--danger { color: var(--error); }
.admin-icon--danger:hover:not([disabled]) { background: var(--error); }
.admin-add { margin-top: 12px; padding: 8px 24px; justify-self: start; }
.admin-save { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; padding: 14px 0; background: var(--white); border-top: 1px solid var(--line); }
.admin-kinds { display: grid; gap: 8px; }
.admin-kinds label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; }
.admin-kinds input { width: 18px; height: 18px; min-height: 0; accent-color: var(--indigo); }
.admin-card { display: grid; gap: 14px; margin-top: 16px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.admin-card__head h3 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); }
.admin-card .field-row, .admin-event .field-row { align-items: start; }
.admin-notice-row { grid-template-columns: 200px 1fr; }
.admin-notice-link { display: grid; gap: 10px; }
.admin-event { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.admin-event summary { padding: 14px 20px 12px; font-weight: 600; color: var(--indigo-deep); cursor: pointer; }
.admin-event[open] summary { border-bottom: 1px solid var(--line); }
.admin-event__body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.admin-event__body > .btn { justify-self: start; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.admin-photo { display: grid; gap: 6px; margin: 0; }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line-soft); }
.admin-photo input { width: 100%; padding: 6px 10px 4px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 4px; }
.admin-rows { display: grid; gap: 4px; }
.admin-toppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.admin-topper { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; background: var(--tint); border-radius: 6px; }
.admin-topper__face img, .admin-topper__face .topper__initial { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.admin-topper__fields { display: grid; gap: 10px; }
.admin-topper__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
#panel-achievements [data-ach-editor] { display: grid; gap: 16px; }
#panel-fees [data-fees-editor] { display: grid; gap: 0; }
.admin-insta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 14px 16px; border-radius: 6px; background: var(--tint); }
.admin-insta__text { flex: 1 1 420px; display: grid; gap: 4px; }
.admin-insta .btn { padding: 8px 22px; }
.admin-cutting { display: grid; grid-template-columns: 200px 1fr; gap: 14px 20px; align-items: start; }
.admin-cutting__photo { display: grid; gap: 8px; }
.admin-cutting__photo img { width: 100%; max-height: 260px; object-fit: contain; object-position: top; border: 1px solid var(--line); border-radius: 4px; background: var(--line-soft); }
.admin-cutting__fields { display: grid; gap: 14px; }
.admin-h { font-size: 22px; font-weight: 600; color: var(--indigo-deep); margin: 28px 0 14px; }
.admin-slide { position: relative; }
.admin-slide img, .admin-slide video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--indigo-deep); }
.admin-slide__badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px 1px; border-radius: 4px; background: rgba(20,20,21,.7); color: var(--white); font-size: 13px; font-weight: 600; }
.admin-hero-add { margin-top: 20px; padding: 18px 20px 6px; border-radius: 8px; background: var(--tint); }
.admin-hero-add textarea { width: 100%; padding: 8px 12px 6px; font: inherit; border: 1px solid var(--line); border-radius: 4px; background: var(--white); resize: vertical; }
.admin-hero-add p { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-file-btn { cursor: pointer; }
.admin-howto { margin: 6px 0 14px; }
.admin-howto summary { cursor: pointer; font-weight: 600; color: var(--indigo); }
.admin-howto ol { padding-left: 22px; }
.admin-howto p { display: block; margin: 0 0 10px; }
@media (max-width: 640px) { .admin-notice-row, .admin-cutting { grid-template-columns: 1fr; } }
.btn.hr-danger { color: var(--error); border-color: var(--error); }
.btn.hr-danger:hover { background: var(--error); color: var(--white); }
.hr-link.hr-danger { color: var(--error); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__more { margin-top: 24px; color: var(--muted); }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.gallery-filter button { padding: 9px 20px; border-radius: 50px; border: 1px solid var(--indigo); background: transparent; color: var(--indigo); font: 500 15px/1.2 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.gallery-filter button:hover { background: var(--tint); }
.gallery-filter button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.gallery-event { padding-top: 40px; }
.gallery-event header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gallery-event h2 { font-size: 24px; font-weight: 600; color: var(--indigo-deep); }
.gallery-event header p { margin: 4px 0 0; color: var(--muted); }
.gallery-event .btn { padding: 9px 24px; }
/* ---------- In the news (newspaper cuttings) ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cutting { margin: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--lime); }
.cutting__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.cutting__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.cutting__img:hover img { transform: scale(1.04); }
.cutting figcaption { padding: 18px 20px 20px; }
.cutting h2 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 6px; }
.cutting p { margin: 0; color: var(--muted); }
.cutting p.cutting__post { margin-top: 10px; font-size: 15px; }
.cutting__post a { color: var(--indigo); font-weight: 600; }
.cutting p.cutting__meta { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--lime-deep); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(31,32,112,.96); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(31,32,112,.6); }
.lightbox__img { grid-column: 2; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.lightbox__caption { grid-column: 1 / -1; text-align: center; margin: 0 0 24px; opacity: .85; }
.lightbox button { background: rgba(255,255,255,.1); color: var(--white); border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 20px; margin: 16px; }
.lightbox button:hover { background: var(--lime); color: var(--ink); }
.lightbox__close { position: absolute; top: 0; right: 0; }

/* ---------- CBSE disclosure tables ---------- */
.disclosure { margin-bottom: 48px; scroll-margin-top: 24px; }
.disclosure h2 { font-size: 24px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--lime); display: inline-block; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 10px; border: 1px solid var(--line); }
th { background: var(--indigo); color: var(--white); font-weight: 600; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--tint); }
td:first-child { width: 64px; white-space: nowrap; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); font-weight: 600; text-decoration: none; white-space: nowrap; }
.doc-link:hover { text-decoration: underline; }
.doc-link .icon { color: var(--error); font-size: 20px; }
.pending { color: var(--muted); font-style: italic; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.jump a { text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--indigo); color: var(--indigo); border-radius: 50px; padding: 6px 16px 4px; }
.jump a:hover { background: var(--indigo); color: var(--white); }

/* ---------- TC search result ---------- */
.tc-result { margin-top: 24px; border: 1px solid var(--line); padding: 24px; background: var(--white); }
.tc-result:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-deep); color: var(--white); padding-top: 56px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.fbrand p { max-width: 34ch; opacity: .85; margin: 16px 0; }
.footer h2 { font-size: 18px; margin: 0 0 14px; font-weight: 600; color: var(--lime); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; color: var(--lime); }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.fcontact .icon { color: var(--lime); margin-top: 5px; }
.fsocial { display: flex; gap: 10px; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); font-size: 18px; }
.social-link:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); opacity: 1; }
.copy { border-top: 1px solid rgba(255,255,255,.25); margin-top: 36px; padding-block: 18px 28px; font-weight: 300; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.copy p { margin: 0; display: flex; gap: 20px; }
.copy a { font-weight: 400; opacity: 1; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1da851; color: var(--white); box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); font-size: 28px; }
.wa-float:hover { background: #178a42; }
.notfound { min-height: 40vh; }

@media (max-width: 1100px) {
  .reviews__list { grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reviews__list .review { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .why, .achievements, .safety { grid-template-columns: 1fr 1fr; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
  .feed { grid-template-columns: repeat(2, 1fr); }
  .contact-strip, .fgrid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .welcome-grid, .split, .stage, .person { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .person .photo { max-width: 260px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .news { grid-template-columns: 1fr 1fr; gap: 20px; }
  .menu-btn { display: inline-flex; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--indigo-deep); padding: 16px max(16px, env(safe-area-inset-left, 0px)) 24px; gap: 14px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav ul.open { display: flex; }
  .nav .apply { align-self: flex-start; }
  .pagehead { padding-top: 130px; min-height: 390px; }
  .hero__facts { display: none; }
  .hero__cue { display: flex; } /* on computers the line of facts takes its place */
}
@media (max-width: 560px) {
  .reviews__list { grid-auto-columns: 82%; }
  body { font-size: 16px; }
  .band { padding-block: 48px; }
  .why, .achievements, .safety { grid-template-columns: 1fr; }
  .toppers__list { gap: 18px 8px; }
  .topper { width: 104px; font-size: 15px; }
  .topper img, .topper__initial { width: 88px; height: 88px; border-width: 3px; }
  .topper__initial { font-size: 32px; }
  .topper span:last-child { font-size: 14px; }
  .alumni { grid-template-columns: 1fr; }
  .alumni img { height: 260px; }
  .alumni blockquote { padding: 28px 22px; }
  .contact-strip, .fgrid, .contact-cards, .field-row, .staff-grid { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; }
  .gallery-event h2 { font-size: 20px; }
  .notice { gap: 18px; align-items: flex-start; }
  .notice h3 { font-size: 19px; }
  .topbar .wrap { justify-content: flex-start; gap: 6px 16px; }
  .form fieldset { padding: 16px 14px 2px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .job-ad { padding: 22px 18px; }
  .hr-manage { grid-template-columns: 1fr; }
  .hr-details { grid-template-columns: 1fr; }
  .hr-details dd { margin-bottom: 6px; }
  .hr-dialog__head, .hr-dialog__body { padding-inline: 16px; }
  .wa-float { right: 16px; bottom: 16px; }
  .ai-btn { right: 16px; bottom: 84px; }
  .ai-panel { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); height: calc(100dvh - 16px); z-index: 70; }
  .ai.is-open .ai-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .ai-msg.is-typing span { animation: none; opacity: .6; }
}
@media print {
  .topbar, .masthead, .wa-float, .footer, .skip-link, .ai { display: none; }
  .pagehead { background: none; color: var(--ink); padding-top: 24px; min-height: 0; }
  .pagehead::before { display: none; }
}
