/* ==========================================================================
   abcBIM — base.css
   Tokens, reset, typography, layout, buttons, site chrome and the shared
   components used on more than one page. Page-specific rules live in
   assets/css/pages/*.css and must reuse (not redefine) what is here.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--c-sand: #F5F2EC;
	--c-paper: #FBFAF7;
	--c-stone: #ECE7DE;
	--c-rule: #DEDAD2;
	--c-rule-soft: #E8E4DC;
	--c-rule-strong: #CFCAC0;
	--c-rule-stone: #CFC8BC;
	--c-ink: #15171A;
	--c-graphite: #3D4045;
	--c-slate: #4A4D52;
	--c-muted: #5E6166;
	--c-subtle: #6A6D72;
	--c-green: #1F4D3F;
	--c-green-2: #24564A;
	--c-deep: #17332B;
	--c-mint: #E4ECE7;
	--c-white: #FFFFFF;
	--c-error: #A33A2B;
	--c-linkedin: #0A66C2;

	/* On the deep-green band */
	--c-d-label: #A9C2B7;
	--c-d-accent: #CFE0D7;
	--c-d-lead: #D6E2DC;
	--c-d-body: #C3D4CC;
	--c-d-rule: #3E5E54;
	--c-d-stripe1: #21443A;
	--c-d-stripe2: #1C3C33;

	/* Footer (ink) */
	--c-f-text: #C9CBCE;
	--c-f-link: #E6E7E8;
	--c-f-label: #8A8D92;
	--c-f-rule: #2C2F33;

	/* Placeholder stripes */
	--c-ph-1: #E6E1D7;
	--c-ph-2: #ECE8DF;
	--c-ph-label: #6E6A62;

	--f-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--f-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--container: 1320px;
	--gutter: clamp(20px, 4vw, 56px);
	--section-y: clamp(72px, 9vw, 128px);
	--section-y-tight: clamp(64px, 8vw, 112px);
	--item-pad-y: 26px;
	--item-pad-x: clamp(16px, 2vw, 28px); /* job rows + job cards (design value) */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 14px;
	--header-h: 76px;
	--shadow-card: 0 18px 40px -24px rgba(21, 23, 26, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
	margin: 0;
	background: var(--c-sand);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html.has-dialog,
html.has-dialog body {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--f-serif);
	font-weight: 400;
}

p, figure, blockquote, dl, dd {
	margin: 0;
}

/* Zero specificity, so any single-class rule on a list (e.g. .job-list margin) wins. */
:where(ul[class], ol[class]) {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: var(--c-green);
	text-decoration: none;
}

a:hover {
	color: var(--c-ink);
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--c-green);
	outline-offset: 3px;
}

.band--deep :focus-visible,
.site-footer :focus-visible,
.player :focus-visible {
	outline-color: var(--c-d-accent);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 200;
	background: var(--c-ink);
	color: var(--c-sand);
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
}

.skip-link:focus {
	top: 12px;
	color: var(--c-sand);
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-y);
}

.section--tight {
	padding-block: var(--section-y-tight);
}

.band--paper {
	background: var(--c-paper);
	border-top: 1px solid var(--c-rule);
	border-bottom: 1px solid var(--c-rule);
}

.band--stone {
	background: var(--c-stone);
	border-top: 1px solid var(--c-rule);
}

.band--deep {
	background: var(--c-deep);
	color: var(--c-sand);
}

.band--ink {
	background: var(--c-ink);
	color: var(--c-f-text);
}

.site-main {
	display: block;
	min-height: 50vh;
}

.rule-top {
	border-top: 1px solid var(--c-ink);
}

/* ---------- Typography ---------- */
.eyebrow {
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin: 0;
}

.eyebrow--rule {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eyebrow__rule {
	flex: 0 0 28px;
	width: 28px;
	height: 1px;
	background: var(--c-ink);
}

.eyebrow--on-dark,
.band--deep .eyebrow {
	color: var(--c-d-label);
}

.band--deep .eyebrow__rule {
	background: var(--c-d-label);
}

.display {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(46px, 6.2vw, 92px);
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.h1-page {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(44px, 5.6vw, 80px);
	line-height: 1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.h2 {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(38px, 4.6vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.h3 {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(25px, 2.2vw, 28px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.lead {
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.55;
	color: var(--c-graphite);
	text-wrap: pretty;
}

.body-lg {
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-slate);
}

.meta {
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.mono {
	font-family: var(--f-mono);
}

em.accent,
.accent {
	font-style: italic;
	color: var(--c-green);
}

.band--deep em.accent,
.band--deep .accent {
	color: var(--c-d-accent);
}

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
	background: var(--c-green);
	border-color: var(--c-green);
	color: var(--c-sand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-sand);
}

.btn--secondary {
	background: transparent;
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
	background: var(--c-ink);
	color: var(--c-sand);
}

.btn--dark {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-sand);
}

.btn--dark:hover,
.btn--dark:focus-visible {
	background: var(--c-green);
	border-color: var(--c-green);
	color: var(--c-sand);
}

.btn--light {
	background: var(--c-sand);
	border-color: var(--c-sand);
	color: var(--c-deep);
}

.btn--light:hover,
.btn--light:focus-visible {
	background: var(--c-white);
	border-color: var(--c-white);
	color: var(--c-deep);
}

.btn--outline-light {
	background: transparent;
	border-color: var(--c-d-label);
	color: var(--c-sand);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
	background: var(--c-sand);
	border-color: var(--c-sand);
	color: var(--c-deep);
}

.btn--xl {
	padding: 18px 32px;
	font-size: 17px;
}

.btn--md {
	padding: 13px 24px;
	font-size: 15px;
}

.btn--sm {
	padding: 11px 20px;
	font-size: 14px;
}

.btn__arrow {
	display: inline-block;
	transition: transform 0.15s ease;
}

.btn:hover .btn__arrow {
	transform: translateX(2px);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.link-arrow {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-ink);
	border-bottom: 1px solid var(--c-ink);
	padding-bottom: 4px;
	white-space: nowrap;
}

.link-arrow:hover {
	color: var(--c-green);
	border-color: var(--c-green);
}

.text-link {
	font-size: 15px;
	font-weight: 600;
	color: var(--c-green);
}

.text-link:hover {
	color: var(--c-ink);
}

/* ---------- Section head ---------- */
.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}

.section-head__text {
	max-width: 640px;
}

.section-head__title {
	margin: 16px 0 0;
}

.section-head__intro {
	margin: 16px 0 0;
}

/* ---------- Tags, chips, tabs ---------- */
.tag {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	color: var(--c-green);
	background: var(--c-mint);
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--c-rule-strong);
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.chip.is-active,
.chip[aria-pressed="true"],
.chip[aria-current="page"] {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-sand);
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	border-bottom: 1px solid var(--c-rule);
}

.tab {
	display: inline-block;
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 500;
	padding: 12px 0;
	margin-bottom: -1px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--c-subtle);
	cursor: pointer;
}

.tab:hover {
	color: var(--c-ink);
}

.tab.is-active,
.tab[aria-selected="true"],
.tab[aria-current="page"] {
	color: var(--c-ink);
	border-bottom-color: var(--c-ink);
}

/* ---------- Media: placeholders, frames, play badges ---------- */
.media-slot {
	position: relative;
	overflow: hidden;
}

.media-slot > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.placeholder {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 14px;
	background: repeating-linear-gradient(135deg, var(--c-ph-1) 0 10px, var(--c-ph-2) 10px 20px);
}

.placeholder__label {
	font-family: var(--f-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--c-ph-label);
	background: var(--c-sand);
	padding: 5px 9px;
	border-radius: 4px;
}

.placeholder--dark {
	background: repeating-linear-gradient(135deg, var(--c-d-stripe1) 0 10px, var(--c-d-stripe2) 10px 20px);
}

.placeholder--dark .placeholder__label {
	color: var(--c-d-label);
	background: transparent;
	padding: 0;
}

.placeholder--green {
	background: repeating-linear-gradient(135deg, var(--c-green) 0 10px, var(--c-green-2) 10px 20px);
}

.placeholder--green .placeholder__label {
	color: var(--c-d-accent);
	background: rgba(0, 0, 0, 0.25);
}

.media-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-ink);
}

.media-frame > img,
.media-frame > iframe,
.media-frame > .media-slot,
.media-frame > a > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	display: block;
}

/* Linked media without a video (lesson feature): the link fills the frame, and so
   does the striped placeholder inside it when there is no image either. */
.media-frame > a {
	position: absolute;
	inset: 0;
	display: block;
}

.media-frame > a > .media-slot {
	width: 100%;
	height: 100%;
}

.media-frame__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
	text-align: left;
}

.media-frame__play > img,
.media-frame__play > .media-slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The frame clips anything outside it (overflow: hidden), so the focus ring is drawn
   inside: a sand outline plus a green inner ring, visible on dark and light thumbnails. */
.media-frame__play:focus-visible {
	outline: 3px solid var(--c-sand);
	outline-offset: -3px;
}

.media-frame__play:focus-visible::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: calc(var(--radius) - 3px);
	box-shadow: inset 0 0 0 3px var(--c-green);
	pointer-events: none;
}

.watch-pill {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--c-ink);
	color: var(--c-sand);
	padding: 10px 18px 10px 10px;
	border-radius: 999px;
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.media-frame__play:hover .watch-pill,
.media-frame__play:focus-visible .watch-pill {
	background: var(--c-green);
}

.watch-pill__icon {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--c-sand);
	color: var(--c-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	padding-left: 3px;
}

.play-badge {
	--size: 28px;
	width: var(--size);
	height: var(--size);
	border-radius: 999px;
	background: var(--c-ink);
	color: var(--c-sand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: calc(var(--size) * 0.36);
	padding-left: calc(var(--size) * 0.07);
	line-height: 1;
	flex: 0 0 auto;
}

/* ---------- Site header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(245, 242, 236, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--c-rule);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__bar {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--c-ink);
}

.site-logo__img {
	display: block;
	height: 26px;
	width: auto;
}

.site-nav .nav-list,
.site-nav ul {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	font-size: 15px;
	font-weight: 500;
	color: var(--c-ink);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}

.site-nav a:hover {
	color: var(--c-green);
}

.site-nav a[aria-current="page"] {
	border-bottom-color: currentColor;
}

.site-nav .sub-menu {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.site-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	background: transparent;
	font-family: var(--f-mono);
	font-size: 14px;
	line-height: 1;
	color: var(--c-ink);
	align-items: center;
	justify-content: center;
	padding: 0;
}

.site-header__toggle:hover {
	border-color: var(--c-ink);
}

.site-header__toggle-close {
	display: none;
}

.site-header.is-open .site-header__toggle-open {
	display: none;
}

.site-header.is-open .site-header__toggle-close {
	display: inline;
}

/* Sign in (signed out) — a text button beside Join Community. */
.site-header__signin {
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--c-ink);
	padding: 12px 4px;
	white-space: nowrap;
}

.site-header__signin:hover {
	color: var(--c-green);
}

/* The same link at the end of the mobile nav panel, phones only (see ≤ 480px). */
.site-nav__signin {
	display: none;
}

/* Account menu (signed in): avatar + dropdown panel under it, right-aligned. */
.account-menu {
	position: relative;
	display: flex;
	flex: 0 0 auto;
}

.account-menu__toggle {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	padding: 0;
	background: var(--c-mint);
	color: var(--c-green);
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.15s ease;
}

.account-menu__toggle:hover,
.account-menu__toggle[aria-expanded="true"] {
	box-shadow: inset 0 0 0 1px var(--c-green);
}

.account-menu__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 30;
	width: max-content;
	min-width: 240px;
	max-width: min(320px, calc(100vw - 2 * var(--gutter)));
	padding: 18px 20px 6px;
	background: var(--c-paper);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.account-menu__name {
	font-family: var(--f-serif);
	font-size: 18px;
	line-height: 1.25;
	color: var(--c-ink);
	overflow-wrap: anywhere;
}

.account-menu__email {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-muted);
	overflow-wrap: anywhere;
}

.account-menu__links {
	margin-top: 14px;
	border-top: 1px solid var(--c-rule);
}

.account-menu__links li + li {
	border-top: 1px solid var(--c-rule);
}

.account-menu__links a {
	display: block;
	padding: 11px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-ink);
}

.account-menu__links a:hover,
.account-menu__links a[aria-current="page"] {
	color: var(--c-green);
}

/* Phones: the avatar is not at the edge of the bar, so the panel spans the header
   width (positioned against the sticky .site-header) instead of hanging off-screen. */
@media (max-width: 600px) {
	.account-menu {
		position: static;
	}

	.account-menu__panel {
		top: calc(100% + 8px);
		left: var(--gutter);
		right: var(--gutter);
		width: auto;
		min-width: 0;
		max-width: none;
	}
}

@media (max-width: 1079.98px) {
	.site-header__toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--c-sand);
		border-top: 1px solid var(--c-rule);
		border-bottom: 1px solid var(--c-rule);
		padding: 8px var(--gutter) 24px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		box-shadow: 0 24px 40px -32px rgba(21, 23, 26, 0.45);
	}

	.js .site-nav {
		display: none;
	}

	.js .site-header.is-open .site-nav {
		display: block;
	}

	/* Without JS the menu sits in the flow under the bar. */
	html:not(.js) .site-nav {
		position: static;
		box-shadow: none;
	}

	html:not(.js) .site-header {
		position: relative;
	}

	html:not(.js) .site-header__bar {
		flex-wrap: wrap;
		height: auto;
		min-height: var(--header-h);
	}

	html:not(.js) .site-header__toggle {
		display: none;
	}

	.site-nav .nav-list,
	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav li {
		border-bottom: 1px solid var(--c-rule);
	}

	.site-nav li:last-child {
		border-bottom: 0;
	}

	.site-nav a {
		display: block;
		font-family: var(--f-serif);
		font-size: 30px;
		font-weight: 400;
		line-height: 1.25;
		padding: 10px 0;
		border-bottom: 0;
	}

	.site-nav a[aria-current="page"] {
		color: var(--c-green);
	}
}

/* Landing header (Community page) */
.landing-header__bar {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* ---------- Site footer ---------- */
.site-footer {
	background: var(--c-ink);
	color: var(--c-f-text);
}

.site-footer__inner {
	padding-top: 72px;
	padding-bottom: 36px;
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	justify-content: space-between;
}

.site-footer__brand {
	flex: 1 1 320px;
	max-width: 420px;
}

.site-footer__name {
	font-family: var(--f-serif);
	font-size: 30px;
	line-height: 1.2;
	color: var(--c-sand);
}

.site-footer__about {
	font-size: 15px;
	line-height: 1.6;
	margin: 16px 0 0;
}

.site-footer__help {
	font-size: 15px;
	margin: 18px 0 0;
}

.site-footer__help a {
	color: var(--c-sand);
}

.site-footer__help a:hover {
	color: var(--c-d-accent);
}

.site-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
}

.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__label {
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-f-label);
	margin: 0;
}

.site-footer__col a {
	color: var(--c-f-link);
}

.site-footer__col a:hover {
	color: var(--c-white);
}

.site-footer__bottom {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--c-f-rule);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--c-f-label);
}

.site-footer__tagline {
	font-family: var(--f-mono);
}

/* Landing footer (Community page) */
.landing-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 28px;
	padding-bottom: 28px;
	font-size: 13px;
	color: var(--c-muted);
}

.landing-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.landing-footer a {
	color: var(--c-muted);
}

.landing-footer a:hover {
	color: var(--c-ink);
}

/* ---------- Page hero (archives & inner pages) ---------- */
.page-hero {
	padding-top: clamp(40px, 6vw, 88px);
	padding-bottom: clamp(36px, 5vw, 64px);
}

.page-hero__title {
	margin: 22px 0 0;
}

.page-hero__intro {
	max-width: 600px;
	margin: 22px 0 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 10px;
	color: var(--c-rule-strong);
}

.breadcrumbs a {
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-ink);
}

.breadcrumbs [aria-current="page"] {
	color: var(--c-ink);
}

/* ---------- Pagination ---------- */
.pagination {
	margin-top: 48px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-ink);
}

.pagination a:hover {
	border-color: var(--c-ink);
}

.pagination .current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-sand);
}

.pagination .dots {
	border-color: transparent;
}

/* ---------- Empty state ---------- */
.empty-state {
	padding: 40px 0;
	border-bottom: 1px solid var(--c-rule);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-slate);
	max-width: 640px;
}

.empty-state a {
	font-weight: 600;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* ---------- Job row (default list layout) ---------- */
.job-list {
	margin-top: 28px;
	border-top: 1px solid var(--c-ink);
}

.job-list > li {
	display: block;
}

.job-row {
	--row-hover: var(--c-stone);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
	padding: var(--item-pad-y) var(--item-pad-x);
	border-bottom: 1px solid var(--c-rule);
	color: var(--c-ink);
	transition: background-color 0.15s ease;
}

.band--paper .job-row {
	--row-hover: var(--c-sand);
}

/* Full-bleed highlight between the dividers; content keeps its inner padding. */
.job-row:hover,
.job-row:focus-visible {
	background: var(--row-hover);
	color: var(--c-ink);
}

.job-row__main {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.job-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.job-row__title {
	font-family: var(--f-serif);
	font-size: 27px;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.job-row__company {
	font-size: 15px;
	color: var(--c-slate);
}

.job-row__facts {
	flex: 2 1 420px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px 24px;
	font-size: 14.5px;
	margin: 0;
}

.job-row__fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.job-row__fact dt {
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-subtle);
}

.job-row__fact dd {
	margin: 0;
}

.job-row__cta {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--c-ink);
	border-radius: 999px;
	padding: 11px 18px;
	white-space: nowrap;
}

/* ---------- Job card (alt layout) ---------- */
.job-grid {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 16px;
}

.job-grid > li {
	display: flex;
}

.job-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--item-pad-y) var(--item-pad-x);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius);
	background: var(--c-paper);
	color: var(--c-ink);
	min-height: 260px;
	transition: border-color 0.15s ease;
}

.band--paper .job-card {
	background: var(--c-sand);
}

.job-card:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.job-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.job-card__meta .tag {
	font-size: 11px;
}

.job-card__title {
	font-family: var(--f-serif);
	font-size: 26px;
	line-height: 1.15;
	margin-top: 6px;
}

.job-card__line {
	font-size: 15px;
	color: var(--c-slate);
}

.job-card__line--sm {
	font-size: 14px;
}

.job-card__foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--c-rule);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14.5px;
	font-weight: 600;
}

.job-card__foot-cta {
	color: var(--c-green);
	white-space: nowrap;
}

/* ---------- Lesson feature (homepage widget + learn archive) ---------- */
.lesson-feature {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--c-ink);
	min-width: 0;
}

.lesson-feature__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.lesson-feature__topic {
	color: var(--c-green);
}

/* Type sits on the h2/h3 so its line box matches the inline title link inside it. */
.lesson-feature__heading {
	font-family: var(--f-serif);
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.lesson-feature__title {
	font-size: inherit;
	line-height: inherit;
	color: var(--c-ink);
}

.lesson-feature__title:hover {
	color: var(--c-green);
}

.lesson-feature__excerpt {
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-slate);
	max-width: 620px;
}

/* ---------- Lesson item (small horizontal) ---------- */
.lesson-list > li {
	display: block;
}

.lesson-item {
	display: flex;
	gap: 18px;
	width: 100%;
	padding: 18px 0;
	border: 0;
	border-bottom: 1px solid var(--c-rule);
	background: transparent;
	color: var(--c-ink);
	align-items: center;
	text-align: left;
	font-family: var(--f-sans);
	cursor: pointer;
}

.lesson-item:hover {
	color: var(--c-green);
}

.lesson-item__thumb {
	position: relative;
	flex: 0 0 120px;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--c-ph-1);
}

.lesson-item__thumb img,
.lesson-item__thumb .media-slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lesson-item__thumb .play-badge {
	--size: 26px;
	position: absolute;
	right: 6px;
	bottom: 6px;
}

.lesson-item__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.lesson-item__meta {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-green);
}

.lesson-item__title {
	font-family: var(--f-serif);
	font-size: 20px;
	line-height: 1.2;
}

/* ---------- Lesson card (archive grid) ---------- */
.lesson-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 48px 32px;
}

.lesson-grid > li {
	display: flex;
}

.lesson-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--c-ink);
}

.lesson-card:hover {
	color: var(--c-ink);
}

.lesson-card:hover .lesson-card__title {
	color: var(--c-green);
}

.lesson-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-ph-1);
	margin-bottom: 6px;
}

.lesson-card__media img,
.lesson-card__media .media-slot {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lesson-card:hover .lesson-card__media img {
	transform: scale(1.02);
}

.lesson-card__media .play-badge {
	--size: 36px;
	position: absolute;
	left: 14px;
	bottom: 14px;
}

.lesson-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.lesson-card__topic {
	color: var(--c-green);
}

.lesson-card__title {
	font-family: var(--f-serif);
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
	transition: color 0.15s ease;
}

.lesson-card__excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-slate);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Episode row ---------- */
.episode-list {
	border-top: 1px solid var(--c-rule-stone);
}

.episode-list > li {
	display: block;
}

.episode-row {
	width: 100%;
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--c-rule-stone);
	background: transparent;
	color: var(--c-ink);
	text-align: left;
	font-family: var(--f-sans);
	cursor: pointer;
}

.episode-row:hover {
	color: var(--c-green);
}

.episode-row__art {
	position: relative;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: repeating-linear-gradient(135deg, #D9D2C5 0 6px, #E2DCD1 6px 12px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.episode-row__art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.episode-row__art .play-badge {
	position: relative;
	--size: 28px;
}

.episode-row__body {
	flex: 1;
	min-width: 0;
}

.episode-row__meta,
.episode-row__title {
	display: block;
}

.episode-row__meta {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.episode-row__title {
	font-family: var(--f-serif);
	font-size: 21px;
	line-height: 1.2;
	margin-top: 4px;
}

.episode-row__action {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- Entry cards ("What are you looking for?", 404 destinations) ----------
   <ul class="entry-cards"><li><a class="entry-card">
     .entry-card__num, .entry-card__title, .entry-card__text, .entry-card__cta */
.entry-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	border-top: 1px solid var(--c-ink);
}

.entry-cards > li {
	display: flex;
	min-width: 0;
}

.entry-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	min-height: 260px;
	padding: 28px 28px 30px 0;
	border-bottom: 1px solid var(--c-rule);
	color: var(--c-ink);
	transition: color 0.15s ease;
}

.entry-card:hover {
	color: var(--c-green);
}

.entry-card__num {
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--c-muted);
}

.entry-card__title {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.entry-card__text {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--c-slate);
}

.entry-card__cta {
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-green);
}

/* ---------- Benefits (numbered feature list) ----------
   <ol class="benefits"><li class="benefit">
     .benefit__num, .benefit__body > .benefit__title + .benefit__text
   Light (default, Community page): number above the text, ink rule.
   Dark (.benefit--dark, homepage community band): number beside the text. */
.benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	column-gap: 40px;
}

.benefit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 24px 0 34px;
	border-top: 1px solid var(--c-ink);
}

.benefit__num {
	flex: 0 0 auto;
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--c-muted);
}

.benefit__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.benefit__title {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(26px, 2.4vw, 32px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.benefit__text {
	max-width: 340px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--c-slate);
}

.benefit--dark {
	flex-direction: row;
	gap: 20px;
	padding-bottom: 30px;
	border-top-color: var(--c-d-rule);
}

.benefit--dark .benefit__num {
	padding-top: 6px;
	color: var(--c-d-label);
}

.benefit--dark .benefit__body {
	gap: 8px;
}

.benefit--dark .benefit__title {
	font-size: 25px;
	line-height: 1.2;
	letter-spacing: 0;
}

.benefit--dark .benefit__text {
	max-width: none;
	font-size: 15px;
	color: var(--c-d-body);
}

/* ---------- Community CTA band ---------- */
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 32px 64px;
}

.cta-band__text {
	flex: 1 1 480px;
	max-width: 680px;
}

.cta-band__title {
	font-family: var(--f-serif);
	font-size: clamp(34px, 4vw, 56px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 16px 0 0;
	text-wrap: balance;
}

.cta-band__copy {
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-d-lead);
	margin: 18px 0 0;
	max-width: 560px;
}

.cta-band__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.cta-band__note {
	font-family: var(--f-mono);
	font-size: 12.5px;
	color: var(--c-d-label);
}

/* ---------- Contact link rows (homepage #contact, Contact page) ----------
   <ul class="contact-links"> > li > a.contact-link(--email|--linkedin|--youtube)
   > .contact-link__body (__label + __value) + .contact-link__arrow. Rendered by abcbim_contact_links(). */
.contact-links {
	border-top: 1px solid var(--c-ink);
}

.contact-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-rule);
	color: var(--c-ink);
	transition: color 0.15s ease;
}

.contact-link--email {
	padding: 22px 0;
}

.contact-link:hover {
	color: var(--c-green);
}

/* The design sets these rows at the browser's "normal" line height, not the body's 1.5. */
.contact-link__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	line-height: 1.25;
}

.contact-link__label {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.contact-link__value {
	font-size: 17px;
	overflow-wrap: anywhere;
}

.contact-link--email .contact-link__value {
	font-family: var(--f-serif);
	font-size: clamp(24px, 2.4vw, 32px);
}

.contact-link__arrow {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

.contact-link--email .contact-link__arrow {
	font-size: 20px;
}

/* ---------- Podcast player dialog ---------- */
.player {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: clamp(16px, 4vw, 56px);
	border: 0;
	background: transparent;
	color: var(--c-sand);
	overflow: auto;
}

.player[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.player::backdrop {
	background: rgba(15, 17, 19, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.player__inner {
	position: relative;
	width: min(1100px, 100%);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.player__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
}

.player__heading {
	min-width: 0;
}

.player__meta {
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-d-label);
}

.player__title {
	font-family: var(--f-serif);
	font-size: clamp(22px, 2.4vw, 32px);
	line-height: 1.15;
	margin-top: 8px;
	color: var(--c-sand);
}

.player__close {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: 1px solid #5A5D62;
	background: transparent;
	color: var(--c-sand);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.player__close:hover {
	background: var(--c-sand);
	color: var(--c-ink);
}

.player__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.player__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.player__placeholder {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(135deg, var(--c-green) 0 12px, var(--c-green-2) 12px 24px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.player__placeholder span {
	font-family: var(--f-mono);
	font-size: 12px;
	color: var(--c-d-accent);
	background: rgba(0, 0, 0, 0.35);
	padding: 6px 10px;
	border-radius: 4px;
}

.player__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	font-size: 14px;
	color: var(--c-f-text);
}

.player__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.player__links a {
	color: var(--c-sand);
	font-weight: 600;
}

.player__links a:hover {
	color: var(--c-d-accent);
}

/* ---------- Auth dialog ("Sign up to apply") ----------
   <dialog class="auth" data-auth> > .auth__panel > close, .auth__job, form view, done view.
   Like .player: the dialog fills the viewport (clicks on it = backdrop) and centres the panel. */
.auth {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 16px;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	overflow: auto;
}

.auth[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth::backdrop {
	background: rgba(15, 17, 19, 0.7);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.auth__panel {
	position: relative;
	width: min(480px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--c-paper);
	border-radius: 16px;
	padding: clamp(24px, 4vw, 36px);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}

.auth__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--c-rule);
	background: transparent;
	color: var(--c-ink);
	font-size: 15px;
	line-height: 1;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.auth__close:hover {
	border-color: var(--c-ink);
}

/* Job summary (when the dialog was opened from a job's apply button). */
.auth__job {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 48px 18px 0;
	border-bottom: 1px solid var(--c-rule);
}

.auth__job-tag {
	align-self: flex-start;
	font-size: 11px;
}

.auth__job-title {
	font-family: var(--f-serif);
	font-size: 24px;
	line-height: 1.15;
	margin-top: 4px;
	overflow-wrap: anywhere;
}

.auth__job-meta {
	font-size: 14px;
	line-height: 1.45;
	color: var(--c-slate);
}

/* Without the job block, keep the first line of each view clear of the close button. */
.auth__job[hidden] ~ .auth__view > :first-child {
	padding-right: 44px;
}

.auth__title {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 22px 0 0;
	text-wrap: balance;
}

.auth__title:focus {
	outline: none;
}

.auth__sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-slate);
	margin: 8px 0 0;
}

/* Social sign-in */
.auth__socials {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 22px;
}

.auth__social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 6px 18px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	background: var(--c-white);
	font-family: var(--f-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--c-ink);
	text-align: center;
	transition: border-color 0.15s ease;
}

.auth__social:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.auth__badge {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--f-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border-radius: 999px;
	border: 1.5px solid var(--c-ink);
}

.auth__badge--linkedin {
	border: 0;
	border-radius: 4px;
	background: var(--c-linkedin);
	color: var(--c-white);
}

.auth__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-subtle);
}

.auth__or::before,
.auth__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--c-rule);
}

/* Email form */
.auth__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 22px;
}

.auth__or + .auth__form {
	margin-top: 0;
}

.auth__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.auth__label,
.contact-form__label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--c-ink);
}

.auth__input,
.contact-form__input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 10px;
	background: var(--c-white);
	font-family: var(--f-sans);
	font-size: 15px;
	color: var(--c-ink);
	-webkit-appearance: none;
	appearance: none;
}

.auth__input::placeholder,
.contact-form__input::placeholder {
	color: var(--c-subtle);
	opacity: 1;
}

.auth__input:focus,
.auth__input:focus-visible,
.contact-form__input:focus,
.contact-form__input:focus-visible {
	outline: 2px solid var(--c-green);
	outline-offset: 1px;
}

.auth__input[aria-invalid="true"],
.contact-form__input[aria-invalid="true"] {
	border-color: var(--c-error);
}

/* Extra field kept off-screen and out of the tab order. */
.auth__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.auth__error,
.contact-form__error {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--c-error);
}

.auth__submit,
.contact-form__submit {
	height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 999px;
	background: var(--c-green);
	color: var(--c-sand);
	font-family: var(--f-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.auth__submit:hover,
.contact-form__submit:hover {
	background: var(--c-ink);
}

.auth__submit[aria-disabled="true"],
.contact-form__submit[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

.auth__submit[aria-disabled="true"]:hover,
.contact-form__submit[aria-disabled="true"]:hover {
	background: var(--c-green);
}

.auth__forgot {
	margin-top: 14px;
	text-align: center;
	font-size: 14px;
}

.auth__forgot a {
	color: var(--c-slate);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth__forgot a:hover {
	color: var(--c-ink);
}

.auth__switch {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-slate);
	text-align: center;
}

.auth__switch-btn {
	border: 0;
	background: transparent;
	padding: 0;
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--c-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth__switch-btn:hover {
	color: var(--c-ink);
}

.auth__fine {
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--c-muted);
	text-align: center;
}

.auth__fine a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.auth__fine a:hover {
	color: var(--c-ink);
}

/* Done view */
.auth__signed {
	margin-top: 22px;
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-green);
	overflow-wrap: anywhere;
}

.auth__title--done {
	margin-top: 10px;
}

.auth__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

.auth__apply,
.auth__secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-family: var(--f-sans);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.auth__apply {
	min-height: 52px;
	padding: 8px 20px;
	background: var(--c-green);
	color: var(--c-sand);
	font-size: 16px;
}

.auth__apply:hover {
	background: var(--c-ink);
	color: var(--c-sand);
}

.auth__secondary {
	min-height: 50px;
	padding: 8px 20px;
	border: 1px solid var(--c-ink);
	background: transparent;
	color: var(--c-ink);
	font-size: 15px;
}

.auth__secondary:hover {
	background: var(--c-ink);
	color: var(--c-sand);
}

/* ---------- Contact dialog ("Contact abcBIM.com") ----------
   <dialog class="auth contact-dialog" data-contact> reuses the auth shell (.auth, .auth__panel,
   .auth__close, .auth__secondary) with a wider panel; the form below is shared with the Contact page. */
.contact-dialog .auth__panel {
	width: min(540px, 100%);
}

.contact-dialog__eyebrow {
	padding-right: 48px;
	font-family: var(--f-mono);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--c-muted);
}

.contact-dialog__title {
	margin: 10px 48px 0 0;
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.contact-dialog__title:focus {
	outline: none;
}

.contact-dialog__sub {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-slate);
}

.contact-dialog__done {
	width: 100%;
	margin-top: 24px;
}

/* ---------- Contact form (dialog + Contact page) ----------
   Inputs, labels, the error line and the submit button share the auth form rules above. */
.contact-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 22px;
}

.contact-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.contact-form__textarea {
	height: auto;
	min-height: 96px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

/* Topic: a radio group drawn as the design's chips. */
.contact-form__topics {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.contact-form__legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
}

.contact-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.contact-chip {
	position: relative;
	display: inline-flex;
	max-width: 100%;
}

/* The real radio covers the chip (invisible), so taps, clicks and assistive tech all reach it. */
.contact-chip__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.contact-chip__label {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border: 1px solid var(--c-rule-strong);
	border-radius: 999px;
	background: transparent;
	font-family: var(--f-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--c-ink);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contact-chip:hover .contact-chip__label {
	border-color: var(--c-ink);
}

.contact-chip__input:checked + .contact-chip__label {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-sand);
}

.contact-chip__input:focus-visible + .contact-chip__label {
	outline: 2px solid var(--c-green);
	outline-offset: 3px;
}

@media (forced-colors: active) {
	.contact-chip__input:checked + .contact-chip__label {
		forced-color-adjust: none;
		background: Highlight;
		border-color: Highlight;
		color: HighlightText;
	}
}

/* Kept off-screen (not display:none) and out of the tab order. */
.contact-form__aux {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Optional check (Cloudflare Turnstile), rendered by main.js only when needed. */
.contact-form__challenge {
	display: flex;
	justify-content: center;
	min-height: 65px;
	max-width: 100%;
}

.contact-form__privacy {
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-muted);
	text-align: center;
}

.contact-form__privacy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.contact-form__privacy a:hover {
	color: var(--c-ink);
}

/* "Prefer email?" */
.contact-form__alt {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--c-rule);
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-slate);
}

.contact-form__mail {
	font-weight: 600;
	color: var(--c-green);
	overflow-wrap: anywhere;
}

.contact-form__mail:hover {
	color: var(--c-ink);
}

/* After a delivery failure the address is the way forward: make it stand out. */
.contact-form__mail.is-emphasised {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Phones (≤ 480px) ---------- */
@media (max-width: 480px) {
	.site-header__bar {
		gap: 12px;
	}

	.site-header__actions {
		gap: 8px;
	}

	/* Sign in moves from the bar to the end of the mobile nav panel. */
	.site-header__signin {
		display: none;
	}

	.site-nav__signin {
		display: block;
		border-top: 1px solid var(--c-rule);
	}

	.site-nav .site-nav__signin a {
		color: var(--c-green);
	}

	/* 16px stops iOS zooming into the field on focus. */
	.auth__input,
	.contact-form__input {
		font-size: 16px;
	}
}

/* ---------- Small phones (≤ 400px) ---------- */
@media (max-width: 400px) {
	.site-header__bar,
	.landing-header__bar {
		gap: 10px;
	}

	.site-header__actions {
		gap: 8px;
	}

	.site-header__actions .btn--sm,
	.landing-header__bar .btn--sm {
		padding: 10px 14px;
		font-size: 13px;
	}

	.site-header__toggle {
		width: 40px;
		height: 40px;
	}

	/* Signed in, the avatar takes Join Community's place in the bar (Community is in the menu). */
	.site-header__actions--member .site-header__join {
		display: none;
	}

	/* Long labels wrap instead of pushing the page sideways. */
	.btn {
		white-space: normal;
		text-align: center;
		max-width: 100%;
	}
}

/* Close icon (inline SVG — consistent on every platform, unlike the ✕ glyph). */
.icon-close {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.player__close .icon-close {
	width: 16px;
	height: 16px;
	margin: 0 auto;
}

.site-header__toggle-close .icon-close {
	width: 13px;
	height: 13px;
}

.site-header.is-open .site-header__toggle-close {
	display: inline-flex;
}
