/* 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: 1320px; 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); }
.nav__home { display: flex; align-items: center; gap: 6px; }
.nav__home .icon { font-size: 18px; vertical-align: 0; margin-block: -4px; position: relative; top: -2px; }
@media (min-width: 901px) and (max-width: 1240px) { .nav .wrap { gap: 12px; } .nav ul { column-gap: 14px; } }
@media (min-width: 901px) and (max-width: 1240px) { .nav__home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.home-btn { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--white); border-radius: 50%; color: var(--white); font-size: 20px; }
.home-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.home-btn .icon { vertical-align: 0; }
.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; }
.why__list { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.why__list li { position: relative; padding-left: 26px; margin: 5px 0; }
.why__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--lime-deep); font-weight: 700; }
/* The kindergarten card: full width, photo beside the text */
.why__item--feature { grid-column: 1 / -1; flex-direction: row; }
.why__item--feature .ph { flex: 0 0 50%; }
.why__item--feature img { height: 100%; aspect-ratio: auto; min-height: 380px; }
/* Playgroup card on the home page: the whole wide photo across the top, the words below in two columns. */
.why__item--wide { flex-direction: column; }
.why__item--wide .ph { flex: none; }
.why__item--feature.why__item--wide img { height: auto; min-height: 0; aspect-ratio: 1600 / 640; }
.why__item--wide > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; align-self: stretch; }
.why__item--wide > div > * { grid-column: 1; }
.why__item--wide > div > .why__list { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: center; }
.why__item--wide .why__kicker { justify-self: start; }
@media (max-width: 900px) {
  .why__item--wide > div { display: block; }
  .why__item--wide > div > .why__list { margin-top: 14px; }
}
.why__item--feature > div { align-self: center; padding: 34px 44px 38px; }
.why__item--feature h3 { font-size: 30px; }
.why__item--feature p { font-size: 17px; }
.why__item--feature ul { margin-top: 14px; }
.why__item--feature li { margin: 6px 0; }
.why__kicker { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: var(--lime); color: var(--indigo-deep); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.why__more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--indigo); }
.why__more::after { content: " \2192"; }
.why__item--feature:hover .why__more { 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); }
.topper i { font-style: normal; }
.topper i::before { content: " · "; }
.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)); }
/* About us: the four I's in one row, then the vision and motto below them. */
.cards--four { grid-template-columns: repeat(4, 1fr); }
.about-vm { margin-top: 30px; }
.title p + p { margin-top: 12px; }
.about-sign { font-weight: 600; color: var(--indigo-deep) !important; }
.crayon .about-sign { font-family: var(--hand); font-size: 20px !important; }
.nowrap { white-space: nowrap; }
@media (max-width: 1000px) { .cards--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards--four { grid-template-columns: 1fr 1fr; gap: 14px; } }
.cards--compact .card { padding: 20px 22px; }
.cards--compact .card h3 { margin-bottom: 4px; }
@media (max-width: 560px) { .cards--compact .card { padding: 16px 16px; } .cards--four .card p { font-size: 15px; } }
/* About us: the facilities as a compact grid, a round photo and a line each, linking to their pages. */
.fac-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fac-link { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.fac-link img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.fac-link b { display: block; color: var(--indigo-deep); font-size: 18px; font-weight: 600; line-height: 1.25; }
.fac-link b::after { content: " \2192"; color: var(--indigo); }
.fac-link > span > span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 3px; }
.fac-link:hover b { text-decoration: underline; }
@media (max-width: 1000px) { .fac-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fac-links { grid-template-columns: 1fr; gap: 12px; } .fac-link img { width: 60px; height: 60px; } }
.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:not(.btn) { color: var(--indigo); font-weight: 600; text-decoration: none; }
.contact-cards a:not(.btn):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 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; color: var(--muted); }
.btn.hr-signout { padding: 6px 18px; font-size: 15px; }
.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; }
.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); }

/* Albums: a taped photo card with a little stack of prints, gently floating ("Lift and float").
   The one under the pointer rises with a deep shadow. */
.albums-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 40px; }
.albums-bar p { margin: 0; color: var(--muted); }
.albums-bar[hidden], .albums[hidden], .album[hidden], .album-view[hidden] { display: none; }
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; padding: 14px 6px 10px; }
@keyframes album-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.album { position: relative; display: block; background: var(--white); padding: 12px 12px 18px; border-radius: 6px; color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(20,20,21,.1), 0 1px 2px rgba(31,32,112,.06), 0 14px 32px -18px rgba(31,32,112,.35);
  transform: rotate(-1.4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; animation: album-bob 4.5s ease-in-out infinite; }
.album:nth-child(3n+2) { transform: rotate(.9deg); animation-delay: -1.5s; }
.album:nth-child(3n) { transform: rotate(-.5deg); animation-delay: -3s; }
.album::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(191,215,48,.75); transform: rotate(-3deg); border-radius: 2px; z-index: 3; }
.album:nth-child(even)::before { background: rgba(74,159,216,.45); transform: rotate(2.5deg); }
.album:hover, .album:focus-visible { transform: translateY(-22px) scale(1.05) rotate(0); animation-play-state: paused; z-index: 2;
  box-shadow: 0 0 0 1px rgba(20,20,21,.08), 0 50px 50px -26px rgba(31,32,112,.55), 0 12px 18px -10px rgba(31,32,112,.3); }
.album:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.album__stack { position: relative; display: block; aspect-ratio: 4 / 3; }
.album__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--tint); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.album__stack .b1 { transform: rotate(4deg) translate(6px, -4px); filter: brightness(.92); }
.album__stack .b2 { transform: rotate(-3deg) translate(-6px, 2px); filter: brightness(.96); }
.album__stack .top { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.album__count { position: absolute; right: 10px; bottom: 10px; z-index: 3; background: rgba(31,32,112,.88); color: var(--white); font-weight: 600; font-size: 14px; padding: 4px 12px 2px; border-radius: 14px; }
.album__new { position: absolute; left: -10px; top: 10px; z-index: 3; background: var(--lime); color: var(--indigo-deep); font-weight: 700; font-size: 15px; padding: 4px 12px 2px; border-radius: 14px; transform: rotate(-8deg); box-shadow: 0 3px 8px -3px rgba(0,0,0,.35); }
.album__title { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--indigo-deep); margin: 14px 4px 2px; text-wrap: balance; }
.album__meta { display: block; margin: 0 4px; color: var(--muted); font-size: 15px; }

/* One album, opened */
.album-back { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.album-back::before { content: "\2190"; font-size: 20px; line-height: 1; }
.album-back:hover { text-decoration: underline; }
.album-view header { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.album-view h2 { font-size: 30px; font-weight: 600; color: var(--indigo-deep); outline: 0; }
.album-view header p { margin: 4px 0 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .album { animation: none; transition: box-shadow .3s; }
  .album:hover, .album:focus-visible { transform: rotate(0); }
}
/* ---------- 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__foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px 22px; }
.lightbox__caption { text-align: center; margin: 0; opacity: .85; }
.lightbox__tools, .lightbox__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lightbox__tools[hidden], .lightbox__share[hidden], .lightbox .lightbox__tool[hidden] { display: none; }
.lightbox .lightbox__tool { width: auto; height: auto; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 7px; border-radius: 24px; background: rgba(255,255,255,.12); color: var(--white); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 0; }
.lightbox .lightbox__tool:hover { background: var(--lime); color: var(--ink); }
.lightbox__tool svg { width: 16px; height: 16px; }
.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 { color: inherit; text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; color: var(--lime); }
.footer .flink { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; opacity: .9; cursor: pointer; }
.footer .flink:hover { opacity: 1; color: var(--lime); }
.install-dialog .cal-dialog__head img { border-radius: 14px; }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.install-note { color: var(--muted); font-size: 15px; }
.install-done { padding: 12px 16px; border-radius: 8px; background: var(--tint); font-weight: 600; }
.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; flex-wrap: wrap; gap: 6px 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; }
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .news { grid-template-columns: 1fr 1fr; gap: 20px; }
  .menu-btn, .home-btn { display: inline-flex; }
  .nav .wrap { gap: 12px; }
  .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; }
  .why__item--feature { flex-direction: column; }
  .why__item--feature .ph { flex: none; }
  .why__item--feature img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .why__item--feature > div { padding: 22px 24px 26px; }
  .why__item--feature h3 { font-size: 24px; }
  .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; }
  .albums { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-inline: 10px; }
  .album-view h2 { font-size: 24px; }
  .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; }
}

/* ---------- School calendar (/calendar, and the home page's "Coming up" strip) ----------
   Month view: a wall of tiles that flip over in a wave. Week view: the seven days circle a ring. */
/* --c: bright colour (legend dots, card bars, week view); --c-ink: deep colour for text and bars on white;
   --c-wash: pale tint behind an event day in the month view */
[data-type="holiday"] { --c: #ff6b7a; --c-ink: #C2413B; --c-wash: #FDE9E7; }
[data-type="exam"] { --c: #8794ff; --c-ink: #2E3092; --c-wash: #E9EAF8; }
[data-type="ptm"] { --c: #2fd3c4; --c-ink: #2378B5; --c-wash: #E3F1FB; }
[data-type="celebration"] { --c: #ffb648; --c-ink: #B9740A; --c-wash: #FDF1DC; }
[data-type="sports"] { --c: #74e37a; --c-ink: #2F7F57; --c-wash: #E2F3EA; }
[data-type="activity"] { --c: #d792ff; --c-ink: #B4467A; --c-wash: #FAE6EF; }
[data-type="other"] { --c: #c9ccd6; --c-ink: #5D616B; --c-wash: #EEEFF2; }
/* On the calendar page each event has its own colour (calendar.js sets data-hue); holidays stay red */
[data-hue="0"] { --c: #8794ff; --c-ink: #2E3092; --c-wash: #E9EAF8; }
[data-hue="1"] { --c: #4A9FD8; --c-ink: #1F6EA8; --c-wash: #E1EFFA; }
[data-hue="2"] { --c: #74e37a; --c-ink: #2F7F57; --c-wash: #E2F3EA; }
[data-hue="3"] { --c: #ffb648; --c-ink: #9A6205; --c-wash: #FDF0D8; }
[data-hue="4"] { --c: #d792ff; --c-ink: #7A45B0; --c-wash: #F1E8FA; }
[data-hue="5"] { --c: #2fd3c4; --c-ink: #0F7C74; --c-wash: #DCF3F0; }
.cal { display: grid; gap: 28px; }
.cal > * { min-width: 0; }
.cal-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cal-plain li { padding: 16px 20px; border-left: 5px solid var(--lime); background: var(--tint); }
.cal-plain h3 { font-size: 21px; font-weight: 600; color: var(--indigo-deep); }
.cal-plain p { margin: 2px 0 0; }
.cal-plain__when { font-weight: 600; }

/* The date as a leaf of a wall calendar */
.cal-leaf { flex: none; display: block; width: 64px; border-radius: 8px; overflow: hidden; text-align: center; background: var(--white); color: var(--indigo-deep); box-shadow: 0 8px 18px -10px rgba(31,32,112,.7); }
.cal-leaf i { display: block; background: var(--c, var(--lime)); color: var(--ink); font: 600 13px/1.9 var(--font); letter-spacing: .12em; text-transform: uppercase; font-style: normal; padding-top: 2px; }
.cal-leaf b { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; padding-top: 6px; }
.cal-leaf small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.cal-leaf--big { width: 92px; border-radius: 12px; }
.cal-leaf--big i { font-size: 15px; }
.cal-leaf--big b { font-size: 44px; }
.cal-leaf--big small { font-size: 13px; }
.cal-type { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cal-soon { display: inline-block; padding: 3px 10px 0; border-radius: 50px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap; }

/* Next up */
.cal-spot { display: flex; align-items: center; gap: 28px; padding: 28px 32px; border-radius: 16px; color: var(--white); background: radial-gradient(120% 140% at 0% 0%, #3a3cb0 0%, var(--indigo-deep) 55%, #14154d 100%); overflow: hidden; }
.cal-spot__scene { flex: none; perspective: 700px; }
.cal-pad { position: relative; transform: rotateY(-22deg) rotateX(10deg); transform-style: preserve-3d; animation: cal-float 5s ease-in-out infinite alternate; }
.cal-pad::before, .cal-pad::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: #dfe3f5; transform: translateZ(-8px) translate(5px, 5px); }
.cal-pad::after { background: #b9bfe0; transform: translateZ(-16px) translate(10px, 10px); }
.cal-pad .cal-leaf { position: relative; z-index: 1; box-shadow: none; }
@keyframes cal-float { to { transform: rotateY(-8deg) rotateX(4deg) translateY(-6px); } }
.cal-spot__text { min-width: 0; }
.cal-spot__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.cal-spot__kicker .cal-soon { letter-spacing: 0; text-transform: none; }
.cal-spot h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 600; }
.cal-spot__when { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.cal-spot__for { margin: 2px 0 0; opacity: .85; }
.cal-spot .actions { margin-top: 16px; }
.cal-spot .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cal-spot .btn:hover { background: var(--white); border-color: var(--white); }

/* Views, filters and search */
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cal-views { display: inline-flex; border: 1px solid var(--indigo); border-radius: 50px; overflow: hidden; }
.cal-views button { padding: 10px 22px 8px; border: 0; background: transparent; color: var(--indigo); font: 500 16px/1.2 var(--font); cursor: pointer; }
.cal-views button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.cal-select, .cal-search { min-height: 44px; padding: 9px 14px 7px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 50px; }
.cal-search { flex: 1 1 200px; max-width: 320px; }
.cal-select:focus, .cal-search:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(46,48,146,.15); }
.cal-legend { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.cal-legend__chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 5px; border-radius: 50px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 500 15px/1.2 var(--font); cursor: pointer; }
.cal-legend__chip[data-type="holiday"]::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.cal-legend__chip:hover { border-color: var(--indigo); }
.cal-legend__chip[aria-pressed="true"] { background: var(--indigo-deep); border-color: var(--indigo-deep); color: var(--white); }

/* Month view */
.cal-month, .cal-weekview { display: grid; gap: 18px; }
.cal-month__head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cal-month__title { min-width: 8.5em; text-align: center; font-size: clamp(24px, 4vw, 32px); font-weight: 600; color: var(--indigo-deep); }
.cal-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--indigo); background: var(--white); color: var(--indigo); font: 500 26px/1 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.cal-arrow:hover { background: var(--indigo); color: var(--white); }
.cal-today { padding: 9px 18px 7px; border-radius: 50px; border: 1px solid var(--line); background: var(--white); color: var(--indigo); font: 500 15px/1.2 var(--font); cursor: pointer; }
.cal-today:hover { border-color: var(--indigo); }
.cal-stage { padding: 18px; border-radius: 16px; border: 2px solid var(--indigo); background: var(--white); touch-action: pan-y; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; line-height: 1.2; min-height: 84px; padding: 9px 6px 6px; border: 1px solid rgba(31,32,112,.28); border-radius: 8px; background: var(--white); color: var(--indigo-deep); font: inherit; text-align: center; transform-origin: 50% 50%; }
.cal-day.is-blank { background: none; border-color: transparent; }
.cal-day.is-flipping { animation: cal-flip .6s cubic-bezier(.3,1.5,.5,1) backwards; animation-delay: var(--d, 0ms); }
@keyframes cal-flip { from { transform: perspective(500px) rotateX(-100deg); opacity: 0; } 60% { opacity: 1; } }
.cal-day__n { display: block; font-size: clamp(18px, 3.4vw, 26px); font-weight: 700; line-height: 1; color: var(--indigo-deep); }
.cal-day.has-events { background: var(--c-wash); color: var(--c-ink); border-color: color-mix(in srgb, var(--c-ink) 45%, transparent); border-left: 5px solid var(--c-ink); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.cal-day.has-events:hover { transform: perspective(500px) rotateX(-14deg) translateY(-4px); box-shadow: 0 16px 22px -12px rgba(31,32,112,.9); }
.cal-day.is-today { box-shadow: inset 0 0 0 3px var(--lime-deep); }
.cal-day.is-today .cal-day__n { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-top: -4px; padding-top: 3px; border-radius: 50%; background: var(--indigo); color: var(--white); }
.cal-day.is-picked { outline: 3px solid var(--indigo); outline-offset: 2px; }
.cal-day__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.cal-day__more { position: absolute; top: 5px; right: 6px; padding: 1px 6px 0; border-radius: 50px; background: var(--c-ink, var(--indigo-deep)); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.5; }
.cal-agenda { display: grid; gap: 14px; }
.cal-agenda__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.cal-agenda__head h3, .cal-listview__month { font-size: 22px; font-weight: 600; color: var(--indigo-deep); }
.cal-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--indigo); cursor: pointer; justify-self: start; }
.cal-link:hover { text-decoration: underline; }
.cal-empty, .cal-hint { margin: 0; color: var(--muted); }
.cal-hint { text-align: center; font-size: 15px; }

/* An event's card: it leans towards the pointer (calendar.js) */
.cal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cal-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 22px -18px rgba(31,32,112,.8); transition: transform .2s ease-out, box-shadow .2s; will-change: transform; }
.cal-card:hover { box-shadow: 0 22px 34px -20px rgba(31,32,112,.9); }
.cal-card.is-past { opacity: .6; }
.cal-card__body { display: grid; gap: 2px; min-width: 0; }
.cal-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cal-card .cal-type { color: var(--muted); }
.cal-card strong { font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--indigo-deep); }
.cal-card__when { font-weight: 500; }
.cal-card__for { color: var(--muted); font-size: 15px; }
.cal-listview { display: grid; gap: 14px; }
.cal-listview__month { margin-top: 14px; }

/* Week view: all seven day cards at once, on a gently curved wall, in space */
.cal-orbit { position: relative; display: grid; padding: 34px 26px 54px; border-radius: 16px; overflow: hidden; perspective: 1500px; touch-action: pan-y; color: var(--white);
  background: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 14%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 70%, #cfd6ff 50%, transparent 51%), radial-gradient(1px 1px at 88% 62%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 56% 36%, #e9f3a8 50%, transparent 51%), radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 93% 30%, #fff 50%, transparent 51%), radial-gradient(90% 70% at 50% 110%, #2a2d9a 0%, #070819 70%); }
.cal-orbit__floor { position: absolute; left: 50%; bottom: 8px; width: min(1100px, 92%); height: 70px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(191,215,48,.5); box-shadow: 0 0 40px rgba(191,215,48,.35), inset 0 0 40px rgba(46,48,146,.9); }
.cal-ring { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; transform-style: preserve-3d; }
.cal-daycard { --turn: calc((3 - var(--i)) * 5deg); --near: calc(var(--d) * 14px); min-width: 0; min-height: 330px; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 12px; padding: 14px 12px; border-radius: 16px; border: 1px solid rgba(190,200,255,.3); background: linear-gradient(165deg, rgba(40,44,130,.94), rgba(12,13,46,.96)); transform: rotateY(var(--turn)) translateZ(var(--near)); transition: transform .35s, border-color .35s, box-shadow .35s; }
.cal-daycard:hover, .cal-daycard:focus-within { transform: rotateY(0deg) translateZ(calc(var(--near) + 26px)); border-color: rgba(191,215,48,.8); box-shadow: 0 24px 40px -22px rgba(0,0,0,.9); z-index: 1; }
.cal-daycard.is-today { border-color: var(--lime); box-shadow: 0 0 26px -6px rgba(191,215,48,.75); }
.cal-daycard.is-sunday:not(.has-events) { opacity: .7; }
.cal-ring.is-turning .cal-daycard { animation: cal-day-in .6s cubic-bezier(.2,.9,.2,1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes cal-day-in { from { opacity: 0; transform: rotateY(-90deg) translateZ(var(--near)); } to { opacity: 1; transform: rotateY(var(--turn)) translateZ(var(--near)); } }
.cal-daycard__head { display: grid; gap: 4px; min-width: 0; }
.cal-daycard__head b { font-size: 46px; font-weight: 700; line-height: .9; padding-top: 6px; }
.cal-daycard__head span { display: grid; min-width: 0; }
.cal-daycard__head strong { font-size: 17px; font-weight: 600; line-height: 1.2; }
.cal-daycard__head small { font-size: 12.5px; color: var(--lime); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.cal-daycard.is-today .cal-daycard__head b { color: var(--lime); }
.cal-daycard__body { display: grid; align-content: start; gap: 8px; min-width: 0; }
.cal-daycard__none { margin: 0; color: rgba(255,255,255,.55); font-size: 14px; }
.cal-daycard__more { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--lime); font: 600 14px/1.2 var(--font); text-decoration: underline; cursor: pointer; }
.cal-dayevent { display: grid; gap: 1px; width: 100%; min-width: 0; padding: 8px 9px 6px; border: 0; border-left: 4px solid var(--c); border-radius: 8px; background: rgba(255,255,255,.1); color: var(--white); font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.cal-dayevent:hover { background: rgba(255,255,255,.2); }
.cal-dayevent em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-dayevent strong { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cal-dayevent span { font-size: 12.5px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrower screens and phones: the seven days stand one under another, still all on the page at once */
@media (max-width: 1000px) {
  .cal-orbit { padding: 14px 12px 40px; perspective: none; }
  .cal-ring { grid-template-columns: 1fr; gap: 8px; }
  .cal-daycard { min-height: 0; grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px 12px; border-radius: 14px; transform: none; }
  .cal-daycard:hover, .cal-daycard:focus-within { transform: none; }
  .cal-ring.is-turning .cal-daycard { animation-name: cal-day-in-flat; }
  .cal-daycard__head { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .cal-daycard__head b { font-size: 34px; min-width: 40px; }
  .cal-daycard__head strong { font-size: 14px; }
  .cal-daycard__head small { font-size: 11px; }
  .cal-daycard__body { align-self: center; }
}
@keyframes cal-day-in-flat { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: none; } }

/* An event's details */
.cal-dialog { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow-y: auto; }
.cal-dialog[open] { animation: cal-dialog-in .5s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes cal-dialog-in { from { transform: perspective(900px) rotateX(-50deg) translateY(40px) scale(.9); opacity: 0; } }
.cal-dialog::backdrop { background: rgba(20,21,77,.7); backdrop-filter: blur(4px); }
.cal-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--white); font-size: 20px; cursor: pointer; }
.cal-dialog__close:hover { background: var(--lime); color: var(--ink); }
.cal-dialog__head { display: flex; align-items: center; gap: 20px; padding: 26px 64px 22px 24px; background: var(--indigo-deep); color: var(--white); border-bottom: 6px solid var(--c, var(--lime)); }
.cal-dialog__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; color: var(--c, var(--lime)); }
.cal-dialog__head h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 600; overflow-wrap: anywhere; }
.cal-dialog__body { display: grid; gap: 14px; padding: 22px 24px 26px; }
.cal-dialog__body p { margin: 0; }
.cal-dialog__img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; }
.cal-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.cal-facts dt { font-weight: 600; color: var(--indigo); }
.cal-facts dd { margin: 0; }
.cal-dialog__h { margin-top: 6px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-dialog .btn { padding: 10px 22px 8px; }

.cal-rules { margin: 28px 0 0; padding: 14px 18px; background: var(--tint, #F4F8E2); border-left: 4px solid var(--lime, #BFD730); border-radius: 6px; }
.cal-dialog__list { display: grid; gap: 12px; }
.cal-dialog__list .cal-card { width: 100%; }
.cal-sub__note { margin-top: 22px; color: var(--muted); }

/* Home page: "Important dates", a card just under the banner */
.cal-float { position: relative; z-index: 8; padding-top: 44px; }
.cal-float:empty { display: none; }
.cal-float__box { padding: 22px 26px 24px; border-radius: 14px; color: var(--white); background: var(--indigo-deep); box-shadow: 6px 8px 0 var(--lime), 0 30px 50px -24px rgba(31,32,112,.6); }
.cal-float__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 12px; }
.cal-float__head h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; color: var(--white); }
.cal-float__all { color: var(--lime); font-weight: 700; text-decoration: none; }
.cal-float__all::after { content: " \2192"; }
.cal-float__all:hover { text-decoration: underline; }
.cal-float__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cal-float__list li { display: flex; min-width: 0; }
.cal-float__list a { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.07); color: var(--white); text-decoration: none; transition: background .2s; }
.cal-float__list a:hover { background: rgba(255,255,255,.14); }
.cal-float__list a:hover strong { text-decoration: underline; }
.cal-float .cal-leaf { width: 58px; box-shadow: 3px 4px 0 var(--c); }
.cal-float .cal-leaf b { font-size: 24px; }
.cal-float__text { display: grid; gap: 2px; min-width: 0; }
.cal-float__text em { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-float__text strong { font-size: 16px; font-weight: 600; line-height: 1.25; }
.cal-float__text > span { font-size: 14px; opacity: .8; }
/* Smaller computers and tablets: two by two. Phones: one under another, and the fourth waits on the calendar page */
@media (max-width: 1100px) { .cal-float__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cal-float__list { grid-template-columns: 1fr; gap: 8px; }
  .cal-float__list li:nth-child(n+4) { display: none; }
}
@media (max-width: 700px) {
  .cal-float { padding-top: 30px; }
  .cal-float__box { padding: 14px; }
  .cal-float__list a { padding: 8px; }
}

@media (max-width: 700px) {
  .cal-spot { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 22px; }
  .cal-stage { padding: 10px; margin-inline: -6px; }
  .cal-week, .cal-grid { gap: 4px; }
  .cal-week { font-size: 11px; letter-spacing: .06em; }
  .cal-day { min-height: 52px; padding: 9px 2px 4px; border-radius: 6px; }
  .cal-day.has-events { border-left-width: 3px; }
  .cal-day__name { display: none; }
  .cal-legend { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cal-legend__chip { flex: none; }
  .cal-day.has-events::before { content: ""; position: absolute; left: 50%; bottom: 8px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--c-ink); }
  .cal-day__more { top: auto; bottom: 3px; right: 3px; font-size: 10px; padding: 0 4px; }
  .cal-day.has-events:has(.cal-day__more)::before { left: 30%; }
  .cal-month__title { min-width: 0; flex: 1; font-size: 22px; }
  .cal-today { display: none; }
  .cal-cards { grid-template-columns: 1fr; }
  .cal-views { width: 100%; }
  .cal-views button { flex: 1; }
  .cal-select { flex: 1 1 150px; }
  .cal-search { flex: 1 1 150px; max-width: none; }
  .cal-dialog__head { padding: 22px 60px 18px 18px; gap: 14px; }
  .cal-dialog__head .cal-leaf--big { width: 72px; }
  .cal-dialog__head .cal-leaf--big b { font-size: 34px; }
  .cal-dialog__body { padding: 18px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-pad, .cal-day.is-flipping, .cal-dialog[open] { animation: none; }
  .cal-ring.is-turning .cal-daycard { animation: none; }
  .cal-daycard, .cal-daycard:hover, .cal-daycard:focus-within { transition: none; }
}
@media print {
  .cal-tools, .cal-month__head .cal-arrow, .cal-today, .cal-hint { display: none; }
  .cal-day, .cal-spot { box-shadow: none; }
}

/* Admin page, Calendar tab */
.admin-cal-groups { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.admin-cal-groups label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.admin-cal-groups input { width: 18px; height: 18px; min-height: 0; accent-color: var(--indigo); }

/* Admin page, Staff tab (super admin only) */
.staff-add { max-width: 760px; margin: 0 0 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.staff-add h3 { margin: 0 0 12px; }
.staff-add__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.staff-rights { margin: 4px 0 16px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.staff-rights legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.staff-rights label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.staff-rights input { margin-top: 3px; }
.staff-rights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; padding-left: 28px; }
.staff-rights__all span { font-weight: 600; }
.staff-table label { display: inline-flex; align-items: center; }
.staff-table .staff-uses { color: var(--ink); font-size: 15px; }
.staff-table .staff-actions { white-space: nowrap; text-align: right; }
.staff-table .staff-actions .hr-link { margin-right: 12px; }
.staff-add input[readonly] { background: var(--line-soft, #f3f3f3); }
.staff-rights input, .staff-table input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--indigo); }
.staff-table td { vertical-align: middle; }
.staff-table .staff-who b { display: block; }
.staff-table .staff-who span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .staff-rights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .staff-add__fields, .staff-rights__grid { grid-template-columns: 1fr; } .staff-add { padding: 16px; }
  .staff-table thead { display: none; }
  .staff-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .staff-table td { display: block; border: 0; padding: 4px 12px; }
  .staff-table .staff-actions { text-align: left; }
}
.admin-cal-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.admin-cal-photo img { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line-soft); }
.admin-cal-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.admin-cal-when { font-weight: 400; color: var(--muted); }
.admin-cal-dot { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.admin-cal-views { margin: 18px 0; }
.admin-cal-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.admin-month { padding: 16px; border-radius: 10px; background: var(--tint); }
.admin-month__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-month__head h3 { margin: 0; min-width: 190px; text-align: center; color: var(--indigo-deep); }
.admin-month__head .hr-link { margin-left: auto; }
.admin-month__nav { width: 36px; height: 36px; border: 1px solid var(--indigo); border-radius: 50%; background: var(--white); color: var(--indigo); font: 600 22px/1 var(--font); cursor: pointer; }
.admin-month__nav:hover { background: var(--indigo); color: var(--white); }
.admin-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.admin-month__dow { padding: 2px 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--muted); }
.admin-month__day { display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 6px 8px; border: 2px solid transparent; border-radius: 8px; background: var(--white); font: inherit; text-align: left; cursor: pointer; }
.admin-month__day:hover { border-color: var(--line); }
.admin-month__day.is-today .admin-month__num { background: var(--lime); border-radius: 50px; padding: 0 8px; }
.admin-month__day[aria-current="date"] { border-color: var(--indigo); box-shadow: 0 4px 14px rgba(46, 48, 146, .22); }
.admin-month__num { align-self: flex-start; font-weight: 700; line-height: 1.5; color: var(--indigo-deep); }
.admin-month__chip { overflow: hidden; padding: 2px 5px 0; border-left: 4px solid var(--c); border-radius: 3px; background: color-mix(in srgb, var(--c) 22%, white); font-size: 11.5px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.admin-month__more { font-size: 11.5px; color: var(--muted); }
.admin-day { min-width: 0; scroll-margin-top: 12px; }
.admin-day .field-row > * { min-width: 0; }
.admin-day input, .admin-day select, .admin-day textarea { max-width: 100%; min-width: 0; }
.admin-day__title { margin: 0 0 4px; color: var(--indigo-deep); }
.admin-day__save { margin-top: 18px; }
@media (max-width: 700px) {
  .admin-month { padding: 10px; }
  .admin-month__day { min-height: 58px; padding: 4px; }
  .admin-month__chip { height: 7px; padding: 0; border-left: 0; background: var(--c); color: transparent; font-size: 0; }
  .admin-month__more { font-size: 10px; }
}

/* ----- Downloads by class (/downloads) ----- */
.dl { display: grid; gap: 22px; }
.dl > *, .dl-tools > *, .dl-pick > * { min-width: 0; }
.dl-empty { max-width: 640px; margin: 0; padding: 22px 24px; border-radius: 12px; background: var(--tint); font-size: 18px; }
.dl-tools { display: grid; gap: 18px; }
.dl-pick h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); color: var(--indigo-deep); }
.dl-classes, .dl-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-classes button, .dl-kinds button { padding: 9px 18px 7px; border: 1.5px solid var(--indigo); border-radius: 50px; background: var(--white); color: var(--indigo); font: 500 16px/1.2 var(--font); cursor: pointer; transition: transform .15s, background .15s; }
.dl-classes button:hover, .dl-kinds button:hover { transform: translateY(-2px); background: var(--tint); }
.dl-classes button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.dl-kinds button { border-color: var(--line); color: var(--ink); font-size: 15px; padding: 7px 14px 5px; }
.dl-kinds button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.dl-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.dl-search { flex: 1 1 220px; max-width: 320px; min-height: 0; padding: 10px 18px 8px; border: 1px solid var(--line); border-radius: 50px; font: inherit; }
.dl-count { margin: 0; color: var(--muted); min-height: 1.5em; }
.dl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.dl-item[hidden] { display: none; }
.dl-item:not([hidden]) ~ .dl-item:not([hidden]) { border-top: 1px solid var(--line); }
.dl-item a { display: flex; align-items: center; gap: 14px; padding: 11px 16px; color: var(--ink); text-decoration: none; transition: background .15s; }
.dl-item a:hover { background: var(--tint); }
.dl-item .icon { flex: none; width: 24px; height: 24px; color: var(--error); }
.dl-item__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dl-item strong { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--indigo-deep); overflow-wrap: anywhere; }
.dl-meta { font-size: 14px; color: var(--muted); }
.dl-note { font-size: 14.5px; }
.dl-get { flex: none; padding: 5px 14px 3px; border: 1.5px solid var(--indigo); border-radius: 50px; color: var(--indigo); font-weight: 600; font-size: 14px; }
.dl-item a:hover .dl-get { background: var(--indigo); color: var(--white); }
.dl-folders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dl-folders[hidden], .dl-list[hidden], .dl-open[hidden] { display: none; }
.dl-folders button { display: flex; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.dl-folders button:hover { transform: translateY(-2px); border-color: var(--indigo); background: var(--tint); }
.dl-folders .icon { flex: none; width: 34px; height: 34px; color: var(--lime-deep); }
.dl-folders button > span { display: grid; gap: 1px; min-width: 0; }
.dl-folders strong { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--indigo-deep); overflow-wrap: anywhere; }
.dl-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; }
.dl-open h3 { margin: 0; font-size: 22px; color: var(--indigo-deep); }
.dl-back { padding: 6px 14px 4px; border: 1.5px solid var(--indigo); border-radius: 50px; background: var(--white); color: var(--indigo); font: 600 14px/1.2 var(--font); cursor: pointer; }
.dl-back:hover { background: var(--indigo); color: var(--white); }
.dl-none { margin: 0; padding: 18px 22px; border-radius: 12px; background: var(--tint); }
.admin-dl-drive { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: var(--tint); }
.admin-dl-drive .hr-help { margin-top: 0; }
.admin-dl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.admin-dl-top select { width: auto; min-height: 0; padding: 6px 10px; }
@media (max-width: 600px) {
  .dl-classes { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .dl-classes button { flex: none; }
  .dl-get { display: none; }
}

/* ----- Book a campus visit (/book-a-visit) ----- */
.visit { display: grid; gap: 26px; }
.visit > * { min-width: 0; }
.visit-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; }
.visit-how li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: var(--tint); font-weight: 500; line-height: 1.35; }
.visit-how b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: var(--white); font-size: 20px; }
.visit-form { max-width: 980px; }
.visit-form fieldset { min-width: 0; }
.visit-hint { margin: 0; color: var(--muted); }
.visit-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; padding-bottom: 14px; }
.visit-month { grid-column: 1 / -1; margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--indigo-deep); }
.visit-times { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; }
.visit-pick { position: relative; display: grid; justify-items: center; gap: 1px; padding: 10px 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.visit-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.visit-pick:hover { transform: translateY(-2px); border-color: var(--indigo); }
.visit-pick:has(input:checked) { background: var(--indigo); border-color: var(--indigo); color: var(--white); box-shadow: 0 12px 22px -14px rgba(31,32,112,.8); }
.visit-pick:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.visit-pick:has([aria-invalid="true"]) { border-color: var(--error); }
.visit-pick__week { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.visit-pick__day { font-size: 26px; font-weight: 600; line-height: 1.1; }
.visit-pick__why { font-size: 12.5px; opacity: .8; }
.visit-pick__time { padding: 0 12px; font-weight: 500; white-space: nowrap; }
.visit-pick.is-closed { cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(0,0,0,.045) 7px 9px); color: var(--muted); }
.visit-pick.is-closed:hover { transform: none; border-color: var(--line); }
.visit-pick.is-closed .visit-pick__day { text-decoration: line-through; }
.visit-note { margin: 0; max-width: 720px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .visit-how { grid-template-columns: 1fr; }
  .visit-days { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
  .visit-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .visit-pick__time { padding: 0; }
  .visit-pick__why { font-size: 11.5px; white-space: nowrap; }
}

/* Cookie notice (src/assets/js/ads.js): shown only when the Meta Pixel is switched on in config.json. */
.cookie-note { position: fixed; left: 22px; bottom: 22px; z-index: 62; width: min(420px, calc(100vw - 32px)); padding: 20px 22px 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 14px; box-shadow: 0 28px 70px -24px rgba(0,0,0,.55); }
.cookie-note[hidden] { display: none; }
.cookie-note h2 { font-size: 19px; font-weight: 600; color: var(--indigo-deep); margin: 0 0 6px; }
.cookie-note p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cookie-note__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-note__actions .btn { flex: 1 1 130px; justify-content: center; padding: 11px 20px; }
.linklike { padding: 0; border: 0; background: none; color: var(--indigo); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .cookie-note { left: 16px; bottom: 16px; } }
@media print { .cookie-note { display: none; } }

/* ----- Feedback and concerns (/feedback, and the admin page's Feedback tab) ----- */
.fb-form { max-width: 900px; }
.fb-form fieldset { min-width: 0; }
.fb-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 14px; }
.fb-kind { --k: var(--indigo); position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px 14px; border: 1.5px solid var(--line); border-top: 5px solid var(--k); border-radius: 12px; background: var(--white); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.fb-kind--appreciation { --k: #3FA34D; }
.fb-kind--suggestion { --k: #2F7DD1; }
.fb-kind--concern { --k: #E2603F; }
.fb-kind input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fb-kind b { font-size: 19px; color: var(--indigo-deep); }
.fb-kind span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.fb-kind:hover { transform: translateY(-2px); }
.fb-kind:has(input:checked) { background: var(--tint); border-color: var(--k); box-shadow: 0 0 0 2px var(--k), 0 14px 24px -18px rgba(31,32,112,.7); }
.fb-kind:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.fb-kind:has([aria-invalid="true"]) { border-color: var(--error); }
.fb-hint { margin: 0; color: var(--muted); }
.fb-note { margin: 0; max-width: 720px; font-size: 15px; color: var(--muted); }
.fb-list { display: grid; gap: 16px; }
.fb-card { --k: var(--indigo); display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-left: 6px solid var(--k); border-radius: 10px; background: var(--white); min-width: 0; }
.fb-card--appreciation { --k: #3FA34D; }
.fb-card--suggestion { --k: #2F7DD1; }
.fb-card--concern { --k: #E2603F; }
.fb-card > * { margin: 0; min-width: 0; }
.fb-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 15px; }
.fb-card__head b { color: var(--k); font-size: 17px; }
.fb-card__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; }
.fb-card__who { font-weight: 600; margin-right: 6px; }
@media (max-width: 760px) {
  .fb-kinds { grid-template-columns: 1fr; }
}

/* ---------- Board results page ---------- */
.result-cards { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.result-card { text-align: center; }
.result-card .achievement__stat { font-size: 64px; }
.result-card p.result-card__note { margin-top: 10px; font-size: 16px; }
.results-toppers .toppers { margin-bottom: 0; }
.results-toppers .toppers__group + .toppers__group { margin-top: 44px; }
.results-toppers .toppers__group h4 { font-size: 21px; margin-bottom: 20px; }
.results-toppers .toppers__list { gap: 26px 24px; }
.results-toppers .topper { position: relative; width: 190px; padding: 24px 14px 20px; background: var(--white); border: 1px solid var(--line); }
.results-toppers .topper img, .results-toppers .topper__initial { width: 132px; height: 132px; }
.results-toppers .topper b { font-size: 18px; }
.results-toppers .topper span:last-child { font-size: 24px; font-weight: 700; margin-top: 4px; }
.results-toppers .topper i { display: block; font-size: 16px; font-weight: 600; color: var(--muted); }
.results-toppers .topper i::before { content: none; }
.results-toppers .topper:first-child::before { content: "School topper"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px 1px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--indigo-deep); background: var(--lime); border-radius: 999px; z-index: 2; }
.results-table + .results-table { margin-top: 36px; }
.results-table h3 { font-size: 22px; font-weight: 600; color: var(--indigo-deep); margin-bottom: 12px; }
.results-table td:nth-child(-n+4) { white-space: nowrap; }
.results-table td:last-child { min-width: 280px; }
@media (max-width: 640px) {
  .result-cards { grid-template-columns: 1fr; }
  .result-card .achievement__stat { font-size: 52px; }
  .results-toppers .toppers__list { gap: 24px 12px; }
  .results-toppers .topper { width: calc(50% - 6px); max-width: 190px; padding: 22px 8px 16px; font-size: 16px; }
  .results-toppers .topper img, .results-toppers .topper__initial { width: 104px; height: 104px; }
  .results-toppers .topper span:last-child { font-size: 21px; }
}

/* Admin Gallery tab: the Drive photo manager (admin-gallery-drive.js) */
.gm { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; margin-top: 12px; }
.gm-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gm-bar input { flex: 1; min-width: 140px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.gm-events { display: grid; gap: 6px; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.gm-event { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--white); font: inherit; text-align: left; cursor: pointer; }
.gm-event:hover { border-color: var(--indigo); }
.gm-event.is-current { border-color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.gm-event.is-hidden { opacity: .65; }
.gm-event img, .gm-noimg { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--line-soft); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.gm-event__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gm-event__text b { font-size: 14px; }
.gm-event__text small { color: var(--muted); }
.gm-on { color: var(--lime-deep) !important; font-weight: 600; }
.gm-off { color: var(--error) !important; }
.gm-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gm-head h3 { margin: 0; }
.gm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.gm-chip { border: 0; border-radius: 999px; padding: 4px 14px; background: var(--tint); font: inherit; font-size: 14px; cursor: pointer; }
.gm-chip.is-on { background: var(--lime); font-weight: 600; }
.gm-selbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.gm-selbar select { padding: 8px 10px; border: 1px solid var(--indigo); border-radius: 999px; font: inherit; color: var(--indigo); background: var(--white); }
.gm-link { border: 0; background: none; color: var(--indigo); text-decoration: underline; font: inherit; cursor: pointer; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gm-photo { position: relative; margin: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.gm-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; filter: grayscale(.6) opacity(.55); }
.gm-photo.is-on { border-color: var(--lime); }
.gm-photo.is-on img { filter: none; }
.gm-photo.is-picked { border-color: var(--indigo); box-shadow: 0 0 0 2px var(--indigo); }
.gm-pick { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--indigo); cursor: pointer; }
.gm-tick { position: absolute; left: 6px; bottom: 6px; border: 0; border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.gm-photo.is-on .gm-tick { background: var(--lime-deep); color: var(--white); font-weight: 600; }
.gm-cover { position: absolute; top: 6px; right: 6px; border-radius: 999px; padding: 1px 8px; background: var(--indigo); color: var(--white); font-size: 12px; }
.gm-photo figcaption { padding: 4px 8px; font-size: 12px; background: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-more { margin-top: 12px; }
.gm-view { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 12px; }
.gm-view::backdrop { background: rgba(0, 0, 0, .7); }
.gm-view__stage { position: relative; background: #000; touch-action: pan-y; }
.gm-view img { display: block; width: 100%; height: 55vh; object-fit: contain; background: #000; }
.gm-view__badge { position: absolute; top: 12px; left: 12px; border-radius: 999px; padding: 4px 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 600; }
.gm-view.is-on .gm-view__badge { background: var(--lime-deep); color: var(--white); }
.gm-view.is-on .gm-view__stage { box-shadow: inset 0 0 0 4px var(--lime); }
.gm-view__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--indigo); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.gm-view__nav:hover, .gm-view__nav:focus-visible { background: var(--lime); }
.gm-view__nav--prev { left: 12px; }
.gm-view__nav--next { right: 12px; }
.gm-view__side { display: grid; gap: 10px; padding: 14px; }
.gm-view__top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gm-view__count { color: var(--indigo); }
.gm-view__toggle { min-width: 200px; }
.gm-view .gm-view__toggle.is-on { background: var(--lime-deep); border-color: var(--lime-deep); color: var(--white); }
.gm-view__side .form__status { margin: 0; min-height: 1.4em; }
.gm-view__hint { margin: 0; font-size: 13px; }
@media (max-width: 600px) {
  .gm-view { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .gm-view img { height: 45vh; }
  .gm-view__nav { width: 40px; height: 40px; font-size: 26px; }
  .gm-view__toggle { flex: 1 1 100%; }
}
.gm-view__side label { display: grid; gap: 4px; font-weight: 600; }
.gm-view__side textarea { font: inherit; font-weight: 400; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.gm-log { margin-top: 18px; }
.gm-log ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 800px) {
  .gm { grid-template-columns: 1fr; }
  .gm-events { max-height: 40vh; }
  .gm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Gallery: "Share album" under an album's title (site.js) */
.album-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.album-share__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.album-share__choices[hidden] { display: none; }
.album-share__choice { display: inline-flex; align-items: center; padding: 7px 16px 5px; border-radius: 999px; background: var(--tint); color: var(--indigo); font: 600 15px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; }
.album-share__choice:hover { background: var(--lime); }
.album-share__btn { padding: 8px 22px; font-size: 15px; }

/* Pages for the cards of "Why parents choose GNPS" (src/data/why-pages.json) */
.story__img { border-radius: 4px; aspect-ratio: 3 / 2; }
.story-facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.story-facts b { font-size: 34px; margin-bottom: 8px; }
.wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.wins--two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.win { display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden; }
.win img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s; }
.win:hover img { transform: scale(1.03); }
.win span { padding: 16px 20px 20px; color: var(--muted); }
.story-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 32px; max-width: 900px; margin: 0 auto 40px; font-size: 18px; }
.story-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.story-quote blockquote { margin: 0 0 14px; font-size: 24px; line-height: 1.5; color: var(--indigo-deep); }
.story-quote blockquote::before { content: "\201C"; } .story-quote blockquote::after { content: "\201D"; }
.story-quote figcaption { color: var(--muted); }
.story-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; text-align: center; }
.story-rating p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 18px; }
.story-rating .icon { width: 28px; height: 28px; }
.story-rating b { font-size: 40px; color: var(--indigo-deep); line-height: 1; }
.story-rating .stars { font-size: 22px; }
.story-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.story-more a { padding: 10px 20px; border: 1px solid var(--indigo); border-radius: 999px; color: var(--indigo); text-decoration: none; font-weight: 500; }
.story-more a:hover { background: var(--indigo); color: var(--white); }
.story-cta .btn .icon { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .wins { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wins { grid-template-columns: 1fr; }
  .story-quote blockquote { font-size: 20px; }
  .story-facts { grid-template-columns: 1fr; gap: 28px; }
  .story-facts b { font-size: 30px; }
}
