/* SIS Faculty & Staff — front-end styles.
   Ported unchanged from the werkstatt-child theme (bachelor-of-science.css,
   management.css, staff-member.css) so the plugin does not depend on the theme.
   Plugin-only additions are at the end of the file. */

/* ===== bachelor-of-science.css ===== */
/* Bachelor of Science page — scoped to the WPBakery row carrying el_class "bsc". */

.bsc {
	--bsc-ink: #10231f;
	--bsc-muted: #55665f;
	--bsc-forest: #0f3b3a;
	--bsc-forest-2: #14504d;
	--bsc-teal: #19636b;
	--bsc-leaf: #c9e265;
	--bsc-sun: #f4b63f;
	--bsc-cream: #f5f2ea;
	--bsc-paper: #fbfaf6;
	--bsc-line: #dcd8cc;
	--bsc-white: #fff;
	--bsc-radius: 18px;
	--bsc-display: "Bai Jamjuree", system-ui, sans-serif;
	--bsc-body: "Inter", "Bai Jamjuree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bsc-nav-h: 60px;

	background: var(--bsc-cream);
	color: var(--bsc-ink);
	font-family: var(--bsc-body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: clip;
	margin: 0 !important;
	padding: 0 !important;
}

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

/* Neutralise WPBakery / Werkstatt spacing around our blocks. */
.bsc > .columns,
.bsc .vc_column_container > .vc_column-inner,
.bsc .wpb_wrapper { padding: 0 !important; margin: 0 !important; }
.bsc .wpb_content_element.bsc-block { margin: 0 !important; padding: 0; }

/* Element resets carry element-only specificity via :where() so component
   classes always win, while still loading after the theme stylesheet. */
:where(.bsc) h1, :where(.bsc) h2, :where(.bsc) h3, :where(.bsc) h4, :where(.bsc) p,
:where(.bsc) ul, :where(.bsc) ol, :where(.bsc) dl, :where(.bsc) dd, :where(.bsc) dt {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
	font-weight: inherit;
}
:where(.bsc) ul, :where(.bsc) ol { list-style: none; }
:where(.bsc) li { margin: 0; font-size: inherit; line-height: inherit; }
body :where(.bsc) a { font-size: inherit; line-height: inherit; }
:where(.bsc) a { color: inherit; text-decoration: none; }
:where(.bsc) p {
	color: inherit;
	font-size: inherit;
	/* The theme sets p { line-height: 1.15em !important }. */
	line-height: inherit !important;
}
/* The theme draws an animated underline on ".wpb_text_column a:after";
   none of the links in this design want it. */
.bsc .wpb_text_column a::after { content: none; }

/* wpautop may leave stray empty paragraphs / breaks between blocks. */
.bsc .bsc-block > .wpb_wrapper > p:empty,
.bsc .bsc-block > .wpb_wrapper > br { display: none; }

.bsc-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

/* The theme forces h1–h5 { font-family: "Sis-Bold"; font-weight: 400 !important }. */
.bsc .bsc-h2 {
	font-family: var(--bsc-display);
	font-weight: 700 !important;
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.1 !important;
	color: var(--bsc-forest);
	letter-spacing: -0.01em;
}

.bsc-kicker {
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bsc-teal);
	margin-bottom: 14px;
}

.bsc-section { padding-block: clamp(64px, 9vw, 120px); }
.bsc-section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Buttons ---------- */

.bsc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bsc .bsc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.bsc .bsc-btn:hover { transform: translateY(-2px); }
.bsc .bsc-btn:focus-visible,
.bsc a:focus-visible,
.bsc summary:focus-visible { outline: 3px solid var(--bsc-sun); outline-offset: 3px; }

.bsc .bsc-btn--primary { background: var(--bsc-leaf); color: var(--bsc-forest); }
.bsc .bsc-btn--primary:hover { background: #d8ee7d; color: var(--bsc-forest); }
.bsc .bsc-btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--bsc-white); }
.bsc .bsc-btn--ghost:hover { border-color: var(--bsc-white); background: rgba(255, 255, 255, .08); color: var(--bsc-white); }
.bsc .bsc-btn--light { background: var(--bsc-white); color: var(--bsc-forest); }
.bsc .bsc-btn--light:hover { background: var(--bsc-cream); color: var(--bsc-forest); }
.bsc-btn__arrow { transition: transform .2s; }
.bsc-btn:hover .bsc-btn__arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */

.bsc-hero {
	position: relative;
	background:
		radial-gradient(900px 480px at 88% -10%, rgba(201, 226, 101, .22), transparent 60%),
		radial-gradient(700px 520px at -10% 110%, rgba(25, 99, 107, .55), transparent 60%),
		var(--bsc-forest);
	color: var(--bsc-white);
	padding-block: clamp(72px, 10vw, 136px) clamp(64px, 8vw, 104px);
	isolation: isolate;
}
/* Contour-line texture evoking the land. The rings ripple outward by
   animating the gradient's start offset over one ring period (24px), so the
   loop is seamless; browsers without @property just show static rings. */
@property --bsc-ring {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}
.bsc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .12;
	background-image: repeating-radial-gradient(
		circle at 78% 30%,
		transparent var(--bsc-ring),
		rgba(255, 255, 255, .6) calc(var(--bsc-ring) + 1px),
		transparent calc(var(--bsc-ring) + 2px),
		transparent calc(var(--bsc-ring) + 24px)
	);
	mask-image: linear-gradient(to left, #000 10%, transparent 75%);
	-webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%);
	animation: bsc-ripple 4s linear infinite;
}
/* Paused by the script while the hero is off screen. */
.bsc-hero.is-offscreen::before { animation-play-state: paused; }

@keyframes bsc-ripple {
	to { --bsc-ring: 24px; }
}

.bsc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: end;
}


.bsc .bsc-hero__title {
	font-family: var(--bsc-display);
	font-weight: 700 !important;
	font-size: clamp(36px, 5.4vw, 68px);
	line-height: 1.04 !important;
	letter-spacing: -0.02em;
	color: var(--bsc-white);
}
.bsc-hero__title em {
	font-style: normal;
	color: var(--bsc-leaf);
}

.bsc-hero .bsc-actions { margin-top: 40px; }

.bsc-hero__card {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--bsc-radius);
	padding: 28px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.bsc-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: rgba(255, 255, 255, .14);
	border-radius: 12px;
	overflow: hidden;
}
.bsc-fact {
	background: var(--bsc-forest);
	padding: 22px 24px;
}
.bsc .bsc-fact__label {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .65);
	margin-bottom: 6px;
}
.bsc .bsc-fact__value {
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 44px;
	line-height: 1;
	color: var(--bsc-white);
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.bsc-fact__value small {
	font-family: var(--bsc-body);
	font-weight: 400;
	font-size: 13px;
	color: rgba(255, 255, 255, .6);
}

/* ---------- Sub navigation ---------- */

/* The theme sets #wrapper [role="main"] { overflow: hidden }, which turns it into
   a scroll container and stops position: sticky from working. "clip" still
   clips overflow but creates no scroll container. This stylesheet only loads
   on this page, so other pages keep the theme's value. */
#wrapper [role="main"] { overflow: hidden; overflow: clip; }

/* Sticky on the WPBakery wrapper: its parent is the column holding every block. */
.bsc .bsc-block--nav {
	position: sticky;
	top: 0;
	z-index: 20;
}
.admin-bar .bsc .bsc-block--nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .bsc .bsc-block--nav { top: 0; } }

.bsc-subnav {
	background: rgba(251, 250, 246, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--bsc-line);
}
.bsc-subnav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--bsc-nav-h);
}
.bsc-subnav__list {
	position: relative;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: -8px !important;
}
.bsc-subnav__list::-webkit-scrollbar { display: none; }
.bsc .bsc-subnav__list a {
	display: block;
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 999px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--bsc-muted);
	transition: color .2s, background-color .2s;
}
.bsc .bsc-subnav__list a:hover { color: var(--bsc-forest); background: rgba(15, 59, 58, .06); }
.bsc .bsc-subnav__list a.is-active {
	background: var(--bsc-forest);
	color: var(--bsc-white);
}

/* Sliding pill: once the script runs, the active background is a single
   pseudo-element that glides between links (position/size set via --pill-*). */
.bsc-subnav__list li { position: relative; z-index: 1; }
.bsc-subnav__list.has-pill::before {
	content: "";
	position: absolute;
	top: var(--pill-y, 0);
	left: 0;
	width: var(--pill-w, 0);
	height: var(--pill-h, 0);
	border-radius: 999px;
	background: var(--bsc-forest);
	transform: translateX(var(--pill-x, 0));
	opacity: 0;
	transition: transform .45s cubic-bezier(.3, .8, .25, 1), width .45s cubic-bezier(.3, .8, .25, 1), opacity .25s ease;
}
.bsc-subnav__list.has-pill.pill-on::before { opacity: 1; }
.bsc-subnav__list.pill-instant::before { transition: opacity .25s ease; }
.bsc .bsc-subnav__list.has-pill a.is-active { background: transparent; transition: color .3s ease .08s; }
.bsc .bsc-subnav__end { flex-shrink: 0; }
.bsc .bsc-subnav__cta {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--bsc-leaf);
	color: var(--bsc-forest);
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 15px;
}
.bsc .bsc-subnav__cta:hover { background: #d8ee7d; color: var(--bsc-forest); }

.bsc section[id] { scroll-margin-top: calc(var(--bsc-nav-h) + 16px); }

/* ---------- Philosophy ---------- */

.bsc-philosophy { background: var(--bsc-paper); }
.bsc-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
	gap: clamp(32px, 6vw, 96px);
}
.bsc-split__head { position: sticky; top: calc(var(--bsc-nav-h) + 32px); align-self: start; }

.bsc .bsc-quote {
	font-family: var(--bsc-display);
	font-weight: 500;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.35 !important;
	color: var(--bsc-forest);
	padding-left: 24px !important;
	border-left: 4px solid var(--bsc-leaf);
}


/* ---------- Objectives ---------- */

#wrapper .bsc .bsc-cards {
	counter-reset: bsc-card;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
}
/* "#wrapper .bsc" beats the theme's "#wrapper ol li" / "#wrapper ol li:before" list styling. */
#wrapper .bsc .bsc-card {
	counter-increment: bsc-card;
	margin: 0;
	grid-column: span 2;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 28px 32px;
	border-radius: var(--bsc-radius);
	background: var(--bsc-white);
	border: 1px solid var(--bsc-line);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* 3 + 2 layout: the last two cards share the second row. */
#wrapper .bsc .bsc-card:nth-child(n + 4) { grid-column: span 3; }
#wrapper .bsc .bsc-card::before {
	content: counter(bsc-card, decimal-leading-zero);
	counter-increment: none;
	border: 0;
	line-height: 1;
	text-align: center;
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 15px;
	color: var(--bsc-teal);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(201, 226, 101, .35);
	margin-bottom: 8px;
}
.bsc-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 18px 40px -18px rgba(15, 59, 58, .35);
}
.bsc .bsc-card__title {
	font-family: var(--bsc-display);
	font-weight: 700 !important;
	font-size: 21px;
	line-height: 1.2 !important;
	color: var(--bsc-forest);
}
#wrapper .bsc .bsc-card { color: var(--bsc-ink); font-size: 17px; }
.bsc-card p { color: inherit; font-size: inherit; }

/* ---------- Degree ---------- */

.bsc-degree { background: var(--bsc-paper); }
.bsc-degree__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.bsc-degree__card {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--bsc-radius);
	background: var(--bsc-white);
	border: 1px solid var(--bsc-line);
}
.bsc-degree__card--th { background: var(--bsc-forest); color: var(--bsc-white); border-color: var(--bsc-forest); }
.bsc-degree__card dt {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bsc-muted);
	margin-bottom: 6px;
}
.bsc-degree__card--th dt { color: rgba(255, 255, 255, .6); }
.bsc-degree__card dd {
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: clamp(19px, 1.8vw, 23px);
	line-height: 1.35;
	color: var(--bsc-forest);
}
.bsc-degree__card--th dd { color: var(--bsc-white); }
.bsc-degree__card dd + dt {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--bsc-line);
}
.bsc-degree__card--th dd + dt { border-top-color: rgba(255, 255, 255, .16); }
.bsc .bsc-degree__abbr { font-size: 17px; font-weight: 500; }

/* ---------- Course structure ---------- */

.bsc-structure__head {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.bsc .bsc-total { text-align: right; }
.bsc .bsc-total__value {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 6px !important;
}
.bsc-total__value small { font-size: 15px; color: var(--bsc-muted); }
.bsc-total__num {
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: clamp(56px, 7vw, 88px);
	line-height: .9;
	color: var(--bsc-forest);
	font-variant-numeric: tabular-nums;
}
.bsc-total__label { font-size: 15px; line-height: 1.35; color: var(--bsc-muted); transition: color .25s ease; }

/* While a group is highlighted the total shows that group's credits,
   tinted with the group's colour. */
.bsc-total__num { transition: color .25s ease; }
.bsc-total-partial .bsc-total__label { color: var(--bsc-forest); font-weight: 600; }
.bsc-structure[data-bsc-active="ge"] .bsc-total__num { color: var(--bsc-teal); }
.bsc-structure[data-bsc-active="fe"] .bsc-total__num { color: #c98a0e; }

.bsc .bsc-structure__sub {
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--bsc-forest);
	margin-bottom: 16px !important;
}

.bsc-meter {
	display: flex;
	gap: 4px;
	height: 56px;
	margin-bottom: 32px;
}
/* ".bsc" prefix: beats the theme's ".wpb_text_column a { display: inline-block }". */
.bsc .bsc-meter__seg {
	position: relative;
	flex: 1 1 0;
	min-width: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	padding-inline: 14px;
	font-family: var(--bsc-display);
	font-size: 17px;
	transform-origin: left;
	cursor: pointer;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1), translate .25s ease, box-shadow .25s ease, filter .25s ease;
}
.bsc-meter__seg b { font-weight: 700; }
.bsc .bsc-meter__seg--ge,
.bsc .bsc-meter__seg--sr { color: var(--bsc-white); }
.bsc .bsc-meter__seg--fe { color: var(--bsc-forest); }
.bsc .bsc-meter__seg:last-child { justify-content: center; padding-inline: 0; }
.bsc .bsc-meter__seg--ge { flex-grow: 30; background: var(--bsc-teal); color: var(--bsc-white); }
.bsc .bsc-meter__seg--sr { flex-grow: 84; background: var(--bsc-forest); color: var(--bsc-white); }
.bsc .bsc-meter__seg--fe { flex-grow: 6; background: var(--bsc-sun); color: var(--bsc-forest); }

/* Group name shown above a segment while it (or its group) is highlighted. */
.bsc .wpb_text_column .bsc-meter__seg::after {
	content: attr(data-bsc-label);
	display: block;
	position: absolute;
	top: auto;
	left: 50%;
	bottom: calc(100% + 10px);
	width: auto;
	border: 0;
	transform: none;
	translate: -50% 4px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--bsc-ink);
	color: var(--bsc-white);
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	z-index: 3;
	transition: opacity .2s ease, translate .2s ease;
}
/* End segments anchor their tooltip to the outer edge so it never leaves the page. */
.bsc .wpb_text_column .bsc-meter__seg:first-child::after { left: 0; translate: 0 4px; }
.bsc .wpb_text_column .bsc-meter__seg:last-child::after { left: auto; right: 0; translate: 0 4px; }

/* ---- Meter ↔ group sync: highlight one pair, fade the rest ---- */
.bsc-sync-on .bsc-meter__seg { filter: saturate(.35) opacity(.4); }
.bsc-sync-on .bsc-meter__seg.is-hl {
	filter: none;
	translate: 0 -4px;
	box-shadow: 0 12px 24px -10px rgba(15, 59, 58, .55);
}
.bsc .wpb_text_column .bsc-meter__seg.is-hl::after { opacity: 1; translate: -50% 0; }
.bsc .wpb_text_column .bsc-meter__seg:first-child.is-hl::after,
.bsc .wpb_text_column .bsc-meter__seg:last-child.is-hl::after { translate: 0 0; }

.bsc-group {
	transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}
.bsc-sync-on .bsc-group { filter: saturate(.4) opacity(.55); }
.bsc-sync-on .bsc-group.is-hl {
	filter: none;
	translate: 0 -2px;
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -20px rgba(15, 59, 58, .45);
}
.bsc-group.is-flash { animation: bsc-flash 1.2s ease; }
@keyframes bsc-flash {
	0%, 100% { box-shadow: 0 0 0 0 transparent; }
	25% { box-shadow: 0 0 0 4px var(--accent); }
}

.bsc-groups { display: grid; gap: 16px; }

.bsc-group {
	--accent: var(--bsc-teal);
	border-radius: var(--bsc-radius);
	background: var(--bsc-white);
	border: 1px solid var(--bsc-line);
	overflow: hidden;
}
.bsc-group--sr { --accent: var(--bsc-forest); }
.bsc-group--fe { --accent: var(--bsc-sun); }

.bsc-group__summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	cursor: pointer;
	list-style: none;
}
.bsc-group__summary::-webkit-details-marker { display: none; }
.bsc-group__summary::after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--bsc-muted);
	border-bottom: 2px solid var(--bsc-muted);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform .25s;
}
.bsc-group__summary--static { cursor: default; }
.bsc-group__summary--static::after { visibility: hidden; }
.bsc-group[open] > .bsc-group__summary::after { transform: rotate(225deg) translate(-3px, -3px); }

.bsc-group__no {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bsc-display);
	font-weight: 700;
	background: var(--accent);
	color: var(--bsc-white);
}
.bsc-group--fe .bsc-group__no { color: var(--bsc-forest); }
.bsc-group__name {
	flex: 1;
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: clamp(18px, 1.8vw, 22px);
	color: var(--bsc-forest);
}
.bsc-group__credits {
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--bsc-forest);
	white-space: nowrap;
	text-align: right;
}
.bsc-group__credits small {
	display: block;
	font-family: var(--bsc-body);
	font-weight: 400;
	font-size: 12px;
	color: var(--bsc-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.bsc-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	padding: 0 24px 24px !important;
}
.bsc-item {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 14px 16px 18px;
	border-radius: 12px;
	background: var(--bsc-cream);
	font-size: 15px;
	overflow: hidden;
}
/* Share of the group's credits, drawn as a bar along the bottom edge.
   --share is set by the script from data-bsc-credits. */
.bsc-item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: var(--share, 0%);
	background: var(--accent);
	border-radius: 0 4px 4px 0;
	transform-origin: left;
	transition: transform 1s cubic-bezier(.2, .7, .2, 1) .15s;
}
.bsc-item__name { font-weight: 500; color: var(--bsc-ink); }
.bsc-item__credits {
	flex-shrink: 0;
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--bsc-forest);
}
.bsc-item__credits small {
	font-family: var(--bsc-body);
	font-weight: 400;
	font-size: 12px;
	color: var(--bsc-muted);
}

/* ---------- Call to action ---------- */

.bsc-cta { padding-block: 0 clamp(64px, 9vw, 120px); }
.bsc-cta__inner { display: flex; justify-content: center; }
.bsc .bsc-btn--lg { min-height: 60px; padding: 0 44px; font-size: 18px; letter-spacing: .06em; }

/* ---------- Motion (enabled only once JS has run) ---------- */

.bsc-js [data-bsc-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--bsc-delay, 0s);
}
.bsc-js [data-bsc-reveal].is-in { opacity: 1; transform: none; }
.bsc-js .bsc-group[data-bsc-reveal] {
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), translate .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}
/* Cards keep their hover lift after revealing. */
.bsc-js .bsc-card.is-in:hover { transform: translateY(-4px); }

.bsc-js .bsc-meter:not(.is-in) .bsc-meter__seg { transform: scaleX(0); }
.bsc-js .bsc-meter .bsc-meter__seg:nth-child(2) { transition-delay: .12s, 0s, 0s, 0s; }
.bsc-js .bsc-meter .bsc-meter__seg:nth-child(3) { transition-delay: .24s, 0s, 0s, 0s; }
.bsc-js .bsc-group:not(.is-in) .bsc-item::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
	.bsc *,
	.bsc *::before,
	.bsc *::after { transition: none !important; animation: none !important; }
	.bsc-js [data-bsc-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.bsc-hero__grid,
	.bsc-split { grid-template-columns: 1fr; }
	.bsc-split__head { position: static; }
	#wrapper .bsc .bsc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#wrapper .bsc .bsc-card,
	#wrapper .bsc .bsc-card:nth-child(n + 4) { grid-column: span 1; }
	#wrapper .bsc .bsc-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	.bsc { font-size: 16px; }
	.bsc-degree__grid,
	#wrapper .bsc .bsc-cards { grid-template-columns: 1fr; }
	#wrapper .bsc .bsc-card:last-child { grid-column: auto; }
	.bsc-actions .bsc-btn { width: 100%; justify-content: center; }
	.bsc-meter { height: 44px; }
	.bsc .bsc-meter__seg { padding-inline: 10px; font-size: 15px; }
	.bsc .bsc-meter__seg:last-child { padding-inline: 0; }
	.bsc-group__summary { flex-wrap: wrap; padding: 18px; gap: 4px 12px; }
	.bsc-group__summary::after { order: 2; }
	.bsc-group__credits { order: 3; flex-basis: 100%; text-align: left; }
	.bsc-list { padding: 0 18px 18px !important; }
	.bsc-list { grid-template-columns: 1fr; }
	.bsc-subnav__end { display: none; }
	/* Fade the edges so the horizontally scrolling list reads as scrollable. */
	.bsc-subnav__list {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
		padding-inline: 8px !important;
	}
	.bsc .bsc-total { text-align: left; }
	.bsc .bsc-total__value { justify-content: flex-start; }
}

/* ===== management.css ===== */
/* Faculty Board page — builds on the Bachelor of Science stylesheet (".bsc")
   and adds its own components, scoped to the WPBakery row carrying el_class "fb". */

/* ---------- Hero ---------- */

.fb-hero { padding-block: clamp(80px, 10vw, 136px) clamp(72px, 8vw, 112px); }
.bsc .fb-hero__title { font-size: clamp(44px, 6.4vw, 84px); }

.bsc .fb-hero__org {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: clamp(20px, 2.6vw, 32px);
	font-family: var(--bsc-display);
	font-weight: 500;
	font-size: clamp(18px, 1.8vw, 23px);
	line-height: 1.4 !important;
	color: rgba(255, 255, 255, .82);
}
.bsc .fb-hero__org::before {
	content: "";
	flex-shrink: 0;
	width: 40px;
	height: 2px;
	margin-right: 4px;
	background: var(--bsc-leaf);
}
.fb-hero__org br { display: none; }
.fb-hero__org em { font-style: normal; color: var(--bsc-leaf); }
.fb-hero__org em::before { content: "·"; margin-right: 12px; color: rgba(255, 255, 255, .4); }

/* ---------- Board ---------- */

.fb-board { background: var(--bsc-paper); }

/* "#wrapper .bsc" beats the theme's "#wrapper ul li" list styling. */
/* Rows of cards are spaced by the cards' bottom margin, not row-gap: each card
   spans five subgrid rows, and a row-gap would also open between those rows
   (under an empty details row too), however the card sets its own gap. */
#wrapper .bsc .fb-team {
	--fb-row-gap: clamp(24px, 3vw, 40px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 40px);
	margin-bottom: calc(-1 * var(--fb-row-gap)) !important;
}
#wrapper .bsc .fb-team > .fb-person { margin-bottom: var(--fb-row-gap); }

#wrapper .bsc .fb-person {
	margin: 0;
	display: flex;
	flex-direction: column;
}
#wrapper .bsc .fb-person::before { content: none; }

/* Portraits share one 4:5 frame; the square sources crop to the face. */
.fb-person__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bsc-cream);
	box-shadow: 0 24px 48px -32px rgba(15, 59, 58, .55);
}
.bsc .fb-person__photo p { display: contents; }
.bsc .fb-person__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.fb-person:hover .fb-person__img { transform: scale(1.04); }

.fb-person__body {
	display: flex;
	flex-direction: column;
	padding-top: 22px;
}

/* Role reads first, as a kicker above the name. */
.bsc .fb-person__role {
	order: -1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.3 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bsc-teal);
}
.bsc .fb-person__role::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 2px;
	background: var(--bsc-leaf);
	transition: transform .4s cubic-bezier(.3, .8, .25, 1);
}
/* Scale, not width: a wider rule could re-wrap the role and make the card jump. */
.bsc .fb-person__role::before { transform-origin: right; }
.fb-person:hover .fb-person__role::before { transform: scaleX(1.5); }

/* The theme forces h1–h5 { font-family: "Sis-Bold"; font-weight: 400 !important }. */
.bsc .fb-person__name {
	font-family: var(--bsc-display);
	font-weight: 700 !important;
	font-size: clamp(16px, 1.3vw, 18px);
	overflow-wrap: break-word;
	line-height: 1.25 !important;
	color: var(--bsc-forest);
}
/* Academic title on its own line above the name. */
.fb-person__title {
	display: block;
	margin-bottom: 2px;
	font-weight: 500;
	font-size: .72em;
	letter-spacing: .02em;
	color: var(--bsc-muted);
}
.fb-person__suffix { font-weight: 500; color: var(--bsc-muted); }
/* Names without an academic title keep the same baseline as the others. */
.bsc .fb-person__name:not(:has(.fb-person__title))::before {
	content: "";
	display: block;
	height: calc(.72em * 1.25 + 2px);
}

.bsc .fb-person__note {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5 !important;
	color: var(--bsc-muted);
}

/* Team grid: every card shares the same rows (photo, role, name, details,
   contact) through subgrid, so each line starts at the same height across a row
   however long the names or details run. */
#wrapper .bsc .fb-team .fb-person {
	display: grid;
	grid-row: span 5;
	grid-template-rows: subgrid;
	row-gap: 0;
}
.fb-team .fb-person__body { display: contents; }
.fb-team .fb-person__photo { grid-row: 1; }
.bsc .fb-team .fb-person__role { grid-row: 2; margin: 22px 0 12px; }
.bsc .fb-team .fb-person__name { grid-row: 3; }
.bsc .fb-team .fb-person__note,
.bsc .fb-team .sm-person__details { grid-row: 4; }
/* Top-aligned: at the bottom (align-self: end, margin-top: auto) a card missing one line (no email or no
   extension) pushed its other line down out of step with the row. */
#wrapper .bsc .fb-team .sm-contact { grid-row: 5; align-self: start; margin-top: 0 !important; }
/* wpautop may leave empty paragraphs that would otherwise take a row. */
.fb-team .fb-person p:empty { display: none; }

/* ---------- Faculty Board: hero with a portrait mosaic ---------- */

.fb-hero--board { padding-block: clamp(56px, 7vw, 96px); overflow: hidden; }
/* Organisation on two lines, as in the source text, with the rule beside the first (all heroes). */
.bsc .fb-hero .fb-hero__org { display: block; position: relative; padding-left: 56px; }
.bsc .fb-hero .fb-hero__org::before { position: absolute; left: 0; top: .7em; margin: 0; }
.fb-hero .fb-hero__org br { display: inline; }
.fb-hero .fb-hero__org em::before { content: none; }
/* Fine drafting grid instead of the contour rings. */
.fb-hero--board::before {
	opacity: 1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to left, #000 20%, transparent 85%);
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent 85%);
	animation: fb-grid 12s linear infinite;
}
@keyframes fb-grid { to { background-position: 44px 44px, 44px 44px; } }

.fb-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.fb-hero__art {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding-block: 16px;
}
.bsc .fb-hero__art p { display: contents; }
.bsc .fb-hero__art .fb-person__img {
	height: auto;
	aspect-ratio: 1;
	border-radius: 14px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .18), 0 18px 36px -18px rgba(0, 0, 0, .5);
	animation: fb-float 7s ease-in-out infinite alternate;
}
/* The middle column sits lower and drifts out of step with the others. */
.bsc .fb-hero__art .fb-person__img:nth-child(3n + 2) { margin-top: 32px; margin-bottom: -32px; animation-delay: -3.5s; }
.bsc .fb-hero__art .fb-person__img:nth-child(3n) { animation-delay: -1.75s; }
/* The Dean's tile is ringed in leaf green. */
.bsc .fb-hero__art .fb-person__img:first-child { box-shadow: 0 0 0 3px var(--bsc-leaf), 0 18px 36px -18px rgba(0, 0, 0, .5); }
@keyframes fb-float {
	from { transform: translateY(-6px); }
	to { transform: translateY(6px); }
}
.fb-hero.is-offscreen .fb-person__img,
.fb-hero.is-offscreen::before { animation-play-state: paused; }

/* ---------- Faculty Board: organisation chart ---------- */

.fb-board { padding-block: clamp(56px, 7vw, 96px); }

/* Compact card: portrait on top, centred text. */
#wrapper .bsc .fb-person--card {
	position: relative;
	padding: 12px 12px 22px;
	background: var(--bsc-white);
	border: 1px solid var(--bsc-line);
	border-radius: var(--bsc-radius);
	text-align: center;
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
#wrapper .bsc .fb-person--card:hover {
	border-color: transparent;
	box-shadow: 0 22px 44px -24px rgba(15, 59, 58, .4);
}
.bsc-js .fb-person--card[data-bsc-reveal] {
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.fb-person--card .fb-person__photo { border-radius: 12px; box-shadow: none; }
.fb-person--card .fb-person__body { align-items: center; padding: 18px 8px 0; }
.bsc .fb-person--card .fb-person__role { justify-content: center; }
.bsc .fb-person--card .fb-person__role::after {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 2px;
	background: var(--bsc-leaf);
	transition: transform .4s cubic-bezier(.3, .8, .25, 1);
}
.bsc .fb-person--card .fb-person__role::after { transform-origin: left; }
.fb-person--card:hover .fb-person__role::after { transform: scaleX(1.5); }
.fb-team .fb-person--card .fb-person__body { padding: 0; }
.bsc .fb-team .fb-person--card .fb-person__role { margin: 18px 8px 10px; }
.bsc .fb-team .fb-person--card .fb-person__name,
.bsc .fb-team .fb-person--card .fb-person__note { padding-inline: 8px; }
.bsc .fb-person--card .fb-person__note { font-size: 13px; }

/* Dean: the dark card at the head of the chart. */
#wrapper .bsc .fb-person--dean { background: var(--bsc-forest); border-color: var(--bsc-forest); }
.bsc .fb-person--dean .fb-person__name { color: var(--bsc-white); font-size: clamp(18px, 1.6vw, 21px); }
.bsc .fb-person--dean .fb-person__title,
.bsc .fb-person--dean .fb-person__suffix { color: rgba(255, 255, 255, .65); }
.bsc .fb-person--dean .fb-person__role { color: var(--bsc-leaf); }

/* Top row: Dean centred, Senior Advisor beside it on a dashed advisory line. */
#wrapper .bsc .fb-chart__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 290px) minmax(0, 1fr);
	align-items: center;
	column-gap: 64px;
}
#wrapper .bsc .fb-person--dean { grid-column: 2; }
#wrapper .bsc .fb-person--advisor {
	grid-column: 3;
	justify-self: start;
	width: min(100%, 250px);
}
#wrapper .bsc .fb-person--advisor::after {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(100% + 1px);
	width: 64px;
	border-top: 2px dashed rgba(25, 99, 107, .35);
}

/* Vice-Deans hang from a bar fed by a line down from the Dean. */
#wrapper .bsc .fb-chart__team {
	position: relative;
	padding-top: 64px !important;
}
#wrapper .bsc .fb-chart__team::before,
#wrapper .bsc .fb-chart__team::after {
	content: "";
	position: absolute;
	background: rgba(25, 99, 107, .3);
}
/* Horizontal bar between the centres of the first and last columns. */
#wrapper .bsc .fb-chart__team::before {
	top: 32px;
	left: calc((100% - 3 * clamp(24px, 3vw, 40px)) / 8);
	right: calc((100% - 3 * clamp(24px, 3vw, 40px)) / 8);
	height: 2px;
}
/* Stem from the Dean down to the bar. */
#wrapper .bsc .fb-chart__team::after { top: 0; left: calc(50% - 1px); width: 2px; height: 32px; }
#wrapper .bsc .fb-chart__team .fb-person--card::after {
	content: "";
	position: absolute;
	top: -33px;
	left: calc(50% - 1px);
	width: 2px;
	height: 32px;
	background: rgba(25, 99, 107, .3);
}

/* ---------- Responsive ---------- */

/* The theme's page padding leaves an empty band above the footer. */
.page-padding:has(.bsc.fb) { padding-bottom: 0 !important; }

@media (max-width: 1024px) {
	#wrapper .bsc .fb-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
	/* The chart's connectors only make sense with all four Vice-Deans in one row. */
	#wrapper .bsc .fb-chart__team { padding-top: 24px !important; }
	#wrapper .bsc .fb-chart__team::before,
	#wrapper .bsc .fb-chart__team::after,
	#wrapper .bsc .fb-chart__team .fb-person--card::after { content: none; }
	#wrapper .bsc .fb-chart__top { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; column-gap: clamp(24px, 3vw, 40px); max-width: 640px; margin-inline: auto !important; }
	#wrapper .bsc .fb-person--dean,
	#wrapper .bsc .fb-person--advisor { grid-column: auto; width: auto; justify-self: stretch; }
	#wrapper .bsc .fb-person--advisor::after { content: none; }
}

@media (max-width: 720px) {
	.fb-hero__grid { grid-template-columns: 1fr; }
	.fb-hero__art { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding-block: 0 8px; }
	.bsc .fb-hero__art .fb-person__img { border-radius: 10px; }
	.bsc .fb-hero__art .fb-person__img:nth-child(3n + 2) { margin-top: 12px; margin-bottom: -12px; }
	#wrapper .bsc .fb-chart__top { column-gap: 16px; }
	#wrapper .bsc .fb-person--card { padding: 8px 8px 16px; }
	.bsc .fb-person--dean .fb-person__name { font-size: 16px; }
	#wrapper .bsc .fb-team { --fb-row-gap: 32px; column-gap: 16px; }
	.bsc .fb-team .fb-person__role { margin: 16px 0 8px; }
	.bsc .fb-team .fb-person--card .fb-person__role { margin: 14px 4px 8px; }
	.bsc .fb-team .fb-person--card .fb-person__name,
	.bsc .fb-team .fb-person--card .fb-person__note { padding-inline: 4px; }
	.bsc .fb-person__name { font-size: 15px; }
	.bsc .fb-person__role { font-size: 11px; letter-spacing: .1em; margin-bottom: 8px; }
	.bsc .fb-person__role::before { width: 14px; }
	.bsc .fb-person__note { font-size: 13px; }
	/* Organisation on two lines, as in the source text. */
	.bsc .fb-hero__org { display: block; }
	.bsc .fb-hero__org::before { display: block; margin: 0 0 14px; }
	.fb-hero__org br { display: inline; }
	.fb-hero__org em::before { content: none; }
}

/* ===== staff-member.css ===== */
/* Staff page — builds on the Bachelor of Science (".bsc") and Faculty Board
   (".fb") stylesheets, scoped to the WPBakery row carrying el_class "sm". */

/* ---------- Part bands (Academic Affairs / Secretary Office) ---------- */

/* Editorial bands: a large title, a hairline rule, and soft colour fields
   drifting slowly behind them. */
.sm-part {
	overflow: hidden;
	padding-block: clamp(80px, 10vw, 136px) clamp(72px, 8vw, 112px);
}
.bsc .sm-part .fb-hero__title {
	font-size: clamp(44px, 6.4vw, 88px);
	letter-spacing: -0.025em;
}

/* Organisation line under a hairline that spans the content width. */
.bsc .sm-part .fb-hero__org {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	padding: clamp(18px, 2vw, 24px) 0 0;
	margin-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid rgba(255, 255, 255, .22);
	font-size: clamp(16px, 1.5vw, 19px);
	letter-spacing: .01em;
}
.bsc .sm-part .fb-hero__org::before { content: none; }
.sm-part .fb-hero__org br { display: none; }
.sm-part .fb-hero__org em::before { content: "·"; margin-right: 14px; opacity: .5; }

/* Two blurred colour fields per band, each on its own slow loop. */
.sm-part::before,
.sm-part::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 1;
	mask-image: none;
	-webkit-mask-image: none;
	will-change: transform;
}
.sm-part::before {
	inset: auto;
	top: -30%;
	right: -8%;
	width: clamp(360px, 46vw, 680px);
	aspect-ratio: 1;
	animation: sm-drift-a 22s ease-in-out infinite alternate;
}
.sm-part::after {
	bottom: -45%;
	right: 22%;
	width: clamp(280px, 34vw, 520px);
	aspect-ratio: 1.3;
	animation: sm-drift-b 28s ease-in-out infinite alternate;
}
@keyframes sm-drift-a {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-8%, 10%) scale(1.08); }
	100% { transform: translate(4%, 4%) scale(.96); }
}
@keyframes sm-drift-b {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(14%, -8%) scale(1.1); }
	100% { transform: translate(-6%, -4%) scale(.94); }
}

/* Hero colours: dark, light and neutral (picked per part in the admin). */
.sm-part--dark { background: var(--bsc-forest); }
.sm-part--dark::before { background: radial-gradient(circle, rgba(25, 99, 107, .95), rgba(25, 99, 107, 0) 70%); }
.sm-part--dark::after { background: radial-gradient(circle, rgba(201, 226, 101, .38), rgba(201, 226, 101, 0) 70%); }

.sm-part--light,
.sm-part--neutral {
	background: var(--bsc-paper);
	color: var(--bsc-forest);
	border-block: 1px solid var(--bsc-line);
}
.sm-part--light::before { background: radial-gradient(circle, rgba(201, 226, 101, .7), rgba(201, 226, 101, 0) 70%); }
.sm-part--light::after { background: radial-gradient(circle, rgba(25, 99, 107, .22), rgba(25, 99, 107, 0) 70%); }
.bsc .sm-part--light .bsc-hero__title,
.bsc .sm-part--neutral .bsc-hero__title { color: var(--bsc-forest); }
.bsc .sm-part--light .fb-hero__org,
.bsc .sm-part--neutral .fb-hero__org { color: var(--bsc-muted); border-top-color: var(--bsc-line); }
.sm-part--light .fb-hero__org em,
.sm-part--neutral .fb-hero__org em { color: var(--bsc-teal); }
.sm-part--light .fb-hero__org em::before,
.sm-part--neutral .fb-hero__org em::before { color: var(--bsc-muted); }

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

/* A light, cool ground: contour rings on the right echo the land, a leaf
   glow sits behind the summary panel. */
.sm-page-hero {
	background:
		radial-gradient(60% 90% at 100% 0%, rgba(201, 226, 101, .32), transparent 60%),
		radial-gradient(50% 80% at 0% 100%, rgba(25, 99, 107, .10), transparent 65%),
		linear-gradient(180deg, #eef3f0, #e6ede9);
	color: var(--bsc-forest);
	border-bottom: 1px solid rgba(15, 59, 58, .1);
	padding-block: clamp(72px, 9vw, 128px) clamp(64px, 8vw, 104px);
}
/* The theme's contour rings, in teal on the light ground. */
.sm-page-hero::before {
	inset: 0;
	width: auto;
	aspect-ratio: auto;
	border-radius: 0;
	filter: none;
	opacity: .32;
	background: repeating-radial-gradient(
		circle at 82% 38%,
		transparent var(--bsc-ring),
		rgba(25, 99, 107, .35) calc(var(--bsc-ring) + 1px),
		transparent calc(var(--bsc-ring) + 2px),
		transparent calc(var(--bsc-ring) + 28px)
	);
	mask-image: radial-gradient(circle at 82% 38%, #000 0, transparent 62%);
	-webkit-mask-image: radial-gradient(circle at 82% 38%, #000 0, transparent 62%);
	animation: bsc-ripple 5s linear infinite;
}
.sm-page-hero::after {
	top: -20%;
	bottom: auto;
	right: 4%;
	width: clamp(280px, 30vw, 460px);
	background: radial-gradient(circle, rgba(201, 226, 101, .55), rgba(201, 226, 101, 0) 70%);
}

.sm-page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 400px);
	gap: clamp(32px, 5vw, 80px);
	align-items: end;
}
.bsc .sm-page-hero .bsc-hero__title {
	color: var(--bsc-forest);
	font-size: clamp(52px, 8vw, 112px);
	letter-spacing: -0.03em;
	line-height: 1 !important;
}
.bsc .sm-page-hero .fb-hero__org {
	color: var(--bsc-muted);
	border-top-color: rgba(15, 59, 58, .16);
}
.sm-page-hero .fb-hero__org em { color: var(--bsc-teal); }
.sm-page-hero .fb-hero__org em::before { color: var(--bsc-muted); }

/* Summary: the division heads on a frosted panel, each row a link to its band. */
.sm-summary {
	padding: clamp(18px, 2vw, 24px);
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 22px;
	box-shadow: 0 30px 60px -40px rgba(15, 59, 58, .55), inset 0 0 0 1px rgba(15, 59, 58, .06);
}
.bsc .sm-summary__label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding-inline: 8px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bsc-teal);
}
.bsc .sm-summary__label::before {
	content: "";
	width: 20px;
	height: 2px;
	background: var(--bsc-leaf);
}
#wrapper .bsc .sm-heads-nav { display: grid; gap: 4px; margin: 0 !important; padding: 0 !important; }
#wrapper .bsc .sm-heads-nav li { margin: 0; padding: 0; }
#wrapper .bsc .sm-heads-nav li + li { border-top: 1px solid rgba(15, 59, 58, .08); padding-top: 4px; }
#wrapper .bsc .sm-heads-nav li::before { content: none; }
.bsc .sm-heads-nav__link {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 8px;
	border-radius: 14px;
	color: inherit;
	transition: background-color .25s;
}
/* ".wpb_text_column" beats the bsc rule that strips link pseudo elements. */
.bsc .wpb_text_column .sm-heads-nav__link::after {
	content: "↓";
	position: static;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid rgba(15, 59, 58, .14);
	border-radius: 50%;
	background: none;
	opacity: 1;
	transform: none;
	font-size: 14px;
	color: var(--bsc-teal);
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.bsc .sm-heads-nav__link:hover { background: rgba(255, 255, 255, .9); }
.bsc .wpb_text_column .sm-heads-nav__link:hover::after {
	background: var(--bsc-forest);
	border-color: var(--bsc-forest);
	color: var(--bsc-leaf);
	transform: translateY(2px);
}
.bsc .sm-heads-nav__img {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	object-fit: cover;
	object-position: center top;
	background: var(--bsc-cream);
	font-size: 22px;
}
.sm-heads-nav__text { display: grid; gap: 2px; min-width: 0; }
.sm-heads-nav__part {
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bsc-teal);
}
.sm-heads-nav__name {
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: var(--bsc-forest);
}
.sm-heads-nav__role { font-size: 13px; line-height: 1.4; color: var(--bsc-muted); }

/* ---------- Division bands ---------- */

/* The parts under the page hero: smaller than it, so they read as sections
   of the page: a count, the title, and the units as chips. */
.sm-part--band {
	position: relative;
	isolation: isolate;
	color: var(--bsc-white);
	padding-block: clamp(56px, 7vw, 96px);
}
.sm-part__body { max-width: 980px; }
.bsc .sm-part__meta {
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sm-accent);
}
.bsc .sm-part__meta::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}
.bsc .sm-part__title {
	font-family: var(--bsc-display);
	font-weight: 700 !important;
	font-size: clamp(34px, 4.4vw, 60px);
	line-height: 1.1 !important;
	letter-spacing: -0.02em;
	color: inherit;
}
.bsc .sm-part--band .fb-hero__org { margin-top: 16px; padding-top: 0; border-top: 0; font-size: 16px; }

#wrapper .bsc .sm-part__units {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp(20px, 2.4vw, 28px) 0 0 !important;
	padding: 0 !important;
}
#wrapper .bsc .sm-part__units li { margin: 0; padding: 0; }
#wrapper .bsc .sm-part__units li::before { content: none; }
.bsc .sm-part__units a,
.bsc .sm-part__units span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--sm-chip-line);
	border-radius: 999px;
	font-family: var(--bsc-display);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.3;
	color: inherit;
	background: var(--sm-chip-bg);
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
/* ".wpb_text_column" beats the bsc rule that strips link pseudo elements. */
.bsc .wpb_text_column .sm-part__units a::after {
	content: "↓";
	position: static;
	width: auto;
	height: auto;
	background: none;
	border: 0;
	opacity: .6;
	transform: none;
	display: inline;
	font-size: .85em;
	transition: transform .25s, opacity .25s;
}
.bsc .sm-part__units a:hover {
	background: var(--sm-accent);
	border-color: var(--sm-accent);
	color: var(--sm-chip-hover);
	transform: translateY(-1px);
}
.bsc .wpb_text_column .sm-part__units a:hover::after { transform: translateY(2px); opacity: 1; }

/* Dark: forest with contour rings at the right, as the site's other heroes. */
.sm-part--dark {
	--sm-accent: var(--bsc-leaf);
	--sm-chip-line: rgba(255, 255, 255, .22);
	--sm-chip-bg: rgba(255, 255, 255, .04);
	--sm-chip-hover: var(--bsc-forest);
}
.sm-part--band.sm-part--dark {
	background:
		repeating-radial-gradient(circle at 92% 50%, transparent var(--bsc-ring), rgba(255, 255, 255, .06) calc(var(--bsc-ring) + 1px), transparent calc(var(--bsc-ring) + 2px), transparent calc(var(--bsc-ring) + 28px)),
		var(--bsc-forest);
	animation: bsc-ripple 6s linear infinite;
}
.sm-part--band.sm-part--dark.is-offscreen,
.sm-part.is-offscreen::before,
.sm-part.is-offscreen::after { animation-play-state: paused; }
/* Light and neutral: forest type on a pale ground. */
.sm-part--light,
.sm-part--neutral {
	--sm-accent: var(--bsc-teal);
	--sm-chip-line: rgba(15, 59, 58, .18);
	--sm-chip-bg: rgba(255, 255, 255, .6);
	--sm-chip-hover: var(--bsc-white);
}
.bsc .sm-part--light .sm-part__title,
.bsc .sm-part--neutral .sm-part__title { color: var(--bsc-forest); }
.sm-part--band.sm-part--light,
.sm-part--band.sm-part--neutral { color: var(--bsc-forest); }
.sm-part--band.sm-part--light { background: linear-gradient(180deg, var(--bsc-paper), var(--bsc-cream)); }
.sm-part--band::before { top: -60%; width: clamp(300px, 36vw, 560px); }
.sm-part--band::after { bottom: -70%; width: clamp(240px, 28vw, 440px); }

/* ---------- Hero motion ----------
   Entrances play once, when the reveal script marks a block "is-in"; the
   backgrounds (rings, glows) loop slowly. All of it is off for reduced motion
   by the rule in "Motion" above. */

/* Titles rise out of a mask. The insets leave room for Thai marks above and
   below the line. */
.bsc-js .sm-page-hero__text .bsc-hero__title,
.bsc-js .sm-part--band .sm-part__title {
	clip-path: inset(-20% -2% 100% -2%);
	transform: translateY(32%);
	transition: clip-path 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
	transition-delay: .1s;
}
.bsc-js .is-in .bsc-hero__title,
.bsc-js .is-in .sm-part__title {
	clip-path: inset(-20% -2% -30% -2%);
	transform: none;
}

/* The page hero's rule draws from the left, then the organisation line follows. */
.bsc-js .sm-page-hero .fb-hero__org {
	border-top-color: transparent;
	background: linear-gradient(rgba(15, 59, 58, .16), rgba(15, 59, 58, .16)) 0 0 / 0 1px no-repeat;
	opacity: 0;
	transition: background-size 1.2s cubic-bezier(.6, 0, .2, 1) .35s, opacity .8s ease .7s;
}
.bsc-js .is-in .fb-hero__org { background-size: 100% 1px; opacity: 1; }

/* Panel rows slide in one after another. */
.bsc-js .sm-summary .sm-summary__label,
.bsc-js .sm-summary .sm-heads-nav li {
	opacity: 0;
	transform: translateX(18px);
	transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: .3s;
}
.bsc-js .sm-summary .sm-heads-nav li:nth-child(1) { transition-delay: .42s; }
.bsc-js .sm-summary .sm-heads-nav li:nth-child(2) { transition-delay: .54s; }
.bsc-js .sm-summary .sm-heads-nav li:nth-child(3) { transition-delay: .66s; }
.bsc-js .sm-summary .sm-heads-nav li:nth-child(n + 4) { transition-delay: .78s; }
.bsc-js .sm-summary.is-in .sm-summary__label,
.bsc-js .sm-summary.is-in .sm-heads-nav li { opacity: 1; transform: none; }
/* The panel's photos settle from a slight zoom. */
.bsc-js .sm-summary .sm-heads-nav__img { transform: scale(1.12); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .4s; }
.bsc-js .sm-summary.is-in .sm-heads-nav__img { transform: none; }

/* Band kicker: the rule draws, then the text. */
.bsc-js .sm-part--band .sm-part__meta::before {
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .8s cubic-bezier(.6, 0, .2, 1);
}
.bsc-js .sm-part--band .is-in .sm-part__meta::before { transform: none; }

/* Unit chips pop in after the title. */
.bsc-js .sm-part--band .sm-part__units li {
	opacity: 0;
	transform: translateY(10px) scale(.96);
	transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1);
	transition-delay: .45s;
}
.bsc-js .sm-part--band .sm-part__units li:nth-child(2) { transition-delay: .53s; }
.bsc-js .sm-part--band .sm-part__units li:nth-child(3) { transition-delay: .61s; }
.bsc-js .sm-part--band .sm-part__units li:nth-child(4) { transition-delay: .69s; }
.bsc-js .sm-part--band .sm-part__units li:nth-child(n + 5) { transition-delay: .77s; }
.bsc-js .sm-part--band .is-in .sm-part__units li { opacity: 1; transform: none; }

/* ---------- Arrival cue ----------
   After a jump from the menu, a chip or a division head, the target section
   briefly lights up: a leaf bar sweeps along its top edge and the title
   nudges into place. */
.sm-group { position: relative; }
.sm-part--band.is-target > .bsc-wrap::before,
.sm-group.is-target > .bsc-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--bsc-leaf) 30%, var(--bsc-leaf) 70%, transparent);
	transform-origin: left;
	animation: sm-sweep 1.6s cubic-bezier(.6, 0, .2, 1) both;
	pointer-events: none;
}
@keyframes sm-sweep {
	0% { transform: scaleX(0); opacity: 1; }
	60% { transform: scaleX(1); opacity: 1; }
	100% { transform: scaleX(1); opacity: 0; }
}
.sm-part--band.is-target .sm-part__title,
.sm-group.is-target .sm-group__title { animation: sm-nudge .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
@keyframes sm-nudge {
	0% { transform: translateX(-10px); opacity: .4; }
	100% { transform: none; opacity: 1; }
}
.sm-group.is-target .sm-group__head::before { animation: sm-grow .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sm-grow {
	0% { transform: scaleY(0); }
	100% { transform: none; }
}

/* ---------- Back to top ----------
   Outside .bsc (it is appended to <body>), so colours are literal. Sits
   above the chat button in the corner; the ring shows reading progress. */
.sisp-top {
	position: fixed;
	right: 24px;
	bottom: 92px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 59, 58, .92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 14px 30px -12px rgba(15, 59, 58, .6);
	color: #c9e265;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1), visibility 0s linear .45s, background-color .25s;
}
.sisp-top.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.sisp-top:hover { background: #19636b; }
.sisp-top:focus-visible { outline: 2px solid #c9e265; outline-offset: 3px; }
.sisp-top__ring {
	position: absolute;
	inset: 2px;
	width: calc(100% - 4px);
	height: calc(100% - 4px);
	transform: rotate(-90deg);
}
.sisp-top__ring circle { fill: none; stroke-width: 2; stroke: rgba(255, 255, 255, .14); }
.sisp-top__ring .sisp-top__bar {
	stroke: #c9e265;
	stroke-linecap: round;
	stroke-dasharray: 138.2;
	stroke-dashoffset: 138.2;
	transition: stroke-dashoffset .15s linear;
}
.sisp-top__arrow {
	position: relative;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.sisp-top:hover .sisp-top__arrow { transform: translateY(-3px); }
@media (max-width: 720px) {
	.sisp-top { right: 16px; bottom: 84px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	.sisp-top,
	.sisp-top__arrow,
	.sisp-top__ring .sisp-top__bar { transition: none; }
}

/* Neutral: a cool grey-green ground with muted fields, between the two. */
.sm-part--neutral { background: #e8eeec; border-color: rgba(15, 59, 58, .1); }
.sm-part--neutral::before { background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); }
.sm-part--neutral::after { background: radial-gradient(circle, rgba(25, 99, 107, .16), rgba(25, 99, 107, 0) 70%); }
.bsc .sm-part--neutral .fb-hero__org { border-top-color: rgba(15, 59, 58, .14); }

@media (max-width: 1024px) {
	.sm-page-hero__grid { grid-template-columns: 1fr; align-items: start; }
	.sm-summary { max-width: 460px; }
}
@media (max-width: 720px) {
	.bsc .sm-page-hero .bsc-hero__title { font-size: clamp(44px, 13vw, 64px); }
	.bsc .sm-part__title { font-size: clamp(28px, 8vw, 36px); }
	.bsc .sm-part__units a,
	.bsc .sm-part__units span { padding: 7px 12px; font-size: 13px; }
}

/* ---------- Groups ---------- */

.sm-group--paper { background: var(--bsc-paper); }
.sm-group--cream { background: var(--bsc-cream); }
.sm-group--lead { padding-block: clamp(48px, 6vw, 80px); }

.sm-group__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: clamp(28px, 4vw, 44px);
}
.sm-group__head::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	align-self: stretch;
	border-radius: 3px;
	background: var(--bsc-leaf);
}
.bsc .sm-group__title { font-size: clamp(24px, 2.6vw, 34px); max-width: 880px; }

/* ---------- Cards ---------- */

.bsc .sm-person__photo-link { display: block; height: 100%; }
/* wpautop may leave stray empty paragraphs inside the cards. */
.sm .fb-person p:empty { display: none; }
.fb-person__body { flex: 1; }
.sm .fb-person__body { padding-top: 18px; }

.bsc .sm-person__link { color: inherit; transition: color .2s; }
.bsc .sm-person__link:hover { color: var(--bsc-teal); }
/* External-profile hint; ".wpb_text_column" beats the bsc rule that removes link ::after. */
.bsc .wpb_text_column .sm-person__link::after {
	/* The no-break space keeps the arrow on the line of the last word. */
	content: "\00a0↗";
	/* Undo the theme's animated-underline pseudo element. */
	position: static;
	width: auto;
	height: auto;
	background: none;
	border: 0;
	opacity: 1;
	transform: none;
	display: inline;
	font-size: .7em;
	font-weight: 600;
	color: var(--bsc-teal);
}

.bsc .sm-person__detail {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5 !important;
	color: var(--bsc-muted);
}
.sm-person__detail strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--bsc-display);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bsc-ink);
}

/* Contact lines sit at the bottom so cards in a row line up. */
#wrapper .bsc .sm-contact {
	display: grid;
	gap: 6px;
	margin: auto 0 0 !important;
	padding: 16px 0 0 !important;
}
#wrapper .bsc .sm-contact li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--bsc-muted);
}
#wrapper .bsc .sm-contact li::before {
	content: "";
	position: static;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 0;
	background: var(--bsc-teal);
	-webkit-mask: var(--sm-icon) center / contain no-repeat;
	mask: var(--sm-icon) center / contain no-repeat;
}
.sm-contact__email { --sm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.sm-contact__ext { --sm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.bsc .sm-contact a {
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--bsc-teal);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color .2s;
}
.bsc .sm-contact a:hover { text-decoration-color: currentColor; }

/* Heads: a white panel with the portrait beside the details. */
#wrapper .bsc .sm-heads { margin-bottom: clamp(32px, 4vw, 48px); }
#wrapper .bsc .sm-person--head {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: clamp(20px, 3vw, 36px);
	max-width: 760px;
	padding: clamp(16px, 2vw, 22px);
	background: var(--bsc-white);
	border: 1px solid var(--bsc-line);
	border-radius: var(--bsc-radius);
	box-shadow: 0 24px 48px -36px rgba(15, 59, 58, .45);
}
.sm-person--head .fb-person__photo { box-shadow: none; }
.sm .sm-person--head .fb-person__body { justify-content: center; padding: 8px 8px 8px 0; }
.bsc .sm-person--head .fb-person__name { font-size: clamp(19px, 1.7vw, 22px); }
.sm-group--lead .sm-heads { margin-bottom: 0 !important; }
#wrapper .bsc .sm-person--head .sm-contact { margin-top: 20px !important; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
	/* Organisation on two lines, as in the source text. */
	.sm-part .fb-hero__org br { display: inline; }
	.sm-part .fb-hero__org em::before { content: none; }
	.bsc .sm-part .fb-hero__org { display: block; }
	#wrapper .bsc .sm-person--head { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px; }
	.sm .sm-person--head .fb-person__body { padding: 0; }
	.bsc .sm-person--head .fb-person__name { font-size: 17px; }
	.bsc .sm-person__detail { font-size: 13px; }
	#wrapper .bsc .sm-contact li { font-size: 12.5px; gap: 6px; align-items: flex-start; }
	#wrapper .bsc .sm-contact li::before { width: 14px; height: 14px; margin-top: 2px; }
}

/* ===== Plugin additions ===== */

/* Stand-in when a portrait is not in this site's media library. */
.bsc .sisp-ph {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, var(--bsc-teal), var(--bsc-forest));
	font-family: var(--bsc-display);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 56px);
	color: rgba(255, 255, 255, .85);
}
.bsc .fb-hero__art .sisp-ph { font-size: clamp(20px, 2.4vw, 32px); }

/* Team rows size to the number of people (up to four), so the chart's
   connector bar still spans the first to the last centre. */
#wrapper .bsc.sisp .fb-team[style*="--fb-cols"] { grid-template-columns: repeat(var(--fb-cols), minmax(0, 1fr)); }
#wrapper .bsc.sisp .fb-chart__team::before {
	left: calc((100% - (var(--fb-cols, 4) - 1) * clamp(24px, 3vw, 40px)) / (2 * var(--fb-cols, 4)));
	right: calc((100% - (var(--fb-cols, 4) - 1) * clamp(24px, 3vw, 40px)) / (2 * var(--fb-cols, 4)));
}
#wrapper .bsc.sisp .fb-team[style*="--fb-cols:1"],
#wrapper .bsc.sisp .fb-team[style*="--fb-cols:2"],
#wrapper .bsc.sisp .fb-team[style*="--fb-cols:3"] { max-width: calc(var(--fb-cols) * 270px); margin-inline: auto !important; }
#wrapper .bsc.sisp .sisp-chart__row { margin-top: clamp(32px, 4vw, 48px) !important; }
.bsc .sisp-chart__head { margin-top: clamp(40px, 5vw, 64px); justify-content: center; }

/* A second adviser mirrors the first on the Dean's left. */
#wrapper .bsc.sisp .fb-chart__top > :nth-child(-n + 3) { grid-row: 1; }
#wrapper .bsc.sisp .fb-person--advisor:nth-child(3) { grid-column: 1; justify-self: end; }
#wrapper .bsc.sisp .fb-person--advisor:nth-child(3)::after { right: auto; left: calc(100% + 1px); }

@media (max-width: 1024px) {
	#wrapper .bsc.sisp .fb-team[style*="--fb-cols"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
	#wrapper .bsc.sisp .fb-chart__top > :nth-child(-n + 3) { grid-row: auto; }
	#wrapper .bsc.sisp .fb-person--advisor:nth-child(3) { grid-column: auto; justify-self: stretch; }
	#wrapper .bsc.sisp .fb-chart__top { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
	#wrapper .bsc.sisp .fb-person--dean { grid-column: 1 / -1; justify-self: center; width: min(100%, 300px); }
}

/* Thai has no capitals; wide tracking only pulls the letters apart. */
.bsc.sisp[lang="th"] .fb-person__role,
.bsc.sisp[lang="th"] .sm-person__detail strong { letter-spacing: .01em; font-size: 13px; }
.bsc.sisp[lang="th"] .sm-summary__label,
.bsc.sisp[lang="th"] .sm-heads-nav__part,
.bsc.sisp[lang="th"] .sm-part__meta:not([lang="en"]),
.bsc.sisp [lang="th"].sm-part__meta { letter-spacing: .02em; font-size: 14px; }
