/* ==========================================================================
   SSR Campus — drafting-table identity
   Institute green + safety yellow. Poppins (headings, menus, buttons), Inter (text),
   Noto Sans Bengali for every Bangla character.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License). Bangla characters fall through to Noto Sans Bengali. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/hind-siliguri-bengali-400-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/hind-siliguri-bengali-500-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/hind-siliguri-bengali-600-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/hind-siliguri-bengali-700-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-400-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-500-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-600-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-bengali-bengali-700-normal.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

:root {
	--ink: #0f4a37;          /* drafting blue */
	--ink-deep: #082b20;     /* footer */
	--ink-soft: #1d6b4f;
	--signal: #a3161d;       /* dark red */
	--signal-deep: #7d0f15;
	--paper: #ffffff;
	--mist: #f2f7f4;
	--line: #dde8e1;
	--text: #17261e;
	--muted: #536559;
	--on-ink: #e5f2ea;
	--on-ink-muted: #a6c7b6;
	--ok: #1f7a4d;
	--err: #b42318;

	--f-head: "Poppins", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
	--f-body: "Inter", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Type scale: every font size on the site comes from this list. */
	--fs-2xs: .75rem;      /* 12px tags, tiny badges */
	--fs-xs: .8125rem;     /* 13px top bar, small meta */
	--fs-sm: .875rem;      /* 14px dates, captions, form labels */
	--fs-ui: .9375rem;     /* 15px menu, card text, small buttons */
	--fs-base: 1rem;       /* 16px body text */
	--fs-md: 1.125rem;     /* 18px intros, small headings */
	--fs-lg: 1.25rem;      /* 20px card titles */
	--fs-xl: 1.5rem;       /* 24px box and sub-section titles */
	--fs-2xl: 1.875rem;    /* 30px in-page headings */
	--fs-3xl: clamp(1.75rem, 2.6vw, 2.25rem);  /* section titles */
	--fs-4xl: clamp(2rem, 4vw, 3rem);          /* page titles */
	--fs-hero: clamp(2.25rem, 5vw, 3.75rem);   /* home banner */

	/* Sizes by role. Same kind of thing = same size, on every page, in English and Bangla.
	   Use these in components instead of the raw scale above. */
	--t-page: var(--fs-4xl);     /* page title (h1) */
	--t-section: var(--fs-3xl);  /* section title */
	--t-sub: var(--fs-2xl);      /* heading inside a page or tab */
	--t-box: var(--fs-xl);       /* title of a box, panel, sidebar block or popup */
	--t-card: var(--fs-lg);      /* card title, person name, key figure in a fact row */
	--t-item: var(--fs-md);      /* list item title (notice, download, lab, facility), footer heading */
	--t-lead: var(--fs-md);      /* intro paragraph under a title, quotes */
	--t-body: var(--fs-base);    /* running text, buttons, form fields */
	--t-text: var(--fs-ui);      /* short text in cards and lists, menus, chips, tables */
	--t-meta: var(--fs-sm);      /* dates, roles, breadcrumbs, captions, form labels */
	--t-label: var(--fs-xs);     /* small labels above values, table heads, codes, top bar */
	--t-tag: var(--fs-2xs);      /* tags and badges */

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--sec: clamp(44px, 5.5vw, 72px);

	/* Radius by role: tags < buttons and inputs < cards and panels. */
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 16px;
	/* Depth only for things that float or answer the pointer; tinted green, not grey. */
	--shadow: 0 1px 2px rgba(8,43,32,.06), 0 8px 24px -8px rgba(8,43,32,.14);
	--shadow-lift: 0 2px 4px rgba(8,43,32,.06), 0 20px 40px -14px rgba(8,43,32,.28);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: var(--t-body);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: var(--ink); }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ink-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap); }
.muted { color: var(--muted); }
.screen-reader-text, .form__hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .6em 1.4em;
	font-family: var(--f-head); font-size: var(--t-body); font-weight: 600; letter-spacing: 0;
	text-decoration: none; border: 2px solid transparent; border-radius: var(--r); white-space: nowrap;
	cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-deep); color: #fff; box-shadow: 0 10px 22px -10px rgba(125,15,21,.9); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-soft); color: #fff; box-shadow: 0 10px 22px -12px rgba(15,74,55,.9); }
.btn--ghost-ink { border-color: var(--ink); color: var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
/* "More" buttons (Show more, View details, All notices, All events…): solid dark green with a
   yellow arrow. Inside a card the button runs the card's full width and lightens when the card is hovered. */
.link-more, .board__all, .card__more, .dept__more {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 8px 18px;
	border-radius: var(--r); background: var(--ink); color: #fff;
	font: 500 var(--t-text)/1.2 var(--f-head); text-decoration: none; white-space: nowrap;
	transition: background-color .2s var(--ease);
}
.link-more::after, .board__all::after, .card__more::after, .dept__more::after {
	content: ""; flex: none; width: 16px; height: 16px; background: var(--arrow) center / contain no-repeat;
	transition: transform .2s var(--ease);
}
.link-more:hover, .board__all:hover, .card:hover .card__more, .dept:hover .dept__more { background: var(--ink-soft); color: #fff; }
.link-more:hover::after, .board__all:hover::after, .card:hover .card__more::after, .dept:hover .dept__more::after { transform: translateX(3px); }
.link-more:focus-visible, .board__all:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.card__more, .dept__more { display: flex; width: 100%; }
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .link-more::after, .board__all::after, .card__more::after, .dept__more::after { transition: none; transform: none !important; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-deep); color: var(--on-ink-muted); font-size: var(--t-label); line-height: 1.4; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 32px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.topbar a { color: var(--on-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--signal); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__login { font-weight: 600; }
.lang-switch { gap: 2px !important; }
.lang-switch a { padding: 2px 8px; border-radius: 2px; }
.lang-switch a[aria-current] { background: var(--signal); color: var(--ink); }
.lang-switch a { font-weight: 600; }
.lang-switch a[lang="bn"] { font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif; }
.lang-switch__short { display: none; }
@media (max-width: 600px) { .lang-switch__long { display: none; } .lang-switch__short { display: inline; } }
/* Bangla headings need more room for vowel signs. */
.lang-bn h1, .lang-bn h2, .lang-bn h3 { line-height: 1.35; }
.lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4, .lang-bn .hero__title { letter-spacing: 0; }
.lang-bn .hero__title { line-height: 1.3; }

/* ---------- Header + nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 10px 30px -18px rgba(8,43,32,.45); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.site-header .brand__text { white-space: nowrap; }
.brand__logo { max-height: 48px; width: auto; }
.brand__mark {
	display: grid; place-items: center; flex: none;
	width: 46px; height: 46px; background: var(--ink); color: var(--signal);
	font-family: var(--f-head); font-weight: 700; font-size: var(--t-card); letter-spacing: .04em;
	border-radius: var(--r); box-shadow: inset 0 -5px 0 var(--signal);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -.01em; }
.brand__line2 { font-size: var(--t-meta); color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__list, .nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a {
	display: block; padding: 8px 8px; text-decoration: none; color: var(--text);
	font-family: var(--f-head); font-weight: 500; font-size: var(--t-text); white-space: nowrap;
}
.nav__list > li > a { position: relative; transition: color .2s var(--ease); }
/* Underline slides out from the centre on hover and stays on the current section. */
.nav__list > li > a::after {
	content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 3px; border-radius: 3px;
	background: var(--signal); transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav__list > li > a:hover,
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a,
.nav__list > .current_page_item > a { color: var(--ink); }
.nav__list > li > a:hover::after,
.nav__list > .current-menu-item > a::after,
.nav__list > .current-menu-ancestor > a::after,
.nav__list > .current_page_item > a::after { transform: scaleX(1); }
.sub-toggle { background: none; border: 0; padding: 6px 4px 6px 0; margin-left: -6px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.sub-toggle svg { transition: transform .25s var(--ease); }
.is-open > .sub-toggle svg { transform: rotate(180deg); }
.nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; z-index: 60;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow-lift); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
/* Bridge the gap so the menu stays open while the pointer moves down to it. */
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .sub-menu a { padding: 9px 14px; border-radius: var(--r); font-family: var(--f-body); font-weight: 500; font-size: var(--t-text); transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { background: var(--mist); color: var(--ink); }
/* A menu item with the class "menu-cta" (Admission) is shown as the yellow button at the end of the row. */
.nav__list > .menu-cta { margin-left: 10px; }
.nav__list > .menu-cta > a {
	padding: 9px 20px; border-radius: var(--r); background: var(--signal); color: var(--ink);
	box-shadow: 0 8px 18px -10px rgba(125,15,21,.95);
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__list > .menu-cta > a::after { display: none; }
.nav__list > .menu-cta > a:hover { background: var(--signal-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(125,15,21,.95); }
/* On the Admission page itself the button turns green, so it still shows where you are. */
.nav__list > .menu-cta.current-menu-item > a, .nav__list > .menu-cta.current_page_item > a { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 1199px) {
	.nav__list > .menu-cta { margin: 18px 0 0; border-bottom: 0; }
	.nav__list > .menu-cta > a { padding: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .nav__list > .menu-cta > a:hover { transform: none; } }

/* A thin divider above a menu item with the class "menu-sep" (SSC Vocational under Departments). */
.nav .sub-menu .menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (min-width: 1200px) {
	.nav__list > li:hover > .sub-menu,
	.nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}

.nav-toggle {
	display: none; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0;
	border-radius: var(--r); transition: background-color .2s var(--ease); padding: 10px 14px; font-family: var(--f-head); font-weight: 600; font-size: var(--t-body); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__close { display: block; }
.nav-open .nav-toggle__open { display: none; }

@media (max-width: 1199px) {
	/* backdrop-filter would trap the fixed mobile menu inside the header, so solid white here. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: var(--nav-top, 95px) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); padding: 8px var(--gutter) 32px; overflow-y: auto;
		/* Closed: faded out in place (not parked off the right edge, which let phones scroll sideways). */
		opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 14px 4px; border: 0; font-size: var(--fs-md); }
	.sub-toggle { padding: 14px; margin: 0; }
	.nav .sub-menu {
		position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-radius: var(--r);
		background: var(--mist); margin: 0 0 12px; padding: 6px; opacity: 1; transform: none; display: none; visibility: visible;
	}
	.nav .sub-menu::before { display: none; }
	.nav__list > li > a::after { display: none; }
	.nav .is-open > .sub-menu { display: block; }
}
@media (max-width: 600px) {
	.hide-sm { display: none !important; }
	.brand__name { font-size: var(--fs-md); }
	.brand__line2 { font-size: var(--fs-2xs); }
	.brand__mark { width: 44px; height: 44px; font-size: var(--t-body); }
	.nav-toggle__label { display: none; }
	.topbar__login span, .topbar__login { font-size: var(--fs-xs); }
}
/* Small phones: let the long institute name wrap so the menu button stays on screen. */
@media (max-width: 420px) {
	.site-header__inner { gap: 12px; }
	.brand { flex: 0 1 auto; gap: 10px; }
	.site-header .brand__text { white-space: normal; }
	.brand__line2 { font-size: var(--fs-2xs); line-height: 1.25; }
	.nav-toggle { flex: none; padding: 10px 12px; }
	.topbar__inner { gap: 10px; }
	.topbar a { white-space: nowrap; font-size: var(--fs-xs); }
	.topbar .icon { width: 1em; height: 1em; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; color: var(--on-ink); background-color: var(--ink);
	background-image:
		linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
	overflow: hidden;
}
.hero__grid {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(28px, 5vw, 64px); padding-top: clamp(44px, 6vw, 80px); align-items: end;
}
.hero__copy { padding-bottom: clamp(44px, 6vw, 88px); align-self: center; }
.hero__kicker {
	display: inline-block; margin-bottom: 18px; padding: 5px 14px;
	border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.28);
	color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.4;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero__title { color: #fff; font-size: var(--fs-hero); line-height: 1.1; letter-spacing: -.015em; max-width: 15ch; margin-bottom: .3em; }
.hero__tagline { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--signal); margin-bottom: .6em; line-height: 1.5; }
.hero__text { font-size: var(--fs-md); color: var(--on-ink); max-width: 50ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; }
.hero__media::before {
	content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 78%;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0;
}
.hero__drawing { position: relative; width: 100%; max-width: 520px; padding: 0 6% 28px; color: rgba(207,236,220,.8); }
.blueprint { width: 100%; height: auto; overflow: visible; }
.blueprint__dim { color: var(--signal); opacity: .85; }
.blueprint__label { color: #fff; font: 600 var(--t-label) var(--f-head); letter-spacing: .04em; }

.play-btn {
	position: absolute; left: 0; bottom: 32px; display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 18px 8px 8px; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px;
	font: 600 var(--t-body) var(--f-head); cursor: pointer; box-shadow: 0 12px 28px color-mix(in srgb, var(--ink-deep) 45%, transparent);
}
.play-btn__circle { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--signal); border-radius: 50%; }
.play-btn__circle .icon { width: 20px; height: 20px; margin-left: 3px; }
.play-btn:hover .play-btn__circle { background: var(--ink-soft); }

/* Banner slideshow: full-bleed photos under a green tint (photos chosen in Customize → Home: top banner). */
.hero--slides { background-image: none; background-color: var(--ink-deep); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__slides::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ink-deep) 72%, transparent) 0%, color-mix(in srgb, var(--ink-deep) 48%, transparent) 60%, color-mix(in srgb, var(--ink-deep) 8%, transparent) 100%),
		linear-gradient(0deg, color-mix(in srgb, var(--ink-deep) 40%, transparent), transparent 35%);
	background-size: 120px 120px, 120px 120px, auto, auto;
	background-position: -1px -1px;
}
.hero__slide {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
	opacity: 0; transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
/* With photos behind and nothing on the right, the text block gets more room. */
.hero--slides .hero__copy:only-child { grid-column: 1 / -1; max-width: 880px; }
.hero--slides .hero__title { max-width: 24ch; }
.hero--slides .hero__text { max-width: 64ch; }
.hero--slides .hero__media { min-height: 0; align-items: center; }
.hero--slides .hero__media::before { display: none; }
.hero--slides .play-btn { position: relative; left: auto; bottom: auto; transform: none; }

.hero__controls {
	position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2;
	display: flex; justify-content: flex-end; align-items: center; gap: 10px; pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__arrow {
	width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
	color: #fff; background: color-mix(in srgb, var(--ink-deep) 40%, transparent); border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
	transition: background-color .15s, color .15s, border-color .15s;
}
.hero__arrow:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.hero__arrow .icon { width: 20px; height: 20px; }
.hero__arrow--prev .icon { transform: rotate(90deg); }
.hero__arrow--next .icon { transform: rotate(-90deg); }
.hero__dots { display: flex; align-items: center; }
.hero__dot { padding: 7px; background: none; border: 0; cursor: pointer; }
.hero__dot::before {
	content: ""; display: block; width: 10px; height: 10px; border-radius: 5px;
	background: rgba(255,255,255,.55); transition: width .3s, background-color .3s;
}
.hero__dot:hover::before { background: #fff; }
.hero__dot[aria-current]::before { width: 26px; background: var(--signal); }
@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition-duration: .01s; }
	.hero__slide.is-active { animation: none; }
}

/* Notice board panel */
.board {
	background: var(--paper); color: var(--text); border-radius: var(--r-lg); overflow: hidden;
	box-shadow: 0 24px 48px color-mix(in srgb, var(--ink-deep) 45%, transparent); position: relative;
	border-top: 5px solid var(--signal);
}
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line); }
.board__title { font-size: var(--t-box); margin: 0; }
.board__empty { padding: 20px 22px; color: var(--muted); margin: 0; }

/* Notice list (board, sidebar, archive) */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 22px; border-bottom: 1px solid var(--line); transition: background-color .2s var(--ease); }
.notice-row:hover { background-color: color-mix(in srgb, var(--mist) 70%, transparent); }
.notice-row:last-child { border-bottom: 0; }
.notice-row.is-important { background: linear-gradient(90deg, rgba(163,22,29,.14), transparent 60%); }
/* Tear-off calendar page: month on a green band, the day large, the year small underneath. */
.date-block {
	flex: none; display: flex; flex-direction: column; align-items: stretch; width: 58px; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); text-align: center; line-height: 1;
	box-shadow: 0 1px 2px rgba(8,43,32,.06);
}
.date-block__month {
	padding: 4px 0 3px; background: var(--ink); color: #fff;
	font: 600 var(--t-tag)/1.2 var(--f-head); letter-spacing: .06em; text-transform: uppercase;
}
.date-block__day { padding: 5px 0 1px; font: 700 var(--t-box)/1 var(--f-head); color: var(--ink); }
.date-block__year { padding: 0 0 5px; font-size: var(--t-tag); color: var(--muted); }
.notice-row__title { display: block; color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.4; font-size: var(--t-item); }
.notice-row__title:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); }
.notice-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 5px; font-size: var(--t-meta); color: var(--muted); }
.notice-row__meta:empty { display: none; }
.notice-row__file {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r);
	color: var(--ink); font: 600 var(--t-tag) var(--f-head); text-decoration: none; white-space: nowrap;
}
.notice-row__file:hover { border-color: var(--ink); background: var(--mist); }
.tag { display: inline-block; padding: 1px 9px; border-radius: var(--r-sm); font-size: var(--t-tag); font-weight: 600; line-height: 1.6; }
.tag--signal { background: var(--signal); color: var(--ink); }
.tag--new { background: var(--ink); color: #fff; }

.notice-list--page { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.notice-list--page .notice-row { padding: 18px 20px; }
.notice-list--page .notice-row__title { }

/* ---------- Ticker (lives in the top bar, between phone and portal) ---------- */
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.ticker__label {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px;
	background: var(--signal); color: var(--ink); border-radius: 3px;
	font: 700 var(--t-tag)/1.4 var(--f-head); letter-spacing: .08em; text-transform: uppercase;
}
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ticker-pulse 1.4s ease-in-out infinite; }
/* Soft edges so text fades in and out instead of being cut through a letter. */
.ticker__track {
	flex: 1; overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.ticker__move { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__move, .ticker:focus-within .ticker__move { animation-play-state: paused; }
.topbar .ticker__items { display: flex; gap: 0; }
.ticker__items li { padding: 6px 0 6px 22px; white-space: nowrap; color: var(--on-ink); }
.ticker__items li::after { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--signal); transform: rotate(45deg); margin-left: 22px; vertical-align: middle; }
.topbar .ticker a { display: inline; color: var(--on-ink); }
.topbar .ticker a:hover { color: var(--signal); text-decoration: underline; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-pulse { 50% { opacity: .25; } }
@media (max-width: 600px) { .ticker__label { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.ticker__move { animation: none; }
	.ticker__dot { animation: none; }
	.ticker__items[aria-hidden] { display: none; }
}

/* ---------- Quick links ---------- */
.quick { border-bottom: 1px solid var(--line); background: var(--paper); }
.quick__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.quick__list li + li { border-left: 1px solid var(--line); }
.quick__list a {
	display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 8px; text-align: center;
	color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 500; font-size: var(--fs-ui); line-height: 1.25;
}
.quick__list .icon { width: 22px; height: 22px; color: var(--ink-soft); }
.quick__list a:hover { background: var(--mist); }
.quick__list a:hover .icon { color: var(--ink); }
@media (max-width: 900px) {
	.quick__list { grid-template-columns: repeat(3, 1fr); padding-inline: 0; }
	.quick__list li { border-bottom: 1px solid var(--line); }
	.quick__list li:nth-child(3n+1) { border-left: 0; }
	.quick__list a { flex-direction: column; gap: 5px; padding: 12px 6px; }
}
@media (max-width: 480px) { .quick__list a { font-size: var(--fs-sm); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.section--mist { background: var(--mist); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section__links { display: flex; flex-wrap: wrap; gap: 10px; }
/* Events and news on the home page: news cards look like event cards (title is the link). */
.events-home .card__more, .events-feed .card__more { display: none; }
.section__head .section__title { margin: 0; }
.section__title { font-size: var(--t-section); position: relative; }
.section__title--sm { font-size: var(--t-sub); margin-top: 1.5em; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--t-sub); margin-top: 1.4em; }
.prose h3 { font-size: var(--t-card); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--t-text); }
small { font-size: var(--t-label); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--mist); font-family: var(--f-head); font-size: var(--t-text); font-weight: 600; color: var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--signal); font-size: var(--t-lead); }
.prose img { border-radius: var(--r); }
.prose .wp-block-button__link { background: var(--ink); color: #fff; border-radius: var(--r); font-family: var(--f-head); font-weight: 600; }
.prose { max-width: none; }
.prose--wide { max-width: none; }

/* Welcome + notice board */
/* Both columns end on the same line: the copy stretches to the board's height and the facts sit at its foot. */
.welcome__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.welcome__copy { display: flex; flex-direction: column; }
.welcome__copy .prose { font-size: var(--t-body); line-height: 1.75; }
.welcome__copy .prose p:last-child { margin-bottom: 0; }
.welcome__more { margin: 24px 0 0; }
.welcome__facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: auto 0 0; padding-top: 32px;
}
.welcome__facts > div { padding: 14px 18px; border: 1px solid var(--line); background: var(--mist); }
.welcome__facts > div + div { border-left: 0; }
.welcome__facts > div:first-child { border-radius: var(--r) 0 0 var(--r); }
.welcome__facts > div:last-child { border-radius: 0 var(--r) var(--r) 0; }
.welcome__facts dt { color: var(--muted); }
.welcome__facts dd { margin: 2px 0 0; font: 700 var(--t-card)/1.15 var(--f-head); color: var(--ink); }
.welcome__facts a { color: inherit; text-decoration: none; }
.welcome__facts a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* Compact notice board beside the welcome text. */
.welcome .board { box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 5px solid var(--signal); display: flex; flex-direction: column; }
.welcome .notice-list--board { flex: 1; display: flex; flex-direction: column; }
.welcome .notice-list--board .notice-row { flex: 1; }
.welcome .board__head { padding: 16px 20px 10px; }
.welcome .board__title { font-size: var(--t-box); }
.welcome .notice-row { padding: 11px 20px; gap: 14px; align-items: center; }
.welcome .notice-row__title { line-height: 1.4; }
.welcome .notice-row__meta { margin-top: 4px; }
.welcome .date-block { width: 52px; }
.welcome .date-block__day { padding-top: 4px; }
.welcome .date-block__month { font-size: var(--t-tag); padding: 3px 0 2px; }
.welcome .date-block__year { font-size: var(--t-tag); padding-bottom: 4px; }
@media (max-width: 900px) {
	.welcome__grid { grid-template-columns: 1fr; }
	.welcome__facts { margin-top: 0; padding-top: 28px; }
}
@media (max-width: 480px) {
	.welcome__facts { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
	.welcome__facts > div { padding: 10px 12px; }
	
	
}

/* Why choose us + principal */
.why__grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.principal { margin: 0; position: relative; }
.principal__photo img, .principal__photo .ph { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-lg); }
.principal__photo { position: relative; }
.principal__photo::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 3px solid var(--signal); border-radius: var(--r-lg); z-index: -1; }
.principal__who { display: flex; flex-direction: column; position: relative; margin: -36px 24px 0; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lift); }
.principal__who strong { font-family: var(--f-head); font-size: var(--t-item); }
.principal__who span { color: var(--on-ink-muted); font-size: var(--t-meta); }
.principal__quote { margin: 0 0 24px; font-size: var(--t-lead); line-height: 1.7; color: var(--text); }
.principal__quote p { margin: 0; }
.principal__quote p + p { margin-top: 12px; }
.principal__quote p:first-child::before { content: "“"; display: block; font: 700 3.4rem/0.6 var(--f-head); color: var(--signal); margin: 12px 0 8px; }
.principal__more { margin: -8px 0 28px; }
/* Principal's Read more (home, About, Teachers): small. */
.principal__more .btn, .lead-card__more .btn { min-height: 34px; padding: .3em .9em; font-size: var(--t-meta); }
.why__list { list-style: none; margin: 0; padding: 0; font-size: .9375rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; align-items: start; }
.why__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.5; }
.why__list li > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.why__list .icon { flex: none; width: 24px; height: 24px; padding: 3px; margin-top: calc((1.5em - 24px) / 2); background: var(--signal); color: var(--ink); border-radius: 50%; stroke-width: 2.6; }
.why { position: relative; isolation: isolate; }
.lead-msgs { margin-block: clamp(40px, 6vw, 64px); display: grid; gap: clamp(40px, 6vw, 64px); }
.lead-msg { scroll-margin-top: 96px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; isolation: isolate; }
.lead-msg__title { margin: 0 0 4px; font-size: var(--t-sub); }
@media (max-width: 900px) { .lead-msg { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } .principal { max-width: 320px; } }
@media (max-width: 560px) {
	.why__list { grid-template-columns: minmax(0, 1fr); }
	/* Phones: long points wrap onto a second line instead of running off the screen. */
	.why__list li > span { white-space: normal; }
}

/* Placeholder (shown until a real photo is added) */
.ph {
	display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; color: var(--ink-soft);
	background-color: #dbe8e0;
	background-image:
		linear-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px);
	background-size: 20px 20px;
}
.ph .icon { width: 36px; height: 36px; opacity: .6; }

/* Departments (image cards) */
/* Fills the row whatever the number of departments: 3 cards make 3 columns, 8 make two rows of 4. */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
/* Home page: less room above the heading, and the intro runs the full width of the cards. */
#departments { padding-top: clamp(36px, 4vw, 48px); }
#departments .section__head { margin-bottom: 28px; }
#departments .section__intro { max-width: none; text-wrap: pretty; }
.dept {
	position: relative; display: flex; flex-direction: column; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
	transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dept:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.dept__img { position: relative; display: block; }
.dept__img img, .dept__img .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.dept:hover .dept__img img { transform: scale(1.05); }
.dept__img { overflow: hidden; }
.dept__code { position: absolute; top: 12px; right: 12px; padding: 3px 10px; background: color-mix(in srgb, var(--ink-deep) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 600 var(--fs-xs) var(--f-head); letter-spacing: .04em; border-radius: 999px; }
.dept__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 20px 20px; }
.dept__icon { position: absolute; top: -26px; left: 20px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); color: var(--signal); border-radius: 14px; border: 3px solid var(--paper); transition: background-color .3s var(--ease); }
.dept:hover .dept__icon { background: var(--ink-soft); }
.dept__icon .icon { width: 26px; height: 26px; }
.dept__title { font-size: var(--t-card); margin-bottom: .35em; }
.dept__title a { color: var(--ink); text-decoration: none; }
.dept__title a::after { content: ""; position: absolute; inset: 0; }
.dept__title a:focus-visible { outline: none; }
.dept:focus-within { outline: 3px solid var(--signal); outline-offset: 3px; }
.dept__text { color: var(--muted); font-size: var(--t-text); flex: 1; margin-bottom: 14px; }
.dept__more { align-self: stretch; }
@media (max-width: 800px) { .dept-grid { gap: 16px; } }

/* Numbers */
.stats { background: var(--ink); color: var(--on-ink); padding-block: clamp(40px, 6vw, 64px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 auto; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 4px 28px; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--f-head); color: #fff; letter-spacing: -.02em; }
.stat dt { margin-top: 10px; color: var(--on-ink-muted); font-size: var(--t-text); line-height: 1.4; }
.stat:first-child dd { color: var(--signal); }
@media (max-width: 800px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Admission steps + form */
.admission__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 28px 72px; counter-increment: step; }
.step::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px;
	display: grid; place-items: center; background: var(--signal); color: var(--ink);
	font: 700 var(--fs-lg)/1 var(--f-head); border-radius: 50%;
}
.step::after { content: ""; position: absolute; left: 23px; top: 54px; bottom: 6px; border-left: 2px dashed var(--line); }
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }
.step__title { font-size: var(--t-card); margin: 8px 0 4px; }
.step__text { color: var(--muted); margin: 0; }
.admission__form { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--ink); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.admission__form-title { font-size: var(--t-box); margin-bottom: .2em; }
.admission__form--sticky { position: sticky; top: 110px; }
.admission .entry .prose { margin-top: 32px; }
/* Two ways to apply, at the top of the admission page. */
.adm-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.adm-way { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--mist); border-radius: var(--r-lg); }
.adm-way p { flex: 1; margin: 0 0 18px; color: var(--muted); }
.adm-way__title { font-size: var(--t-card); margin: 0 0 6px; }
.adm-way--online { background: var(--ink); color: var(--on-ink); }
.adm-way--online .adm-way__title { color: #fff; }
.adm-way--online p { color: var(--on-ink-muted); }
.adm-ways + .section__title { margin-top: 40px; }
@media (max-width: 560px) { .adm-ways { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .admission__grid { grid-template-columns: 1fr; } .admission__form--sticky { position: static; } }

/* Forms */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--t-meta); }
.field input, .field select, .field textarea, .mini-search input {
	width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: var(--t-body); color: var(--text);
	background: var(--paper); border: 1px solid #c3d4c9; border-radius: var(--r);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb8a8; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .mini-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(163,22,29,.35); }
.form .btn { width: 100%; }
.form__msg { padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.form__msg--ok { background: #e3f4ea; color: var(--ok); border-left: 4px solid var(--ok); }
.form__msg--err { background: #fdecea; color: var(--err); border-left: 4px solid var(--err); }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }

/* News cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card {
	display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.section--mist .card { border-color: transparent; box-shadow: 0 1px 2px rgba(8,43,32,.05); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card__img { display: block; overflow: hidden; }
.card__img img, .card__img .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 18px 20px 22px; }
.card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--t-meta); color: var(--muted); margin-bottom: 6px; }
.card__meta span { color: var(--ink-soft); font-weight: 600; }
.card__title { font-size: var(--t-card); line-height: 1.3; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card--text p { color: var(--muted); margin: 8px 0 0; font-size: var(--t-text); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Gallery strip */
.gallery-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 200px); gap: 12px; }
.gallery-strip__list li { min-width: 0; min-height: 0; background: #dbe8e0; border-radius: var(--r-lg); overflow: hidden; }
.gallery-strip__list li:first-child { grid-row: span 2; }
.gallery-strip__list img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip__list li:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
	.gallery-strip__list { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 140px; }
	.gallery-strip__list li:first-child { grid-column: span 2; grid-row: auto; }
	.gallery-strip__list li:nth-child(n+6) { display: none; }
}

/* Visit / map */
.visit { background: var(--mist); }
.visit__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: var(--sec); }
.visit__map iframe, .map-full iframe { width: 100%; height: 380px; border: 0; border-radius: var(--r-lg); background: #dbe8e0; }
.map-full iframe { border-radius: 0; height: 420px; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; } .visit__map iframe { height: 300px; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.contact-list .icon { margin-top: 4px; color: var(--ink-soft); }
.contact-list a { color: inherit; }

/* ---------- Inner pages ---------- */
.page-head {
	background-color: var(--ink); color: var(--on-ink);
	background-image:
		linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 24px 24px;
	padding-block: clamp(36px, 5vw, 60px); border-bottom: 6px solid var(--signal);
}
/* Detail pages (one notice, teacher, event…): a slim band, title and breadcrumb only. */
.page-head--slim { padding-block: clamp(22px, 3vw, 34px); background-image: none; }
.page-head--slim .page-head__title { font-size: var(--t-sub); max-width: 40ch; }
.page-head--slim .page-head__intro { font-size: var(--t-body); }
.page-head__title { color: #fff; font-size: var(--t-page); margin: 0; max-width: 24ch; }
.page-head__intro { margin: 12px 0 0; max-width: none; color: var(--on-ink); font-size: var(--t-lead); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 72px); }
/* Less dead space between the header and the page content. */
.page-head + .section { padding-top: clamp(32px, 4vw, 56px); }

/* With a photo: the photo fills the whole band behind the text, faded to green on the
   left so the title stays readable; the text lines up with the page content below. */
.page-head--image {
	position: relative; isolation: isolate; overflow: hidden; background-image: none;
	display: flex; align-items: center; min-height: clamp(260px, 24vw, 360px);
}
.page-head--image > .wrap { width: 100%; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-head--image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(8,43,32,.95) 0%, rgba(8,43,32,.86) 38%, rgba(8,43,32,.45) 68%, rgba(8,43,32,.15) 100%);
}
.page-head--image .page-head__inner { grid-template-columns: minmax(0, 1fr); }
.page-head--image .page-head__copy { max-width: 640px; }
.page-head--image .page-head__intro { color: #eef6f1; }

/* Right side, without a photo: a drafting mark, the section's icon inside a dashed
   construction circle with yellow centre lines, drawn on the same grid as the band. */
.page-head__mark {
	position: relative; display: grid; place-items: center; width: clamp(150px, 15vw, 200px); aspect-ratio: 1;
	margin-right: clamp(0px, 3vw, 40px); border: 1px dashed rgba(255,255,255,.32); border-radius: 50%; color: var(--on-ink);
}
.page-head__mark::before { content: ""; position: absolute; left: -24px; right: -24px; top: 50%; border-top: 1px solid rgba(163,22,29,.6); }
.page-head__mark::after { content: ""; position: absolute; top: -24px; bottom: -24px; left: 50%; border-left: 1px solid rgba(163,22,29,.6); }
.page-head__mark .icon {
	position: relative; z-index: 1; width: 54%; height: 54%; padding: 16px;
	background: var(--ink); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; stroke-width: 1.2;
}
@media (max-width: 900px) {
	.page-head__inner, .page-head--image .page-head__inner { grid-template-columns: minmax(0, 1fr); }
	.page-head__mark { display: none; }
	/* Phones: fade from the bottom, where the text sits. */
	.page-head--image { align-items: flex-end; min-height: 300px; }
	.page-head--image::before { background: linear-gradient(0deg, rgba(8,43,32,.96) 0%, rgba(8,43,32,.82) 45%, rgba(8,43,32,.35) 100%); }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-meta); margin-bottom: 10px; color: var(--on-ink-muted); }
.crumbs a { color: var(--on-ink-muted); }
.crumbs a:hover { color: var(--signal); }

.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.with-side--left { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 960px) { .with-side, .with-side--left { grid-template-columns: minmax(0, 1fr); } }

.entry__meta { display: flex; gap: 14px; color: var(--muted); font-size: var(--t-meta); }
.entry__img { margin: 0 0 28px; }
.entry__img img { width: 100%; border-radius: var(--r-lg); }
.entry--page .entry__img { max-width: none; }
.entry__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--f-head); font-weight: 600; }
.entry__next { text-align: right; margin-left: auto; }

.side { display: flex; flex-direction: column; gap: 24px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: var(--paper); }
.side-box__title { font-size: var(--t-box); margin-bottom: 8px; }
.side-box .wp-block-search__input { min-width: 0; }
.side-box .notice-row { padding: 12px 0; }
.side-box .link-more { margin-top: 12px; }

.board-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.board-tools .chips { margin: 0; }
.chips a {
	padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text);
	font-weight: 500; font-size: var(--t-text); background: var(--paper);
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-search { display: flex; min-width: 240px; }
.mini-search input { border-radius: var(--r) 0 0 var(--r); border-right: 0; min-height: 44px; }
.mini-search button { min-width: 48px; background: var(--ink); color: #fff; border: 0; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; display: grid; place-items: center; transition: background-color .2s var(--ease); }
.mini-search button:hover { background: var(--ink-soft); }
.mini-search--wide { max-width: 560px; margin-bottom: 28px; }
.search-again { margin-bottom: 8px; }
@media (max-width: 600px) { .mini-search { width: 100%; } }

.notice-doc__meta { display: flex; flex-wrap: wrap; gap: 32px; padding: 14px 18px; background: var(--mist); border-radius: var(--r-lg); margin: 0 0 24px; }
.notice-doc__meta dt { font-size: var(--t-label); color: var(--muted); }
.notice-doc__meta dd { margin: 0; font-weight: 600; }
.file-btn {
	display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; padding: 16px 20px; max-width: 520px;
	border: 2px solid var(--ink); border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
	transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.file-btn:hover { background: var(--mist); color: var(--ink); box-shadow: var(--shadow); }
.file-btn .icon { width: 34px; height: 34px; }
.file-btn span { display: flex; flex-direction: column; min-width: 0; }
.file-btn strong { font-family: var(--f-head); font-size: var(--t-item); font-weight: 600; }
.file-btn small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-view { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--r); }
.notice-doc__img { border: 1px solid var(--line); border-radius: var(--r); }

.dept-facts { background: var(--mist); border-radius: var(--r-lg); padding: 26px; position: sticky; top: 110px; }
.dept-facts__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--ink); color: var(--signal); border-radius: var(--r-lg); margin-bottom: 16px; }
.dept-facts__icon .icon { width: 34px; height: 34px; }
.dept-facts dl { margin: 0 0 20px; }
.dept-facts dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dept-facts dt { font-size: var(--t-label); color: var(--muted); }
.dept-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .dept-facts { position: static; } }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.person__photo { display: block; margin-bottom: 12px; border-radius: var(--r-lg); overflow: hidden; }
.person__photo img, .person__photo .ph { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__name { font-size: var(--t-card); margin: 0 0 2px; }
.person__name a { color: var(--ink); text-decoration: none; }
.person__role { margin: 0; font-weight: 600; font-size: var(--t-meta); }
.person__dept, .person__qual { margin: 0; color: var(--muted); font-size: var(--t-meta); }
@media (max-width: 480px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }  }

.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.profile__photo img, .profile__photo .ph { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--r-lg); }
.profile__facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.profile__facts div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile__facts dt { color: var(--muted); }
.profile__facts dd { margin: 0; font-weight: 600; }
.skill-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags li { padding: 3px 12px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: var(--t-meta); font-weight: 500; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile__photo { max-width: 240px; } .profile__facts div { grid-template-columns: 1fr; gap: 0; } }

.empty { padding: 40px 32px; text-align: center; background: var(--mist); border-radius: var(--r-lg); color: var(--muted); }
.empty .btn { margin-top: 8px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.pager a.page-numbers:hover { border-color: var(--ink); background: var(--mist); }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Gallery page + lightbox */
.gallery-page .wp-block-gallery { gap: 12px !important; }
.gallery-page .wp-block-gallery img { border-radius: var(--r); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: color-mix(in srgb, var(--ink-deep) 90%, transparent); }
.lightbox img { max-height: 88vh; width: auto; margin: auto; border-radius: var(--r); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--signal); color: var(--ink); border: 0; border-radius: 50%; cursor: pointer; }

/* ---------- Footer: a drawing sheet ----------
   Blueprint grid like the hero, an admission call at the top, link columns,
   and a drawing "title block" (institute, EIIN, code, year) along the bottom. */
.site-footer {
	--f-line: rgba(255,255,255,.12);
	background-color: var(--ink-deep); color: var(--on-ink-muted); font-size: var(--t-text);
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
}
.site-footer a { color: var(--on-ink); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--signal); }

/* Columns */
.site-footer__grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1.25fr; gap: 40px clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 60px); }
.site-footer .brand { color: #fff; }
.site-footer .brand__line2 { color: var(--on-ink-muted); }
.site-footer__aff { margin: 18px 0 0; max-width: 38ch; }
.site-footer__title { color: #fff; font-size: var(--t-item); letter-spacing: 0; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 5px 0; line-height: 1.4; }
.footer-links a { display: inline-block; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-links a:hover { transform: translateX(3px); }
.site-footer .contact-list li { padding: 5px 0; line-height: 1.5; }
.site-footer .contact-list .icon { color: var(--signal); margin-top: 3px; }

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.social__item {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255,255,255,.07); border: 1px solid var(--f-line); color: var(--on-ink);
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social .icon { width: 20px; height: 20px; }
.social a:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: translateY(-2px); }

/* Title block */
.site-footer__bottom { display: flex; align-items: stretch; gap: 12px; padding-bottom: 28px; }
.title-block {
	flex: 1; display: grid; grid-template-columns: minmax(0, 2.4fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin: 0;
	border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); overflow: hidden;
}
.title-block > div { padding: 10px 16px; border-left: 1px solid rgba(255,255,255,.22); min-width: 0; }
.title-block > div:first-child { border-left: 0; }
.title-block dt { font-size: var(--t-label); color: var(--on-ink-muted); line-height: 1.3; }
.title-block dd { margin: 2px 0 0; color: #fff; font: 600 var(--t-text)/1.3 var(--f-head); }
.title-block__name dd { font-size: var(--t-item); }
.to-top {
	flex: none; display: grid; place-items: center; width: 64px; border-radius: var(--r);
	background: var(--signal); color: var(--ink) !important; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.to-top:hover { background: var(--signal-deep); transform: translateY(-2px); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(180deg); }

@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
	.title-block { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
	.title-block > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
	.title-block > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,.22); }
	.title-block__name { grid-column: 1 / -1; border-top: 0 !important; }
	.title-block__name ~ div:nth-child(even) { border-left: 0; }
	.title-block__name ~ div:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.22); }
	.to-top { width: 52px; height: 52px; align-self: flex-end; }
}
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Hero responsive ---------- */
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__copy { padding-bottom: 48px; }
	.hero__media { min-height: 0; }
	.hero:not(.hero--slides) .hero__media { display: none; }
	.hero--slides .hero__media { justify-content: flex-start; }
	.hero--slides .hero__copy { padding-bottom: 0; }
	.hero--slides .hero__grid { padding-bottom: 80px; gap: 24px; }
	.hero__slides::after { background-color: color-mix(in srgb, var(--ink-deep) 30%, transparent); }
	.hero__controls { justify-content: center; bottom: 16px; }
	.hero__title { max-width: 18ch; }
}
/* Desktop: hero + quick links + ticker fill the first screen exactly, on any window height.
   --above-fold is the top bar + header (+ admin bar) height, measured in main.js. */
@media (min-width: 901px) {
	.first-screen { display: flex; flex-direction: column; min-height: calc(100vh - var(--above-fold, 95px)); min-height: calc(100svh - var(--above-fold, 95px)); }
	.first-screen .hero { flex: 1; display: flex; flex-direction: column; }
	.first-screen .hero__grid { flex: 1; align-items: center; padding-top: clamp(22px, 5vh, 80px); }
	.first-screen .hero__copy { padding-bottom: clamp(26px, 6vh, 88px); }

	/* Banner text scales as one block with the window (width and height), so the headline,
	   tagline, paragraph and buttons keep their proportions to each other and to the banner. */
	.first-screen .hero { --hs: min(1vw, 1.85vh); }
	.first-screen .hero__kicker { font-size: clamp(.875rem, var(--hs), 1rem); }
	.first-screen .hero__title { font-size: clamp(2.1rem, calc(var(--hs) * 3.7), 3.75rem); }
	.first-screen .hero__tagline { font-size: clamp(1.15rem, calc(var(--hs) * 1.7), 1.75rem); }
	.first-screen .hero__text { font-size: clamp(1rem, calc(var(--hs) * 1.15), 1.125rem); max-width: 58ch; }
	.first-screen .hero__actions .btn { font-size: clamp(1rem, calc(var(--hs) * 1.1), 1.0625rem); min-height: clamp(44px, calc(var(--hs) * 3.4), 56px); padding-inline: 1.4em; }
	.first-screen .hero--slides .hero__copy:only-child { max-width: min(960px, 100%); }

	/* Quick links: a white tab with rounded top corners, sitting on the bottom edge of the banner
	   (overlaps it by its own 48px height), with the announcements line right below. */
	.first-screen .hero__grid { padding-bottom: 48px; }
	.first-screen .hero__controls { bottom: 62px; }
	.first-screen .quick { position: relative; z-index: 3; margin-top: -48px; background: none; border: 0; }
	.first-screen .quick__list { max-width: 1120px; background: var(--paper); padding-inline: 12px; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px -6px rgba(8,43,32,.35); }
	.first-screen .quick__list a { min-height: 48px; padding-block: 0; gap: 9px; font-size: var(--t-text); font-weight: 500; white-space: nowrap; }
	.first-screen .quick__list .icon { width: 20px; height: 20px; }
}
/* Narrow laptops: drop the small icons so every quick-link label stays on one line. */
@media (min-width: 901px) and (max-width: 1100px) {
	.first-screen .quick__list .icon { display: none; }
}
/* Short desktop screens (e.g. 1920x1080 laptops at 125% scaling = ~720px tall):
   tighten hero, ticker and quick links so all three fit in the first screen. */
@media (min-width: 901px) and (max-height: 860px) {
	.first-screen .hero__grid { padding-top: clamp(20px, 3.5vh, 48px); }
	.first-screen .hero__copy { padding-bottom: clamp(24px, 4vh, 48px); }
	.hero__kicker { margin-bottom: 10px; }
	.hero__tagline { margin-bottom: .4em; }
	.hero__text { line-height: 1.55; margin-bottom: 18px; }
	.hero__actions .btn { padding-block: 8px; }
	.hero__media { min-height: 300px; }
	.hero--slides .hero__media { min-height: 0; }
}
@media (max-width: 600px) {
	.hero__actions .btn { flex: 1 1 100%; }
	.notice-row { padding: 12px 16px; gap: 12px; }
	.board__head { padding: 16px 16px 10px; }
	.notice-row__file span { display: none; }
}

/* Section helpers */
.section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.section__intro { color: var(--muted); margin: 0; max-width: none; font-size: var(--t-lead); text-wrap: balance; }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .section__title { color: #fff; }
.section--ink .section__intro { color: var(--on-ink); }

/* Campus life */
.campus__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.campus__text { font-size: var(--t-lead); margin-bottom: 20px; }
@media (max-width: 900px) { .campus__grid { grid-template-columns: 1fr; } }

/* News card extras */
.card { position: relative; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.card__title a:focus-visible { outline: none; }
.card__more { margin-top: auto; }
.card__body:has(.card__more) { display: flex; flex-direction: column; flex: 1; }
.card__body:has(.card__more) .card__title { margin-bottom: 14px; }

/* Success stories: video cards that play in place */
.vstory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vstory { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.vstory:hover { box-shadow: var(--shadow-lift); border-color: transparent; }
.section--mist .vstory { border-color: transparent; box-shadow: 0 1px 2px rgba(8,43,32,.05); }
.vstory__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink-deep); }
.vstory__media img, .vstory__media iframe, .vstory__media > a { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vstory__media .ph { width: 100%; height: 100%; aspect-ratio: auto; }
.vstory__play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.vstory__play img { transition: transform .4s var(--ease), filter .3s var(--ease); }
.vstory__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,43,32,.45)); }
.vstory__btn {
	position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: var(--ink);
	box-shadow: 0 0 0 8px rgba(163,22,29,.28); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.vstory__btn .icon { width: 26px; height: 26px; margin-left: 4px; }
.vstory__play:hover .vstory__btn, .vstory__play:focus-visible .vstory__btn { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(163,22,29,.32); }
.vstory__play:hover img { transform: scale(1.03); filter: brightness(.9); }
.vstory__play:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
.vstory__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.vstory__title { font-size: var(--t-card); line-height: 1.35; margin: 0 0 6px; color: var(--ink); }
.vstory__title a { color: var(--ink); text-decoration: none; }
.vstory__text { color: var(--muted); font-size: var(--t-text); margin: 0 0 14px; }
.vstory__yt { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font: 600 var(--t-meta) var(--f-body); color: #c4302b; text-decoration: none; }
.vstory__yt .icon { width: 20px; height: 20px; }
.vstory__yt:hover { text-decoration: underline; }
@media (max-width: 1000px) { .vstory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vstory-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vstory__play img, .vstory__btn { transition: none; } }
.entry__video { margin: 0 0 24px; }
.entry__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); background: #000; }
.entry__video figcaption { margin-top: 10px; }

/* Job placement on the home page */
.placed-home__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.placed-home__logos { margin: 44px 0 18px; text-align: center; font-size: var(--t-box); }
@media (max-width: 900px) { .placed-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Stars */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars__star { width: 18px; height: 18px; background: #c9d6ce; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.stars__star--full { background: var(--signal); }
.stars__star--half { background: linear-gradient(90deg, var(--signal) 50%, #c9d6ce 50%); }
:root { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E"); }
.quote-card__stars { margin-bottom: 4px; }

/* Student reviews */
.review-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: var(--t-text); }
.review-sum__avg { font: 700 var(--fs-2xl)/1 var(--f-head); }
.review-sum .stars__star { width: 22px; height: 22px; }
.section--ink .review-sum { color: var(--on-ink); }
.section--ink .review-sum__avg { color: #fff; }
.section--ink .review-sum .stars__star--empty { background: rgba(255,255,255,.25); }
.section--ink .review-sum .stars__star--half { background: linear-gradient(90deg, var(--signal) 50%, rgba(255,255,255,.25) 50%); }
.review-cta { margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.review-thanks { max-width: 640px; margin: 0 auto 24px; }
.review-thanks { transition: opacity .5s var(--ease); }
.review-thanks.is-gone { opacity: 0; }
.field__hint { display: block; margin-top: 4px; color: var(--muted); font-size: var(--t-meta); }
.field input[type="file"] { padding: 8px; background: var(--paper); }
.review-pop { width: min(560px, calc(100vw - 24px)); }
.review-form .form__grid { margin-top: 4px; }
.review-form__note { margin: -4px 0 14px; color: var(--muted); font-size: var(--t-meta); }
.star-pick { border: 0; margin: 0 0 14px; padding: 0; }
.star-pick legend { font-weight: 600; font-size: var(--t-meta); margin-bottom: 6px; padding: 0; }
.star-pick__row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { width: 36px; height: 36px; cursor: pointer; background: #c9d6ce; -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; transition: background-color .15s, transform .15s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { background: var(--signal); }
.star-pick label:hover { transform: scale(1.1); }
.star-pick input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Student feedback */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote-card { margin: 0; display: flex; flex-direction: column; padding: 30px; background: var(--paper); color: var(--text); border-radius: var(--r-lg); box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.quote-card__text { margin: 0 0 22px; font-size: var(--t-body); line-height: 1.7; }
.quote-card__text::before { content: "“"; display: block; font: 700 3rem/0.6 var(--f-head); color: var(--signal); margin: 10px 0 6px; }
.quote-card__text p:last-child { margin: 0; }
.quote-card__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-card__photo img, .quote-card__photo .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.quote-card__photo .ph .icon { width: 22px; height: 22px; }
.quote-card__who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote-card__who strong { font-family: var(--f-head); font-size: var(--t-item); font-weight: 600; color: var(--ink); }
.quote-card__who small { color: var(--muted); font-size: var(--t-meta); }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; } }

/* Logos */
.logos-section__title { font-size: var(--t-section); text-align: center; margin: 0 0 24px; }
.logos-section__title:not(:first-child) { margin-top: 48px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logos li { width: 168px; height: 96px; display: grid; place-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.logos li:hover { border-color: transparent; box-shadow: var(--shadow); }
.logos a { display: grid; place-items: center; width: 100%; height: 100%; }
.logos img { width: 100%; height: 72px; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos__name { font: 600 var(--t-text) var(--f-head); color: var(--muted); text-align: center; }
@media (max-width: 520px) { .logos li { width: calc(50% - 8px); } }

/* Popups */
.apply-pop, .video-pop { border: 0; padding: 0; border-radius: var(--r-lg); }
.apply-pop::backdrop, .video-pop::backdrop { background: color-mix(in srgb, var(--ink-deep) 72%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.apply-pop { width: min(672px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
/* Popups ease in when opened. */
.apply-pop[open], .video-pop[open], .lightbox[open] { animation: pop-in .3s var(--ease); }
.apply-pop[open]::backdrop, .video-pop[open]::backdrop, .lightbox[open]::backdrop { animation: fade-in .3s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
/* Admission popup: banner on the left, short form and hotline on the right. */
.apply-pop__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.apply-pop__banner { position: relative; background: var(--ink); }
.apply-pop__img { width: 100%; height: 100%; object-fit: cover; }
.apply-pop__body { padding: 28px 25px 20px; }
.apply-pop__title { font-size: var(--t-box); margin: 0 34px 3px 0; }
.apply-pop__text { margin: 0 0 12px; color: var(--muted); font-size: var(--t-text); line-height: 1.5; }
.apply-pop__close {
	position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center;
	background: var(--mist); color: var(--ink); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.apply-pop__close:hover { background: var(--err); color: #fff; }
.apply-pop__close .icon { width: 18px; height: 18px; }
.form--popup .field { gap: 4px; margin-bottom: 10px; }
.form--popup .field label { color: var(--ink-soft); font-size: var(--t-meta); }
.form--popup .field input, .form--popup .field select { min-height: 38px; padding: 6px 11px; font-size: var(--t-body); }
.form--popup .btn { width: 100%; min-height: 40px; margin-top: 2px; font-size: var(--t-body); }
.apply-pop__hotline { margin: 14px 0 0; text-align: center; font: 700 var(--t-card)/1.2 var(--f-body); color: var(--ink); }
.apply-pop__hotline a { color: var(--ink); text-decoration: none; }
.apply-pop__hotline a:hover { color: var(--ink-soft); }

/* Built-in banner (when no banner image is set): sunburst, ring, highlighted line. */
.promo {
	position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 322px;
	display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
	padding: 24px 20px 20px; text-align: center; color: #fff;
	background: radial-gradient(circle at 50% 46%, var(--ink-soft) 0%, var(--ink) 48%, var(--ink-deep) 100%);
}
.promo::before {
	content: ""; position: absolute; inset: -50%; z-index: -1;
	background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.07) 0deg 6deg, transparent 6deg 14deg);
}
.promo__top { max-width: 24ch; margin: 0; font: 700 var(--t-body)/1.25 var(--f-head); color: #fff; }
.promo__ring { display: grid; place-content: center; justify-items: center; gap: 8px; width: min(78%, 203px); aspect-ratio: 1; padding: 12px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; }
.promo__offer {
	margin-inline: -26px; padding: 6px 18px 7px; background: var(--signal); color: var(--ink);
	font: 700 var(--fs-2xl)/1.15 var(--f-body); white-space: nowrap;
	clip-path: polygon(2% 14%, 97% 0, 100% 84%, 0 100%); transform: rotate(-3deg);
}
.promo__sub { max-width: 22ch; font-size: var(--t-meta); font-weight: 600; line-height: 1.4; color: var(--on-ink); }
.promo__cta { margin: 0; padding: 5px 18px; border: 2px solid var(--signal); border-radius: 999px; font-size: var(--t-meta); font-weight: 700; }
.promo__note { margin: 0; font-size: var(--t-label); font-weight: 600; color: var(--signal); }

@media (max-width: 720px) {
	.apply-pop__grid { grid-template-columns: 1fr; }
	.apply-pop__img { max-height: 200px; }
	.promo { min-height: 0; gap: 8px; padding: 22px 20px 18px; }
	.promo__ring { width: auto; aspect-ratio: auto; padding: 4px 0; border: 0; }
	.promo__offer { margin-inline: 0; font-size: var(--t-box); }
	.promo__cta { display: none; }
	.apply-pop__body { padding: 24px 20px 20px; }
}
.video-pop { width: min(960px, 94vw); background: #000; overflow: visible; }
.video-pop__frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- Tabs (department page, home events) ---------- */
.tabs__list {
	/* Baseline as an inset shadow: a border would sit outside the scroll box and clip the active underline. */
	display: flex; gap: 4px; margin-bottom: 28px; box-shadow: inset 0 -2px 0 var(--line);
	overflow-x: auto; scrollbar-width: none; scroll-margin-top: 110px;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
	flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	border-bottom: 3px solid transparent; font: 600 var(--t-text) var(--f-head); color: var(--muted); text-decoration: none; white-space: nowrap;
}
.tabs__tab:hover { color: var(--ink); border-bottom-color: var(--line); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); }
.tabs__tab:focus-visible { outline-offset: -3px; }
.tabs__count {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--mist); color: var(--ink); font: 600 var(--t-tag)/1 var(--f-body);
}
.tabs__tab[aria-selected="true"] .tabs__count { background: var(--ink); color: #fff; }
.tabs__heading { font-size: var(--t-sub); margin-bottom: 20px; }
.tabs__panel + .tabs__panel { margin-top: 48px; }
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs--ready .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs--ready .tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Side tabs (department page): a vertical menu on the left, the open panel on the right.
   Below 900px they fall back to the tab bar above the content. */
@media (min-width: 900px) {
	.tabs--side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 clamp(20px, 2.4vw, 32px); align-items: start; }
	/* A light box with the items between thin rules, and a solid Apply button closing it off. */
	.tabs--side { grid-template-columns: 280px minmax(0, 1fr); }
	.tabs--side .tabs__aside { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 110px; border-radius: var(--r); overflow: hidden; }
	.tabs--side .tabs__list {
		flex-direction: column; gap: 0; margin: 0; padding: 6px 22px; overflow: visible;
		background: var(--mist); box-shadow: none;
	}
	.tabs--side .tabs__panel { grid-column: 2; min-width: 0; }
	.tabs--side .tabs__tab {
		justify-content: flex-start; gap: 0; padding: 13px 0; border: 0; border-bottom: 1px solid #cfdcd4; white-space: normal;
		font: 500 var(--t-text) var(--f-body); color: var(--text); transition: color .15s var(--ease);
	}
	.tabs--side .tabs__tab:last-child { border-bottom: 0; }
	.tabs--side .tabs__tab:hover { color: var(--ink-soft); }
	.tabs--side .tabs__tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
	.tabs--side .tabs__tab { position: relative; }
	.tabs--side .tabs__tab[aria-selected="true"]::before { content: ""; position: absolute; left: -22px; top: 50%; width: 4px; height: 20px; margin-top: -10px; background: var(--signal); border-radius: 0 3px 3px 0; }
	.tabs--side .tabs__tab:focus-visible { outline-offset: 2px; }
	.tabs--side .tabs__tab .tabs__count { margin-left: auto; background: var(--paper); }
	.tabs__apply {
		display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px;
		background: var(--ink); color: #fff; font: 600 var(--t-body) var(--f-head); text-decoration: none;
		transition: background-color .2s var(--ease);
	}
	.tabs__apply::after { content: ""; width: 16px; height: 16px; background: var(--arrow) center / contain no-repeat; transition: transform .2s var(--ease); }
	.tabs__apply:hover { background: var(--ink-soft); color: #fff; }
	.tabs__apply:hover::after { transform: translateX(3px); }
}

/* Narrow screens: the side menu becomes the usual tab row, and the Apply button is left out. */
@media (max-width: 899px) { .tabs__aside .tabs__apply { display: none; } }

/* Pill-style tabs */
.tabs--chips .tabs__list { gap: 8px; margin-bottom: 24px; box-shadow: none; overflow: visible; flex-wrap: wrap; }
.tabs--chips .tabs__tab { margin: 0; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text); font-size: var(--t-text); }
.tabs--chips .tabs__tab:hover { border-color: var(--ink); }
.tabs--chips .tabs__tab[aria-selected="true"], .chips a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips a .tabs__count { margin-left: 4px; }
.chips a[aria-current] .tabs__count { background: rgba(255,255,255,.18); color: #fff; }
.event-views { margin-bottom: 28px; }
.event-views a { font: 600 var(--t-text) var(--f-head); padding: 7px 16px; }

/* Course plan */
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan__sem { padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan__title { display: flex; align-items: center; gap: 10px; font-size: var(--t-card); margin-bottom: 10px; }
.plan__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--signal); color: var(--ink); border-radius: 50%; font: 700 var(--fs-base)/1 var(--f-head); }
.plan__subjects { list-style: none; margin: 0; padding: 0; }
.plan__subjects li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: var(--t-text); line-height: 1.45; }
.plan__subjects li:first-child { border-top: 0; }
.plan__code { flex: none; min-width: 64px; font: 600 var(--t-label) var(--f-head); color: var(--ink-soft); letter-spacing: .02em; }
.plan__name { flex: 1; }
.plan__credit { flex: none; color: var(--muted); font-size: var(--t-label); white-space: nowrap; }
@media (max-width: 700px) { .plan { grid-template-columns: 1fr; } }

/* Course structure (BTEB table, semester by semester) */
.cs-summary {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 20px;
	background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.cs-summary > div { padding: 14px 18px; background: var(--paper); }
.cs-summary dt { font-size: var(--t-label); color: var(--muted); }
.cs-summary dd { margin: 2px 0 0; font: 700 var(--t-card)/1.2 var(--f-head); color: var(--ink); }
.dept-keyfacts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 18px; }
.dept-keyfacts > div { padding: 8px 12px; }
.dept-keyfacts dd { font: 600 var(--t-text)/1.35 var(--f-body); }
.cs-sems { display: grid; gap: 12px; }
.cs-sem { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.cs-sem[open] { border-color: transparent; box-shadow: var(--shadow); }
.cs-sem__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; transition: background-color .2s var(--ease); }
.cs-sem__head::-webkit-details-marker { display: none; }
.cs-sem__head:hover { background: color-mix(in srgb, var(--mist) 60%, transparent); }
.cs-sem__name { font: 600 var(--t-card)/1.25 var(--f-head); color: var(--ink); }
.cs-sem__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.cs-sem__facts span { padding: 2px 10px; border-radius: var(--r-sm); background: var(--mist); color: var(--ink-soft); font-size: var(--t-label); font-weight: 600; white-space: nowrap; }
.cs-sem__chevron { width: 20px; height: 20px; color: var(--muted); transition: transform .25s var(--ease); }
.cs-sem[open] .cs-sem__chevron { transform: rotate(180deg); }
.cs-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.cs-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: var(--t-text); font-variant-numeric: tabular-nums; }
.cs-table th, .cs-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.cs-table thead th { background: var(--mist); color: var(--ink); font: 600 var(--t-text)/1.3 var(--f-head); vertical-align: bottom; }
.cs-table thead th[colspan] { border-bottom-color: #c9dbcf; }
.cs-table .cs-table__sub th { padding-top: 4px; font: 500 var(--t-label)/1.25 var(--f-body); color: var(--muted); }
.cs-table .cs-table__subject { min-width: 200px; text-align: left; }
.cs-table tbody .cs-table__subject { font-weight: 500; color: var(--text); }
.cs-table__code { font: 600 var(--t-label) var(--f-head); color: var(--ink-soft); }
.cs-table__credit, .cs-table__total { font-weight: 700; color: var(--ink); }
.cs-table tbody tr { transition: background-color .15s var(--ease); }
.cs-table tbody tr:hover { background: color-mix(in srgb, var(--mist) 60%, transparent); }
.cs-table tfoot th, .cs-table tfoot td { background: var(--ink); color: #fff; font: 600 var(--t-text) var(--f-head); border-bottom: 0; }
.cs-table tfoot th { text-align: left; }
.cs-download { margin-top: 24px; }
@media (max-width: 640px) {
	.cs-sem__head { flex-wrap: wrap; }
	.cs-sem__facts { order: 3; width: 100%; margin-left: 44px; }
	.cs-sem__chevron { margin-left: auto; }
}

/* Fees */
.fee-table { width: 100%; max-width: none; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table th, .fee-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { background: var(--ink); color: #fff; font: 600 var(--t-text) var(--f-head); white-space: nowrap; }
.fee-table tbody tr:nth-child(even) { background: var(--mist); }
.fee-table th:nth-child(2), .fee-table td:nth-child(2) { text-align: right; }
.fee-table td:nth-child(2) { font: 600 var(--t-text) var(--f-head); color: var(--ink); }
@media (max-width: 600px) {
	.fee-table:has(th:nth-child(3)) th, .fee-table:has(th:nth-child(3)) td { padding: 10px 8px; font-size: 14px; line-height: 1.35; white-space: normal; vertical-align: top; }
}
@media (max-width: 360px) {
	/* Three-column tables in page text (the Admission fees) fit the smallest phones. */
	.wp-block-table table:has(tr > :nth-child(3)) th, .wp-block-table table:has(tr > :nth-child(3)) td { padding: 8px 6px !important; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
}
.fee-note { max-width: none; margin: 16px 0 0; padding-left: 14px; border-left: 4px solid var(--signal); color: var(--muted); }

/* Events */
.event-card__img { position: relative; display: block; overflow: hidden; }
.event-card__date { position: absolute; left: 14px; top: 14px; box-shadow: 0 6px 16px rgba(10,51,38,.25); }
.card__meta { align-items: center; }
.card__meta .tag--signal { color: #fff; }
.tag--done { background: var(--mist); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.card__meta .tag--done { color: var(--muted); }
.event-card__info { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; color: var(--muted); font-size: var(--t-meta); }
.event-card__info li { display: flex; gap: 8px; align-items: flex-start; }
.event-card__info .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--ink-soft); }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.event-facts__status { margin: 0 0 4px; }
.event-facts__status .tag { font-size: var(--t-tag); padding: 2px 10px; }

/* Hostel */
.dept-facts .btn + .btn { margin-top: 10px; }
/* Department labs */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.lab { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lab__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lab__photo .ph { width: 100%; aspect-ratio: 16 / 10; }
.lab__body { padding: 14px 16px 16px; }
.lab__name { font-size: var(--t-item); margin: 0 0 4px; }
.lab__text { margin: 0; color: var(--muted); font-size: var(--t-text); line-height: 1.55; }

.facilities__title { margin-top: 0; }
.facilities { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facility { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.facility__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--mist); color: var(--ink); border-radius: var(--r); transition: background-color .15s; }
.facility:hover .facility__icon { background: var(--signal); }
.facility__icon .icon { width: 26px; height: 26px; }
.facility__text { display: flex; flex-direction: column; min-width: 0; }
.facility__name { font: 600 var(--t-item)/1.3 var(--f-head); color: var(--ink); }
.facility__desc { margin-top: 3px; color: var(--muted); font-size: var(--t-text); }
@media (max-width: 640px) { .facilities { grid-template-columns: 1fr; } }

/* Success stories on a tinted band */

/* ---------- Downloads ---------- */
.btn--sm { min-height: 40px; padding: .35em 1em; font-size: var(--t-text); }
.btn--sm .icon { width: 18px; height: 18px; }
.btn small { margin-left: 6px; font: 500 var(--t-label) var(--f-body); opacity: .75; }
.dl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.dl-tools .chips { margin: 0; }
.dl-filter a { font: 600 var(--t-text) var(--f-head); }
.dl-search { position: relative; min-width: min(100%, 340px); }
.dl-search input { padding-left: 44px; border-right: 1px solid #c3d4c9; border-radius: 999px; }
.dl-search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); pointer-events: none; }
.dl-group + .dl-group { margin-top: 44px; }
.dl-group__title { font-size: var(--t-sub); margin-bottom: 14px; }
.dl-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); transition: background-color .2s var(--ease); }
.dl-item:first-child { border-top: 0; }
.dl-item:hover { background: color-mix(in srgb, var(--mist) 70%, transparent); }
.dl-item[hidden] { display: none; }
/* File-type badge in the format's usual colour, so students recognise Word, PDF and Excel files at a glance. */
.dl-badge { --c: var(--muted); position: relative; display: grid; place-items: center; width: 46px; height: 54px; color: var(--c); }
.dl-badge .icon { width: 46px; height: 54px; stroke-width: 1.1; }
.dl-badge span { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px; background: var(--c); color: #fff; font: 700 var(--t-tag)/1.35 var(--f-head); letter-spacing: .03em; }
.dl-badge--word { --c: #2b579a; }
.dl-badge--pdf { --c: #c4314b; }
.dl-badge--excel { --c: #1e7145; }
.dl-badge--slide { --c: #c43e1c; }
.dl-badge--image { --c: var(--ink-soft); }
.dl-item__title { font-size: var(--t-item); margin: 0; }
.dl-item__note { margin: 3px 0 0; max-width: none; color: var(--muted); font-size: var(--t-text); line-height: 1.55; }
.dl-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dl-item__soon { color: var(--muted); font-size: var(--t-meta); }
.dl-empty .btn { margin-top: 4px; }
.dl-help { margin-top: 48px; }
@media (max-width: 760px) {
	.dl-tools { flex-direction: column; align-items: stretch; }
	.dl-search { min-width: 0; }
	.dl-item { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 6px 14px; }
	.dl-item__actions { grid-column: 2; justify-content: flex-start; margin-top: 6px; }
}

/* ---------- Teachers by rank ---------- */
.rank + .rank { margin-top: 52px; }
/* Each rank heading sits centred between two rules, so the page reads as levels from top to bottom. */
.rank__title { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: var(--t-sub); margin-bottom: 22px; text-align: center; }
.rank__title::before, .rank__title::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: var(--line); }
/* One 4-column grid for every rank, cards from the left: the principal spans all 4 columns,
   each vice principal 2, everyone else 1 (3 columns on tablets, 2 on phones). Same gap
   everywhere, so card edges line up from rank to rank. */
.rank .people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 900px) { .rank .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lead-grid { display: grid; gap: 20px; }
.lead-grid--vice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lead-grid--principal .lead-card { grid-template-columns: 220px minmax(0, 1fr); padding: 24px; background: var(--mist); border-color: transparent; }
.lead-card__photo { display: block; border-radius: var(--r-lg); overflow: hidden; }
.lead-card__photo img, .lead-card__photo .ph { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.lead-card__name { font-size: var(--t-card); margin: 0 0 2px; }
.lead-grid--principal .lead-card__name { font-size: var(--fs-2xl); }
.lead-card__name a { color: var(--ink); text-decoration: none; }
.lead-card__role { margin: 0; font-weight: 600; color: var(--ink-soft); }
.lead-card__quote { margin: 14px 0 0; padding-left: 16px; border-left: 4px solid var(--signal); color: var(--text); font-size: var(--t-body); line-height: 1.7; max-width: none; }
.lead-card__quote p { margin: 0; }
.lead-card__more { margin: 16px 0 0; }
.lead-card__quote p + p { margin-top: 12px; }
@media (max-width: 800px) { .lead-grid--vice { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.lead-card, .lead-grid--principal .lead-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.lead-card__photo { width: 100%; max-width: 200px; }
	.lead-card__quote { text-align: left; }
	.rank .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
}

/* ---------- Job placement: same cards and grid as the Teachers page ---------- */
.alumni-note { margin-bottom: 20px; }
.alum-card__company { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; color: var(--ink-soft); font-weight: 600; font-size: var(--t-meta); line-height: 1.4; }
.alum-card__company .icon { width: 16px; height: 16px; margin-top: 2px; }
/* The placement cell text below: headings centred between rules like the technology headings. */
.alumni-cell { max-width: none; margin-top: 56px; }
.alumni-cell h2 { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: var(--t-sub); margin: 48px 0 16px; text-align: center; }
.alumni-cell h2:first-child { margin-top: 0; }
.alumni-cell h2::before, .alumni-cell h2::after { content: ""; flex: 1; max-width: 220px; height: 1px; background: var(--line); }
.alumni-cell p { max-width: none; margin-inline: auto; text-align: center; }

/* Visitors who ask for less motion get instant changes and no lifting cards. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.btn:hover, .card:hover, .dept:hover,.to-top:hover, .footer-links a:hover { transform: none; }
	.card:hover .card__img img, .dept:hover .dept__img img, .person:hover .person__photo img, .gallery-strip__list li:hover img { transform: none; }
}

/* WordPress core alignment helpers */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: var(--t-meta); color: var(--muted); }

.plan__extra { margin: 8px 0 0; font-size: var(--t-meta); color: var(--muted); }
.lab__extra { margin-top: 4px; }
.facility__desc + .facility__desc { margin-top: 2px; }

/* Labs tab: each lab as heading → photo gallery → details, one after another. */
.lab-list { display: grid; gap: 0; }
.lab-sec { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.lab-sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.lab-sec__title { margin: 0 0 14px; font-size: var(--t-box); color: var(--ink); }
.lab-sec__gallery { display: grid; gap: 10px; margin: 0 0 16px; grid-template-columns: repeat(3, 1fr); }
.lab-sec__gallery--1 { grid-template-columns: 1fr; max-width: 760px; }
.lab-sec__gallery--2 { grid-template-columns: repeat(2, 1fr); }
.lab-sec__photo { display: block; overflow: hidden; border-radius: var(--r); background: var(--line); cursor: zoom-in; }
.lab-sec__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.lab-sec__gallery--1 .lab-sec__photo img { aspect-ratio: 16 / 9; }
.lab-sec__photo:hover img, .lab-sec__photo:focus-visible img { transform: scale(1.03); }
.lab-sec__text p { margin: 0 0 10px; font-size: var(--t-body); line-height: 1.7; color: var(--text, inherit); }
.lab-sec__text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.lab-sec__gallery, .lab-sec__gallery--2 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.lab-sec__gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

/* Class routine: each semester's title, then its PDF open on the page, one after another. */
.routine { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper, #fff); overflow: hidden; }
.routine__sec { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.routine__sec:last-child { border-bottom: 0; }
.routine__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.routine__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--t-item); color: var(--ink); }
.routine__title .icon { flex: 0 0 auto; width: 24px; height: 24px; color: var(--ink-soft, var(--ink)); }
/* Titles only: a simple list of rows. */
.routine--list { gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper, #fff); overflow: hidden; }
.routine--list .routine__sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.routine--list .routine__sec:last-child { border-bottom: 0; }
.routine--list .routine__bar { margin: 0; }
.routine--list .routine__title { font-size: var(--t-item); }

.entry--after-pdf { margin-top: 48px; }

/* Photo gallery: automatic grid of campus photos. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.photo-grid__item { margin: 0; }
.photo-grid__item a { display: block; overflow: hidden; border-radius: var(--r); background: var(--line); }
.photo-grid__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.photo-grid__item a:hover img, .photo-grid__item a:focus-visible img { transform: scale(1.03); }
.photo-grid__item figcaption { margin-top: 6px; font-size: var(--t-meta); color: var(--muted); }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Results: latest board result open, earlier ones by year. */
.results-board__head { margin: 0 0 16px; font-size: var(--t-section); color: var(--ink); }
.results-board__head--more { margin-top: 48px; }
.results-board .routine__title { font-size: var(--t-box); }
.results-board .routine--list .routine__title { font-size: var(--t-item); }
.results-year + .results-year { margin-top: 20px; }
.results-year__title { margin: 0 0 10px; font-size: var(--t-sub); color: var(--ink-soft, var(--ink)); }

/* PDF buttons (View in a new tab / Download), the same everywhere. */
.pdf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pdf-btns .btn .icon { width: 18px; height: 18px; }
.notice-pdf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper, #fff); }
.notice-pdf__name { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font-weight: 600; color: var(--ink); }
.notice-pdf__name .icon { flex: 0 0 auto; width: 26px; height: 26px; }
.notice-pdf__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
	.routine .pdf-btns, .notice-pdf .pdf-btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
	.routine .pdf-btns .btn, .notice-pdf .pdf-btns .btn { justify-content: center; padding-inline: 8px; gap: 5px; white-space: nowrap; }
	.routine .pdf-btns .btn .icon, .notice-pdf .pdf-btns .btn .icon { width: 15px; height: 15px; }
	.routine__sec { padding: 16px; }
}

/* Accent is dark red: text and icons on it are white, and accent-coloured text on dark green or photos is white. */
::selection, .skip-link, .btn--signal, .lang-switch a[aria-current], .nav__list > .menu-cta > a, .hero__arrow:hover, .tag--signal, .ticker__label, .why__list .icon, .step::before, .lightbox__close, .social a:hover, .vstory__btn, .promo__offer, .plan__num,
.brand__mark, .play-btn__circle, .dept__icon, .dept-facts__icon, .hero__tagline, .stat:first-child dd, .site-footer .contact-list .icon, .blueprint__dim, .promo__note { color: #fff; }
.to-top { color: #fff !important; }
.topbar a:hover, .topbar .ticker a:hover, .site-footer a:hover, .crumbs a:hover { color: #fff; text-decoration: underline; }
.facility:hover .facility__icon { color: #fff; }
/* Keyboard focus ring: red on light areas, white on dark green areas and photos. */
.topbar :focus-visible, .site-footer :focus-visible, .section--ink :focus-visible, .hero :focus-visible, .page-head :focus-visible, .apply-pop__banner :focus-visible { outline-color: #fff; }
.promo__cta { background: var(--signal); border-color: var(--signal); color: #fff; }

/* ---------------------------------------------------------------
   Phone fixes (most visitors are on phones; checked at 390px).
   --------------------------------------------------------------- */
/* Page text followed by a form (Contact): keep a gap between them. */
.entry > .prose + .form { margin-top: 20px; }

@media (max-width: 760px) {
	/* Footer: the info box uses the full width, back-to-top button sits under it on the right. */
	.site-footer__bottom { flex-direction: column; }
	.to-top { align-self: flex-end; }

	/* Event page: compact date/venue box so the photo is not pushed far down. */
	.event-facts { padding: 16px 18px; }
	.event-facts .dept-facts__icon { display: none; }
	.event-facts dl { margin-bottom: 14px; }
	.event-facts dl div { padding: 8px 0; }
}

@media (max-width: 600px) {
	/* Two-column key/value tables in page text (Admission at a glance): wider label column. */
	.prose table:not(:has(tr > :nth-child(3))) td:first-child { width: 38%; }

	/* Department key facts: an odd last fact fills the row instead of leaving an empty cell. */
	.dept-keyfacts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	/* Principal photo: smaller and centred on phones and tablets; no offset frame, name box centred under it. */
	.principal { max-width: 260px; margin-inline: auto; }
	.principal__photo::after { display: none; }
	.principal__who { margin: -28px 16px 0; text-align: center; }
}

@media (max-width: 480px) {
	/* Home key facts: 2 x 2 instead of 4 squeezed columns. */
	.welcome__facts {
		grid-template-columns: 1fr 1fr; gap: 1px; padding-top: 0; margin-top: 28px;
		background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
	}
	.welcome__facts > div, .welcome__facts > div + div { border: 0; border-radius: 0; }
	.welcome__facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	/* Banner badge stays on one line on phones: text scales with the screen, "…" only as a last resort. */
	.hero__kicker, .first-screen .hero__kicker {
		max-width: 100%; padding-inline: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
		font-size: clamp(11.5px, 3.4vw, 14px);
	}
}

@media (max-width: 480px) {
	/* Banner on phones: smaller title, tighter gap under the badge. */
	.hero__kicker { margin-bottom: 4px; }
	.hero__title, .first-screen .hero__title { font-size: 1.75rem; }
}

/* Dropdowns: one arrow everywhere (website, Institute admin, portals), 12px from the right edge, text never runs under it. */
select:not([multiple]):not([size]) {
	-webkit-appearance: none; appearance: none; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231d6b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
}
