/*
 * BIIT theme styles.
 *
 * Every colour, size and spacing value is a custom property defined once in
 * :root and mirrored from theme.json. When the brand direction is settled
 * (issue #19) this file should not need editing — only the token values.
 */

/* ---------------------------------------------------------------- tokens - */

:root {
	/*
	 * Palette taken from BIIT's own logo, not invented.
	 * Sampled from wp-content/uploads/2025/02/BIIT-Header-Logo.png:
	 *   #18375D  navy  — the BIIT wordmark and the surrounding ring text
	 *   #0094DA  cyan  — the calligraphic monogram
	 * Contrast measured, not assumed. On white: navy 12.05:1 (AA text),
	 * cyan only 3.36:1 — so cyan is for rules, borders and large type, never
	 * small text. --c-accent-text is the darkened cyan (5.62:1) for the cases
	 * that genuinely want a cyan-toned label.
	 */
	--c-base: #fff;
	--c-surface: #f3f7fe;
	--c-surface-alt: #e9f0fc;
	--c-line: #d5dfea;
	--c-ink: #111927;
	--c-muted: #4a5568;
	--c-primary: #18375d;
	--c-primary-dark: #0f2544;
	--c-accent: #0094da;
	--c-accent-text: #0a6e9e;

	/* On navy: white 12.05, pale 8.14, cyan-light 7.08 — all AA text. */
	--c-on-dark: #fff;
	--c-on-dark-soft: #c7d6e6;
	--c-on-dark-accent: #7fd1f5;

	--f-sans: "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--t-xs: .8125rem;
	--t-sm: .9375rem;
	--t-md: 1.125rem;
	--t-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--t-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
	--t-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
	--t-3xl: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);

	--s-1: .5rem;
	--s-2: .875rem;
	--s-3: 1.25rem;
	--s-4: 2rem;
	--s-5: 3.5rem;
	--s-6: 6rem;

	--wrap: 72rem;
	--measure: 44rem;
	/*
	 * Soft and rounded, following the reference the driver chose. This reverses
	 * the hairline language earlier in this session deliberately: cards carry a
	 * generous radius, a faint edge AND a low blue-tinted shadow, which is what
	 * makes that page read as light rather than drawn.
	 */
	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--edge: 1px solid var(--c-line);
	--lift: 0 1px 2px rgba(24, 55, 93, .04), 0 12px 28px -12px rgba(24, 55, 93, .18);
	--lift-hi: 0 2px 6px rgba(24, 55, 93, .06), 0 22px 44px -16px rgba(24, 55, 93, .28);
	/* Elevation is for things that actually float: only the nav dropdown does. */
	--shadow-lift: 0 2px 4px rgba(16, 32, 56, .06), 0 18px 40px rgba(16, 32, 56, .12);
	--ring: 0 0 0 3px rgba(24, 55, 93, .35);
}

/* ------------------------------------------------------------------ base - */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--c-base);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--t-md);
	line-height: 1.7;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; margin: 0 0 var(--s-2); }
h1 { font-size: var(--t-3xl); letter-spacing: -.038em; line-height: 1.02; }
h2 { font-size: var(--t-2xl); letter-spacing: -.028em; line-height: 1.08; }
h3 { font-size: var(--t-xl); letter-spacing: -.015em; }
h4 { font-size: var(--t-lg); }

p, ul, ol, dl, blockquote, figure, table, pre { margin: 0 0 var(--s-3); }

a { color: var(--c-primary); text-underline-offset: .18em; }
a:hover { color: var(--c-primary-dark); }

img, svg, video { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-5) 0; }

/* ------------------------------------------------------------ a11y utils - */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--c-primary); color: var(--c-on-dark);
	padding: var(--s-2) var(--s-3); border-radius: 0 0 var(--radius) 0;
	font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--c-on-dark); }

/* --------------------------------------------------------------- layout - */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--s-3);
}

.site-main { display: block; }

.section { padding-block: var(--s-5); }
.section--compact { padding-block: var(--s-4); }
.section--tint { background: var(--c-surface); }
.section--about { background: var(--c-surface); }
.section--offices { background: var(--c-surface-alt); }

.section__head {
	display: flex; flex-wrap: wrap; gap: var(--s-3);
	align-items: baseline; justify-content: space-between;
	margin-bottom: var(--s-5);
}
.section__title { margin: 0; max-width: 20ch; text-wrap: balance; }

.kicker {
	display: flex; align-items: center; gap: .55rem;
	margin: 0 0 var(--s-2);
	font-size: var(--t-xs); font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--c-accent-text);
}
/*
 * The pill badge that opens every section, and the accent word that closes its
 * title. Both come from the reference: a tinted capsule with a dot, and one
 * word of the heading in the brand's colour.
 */
.badge {
	display: inline-flex; align-items: center; gap: .5rem;
	margin: 0 0 var(--s-2);
	padding: .4rem .85rem;
	background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	font-size: var(--t-xs); font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--c-accent-text);
}
.badge__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--c-accent); flex: none; }
.section__title-accent { color: var(--c-accent-text); }

/* A short cyan dash instead of a rule under the whole heading. */
.kicker::before {
	content: ""; width: 1.75rem; height: 2px; flex: none;
	background: var(--c-accent);
}

.link-arrow { font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow span { margin-inline-start: .3em; }

/* --------------------------------------------------------------- topbar - */

.topbar {
	background: var(--c-primary-dark);
	color: var(--c-on-dark-soft);
	font-size: var(--t-xs);
}
.topbar__inner {
	display: flex; flex-wrap: wrap; gap: var(--s-2);
	align-items: center; justify-content: space-between;
	padding-block: .5rem;
}
.topbar__tagline { margin: 0; }
.topbar__menu { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- header - */

.site-header {
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--c-line);
	position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--s-4); padding-block: var(--s-2); min-height: 4.75rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-ink); }
.brand__mark {
	font-size: var(--t-xl); font-weight: 700; letter-spacing: -.01em;
	color: var(--c-primary); line-height: 1;
	border-inline-end: 2px solid var(--c-accent);
	padding-inline-end: .6rem;
}
.brand__name {
	font-weight: 600; font-size: var(--t-xs); line-height: 1.3;
	color: var(--c-muted); max-width: 22ch;
}
.custom-logo { max-height: 3.25rem; width: auto; }

/* ----------------------------------------------------------------- nav - */

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem;
	background: none; border: 1px solid var(--c-line); border-radius: var(--radius);
	color: var(--c-ink); cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/*
 * Class names here must match BIIT_Nav_Walker, which does NOT use WordPress's
 * defaults: it emits `ul.submenu` (not `.sub-menu`), `li.has-submenu` (not
 * `.menu-item-has-children`) and a real `button.submenu-toggle`.
 */

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block; text-decoration: none; color: var(--c-ink);
	font-size: var(--t-sm); font-weight: 500; letter-spacing: -.005em;
	padding: .55rem 0;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav [aria-current="page"] { color: var(--c-primary); }

/* The disclosure button. Never a bare default button. */
.submenu-toggle {
	display: inline-flex; align-items: center; gap: .3rem;
	font: inherit; font-size: var(--t-sm); font-weight: 500; letter-spacing: -.005em;
	color: var(--c-ink);
	background: none; border: 0; padding: .55rem 0;
	cursor: pointer;
}
.submenu-toggle:hover { color: var(--c-primary); }
.submenu-toggle .chev { transition: transform .15s ease; flex: none; }
.submenu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* When the parent is also a link, the button is just the chevron beside it. */
.submenu-toggle--icon { padding-inline: .35rem; }

/* --- mobile panel --- */

.primary-nav.is-open {
	display: block;
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--c-base);
	border-bottom: 1px solid var(--c-line);
	padding: var(--s-3) var(--s-3) var(--s-4);
	max-height: calc(100vh - 8rem); overflow-y: auto;
	box-shadow: 0 12px 24px rgba(0, 0, 0, .07);
}
.primary-nav.is-open .has-submenu { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.primary-nav.is-open .has-submenu > a { flex: 1 1 auto; }
.primary-nav.is-open .submenu {
	flex-basis: 100%;
	display: none;
	margin: 0 0 var(--s-2); padding-inline-start: var(--s-3);
	border-inline-start: 2px solid var(--c-line);
}
.primary-nav.is-open .submenu.is-open { display: block; }
.primary-nav.is-open .submenu a { font-weight: 400; color: var(--c-muted); }
/* A third-level row is a row like any other; the border marks the extra step. */
.primary-nav.is-open .submenu .submenu-toggle { font-weight: 400; color: var(--c-muted); padding-block: .4rem; }
.primary-nav.is-open .submenu .submenu a { font-size: var(--t-sm); }
.primary-nav__actions { margin-top: var(--s-3); }

/* --- desktop bar --- */

@media (min-width: 62rem) {
	.nav-toggle { display: none; }
	.primary-nav { display: flex; align-items: center; gap: var(--s-3); position: static; }
	.primary-nav > .menu,
	.primary-nav > ul { display: flex; align-items: center; gap: var(--s-3); }
	.primary-nav > ul > li { position: relative; display: flex; align-items: center; gap: .15rem; }
	.primary-nav > ul > li > a,
	.primary-nav > ul > li > .submenu-toggle { padding-block: 1.15rem; }
	.primary-nav__actions { margin: 0; }

	.primary-nav .submenu {
		position: absolute; left: 0; top: 100%;
		display: block;
		min-width: 15rem; margin: 0; padding: var(--s-1) 0;
		background: var(--c-base);
		border: 0; border-radius: var(--radius-sm);
		box-shadow: var(--shadow-lift);
		opacity: 0; visibility: hidden; transform: translateY(4px);
		transition: opacity .12s ease, transform .12s ease, visibility .12s;
		z-index: 50;
	}
	.primary-nav > ul > li:hover > .submenu,
	.primary-nav > ul > li:focus-within > .submenu,
	.primary-nav .submenu.is-open { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .submenu a { padding: .6rem var(--s-3); font-weight: 400; white-space: nowrap; }
	.primary-nav .submenu a:hover { background: var(--c-surface); color: var(--c-primary); }

	/*
	 * Third level. BIIT's menu goes More > Publication > Bengali Books, so a
	 * dropdown row can itself be a parent: it opens sideways, because a panel
	 * that pushed down inside another panel would cover the rows beneath it.
	 */
	.primary-nav .submenu > li {
		position: relative;
		display: flex; align-items: center;
	}
	.primary-nav .submenu > li > a { flex: 1 1 auto; }

	/* The row's own chevron points at where its panel will appear. */
	.primary-nav .submenu .submenu-toggle {
		padding: .6rem var(--s-3); font-weight: 400;
	}
	/* Beside a link, the chevron is pushed to the row's end... */
	.primary-nav .submenu > li > a + .submenu-toggle { margin-inline-start: auto; }
	/*
	 * ...but a parent with no page of its own ("Library") is the whole row, so
	 * it fills the width and keeps its label on the left with everything else.
	 * Left as an auto margin, it floated to the right edge alone.
	 */
	.primary-nav .submenu > li > .submenu-toggle:first-child {
		flex: 1 1 auto; justify-content: space-between;
	}
	.primary-nav .submenu .submenu-toggle--icon { padding-inline: .5rem .75rem; }
	.primary-nav .submenu .submenu-toggle .chev { transform: rotate(-90deg); }
	.primary-nav .submenu .submenu-toggle[aria-expanded="true"] .chev { transform: rotate(-90deg); }

	.primary-nav .submenu .submenu {
		left: 100%; top: calc(var(--s-1) * -1);
		transform: translateX(-4px);
	}
	.primary-nav .submenu > li:hover > .submenu,
	.primary-nav .submenu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }

	/*
	 * "More" is the last item in the bar, so its panel is right-aligned and its
	 * own children open to the left -- otherwise both run off the window.
	 */
	.primary-nav > ul > li:last-child > .submenu { left: auto; right: 0; }
	.primary-nav > ul > li:last-child .submenu .submenu {
		left: auto; right: 100%;
		transform: translateX(4px);
	}
	.primary-nav > ul > li:last-child .submenu .submenu-toggle .chev { transform: rotate(90deg); }
	.primary-nav > ul > li:last-child .submenu > li:hover > .submenu,
	.primary-nav > ul > li:last-child .submenu > li:focus-within > .submenu { transform: none; }
}

/* ---------------------------------------------------------------- forms - */

/*
 * One pill with the icon inside it, not an input glued to a coloured block.
 * The two-element version clipped its own placeholder and read as two
 * detached controls sitting in the header.
 */
.search-form { position: relative; display: flex; width: 100%; max-width: 15rem; }
.search-form__input {
	flex: 1 1 auto; min-width: 0;
	font: inherit; font-size: var(--t-sm); color: var(--c-ink);
	padding: .6rem 2.6rem .6rem 1rem;
	background: var(--c-surface);
	border: 1px solid transparent; border-radius: var(--radius-pill);
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.search-form__input::placeholder { color: var(--c-muted); opacity: 1; }
.search-form__input:hover { background: var(--c-surface-alt); }
.search-form__input:focus {
	outline: none;
	background: var(--c-base);
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(0, 148, 218, .18);
}
.search-form__submit {
	position: absolute; inset-inline-end: .25rem; top: 50%;
	transform: translateY(-50%);
	display: inline-grid; place-items: center;
	width: 2rem; height: 2rem;
	background: transparent; color: var(--c-muted);
	border: 0; border-radius: 50%;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}
.search-form__submit:hover { color: var(--c-primary); background: var(--c-surface-alt); }
.search-form__input:focus ~ .search-form__submit { color: var(--c-primary); }

/* Full width wherever it is not competing with the navigation. */
.primary-nav.is-open .search-form,
.notfound .search-form,
.page-header .search-form,
.prose .search-form { max-width: 26rem; }
.notfound .search-form { margin-inline: auto; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	font: inherit; font-size: var(--t-sm); color: var(--c-ink);
	width: 100%; max-width: 100%;
	padding: .55rem .7rem;
	background: var(--c-base);
	border: 1px solid var(--c-line); border-radius: var(--radius);
}
textarea { min-height: 9rem; }
label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: .3rem; }

/* -------------------------------------------------------------- buttons - */

.btn {
	display: inline-flex; align-items: center; gap: .4rem;
	text-decoration: none;
	font-size: var(--t-sm); font-weight: 600; line-height: 1.2;
	padding: .95rem 1.75rem;
	border: 1px solid transparent; border-radius: var(--radius-pill);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-primary); color: var(--c-on-dark); border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: var(--c-on-dark); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }

button[type="submit"]:not(.search-form__submit):not(.btn) {
	font: inherit; font-size: var(--t-sm); font-weight: 600;
	padding: .7rem 1.15rem; cursor: pointer;
	background: var(--c-primary); color: var(--c-on-dark);
	border: 1px solid var(--c-primary); border-radius: var(--radius);
}

/* ----------------------------------------------------------------- hero - */

/*
 * A centred hero on a soft field, following the reference: badge, a headline
 * with the claim's key phrase in the brand's colour, one action, then the
 * drawing on a stage with the three figures floating over it as cards.
 *
 * The split version put a column of text beside a picture, which is a layout,
 * not a first screen. Centred, the claim is the whole of it and everything else
 * arranges itself around the drawing.
 */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background:
		radial-gradient(60rem 40rem at 50% -10%, rgba(0, 148, 218, .09), transparent 65%),
		linear-gradient(var(--c-surface), var(--c-base) 62%);
	padding-block: var(--s-6) var(--s-6);
	border-bottom: 1px solid var(--c-line);
	text-align: center;
}
/*
 * A scrim of the hero's own ground, poured over the map behind the copy. The
 * map reads at the margins where there is nothing to read, and thins to almost
 * nothing under the headline and the sentence beneath it -- which is what
 * "blended" has to mean when type sits on top.
 */
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(58% 46% at 50% 34%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0) 76%);
}
.hero__inner { max-width: var(--wrap); position: relative; }
.hero__body { max-width: 44rem; margin-inline: auto; }

.hero__eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	margin: 0 0 var(--s-3);
	padding: .4rem .85rem;
	background: var(--c-base); border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	font-size: var(--t-xs); font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--c-accent-text);
	box-shadow: var(--lift);
}
.hero__eyebrow::before {
	content: ""; width: .45rem; height: .45rem; flex: none;
	background: var(--c-accent); border-radius: 50%;
}
.hero__title {
	margin: 0 0 var(--s-3);
	font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem);
	color: var(--c-ink); letter-spacing: -.03em; line-height: 1.1;
	text-wrap: balance;
}
/* Colour rather than a rule: the reference marks its key phrase in the brand's
 * own blue, which reads as emphasis instead of as a highlighter stroke. */
.hero__accent { color: var(--c-accent-text); }

/*
 * The headline is painted with a gradient rather than a flat colour, the way
 * the reference fades its own display type from solid ink toward a lighter
 * grey. Every stop was measured against white rather than picked by eye:
 *
 *   ink       #111927  17.61:1   ->  #55637a  6.08:1
 *   accent    #0080c0   4.33:1   ->  #0094da  3.36:1
 *
 * 3:1 is the floor for large text, so the accent brightens to exactly BIIT's
 * logo blue and stops there. The previous flat #0a6e9e measured 5.62:1, which
 * is why it read as dark.
 *
 * Behind @supports because background-clip: text with transparent colour hides
 * the headline outright where it is not understood.
 */
@supports (background-clip: text) or (-webkit-background-clip: text) {
	/*
	 * Two layers on each: a moving band of light on top, the fixed fade beneath.
	 * Only the band's position animates, so the headline's colour never leaves
	 * the range measured above -- the sheen lightens ink toward #6b7a91 (4.36:1)
	 * and the accent toward #0094da (3.36:1), and no further.
	 */
	.hero__title {
		background-image:
			linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%),
			linear-gradient(112deg, #111927 0%, #111927 38%, #55637a 100%);
		background-size: 260% 100%, 100% 100%;
		background-position: 200% 0, 0 0;
		background-repeat: no-repeat;
		-webkit-background-clip: text; background-clip: text;
		color: transparent;
		animation: biit-sheen 6.5s linear infinite;
	}
	.hero__accent {
		background-image:
			linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%),
			linear-gradient(100deg, #0080c0 0%, var(--c-accent) 70%);
		background-size: 260% 100%, 100% 100%;
		background-position: 200% 0, 0 0;
		background-repeat: no-repeat;
		-webkit-background-clip: text; background-clip: text;
		color: transparent;
		animation: biit-sheen 6.5s linear infinite;
		animation-delay: .35s;
	}
	@keyframes biit-sheen {
		0% { background-position: 200% 0, 0 0; }
		/* The light crosses, then the headline rests before it returns. */
		55%, 100% { background-position: -60% 0, 0 0; }
	}
}
.hero__lead {
	margin: 0 auto var(--s-4); font-size: var(--t-md); line-height: 1.65;
	color: var(--c-muted); max-width: 44ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin: 0 0 var(--s-5); }
/*
 * Slate rather than cyan, and a soft-cornered rectangle rather than a capsule.
 * The hero is already carrying the brand's blue in the headline, the badge, the
 * map and its arcs; one more blue element made the action disappear into the
 * page instead of standing out from it. Grey is the contrast here.
 *
 * #3d4a5f measures 8.96:1 against white, so the white label on it clears AA for
 * body text with room to spare.
 */
.hero .btn--primary {
	background: #3d4a5f; border-color: #3d4a5f; color: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(24, 55, 93, .08), 0 14px 26px -14px rgba(24, 55, 93, .5);
}
.hero .btn--primary:hover { background: #2c3646; border-color: #2c3646; color: #fff; }

/* --- the world behind it ---------------------------------------------------- */

/*
 * The map is a backdrop, not a picture: it is masked to nothing at every edge
 * and held at a low opacity, so the type sits on the page rather than on an
 * image. Blending is the whole job here -- an unmasked map would fight the
 * headline for the reader's eye and lose the hero its calm.
 */
.hero__map {
	position: absolute; inset: 0; z-index: -2;
	display: grid; place-items: center;
	overflow: hidden;
	pointer-events: none;
}
.hero__map svg {
	width: min(120rem, 132%); height: auto;
	/*
	 * Pushed down so the land runs behind the figures' bar rather than the
	 * ocean: the bar is frosted glass, and it can only blur what is actually
	 * under it. It also leaves the headline sitting over emptier water.
	 */
	translate: 0 7%;
	opacity: .68;
	/* Fades out at the edges and toward the top, where the headline sits. */
	/*
	 * Reaches lower than it used to: the figures' bar is frosted glass, and glass
	 * over nothing is just a white box. The map now runs behind the bar so there
	 * is something for it to blur.
	 */
	-webkit-mask-image:
		radial-gradient(125% 108% at 50% 56%, #000 46%, transparent 88%),
		linear-gradient(to bottom, transparent 0, #000 22%);
	mask-image:
		radial-gradient(125% 108% at 50% 56%, #000 46%, transparent 88%),
		linear-gradient(to bottom, transparent 0, #000 22%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}
/* The node rings pulse outward, one after another around the network. */
.hero__map .ping { animation: biit-ping 3.6s ease-out infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero__map .map__nodes .ping:nth-of-type(2) { animation-delay: .3s; }
.hero__map .map__nodes .ping:nth-of-type(4) { animation-delay: .9s; }
.hero__map .map__nodes .ping:nth-of-type(6) { animation-delay: 1.5s; }
.hero__map .map__nodes .ping:nth-of-type(8) { animation-delay: 2.1s; }
.hero__map .map__nodes .ping:nth-of-type(10) { animation-delay: 2.7s; }
.hero__map .ping--hub { animation-duration: 3s; }
@keyframes biit-ping {
	0% { transform: scale(1); opacity: .7; }
	70%, 100% { transform: scale(3.2); opacity: 0; }
}

/*
 * One panel holding the three facts, sitting under the action -- the shape the
 * reference uses for its own three-up strip. Each fact keeps its mark in a
 * rounded chip, and hairlines divide them on a wide screen; below that they
 * stack and the dividers move to the top of each row, because a vertical rule
 * beside a stacked item is a bar hanging in space.
 */
/*
 * The outer pane: larger, softer, more transparent, sitting a few pixels proud
 * of the panel on every side. One sheet of glass on a page reads as a white
 * box; two, with the inner one's edge catching against the outer, reads as
 * glass. The radius grows with the offset so the two curves stay concentric.
 */
.facts-plate {
	position: relative;
	max-width: 64rem; margin: 0 auto;
	padding: .9rem;
	border-radius: calc(var(--radius) + 18px);
	/*
	 * The outer pane takes a trace of the logo's blue rather than more white:
	 * white on white is invisible on this ground, and glass picks up the colour
	 * of what surrounds it.
	 */
	background: rgba(0, 148, 218, .055);
	border: 1px solid rgba(255, 255, 255, .8);
	box-shadow: 0 20px 50px -30px rgba(24, 55, 93, .35);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.facts-plate {
		-webkit-backdrop-filter: blur(7px) saturate(130%);
		backdrop-filter: blur(7px) saturate(130%);
	}
}

.facts {
	display: grid; gap: 0; margin: 0; max-width: none;
	text-align: start;
	background: var(--c-base); border: 1px solid var(--c-line);
	border-radius: calc(var(--radius) + 4px);
	box-shadow: var(--lift);
	padding: var(--s-2);
}
/*
 * Glass, where the browser can do it. The bar sits over the world map, so
 * frosting it actually shows something: the dots blur and dim behind the panel
 * instead of a white slab covering them.
 *
 * The white stays at 62% and the blur at 18px, which is what keeps the text
 * legible -- sampled on the rendered page, the ground behind the figures comes
 * out rgb(247,249,252), so ink measures better than 16:1 and the muted line
 * better than 7:1. A thinner white would let a dot land inside a letter.
 *
 * The border is a light top edge rather than a flat hairline: glass catches the
 * light along its upper rim, and without that it reads as a translucent box
 * rather than a pane.
 */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.facts {
		background: rgba(255, 255, 255, .62);
		-webkit-backdrop-filter: blur(18px) saturate(150%);
		backdrop-filter: blur(18px) saturate(150%);
		border-color: rgba(255, 255, 255, .8);
		box-shadow:
			0 2px 6px rgba(24, 55, 93, .05),
			0 16px 34px -18px rgba(24, 55, 93, .3),
			inset 0 1px 0 rgba(255, 255, 255, .95),
			inset 0 0 0 1px rgba(24, 55, 93, .05);
	}
	.facts__icon { background: rgba(0, 148, 218, .10); }
}
.facts__item {
	display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
	align-items: center;
	padding: var(--s-3);
}
.facts__icon {
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; flex: none;
	background: var(--c-surface); border-radius: var(--radius-sm);
	color: var(--c-accent-text);
}
.facts__icon .icon { width: 20px; height: 20px; margin: 0; }
.facts__text { display: block; }
.facts__figure {
	font-size: var(--t-md); font-weight: 700; color: var(--c-ink);
	line-height: 1.2; letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}
.facts__label { margin: .2rem 0 0; font-size: var(--t-sm); line-height: 1.45; color: var(--c-muted); }

.facts__item + .facts__item { border-top: 1px solid var(--c-line); }

@media (min-width: 52rem) {
	.facts { grid-template-columns: repeat(3, 1fr); }
	.facts__item + .facts__item { border-top: 0; border-inline-start: 1px solid var(--c-line); }
}

/* ---------------------------------------------------------------- cards - */

.cards {
	display: grid; gap: var(--s-3); align-items: stretch;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 48rem) {
	.cards--3 { grid-template-columns: repeat(3, 1fr); }
	.cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	display: flex; flex-direction: column;
	background: var(--c-base);
	border: var(--edge); border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--lift);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
/*
 * Research cards put the title and text straight in .card with no .card__body,
 * so padding hung on a wrapper that does not exist and the text met the border.
 */
.card:not(:has(.card__body)) { padding: var(--s-4); gap: .5rem; }

.card--linked:hover, .card--linked:focus-within { border-color: transparent; box-shadow: var(--lift-hi); transform: translateY(-3px); }
/* A cyan edge on hover, drawn rather than shifting the layout. */
.card--linked { position: relative; }
.card--linked::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: var(--c-accent);
	opacity: 0; transition: opacity .2s ease; z-index: 1;
}
.card--linked:hover::before { opacity: 1; }
.card__media { display: block; text-decoration: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-alt); }
.card__media img { transition: transform .3s ease; }
.card--linked:hover .card__media img { transform: scale(1.03); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: var(--s-4); display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
.card__title { margin: 0; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.015em; }
.card__title a { text-decoration: none; color: var(--c-ink); }
.card__title a:hover { color: var(--c-primary); }
.card__text { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); }

/*
 * A card is often shorter than the row it sits in: the research programmes have
 * no summary on iiitbd.org and none was invented for them, and imported posts
 * frequently have no body to excerpt. Rather than leave a hole where the prose
 * would have been, the arrow sits on the floor of the card and the whole card
 * is the target — so the height reads as layout rather than as missing content.
 */
.card--linked .card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
/* The category link inside a card must stay clickable through that overlay. */
.card--linked .meta a { position: relative; z-index: 3; }
.card__go {
	margin-top: auto; align-self: stretch;
	border-top: 1px solid var(--c-line); padding-top: var(--s-2);
	font-size: var(--t-md); line-height: 1; color: var(--c-accent-text);
	transition: color .2s ease, border-color .2s ease;
}
/*
 * The rule and the arrow are one element, so a hover nudge would slide the
 * hairline too. The card already lifts and shows its cyan edge; this just
 * carries that colour down to the arrow.
 */
.card--linked:hover .card__go { color: var(--c-accent); border-top-color: var(--c-accent); }

/* ------------------------------------------------------------ programmes - */

/*
 * A horizontal scroller of flat cards, after the driver's reference: the head
 * on the left with its controls on the right, and a row of tinted panels that
 * runs off the edge of the wrap so it is visibly scrollable.
 *
 * The scrolling is native -- overflow with scroll snapping -- so a finger, a
 * trackpad, a scrollbar and the arrow keys all work with no script at all. The
 * buttons are hidden until the script can drive them, which is why they ship
 * with `hidden` rather than being drawn and dead.
 */
.section__head--scroller { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.section__head--scroller .section__head { margin-bottom: 0; }
.scroller__nav { display: flex; gap: .5rem; flex: none; padding-bottom: var(--s-3); }
.scroller__btn {
	width: 2.75rem; height: 2.75rem;
	display: grid; place-items: center;
	background: var(--c-base); border: var(--edge); border-radius: 10px;
	color: var(--c-ink); font-size: var(--t-md); line-height: 1;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
/* The forward arrow carries the accent, as on the reference; back stays quiet. */
.scroller__btn[data-scroll="next"]:not(:disabled) { color: var(--c-accent-text); }
.scroller__btn:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-accent-text); }
.scroller__btn:disabled { opacity: .4; cursor: default; }

/*
 * Flex with a fixed basis, not a grid track: `minmax(0, 24rem)` let the four
 * cards shrink to fit the row, so nothing overflowed and the scroller had
 * nothing to scroll.
 */
.programmes {
	display: flex; gap: var(--s-3);
	list-style: none; margin: 0;
	/*
	 * Room above and below for the hover lift. A scroll container clips both
	 * axes -- setting overflow-x also computes overflow-y to auto -- so a card
	 * that rises 3px had its top sliced off.
	 */
	padding: .5rem 0 var(--s-3);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	/* The row runs to the edge of the viewport, so a card is always half-shown. */
	scrollbar-width: none;
}
.programmes::-webkit-scrollbar { display: none; }
@media (min-width: 62rem) {
	.programmes { margin-inline-end: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--s-3)); }
}
.programme {
	position: relative; isolation: isolate; overflow: hidden;
	flex: 0 0 clamp(15rem, 78vw, 23rem);
	display: grid; align-content: start; gap: .7rem;
	scroll-snap-align: start;
	padding: var(--s-4);
	background: linear-gradient(170deg, var(--c-surface), var(--c-base) 78%);
	border: 1px solid var(--c-line); border-radius: 16px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.programme:hover, .programme:focus-within {
	border-color: rgba(0, 148, 218, .4);
	transform: translateY(-4px);
	box-shadow: 0 24px 40px -28px rgba(24, 55, 93, .55);
}
/*
 * A bar across the card's top edge that fills from the left on hover: the row's
 * one piece of motion, and the thing that makes a card look like it answers.
 */
.programme::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s ease;
}
.programme:hover::before, .programme:focus-within::before { transform: scaleX(1); }
/*
 * The programme's number, set large and pale in the corner. It carries the same
 * counting the About index uses, and it is what stops four cards of the same
 * shape reading as a table. aria-hidden: it is a graphic, not a label.
 */
.programme__index {
	position: absolute; top: .35rem; right: 1rem;
	font-size: 4.5rem; font-weight: 700; line-height: 1;
	letter-spacing: -.05em; color: rgba(24, 55, 93, .06);
	font-variant-numeric: tabular-nums;
	transition: color .25s ease;
}
.programme:hover .programme__index { color: rgba(0, 148, 218, .16); }

/*
 * The illustrations are PNGs on white, so on a tinted card they showed as white
 * rectangles -- artwork that looked like it had failed to knock out. The white
 * is a chip now: a circle with a tinted ring, which also stops it competing
 * with the card's own corners.
 */
.programme__icon {
	width: 3.5rem; height: 3.5rem; padding: .45rem;
	margin-bottom: var(--s-2);
	object-fit: contain;
	background: var(--c-base);
	border: 1px solid rgba(0, 148, 218, .22);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(0, 148, 218, .06);
	transition: box-shadow .25s ease;
}
.programme:hover .programme__icon { box-shadow: 0 0 0 8px rgba(0, 148, 218, .12); }

.programme__title { margin: 0; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.015em; }
.programme__title a { color: var(--c-ink); text-decoration: none; }
.programme__title a::after { content: ""; position: absolute; inset: 0; }
.programme__text { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); }
.programme__go {
	position: absolute; right: var(--s-4); bottom: var(--s-4);
	color: var(--c-accent-text); font-size: var(--t-md); line-height: 1;
	opacity: 0; transform: translateX(-.35rem);
	transition: opacity .2s ease, transform .2s ease;
}
.programme:hover .programme__go, .programme:focus-within .programme__go { opacity: 1; transform: none; }

/* -------------------------------------------------------------- journals - */

/*
 * Two journals, not a grid of many, so they get room: each card states what the
 * journal is and ends with its own domain, because the point of the section is
 * that iiitbd.org has never linked to either platform.
 */
.journals {
	display: grid; gap: var(--s-3);
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
	list-style: none; margin: 0; padding: 0;
}
.journal {
	display: flex; flex-direction: column; gap: .6rem;
	position: relative;
	background: var(--c-base); border: var(--edge); border-radius: var(--radius);
	padding: var(--s-4);
	box-shadow: var(--lift);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.journal:hover, .journal:focus-within { border-color: transparent; box-shadow: var(--lift-hi); transform: translateY(-3px); }
.journal__abbr {
	margin: 0; font-size: var(--t-xs); font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text);
}
.journal__title { margin: 0; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.015em; }
.journal__title a { color: var(--c-ink); text-decoration: none; }
.journal__title a:hover { color: var(--c-primary); }
.journal__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.journal__note { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); max-width: 46ch; }
.journal__facts { margin: .4rem 0 0; display: grid; gap: .35rem; font-size: var(--t-sm); }
.journal__facts > div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-2); align-items: baseline; }
.journal__facts dt {
	font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--c-muted);
}
.journal__facts dd { margin: 0; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.journal__go {
	margin: auto 0 0; padding-top: var(--s-2);
	border-top: 1px solid var(--c-line);
	font-weight: 600; color: var(--c-accent-text);
	transition: color .2s ease, border-color .2s ease;
}
.journal__go span { margin-inline-start: .3em; }
.journal:hover .journal__go { color: var(--c-accent); border-top-color: var(--c-accent); }

/*
 * Posts imported from the old site often have no featured image, and a grey box
 * with "BIIT" in it looked like a failed load. The fallback is now a navy panel
 * carrying the wordmark as a watermark — the same device as the research
 * numerals, so an absent photograph reads as part of the design rather than as
 * something missing.
 */
.thumb--placeholder {
	display: grid; place-items: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(150deg, var(--c-primary), var(--c-primary-dark));
	color: rgba(255, 255, 255, .22);
	font-weight: 700; letter-spacing: .18em; font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
	overflow: hidden;
}
.thumb--placeholder span { transform: translateX(.09em); }
/* Inside a ratio-bearing parent it must fill, not impose a second ratio. */
.card__media .thumb--placeholder { width: 100%; height: 100%; aspect-ratio: auto; }
.book__cover.thumb--placeholder { aspect-ratio: 3 / 4; }

/* ---------------------------------------------------------------- books - */

/*
 * A shelf inside a tab pane. Three across at desktop, because a pane is
 * narrower than the page and four covers there are thumbnails again.
 */
.books {
	display: grid; gap: var(--s-4) var(--s-3);
	grid-template-columns: repeat(2, 1fr);
	list-style: none; margin: 0 0 var(--s-3); padding: 0; align-items: start;
}
@media (min-width: 46rem) { .books { grid-template-columns: repeat(3, 1fr); } }
.book { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.book__link { display: block; text-decoration: none; color: inherit; }
.book__link::after { content: ""; position: absolute; inset: 0; }
.book__cover {
	display: block; width: 100%; height: clamp(11rem, 22vw, 15rem);
	object-fit: contain; object-position: center;
	background: var(--c-base);
	border: var(--edge); border-radius: var(--radius-sm);
	padding: .6rem;
	transition: border-color .2s ease, transform .2s ease;
}
.book:hover .book__cover { border-color: var(--c-primary); transform: translateY(-3px); }
.book__title {
	margin: .55rem 0 0; font-size: var(--t-sm); font-weight: 700; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 4.05em;
}
.book:hover .book__title { color: var(--c-primary); }
.book__author {
	margin: 0; font-size: var(--t-xs); line-height: 1.45; color: var(--c-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* What the four categories without a catalogue actually carry. */
.pubs__list { margin: 0 0 var(--s-3); padding-left: 1.15rem; display: grid; gap: .45rem; font-size: var(--t-sm); color: var(--c-muted); }
.pubs__list li::marker { color: var(--c-accent); }
.pubs__note { margin: 0 0 var(--s-3); font-size: var(--t-sm); color: var(--c-muted); }

/* --------------------------------------------------------------- chips - */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.chip {
	display: inline-block; text-decoration: none;
	font-size: var(--t-xs); font-weight: 600;
	padding: .25rem .6rem;
	background: var(--c-surface); color: var(--c-muted);
	border: 1px solid var(--c-line); border-radius: var(--radius-pill);
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ------------------------------------------------------- about/pillars - */

/*
 * Two columns: BIIT's own account of itself on the left, its vision and mission
 * as a panel on the right. Top-aligned rather than centred -- the two are read
 * as a pair, and centring left the panel floating against a taller column.
 */
.about__grid { display: grid; gap: var(--s-4); }
@media (min-width: 56rem) {
	.about__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start; gap: var(--s-5);
	}
}
/*
 * Set as a lead, not as a headline. It was running at 1.45rem over nine lines,
 * which is a wall of type rather than an opening paragraph; at the body scale
 * with a 58-character measure it reads at a glance.
 */
.about__body p { max-width: 58ch; }
.about__body > p:first-child {
	margin-top: 0;
	font-size: var(--t-md); line-height: 1.7; color: var(--c-muted);
}
.about__body .link-arrow { font-size: var(--t-sm); }

/* --- the tabs: an index beside a pane ------------------------------------- */

/*
 * The reference's shape, in BIIT's colours: a flat index on the left, the chosen
 * section on the right, and almost no chrome anywhere. What makes that page
 * quiet is what it leaves out -- the rows are not cards, the pane is not a
 * panel, and the only lines on it are dashed hairlines. Everything here that
 * used to have a border, a shadow or a gradient rim has had it taken away.
 *
 * The tabbing still cannot cost anything: every panel ships visible, and the
 * rail is only drawn once the script has taken over.
 */
/*
 * The component is one white block with a tinted rail down its left, which is
 * how the reference lays it out: the pane is the page's own white with no card
 * and no corners, and the rail's grey runs the full height of the block with a
 * solid line down its edge -- not a strip that stops where the rows do.
 */
.tabs { display: grid; gap: 0; background: var(--c-base); }
@media (min-width: 56rem) {
	.tabs {
		grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
		gap: 0; align-items: stretch;
	}
	/* The line runs the whole height of the block, not just past the rows. */
	.tabs__rail { border-inline-end: 1px solid var(--c-line); }
}
/*
 * The index, copied from the reference: full-width rows on a tint, divided by
 * dashed rules top and bottom, with a solid line down the rail's outer edge and
 * no box drawn around any of it. The selected row is white -- it steps out of
 * the strip rather than being highlighted inside it -- and carries a solid
 * square marker where the others carry an outlined one.
 */
.tabs__rail { list-style: none; margin: 0; padding: 0; display: block; background: var(--c-surface); }
.tabs__item { border-bottom: 1px dashed var(--c-line); }
.tabs__tab {
	width: 100%; display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
	align-items: center; text-align: start;
	padding: 1.15rem 1rem;
	background: none; border: 0;
	cursor: pointer; font: inherit;
	transition: background-color .15s ease;
}
.tabs__tab:hover { background: #e9f0fb; }
.tabs__num {
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem; border-radius: 10px;
	background: var(--c-base); border: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: var(--t-sm); font-weight: 700; font-variant-numeric: tabular-nums;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tabs__label { display: grid; gap: .15rem; min-width: 0; }
/*
 * One line each, clipped if they run long, exactly as the reference clips its
 * own titles. BIIT's are short enough that nothing is lost.
 */
.tabs__kicker,
.tabs__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs__kicker {
	font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--c-accent-text);
}
.tabs__title { font-size: var(--t-md); font-weight: 700; color: var(--c-ink); line-height: 1.3; }
/*
 * The marker on the selected row is #0a6e9e rather than the logo's cyan: the
 * numeral is small bold text, and white on #0094da measures 3.36:1 against the
 * 4.5 it needs, while on this it is 5.62.
 */
.tabs__tab.is-active { background: var(--c-base); }
.tabs__tab.is-active .tabs__num { background: var(--c-accent-text); border-color: var(--c-accent-text); color: #fff; }

/* No card: the pane is the block's own white, with room around the type. */
.tabs__panes { display: grid; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.tabs__pane { position: relative; }
/* The heading opens the pane and is ruled off from its body, as on the
 * reference -- which puts a label above its own heading because a chapter
 * number is real there. Here it would have been decoration. */
.tabs__heading {
	margin-top: 0;
	margin: 0 0 var(--s-3); padding-bottom: var(--s-3);
	border-bottom: 1px dashed var(--c-line);
	font-size: var(--t-xl); letter-spacing: -.02em;
}
.tabs__pane .prose p { max-width: 68ch; font-size: var(--t-sm); line-height: 1.7; color: var(--c-muted); }

.tabs__offices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tabs__offices li { padding-block: var(--s-3); }
.tabs__offices li + li { border-top: 1px dashed var(--c-line); }
.tabs__office-name { margin: 0 0 .4rem; font-size: var(--t-sm); }
.tabs__office-line { display: grid; grid-template-columns: 1rem 1fr; gap: .5rem; align-items: start; margin: 0 0 .3rem; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); }
.tabs__office-line a { color: var(--c-ink); }

/* Only once the script has taken over do the panes take turns. */
.tabs:not(.is-enhanced) .tabs__rail { display: none; }

/* --- the numbered steps inside a pane ------------------------------------- */

/*
 * Filled circles on a connecting line, as the reference draws its steps: the
 * marker is solid, the line runs from one to the next, and nothing carries a
 * shadow.
 */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pillar {
	position: relative;
	display: grid; grid-template-columns: 2.25rem 1fr;
	column-gap: var(--s-3); row-gap: .3rem; align-items: start;
	padding-block: var(--s-3);
}
.pillar:first-child { padding-block-start: 0; }
.pillar:last-child { padding-block-end: 0; }
.pillar:not(:last-child)::before {
	content: ""; position: absolute;
	left: 1.05rem; top: 2.9rem; bottom: -.2rem; width: 2px;
	background: rgba(0, 148, 218, .28);
	border-radius: 2px;
}
.pillar__num {
	grid-row: span 2;
	display: grid; place-items: center;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--c-accent-text); color: #fff;
	font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.pillar__title { margin: 0; font-size: var(--t-md); line-height: 1.3; color: var(--c-ink); letter-spacing: -.01em; }
.pillar__text { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); }

.btn--quiet {
	display: inline-flex; align-items: center; gap: .45rem;
	margin-top: var(--s-3);
	padding: .7rem 1.15rem;
	font-size: var(--t-sm); font-weight: 600; text-decoration: none;
	color: var(--c-ink); background: var(--c-base);
	border: var(--edge); border-radius: 8px;
	transition: border-color .2s ease;
}
.btn--quiet:hover { border-color: var(--c-primary); }
.btn--quiet span { color: var(--c-accent-text); }

/* -------------------------------------------------------------- offices - */

.offices { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.office {
	background: var(--c-base); border: var(--edge);
	border-radius: var(--radius); padding: var(--s-4);
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: var(--s-3);
	box-shadow: var(--lift);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.office::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: var(--c-accent);
}
.office:hover { border-color: transparent; box-shadow: var(--lift-hi); transform: translateY(-3px); }
.office__label { margin: 0 0 .2rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-text); }
.office__name { margin: 0; font-size: var(--t-md); }
.office__address { margin: 0; font-style: normal; display: grid; gap: .5rem; }
.office__person { color: var(--c-muted); }

/*
 * Contact details are a list of actions, not a paragraph. The labels that used
 * to prefix them -- PHONE, EMAIL -- sat inline with the value and pushed a
 * two-number line into an awkward wrap; an icon carries the same meaning in the
 * gutter and leaves the value whole. The block is pushed to the card's floor so
 * that three cards holding different amounts of detail still end level.
 */
.office__contact { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .45rem; }
.office__contact a {
	display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; align-items: start;
	color: var(--c-ink); text-decoration: none;
	font-size: var(--t-sm);
}
.office__contact a:hover span { text-decoration: underline; }
.office__row { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; align-items: start; font-size: var(--t-sm); line-height: 1.6; color: var(--c-muted); }
.icon { color: var(--c-accent-text); margin-top: .2em; flex: none; }

/* --------------------------------------------------------------- media - */

/*
 * Heading on the left, outlets in a ruled grid on the right -- the reference's
 * arrangement. The rules are the design: one hairline down the grid's leading
 * edge and one under each row but the last, so the logos sit in a table of air
 * rather than in sixteen boxes.
 *
 * The live site runs these as a moving marquee. A grid shows all sixteen at
 * once, holds still, and needs no script.
 */
.media__grid-wrap { display: grid; gap: var(--s-4); }
@media (min-width: 56rem) {
	.media__grid-wrap { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
	/* A single rule down the grid's leading edge, as on the reference. */
	.media__grid { border-inline-start: 1px solid var(--c-line); }
}
.media__intro .section__head { margin-bottom: 0; }
.media__grid {
	display: grid; grid-template-columns: repeat(2, 1fr);
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 34rem) { .media__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 56rem) { .media__grid { grid-template-columns: repeat(4, 1fr); } }
.media__cell {
	display: grid; place-items: center;
	min-height: 8.5rem; padding: var(--s-3);
	border-bottom: 1px solid var(--c-line);
}
/* The last row carries no rule, whichever row that turns out to be. */
.media__cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 34rem) { .media__cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-line); } .media__cell:nth-last-child(-n+3) { border-bottom: 0; } }
@media (min-width: 56rem) { .media__cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-line); } .media__cell:nth-last-child(-n+4) { border-bottom: 0; } }
.media__logo {
	display: block; width: auto; max-width: 100%;
	height: clamp(3.5rem, 6.5vw, 5.25rem);
	object-fit: contain;
	/*
	 * Grey at rest, colour on hover. Sixteen logos in sixteen palettes is a
	 * quilt; desaturated they read as one row, and it also settles the tiles
	 * some of these are drawn on -- Dhaka Post's teal, Rtv's blue -- which
	 * otherwise shout over the marks beside them.
	 */
	filter: grayscale(1);
	opacity: .62;
	transition: filter .25s ease, opacity .25s ease;
}
.media__cell:hover .media__logo,
.media__cell:focus-within .media__logo { filter: none; opacity: 1; }

/* --------------------------------------------------------------- logos - */

/*
 * One line of square marks, on the page's own white, with nothing drawn around
 * them and nothing done to them.
 *
 * The files are BIIT's, all 400x400, and they are shown as they are. Earlier
 * versions of this section trimmed, re-fitted and optically scaled them, and
 * each round broke something: a frame appeared round UIT, then BJIT and UIT
 * clipped where the trim had removed padding their designers drew. A square box
 * per mark, one size for all six, is the treatment those files were made for --
 * whatever margin a mark carries inside its square is its own.
 */
.logos {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: var(--s-4) var(--s-5);
	list-style: none; margin: 0; padding: 0;
}
.logos--dense { gap: var(--s-3); }
.logos__item { display: flex; }
.logos__link { display: flex; text-decoration: none; }
.logos__mark {
	display: block;
	width: clamp(4.5rem, 9vw, 8rem); height: clamp(4.5rem, 9vw, 8rem);
	object-fit: contain;
	transition: opacity .2s ease;
}
.logos__link:hover .logos__mark { opacity: .78; }

@media (max-width: 46rem) {
	.logos { justify-content: center; gap: var(--s-3) var(--s-4); }
	.logos__mark { width: 4rem; height: 4rem; }
}

/* ----------------------------------------------------------- page/entry - */

.page-header { padding-block: var(--s-5) var(--s-3); border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.page-header__title { margin: 0; }
.page-header__meta { margin: var(--s-2) 0 0; color: var(--c-muted); font-size: var(--t-sm); }

.entry { padding-block: var(--s-5); }
.entry__header { margin-bottom: var(--s-4); }
.entry__title { margin: 0 0 var(--s-2); }
.entry__thumb { margin: 0 0 var(--s-4); }
.entry__thumb img { width: 100%; border-radius: var(--radius); }
.entry__footer { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: var(--t-sm); color: var(--c-muted); }

.meta { margin: 0; font-size: var(--t-sm); color: var(--c-muted); }
.meta a { color: inherit; }
.meta__sep { margin-inline: .25rem; }

/* The readable column for editor content. */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-4); }
.prose h3, .prose h4 { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li + li { margin-top: .3rem; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin-inline: 0; padding-inline-start: var(--s-3);
	border-inline-start: 3px solid var(--c-primary);
	color: var(--c-muted); font-style: italic;
}
/*
 * The table stays a table. Making it display:block to get overflow-x was what
 * cut every table short of its own last row -- see biit_wrap_tables(). The
 * scrolling lives on the wrapper instead, which is the only place overflow and
 * table layout do not fight.
 */
.table-scroll { overflow-x: auto; margin: 0 0 var(--s-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--c-line); padding: .5rem .6rem; text-align: start; vertical-align: top; }
.prose th { background: var(--c-surface); font-weight: 700; }
.prose code { background: var(--c-surface); padding: .1em .3em; border-radius: 2px; font-size: .9em; }
.prose pre { background: var(--c-surface); padding: var(--s-3); border-radius: var(--radius); overflow-x: auto; }
.prose .alignwide { max-width: var(--wrap); }
.prose .alignfull { max-width: none; }

/* Wide content must scroll inside itself, never the page. */
.entry__content > figure.wp-block-table,
.entry__content > .wp-block-embed { overflow-x: auto; }

/* --------------------------------------------------------------- lists - */

.post-list { display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.post-item { display: grid; gap: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
@media (min-width: 44rem) { .post-item--media { grid-template-columns: 15rem 1fr; align-items: start; } }
.post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-item__title { margin: 0 0 .3rem; font-size: var(--t-xl); }
.post-item__title a { text-decoration: none; color: var(--c-ink); }
.post-item__title a:hover { color: var(--c-primary); }
/* A listing is read, not scanned: hold it to the same measure as body copy. */
.post-item__body { max-width: var(--measure); }
.post-item__excerpt { margin: .4rem 0 0; color: var(--c-muted); }
.post-item__thumb img { width: 100%; border-radius: var(--radius); display: block; }

/* ---------------------------------------------------------- pagination - */

.pagination { margin-top: var(--s-5); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 2.4rem; height: 2.4rem; padding-inline: .6rem;
	text-decoration: none; font-size: var(--t-sm); font-weight: 600;
	border: 1px solid var(--c-line); border-radius: var(--radius);
	color: var(--c-ink);
}
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-dark); }
.pagination .dots { border-color: transparent; }

.post-nav { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
@media (min-width: 44rem) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.post-nav a:hover { border-color: var(--c-primary); }
.post-nav__label { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: .2rem; }
.post-nav__title { font-weight: 600; color: var(--c-ink); }
.post-nav--next { text-align: end; }

/* ------------------------------------------------------------- comments - */

.comments { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.comments__title { margin-bottom: var(--s-3); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-inline-start: var(--s-3); border-inline-start: 2px solid var(--c-line); margin-top: var(--s-3); }
.comment-list li { margin-bottom: var(--s-3); }
.comment-body { background: var(--c-surface); border-radius: var(--radius); padding: var(--s-3); }
.comment-meta { font-size: var(--t-sm); color: var(--c-muted); margin-bottom: .4rem; }
.comment-author .fn { font-weight: 700; color: var(--c-ink); font-style: normal; }
.comment-form p { margin-bottom: var(--s-2); }
.comment-respond { margin-top: var(--s-4); }

/* ----------------------------------------------------------------- 404 - */

.notfound { padding-block: var(--s-6); text-align: center; }
.notfound__code { font-size: var(--t-3xl); font-weight: 700; color: var(--c-primary); margin: 0; }
.notfound__body { max-width: 34rem; margin-inline: auto; }
.notfound .search-form { margin-inline: auto; }

/* --------------------------------------------------------------- footer - */

/*
 * A footer to navigate from, not to sign off with: the brand and the head
 * office on the left, then a column for each branch of the site's own
 * navigation. The columns are built from the primary menu, so what is in the
 * header is in the footer.
 */
.site-footer { background: var(--c-primary-dark); color: var(--c-on-dark-soft); margin-top: 0; border-top: 4px solid var(--c-accent); }
.site-footer__grid {
	display: grid; gap: var(--s-4); padding-block: var(--s-5) var(--s-4);
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
@media (min-width: 62rem) {
	/* Equal columns across the full width, wrapping when the menu grows. */
	.site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--s-5) var(--s-4); }
}

/*
 * The identity row: the mark and the institute's name on one side, the head
 * office on the other, ruled off from the navigation above it.
 */
/*
 * Centred: the mark, the institute's name and the head office read as one
 * block closing the footer rather than as two things pushed to opposite edges.
 */
.site-footer__identity {
	display: grid; justify-items: center; gap: .55rem;
	padding-block: var(--s-4);
	border-top: 1px solid rgba(255, 255, 255, .14);
	text-align: center;
}
/* The contact block is a separate thought from the name; the name's own line
 * spacing is too tight to carry that break on its own. */
.site-footer__identity .site-footer__address { margin-top: var(--s-3); }
.site-footer__identity .site-footer__blurb { max-width: none; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: var(--c-on-dark); }
.site-footer .brand__mark { background: var(--c-on-dark); color: var(--c-primary-dark); }
/*
 * The short name, set large, standing in for the mark. Tight tracking and the
 * heavy weight give it the density a logo would have had; the repeated "I"s
 * need the extra letter-spacing or they close up into a single stroke.
 */
.site-footer__wordmark {
	font-size: var(--t-2xl); font-weight: 800; line-height: 1;
	letter-spacing: .06em; color: var(--c-on-dark);
}
.site-footer__wordmark:hover { text-decoration: none; color: var(--c-on-dark-accent); }
.site-footer__blurb { margin: 0; font-size: var(--t-sm); max-width: 34ch; color: var(--c-on-dark-soft); }
/* Three lines, in the order someone needs them: where, then call, then write. */
.site-footer__address {
	display: grid; gap: .5rem; margin: 0; font-style: normal;
	font-size: var(--t-sm); line-height: 1.6;
}
/* Both numbers share their line; the gap is what separates them. */
.site-footer__line { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem var(--s-3); }
.site-footer__address a { color: var(--c-on-dark); }
.site-footer__title {
	font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em;
	color: var(--c-on-dark-accent); margin: 0 0 var(--s-2);
}
.site-footer__menu { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.site-footer__menu li + li { margin-top: .45rem; }
.site-footer__menu a { color: var(--c-on-dark-soft); }
.site-footer__menu a:hover { color: var(--c-on-dark); }

.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--t-xs); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between; align-items: center; padding-block: var(--s-3); }
.site-footer__bar p { margin: 0; }
.site-footer__legal ul,
ul.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { color: var(--c-on-dark-soft); }
.site-footer__legal a:hover { color: var(--c-on-dark); }

/* --------------------------------------------------- legacy page builder - */

/*
 * 109 pages are still WPBakery-built. The page builder ships its own grid CSS,
 * so this only stops its full-width rows escaping the layout and keeps its
 * images responsive. Removed once those pages are migrated.
 */
/*
 * WPBakery's grid is a padded-column/negative-margin gutter system: every
 * column gets 15px of inner padding and the row pulls 15px back off each edge
 * to cancel it. This file used to zero the row margin instead, which left the
 * padding uncancelled — so on all 109 builder pages the body text sat 15px
 * inside its own heading. Zeroing the column padding fixes that alignment but
 * closes the gutter between side-by-side columns, which 10 pages rely on
 * (/research-journal/ among them). So keep the plugin's own arrangement: the
 * row's 15px is comfortably inside .wrap's 20px, so nothing escapes the layout.
 */
.entry__content .vc_row { margin-inline: -15px; }
.entry__content img { height: auto; }

/* ------------------------------------------------------------- print/rm - */

/* Progressive: JS adds .reveal, so without JS everything is simply visible. */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }

/*
 * animation-iteration-count is the load-bearing line, not the duration.
 * Shortening an infinite animation to .01ms does not stop it -- it runs it
 * thousands of times a second, which for the hero's drifting cards meant a
 * flicker rather than stillness, in front of exactly the people who asked for
 * less motion. Caught by screenshotting the hero twice under emulated
 * prefers-reduced-motion and finding 13,000 pixels different between frames.
 */
@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.topbar, .site-header, .site-footer, .skip-link, .search-form, .pagination { display: none !important; }
	body { color: #000; }
}

/* ------------------------------------------------------------- people --- */

/*
 * The founders and the executive committee, following the card the driver
 * chose: a circular portrait over a centred column of name, affiliation and
 * one tinted badge.
 *
 * The reference also carries a row of Email and Twitter buttons. Those are not
 * built, because BIIT holds no address or account for any of these sixteen
 * people -- the old theme stored the same empty placeholder on every one. A
 * button that goes nowhere is worse than no button.
 */
.people {
	list-style: none; margin: var(--s-4) 0; padding: 0;
	display: grid; gap: var(--s-4);
	/*
	 * 18rem, so a full-width row holds three rather than four. At four the
	 * cards fall to 243px and these roles -- "Co-Founder, First DG of Islamic
	 * Foundation Bangladesh & Founding Vice-Chancellor..." -- wrap to seven
	 * lines. Two on a tablet, one on a phone.
	 */
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.person {
	display: flex; flex-direction: column; align-items: center;
	gap: var(--s-2);
	padding: var(--s-4) var(--s-3);
	text-align: center;
	background: var(--c-base);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: box-shadow .16s ease, transform .16s ease;
}
.person:hover { box-shadow: var(--lift); transform: translateY(-2px); }

/* The circle is the reference's whole signature; everything else is type. */
.person__media {
	width: 8.5rem; height: 8.5rem;
	margin-bottom: var(--s-2);
	border-radius: 50%; overflow: hidden;
	background: var(--c-surface);
	display: grid; place-items: center;
	flex: none;
}
.person__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Only reached when BIIT has supplied no portrait. */
.person__initials {
	font-size: var(--t-xl); font-weight: 700; letter-spacing: .02em;
	color: var(--c-accent-text);
}

.person__name {
	margin: 0;
	font-size: var(--t-lg); line-height: 1.2; letter-spacing: -.02em;
	color: var(--c-ink);
}
/* Where they are from. Long here -- four lines is normal, not an accident. */
.person__role {
	margin: 0; max-width: 26ch;
	font-size: var(--t-sm); line-height: 1.55;
	color: var(--c-muted);
}
/*
 * The post they hold at BIIT. Tinted rather than outlined, as the reference
 * has it, and the one place on the card carrying the brand colour.
 */
.person__badge {
	/*
	 * Sits under the affiliation rather than at the card's foot. The builder
	 * puts each person in its own float-based column, so the cards never
	 * stretch to a shared height and margin-block-start:auto resolves to
	 * nothing -- measured, it moved the badges by 0px. Where a row's roles run
	 * to different lengths the badges sit a few pixels apart, which is what
	 * variable-length content does.
	 */
	margin: var(--s-3) 0 0;
	padding: .45rem .9rem;
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-accent-text);
	font-size: var(--t-sm); font-weight: 600; line-height: 1.35;
}

/*
 * Pages that carry their own column grid, from BIIT's builder content. The
 * prose measure is for a single column of text; applied to a three-column row
 * it squeezed the founders into half the window. See
 * biit_content_is_multicolumn().
 */
.prose--wide { max-width: none; }
/* A full-width row on such a page is still prose, and still wants a measure. */
.prose--wide .vc_col-sm-12 .wpb_text_column { max-width: var(--measure); }

/*
 * A people list or a post listing makes its own grid, so neither must be
 * handed a fraction of the row to do it in. If one of those shortcodes is
 * dropped into a builder column -- which is how the founders ended up in a
 * single file down one third of the page -- the column gets its full width
 * back. Guarded, because :has() is what makes it possible to ask.
 */
@supports selector(:has(*)) {
	.entry__content .wpb_column:has(.people),
	.entry__content .wpb_column:has(.cards),
	.entry__content .vc_column_container:has(.people),
	.entry__content .vc_column_container:has(.cards) { width: 100%; float: none; }
}

/*
 * WPBakery's post grid hangs 30px past the column holding it: the row carries a
 * -30px right margin against 30px of padding on each card. On a phone that put
 * its right edge 10px beyond the window and gave the whole page a horizontal
 * scroll.
 *
 * The overhang is the empty half of the gutter -- the cards themselves stop
 * well inside it -- so it is clipped rather than unpicked. Overriding the
 * margin from here did not hold: js_composer's stylesheet is enqueued after
 * this one, and the rule went on being ignored even at higher specificity.
 * `clip` rather than `hidden` because it establishes no scroll container.
 */
.entry__content .vc_grid-container { overflow-x: clip; }
}

/*
 * WPBakery's gallery hangs its arrows 50px outside the slider. Once the slider
 * is close to the width of the page there is nowhere for them to go, and they
 * pushed 26px past a 1024px window. They cannot simply be clipped -- that is
 * the gallery's only navigation -- so they sit on the slider's edges instead,
 * which is where a slider's arrows normally are.
 */
.entry__content .wpb_flexslider .flex-direction-nav .flex-prev { left: 0; }
.entry__content .wpb_flexslider .flex-direction-nav .flex-next { right: 0; }

/* ----------------------------------------------------------- journals --- */

/*
 * The four journals on /research-journal/. BIIT had written each one
 * differently -- two as plain lists, one as bordered tables of underlined
 * links, one as bold names with italic affiliations -- so the page read as
 * four things pasted together. One card, one treatment; every name, link and
 * affiliation is still BIIT's, in their order.
 */
.journals {
	list-style: none; margin: var(--s-4) 0 0; padding: 0;
	display: grid; gap: var(--s-4);
	grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
.journal {
	display: flex; flex-direction: column;
	padding: var(--s-4) var(--s-3);
	background: var(--c-base);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}
/*
 * A fixed height rather than a fixed width: the four covers have different
 * proportions, and matching their heights is what lines the titles up.
 */
/* Scoped to the card: .entry__content img sets height:auto and outranks a
 * lone class, which left the covers at their four different natural heights. */
.journal .journal__cover {
	display: block; margin: 0 auto var(--s-3);
	width: auto; height: 15rem; object-fit: contain;
}
.journal__name {
	margin: 0 0 var(--s-3); text-align: center;
	font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.015em;
}
.journal__board h4 {
	margin: var(--s-3) 0 .35rem;
	font-size: var(--t-sm); font-weight: 700; color: var(--c-primary);
}
.journal__board > *:first-child { margin-top: 0; }
.journal__board ul {
	margin: 0; padding-inline-start: 1.15rem;
	font-size: var(--t-sm); line-height: 1.6;
}
.journal__board li + li { margin-top: .3rem; }
.journal__board a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.journal__board a:hover { color: var(--c-primary); }
/* The board names carry their own bold in BIIT's markup; one weight is enough. */
.journal__board li strong { font-weight: 500; }

/*
 * The maintainer's credit in the bottom bar. Sized to sit level with the
 * copyright beside it rather than to be noticed: the mark reads at 18px, and
 * the word before it carries the meaning.
 */
.site-footer__maintainer {
	/*
	 * Baselines, not boxes. The mark's artwork runs from its ascenders down to
	 * its baseline and has no descender, so its bottom edge *is* its baseline
	 * -- while the text's box also contains the descender of "y" and the line's
	 * leading. Centring the two boxes therefore sat the mark 2.8px low, which is
	 * exactly far enough to look wrong. Aligning on the baseline puts the
	 * wordmark on the same line as the words.
	 */
	display: inline-flex; align-items: baseline; gap: .45rem;
	margin: 0; font-size: var(--t-xs); color: var(--c-on-dark-soft);
}
.site-footer__maintainer a { display: inline-flex; align-items: center; }
.site-footer__maintainer img {
	/*
	 * The file is trimmed to its ink, so this height is the mark itself and not
	 * a box with empty space in it.
	 *
	 * Full opacity: at .85 the thin strokes of this wordmark lost enough
	 * contrast against the navy to read lighter and smaller than the words
	 * beside it. The mark is small; it does not also need dimming.
	 *
	 * 1rem, chosen by measurement rather than eye: this mark's x-height is
	 * 53.2% of its box, and at 1rem that puts it 22% above the 6.97px x-height
	 * of the words beside it -- the small allowance a wordmark needs to look
	 * the same size as text. At 1.15rem it was 40% larger and looked it.
	 */
	display: block; width: auto; height: 1rem;
	opacity: 1;
}
.site-footer__maintainer a:hover img { opacity: .8; }
