/* BE Golf Links Events: signup page and calendar. Everything is scoped to .bgl so the theme is untouched. */

.bgl {
	--bgl-accent: #1e4d3b;
	--bgl-ink: #15201c;
	--bgl-soft: #56625c;
	--bgl-paper: #ffffff;
	--bgl-wash: #eef1ec;
	--bgl-line: #d3dad3;
	--bgl-flag: #e0b23a;
	--bgl-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--bgl-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bgl-gutter: clamp(20px, 5vw, 64px);
	--bgl-max: 1180px;

	background: var(--bgl-paper);
	color: var(--bgl-ink);
	font-family: var(--bgl-body);
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

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

:where(.bgl) h1, :where(.bgl) h2, :where(.bgl) h3 {
	font-family: var(--bgl-display);
	font-weight: 400;
	color: inherit;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
:where(.bgl) :is(p, ul, ol, dl, dd, fieldset) { margin: 0; padding: 0; }
:where(.bgl) :is(ul, ol) { list-style: none; }
.bgl a { color: var(--bgl-accent); text-underline-offset: 3px; }
.bgl a:focus-visible, .bgl button:focus-visible, .bgl input:focus-visible, .bgl select:focus-visible, .bgl textarea:focus-visible {
	outline: 3px solid var(--bgl-flag);
	outline-offset: 2px;
}

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

.bgl-hero {
	background-color: var(--bgl-accent);
	background-size: cover;
	background-position: center;
	color: #fff;
	position: relative;
	display: flex;
	align-items: flex-end;
}
.bgl-hero.has-photo { min-height: 300px; }
.bgl-hero.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 22, 17, .82) 0%, rgba(10, 22, 17, .35) 55%, rgba(10, 22, 17, .2) 100%);
}
.bgl-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--bgl-max);
	margin: 0 auto;
	padding: 28px var(--bgl-gutter) 32px;
}
.bgl .bgl-hero__back { margin-bottom: 22px; font-size: 15px; }
.bgl .bgl-hero__back a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.bgl .bgl-hero__back a:hover { border-bottom-color: #fff; }
.bgl .bgl-hero__date { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.bgl .bgl-hero__name {
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.05;
	letter-spacing: -.01em;
	text-wrap: balance;
	color: #fff;
}
.bgl .bgl-hero__place { font-size: 18px; margin-top: 6px; opacity: .92; }

/* ---------- Facts ---------- */

.bgl-facts {
	max-width: var(--bgl-max);
	margin: 0 auto;
	padding: 0 var(--bgl-gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	border-bottom: 1px solid var(--bgl-line);
}
.bgl-facts__item { padding: 16px 24px 16px 0; }
.bgl-facts__item + .bgl-facts__item { padding-left: 24px; border-left: 1px solid var(--bgl-line); }
.bgl-facts dt { font-size: 14px; color: var(--bgl-soft); margin-bottom: 4px; }
.bgl-facts dd { font-size: 17px; font-weight: 500; line-height: 1.4; }
.bgl-facts dd a { color: inherit; }

.bgl-tentative {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--bgl-body);
	font-size: 13px;
	font-weight: 500;
	color: var(--bgl-soft);
	white-space: nowrap;
	vertical-align: middle;
}
.bgl-tentative::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--bgl-flag);
}

/* ---------- Story + card ---------- */

.bgl-main {
	max-width: var(--bgl-max);
	margin: 0 auto;
	padding: clamp(24px, 3.5vw, 44px) var(--bgl-gutter) clamp(40px, 6vw, 72px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.bgl-story { max-width: 66ch; }
.bgl .bgl-lead {
	font-family: var(--bgl-display);
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.25;
	margin-bottom: 28px;
	text-wrap: balance;
}
.bgl-prose p { margin-bottom: 1.1em; }
.bgl-prose p:last-child { margin-bottom: 0; }

.bgl-section { margin-top: clamp(40px, 6vw, 64px); }
.bgl .bgl-section > h2 {
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
}

.bgl-day {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--bgl-line);
}
.bgl-day:last-child { border-bottom: 1px solid var(--bgl-line); }
.bgl .bgl-day__name { font-size: 22px; line-height: 1.3; }
.bgl-day__list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 3px 0; }
.bgl-day__time { color: var(--bgl-soft); font-size: 15px; padding-top: 2px; }
.bgl-day__what strong { font-weight: 600; }
.bgl-day__what span { display: block; color: var(--bgl-soft); font-size: 15px; }

.bgl-courses li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid var(--bgl-line);
}
.bgl-courses li:last-child { border-bottom: 1px solid var(--bgl-line); }
.bgl-courses__name { font-family: var(--bgl-display); font-size: 22px; }
.bgl-courses a { font-size: 15px; }

.bgl-included { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 32px; }
.bgl-included li { padding-left: 22px; position: relative; }
.bgl-included li::before {
	content: "";
	position: absolute;
	left: 0; top: .62em;
	width: 10px; height: 6px;
	border-left: 2px solid var(--bgl-accent);
	border-bottom: 2px solid var(--bgl-accent);
	transform: rotate(-45deg) translateY(-2px);
}

.bgl-card {
	position: sticky;
	top: 32px;
	background: var(--bgl-wash);
	padding: 28px;
	border-radius: 4px;
}
.bgl .bgl-card__price { font-family: var(--bgl-display); font-size: 46px; line-height: 1; }
.bgl .bgl-card__price span { font-family: var(--bgl-body); font-size: 15px; color: var(--bgl-soft); }
.bgl .bgl-card__price--tba { font-size: 26px; line-height: 1.2; }
.bgl .bgl-card__note { font-size: 14px; color: var(--bgl-soft); margin-top: 8px; line-height: 1.45; }
.bgl-card__sheet { margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--bgl-line); }
.bgl .bgl-card__spots { font-size: 15px; font-weight: 500; margin-top: 12px; }
.bgl .bgl-card .bgl-btn--full { margin-top: 22px; }
.bgl-card__sheet + .bgl-btn--full { margin-top: 0 !important; }
.bgl .bgl-card__closed { font-weight: 500; margin-top: 20px; }
.bgl .bgl-card__contact { font-size: 14px; color: var(--bgl-soft); margin-top: 20px; line-height: 1.5; }
.bgl .bgl-card__contact a { display: block; overflow-wrap: anywhere; }

/* The tee sheet: one peg per spot, grouped by team. */
.bgl-sheet { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bgl-sheet__team { display: inline-flex; gap: 5px; }
.bgl-sheet__peg {
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 2px solid var(--bgl-accent);
	background: transparent;
}
.bgl-sheet__peg.is-taken { background: var(--bgl-accent); }

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

.bgl .bgl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 0;
	border-radius: 3px;
	background: var(--bgl-accent);
	color: #fff;
	font: 600 17px/1.2 var(--bgl-body);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: filter .15s ease;
}
.bgl .bgl-btn:hover { filter: brightness(1.18); color: #fff; }
.bgl .bgl-btn--full { width: 100%; }

/* ---------- Register ---------- */

.bgl-register { background: var(--bgl-wash); scroll-margin-top: 24px; }
.bgl-register__inner { max-width: 860px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--bgl-gutter); }
.bgl .bgl-register__title { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin-bottom: 12px; }
.bgl .bgl-register__intro { color: var(--bgl-soft); max-width: 58ch; margin-bottom: 36px; }

.bgl-notices:empty { display: none; }
.bgl-notices ul, .bgl-notices .woocommerce-error, .bgl-notices .woocommerce-message, .bgl-notices .woocommerce-info {
	list-style: none;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #fff;
	border: 0;
	border-left: 4px solid #b3261e;
	color: var(--bgl-ink);
	font-size: 16px;
}
.bgl-notices .woocommerce-error::before, .bgl-notices .woocommerce-message::before, .bgl-notices .woocommerce-info::before { display: none; }
.bgl-notices li + li { margin-top: 6px; }
.bgl .bgl-error { background: #fff; border-left: 4px solid #b3261e; padding: 14px 18px; margin-bottom: 24px; }

.bgl .bgl-group { border: 0; margin: 0 0 36px; min-width: 0; }
.bgl .bgl-group[hidden] { display: none; }
.bgl .bgl-group > legend {
	font-family: var(--bgl-display);
	font-size: 26px;
	line-height: 1.2;
	padding: 0 0 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--bgl-line);
	width: 100%;
	float: left;
}
.bgl .bgl-group > legend + * { clear: both; }

.bgl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.bgl-field--wide { grid-column: 1 / -1; }
.bgl form > .bgl-field--wide { margin-bottom: 32px; }
.bgl .bgl-field > label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.bgl-optional { font-weight: 400; color: var(--bgl-soft); font-size: 14px; }
.bgl .bgl-field input[type="text"],
.bgl .bgl-field input[type="email"],
.bgl .bgl-field input[type="tel"],
.bgl .bgl-field select,
.bgl .bgl-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid #b9c2ba;
	border-radius: 3px;
	background: #fff;
	color: var(--bgl-ink);
	font: 400 17px/1.4 var(--bgl-body);
	box-shadow: none;
	margin: 0;
}
.bgl .bgl-field textarea { resize: vertical; }
.bgl .bgl-field input:focus, .bgl .bgl-field select:focus, .bgl .bgl-field textarea:focus { border-color: var(--bgl-accent); }

.bgl-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.bgl-choice label { position: relative; cursor: pointer; }
.bgl-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bgl-choice span {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 10px 22px;
	border: 1px solid #b9c2ba;
	border-radius: 3px;
	background: #fff;
	font-weight: 500;
}
.bgl-choice input:checked + span { background: var(--bgl-accent); border-color: var(--bgl-accent); color: #fff; }
.bgl-choice input:focus-visible + span { outline: 3px solid var(--bgl-flag); outline-offset: 2px; }

.bgl-stack { display: grid; gap: 14px; }
.bgl .bgl-radio { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.bgl .bgl-radio input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--bgl-accent); flex: none; }
.bgl-field--indent { margin-left: 32px !important; max-width: 420px; }
.bgl-field--indent[hidden] { display: none; }

.bgl-form__submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bgl-line);
}
.bgl p.bgl-form__submit { border-top: 0; padding-top: 28px; }
.bgl .bgl-total { display: flex; align-items: baseline; gap: 14px; }
.bgl .bgl-total span { color: var(--bgl-soft); }
.bgl .bgl-total strong { font-family: var(--bgl-display); font-weight: 400; font-size: 34px; line-height: 1; }

.bgl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bgl-done { background: #fff; padding: 36px; border-left: 4px solid var(--bgl-accent); }
.bgl .bgl-done h2 { font-size: 32px; margin-bottom: 8px; }

/* Phone: price and button stay in reach. */
.bgl-bar { display: none; }

/* ---------- Calendar ---------- */

.bgl-calendar { padding: clamp(28px, 4vw, 56px) var(--bgl-gutter) clamp(56px, 7vw, 96px); container-type: inline-size; }
.bgl-calendar--embedded { padding-left: 0; padding-right: 0; }
.bgl-calendar__head, .bgl-tiles, .bgl-season, .bgl .bgl-calendar__empty { max-width: var(--bgl-max); margin-left: auto; margin-right: auto; }
.bgl .bgl-calendar__title { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.01em; }
.bgl .bgl-calendar__intro { font-size: clamp(17px, 1.8vw, 20px); color: var(--bgl-soft); max-width: 56ch; margin-top: 10px; }

.bgl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: clamp(24px, 3.5vw, 40px); }

.bgl .bgl-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bgl-line);
	border-radius: 8px;
	overflow: hidden;
	color: var(--bgl-ink);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bgl .bgl-tile:hover, .bgl .bgl-tile:focus-visible {
	transform: translateY(-4px);
	border-color: var(--bgl-accent);
	box-shadow: 0 22px 44px -26px rgba(21, 32, 28, .55);
	color: var(--bgl-ink);
}

/* The top of a tile: the event's photo, or the brand colour with a faint course-contour pattern. */
.bgl-tile__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	gap: 28px;
	min-height: 210px;
	padding: 22px 24px;
	color: #fff;
	background-color: var(--bgl-accent);
	background-image: repeating-radial-gradient(circle at 88% 135%, rgba(255, 255, 255, .09) 0 1.5px, transparent 1.5px 30px);
}
.bgl-tiles > :nth-child(3n+2) .bgl-tile__panel:not(.has-photo) { background-color: color-mix(in srgb, var(--bgl-accent) 74%, #000); background-image: repeating-radial-gradient(circle at 12% 140%, rgba(255, 255, 255, .09) 0 1.5px, transparent 1.5px 30px); }
.bgl-tiles > :nth-child(3n+3) .bgl-tile__panel:not(.has-photo) { background-color: color-mix(in srgb, var(--bgl-accent) 80%, #fff); background-image: repeating-radial-gradient(circle at 50% 160%, rgba(255, 255, 255, .09) 0 1.5px, transparent 1.5px 30px); }
.bgl-tile__panel.has-photo { background-size: cover; background-position: center; }
.bgl-tile__panel.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 22, 17, .8), rgba(10, 22, 17, .15) 70%); }
.bgl-tile__panel > * { position: relative; }

.bgl-tile__chip { padding: 5px 13px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; }
.bgl-tile__chip--register { background: var(--bgl-flag); color: #1c1503; }
.bgl-tile__chip--waitlist { background: #fff; color: var(--bgl-ink); }
.bgl-tile__when { display: flex; flex-direction: column; gap: 4px; }
.bgl-tile__date { font-family: var(--bgl-display); font-size: clamp(34px, 4.2cqw, 50px); line-height: 1; }
.bgl-tile__year { font-size: 16px; font-weight: 500; opacity: .92; }

.bgl-tile__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.bgl .bgl-tile__name { font-size: clamp(26px, 3cqw, 32px); line-height: 1.1; margin-bottom: 8px; }
.bgl .bgl-tile__place { font-weight: 600; }
.bgl .bgl-tile__stay { color: var(--bgl-soft); font-size: 15px; }
.bgl .bgl-tile__tagline { color: var(--bgl-soft); margin-top: 12px; margin-bottom: 20px; max-width: 52ch; }
.bgl-tile__sheet { margin-bottom: 20px; }
.bgl .bgl-tile__sheet p { font-size: 15px; font-weight: 500; margin-top: 10px; }
.bgl-tile__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--bgl-line); }
.bgl .bgl-tile__price { color: var(--bgl-soft); font-size: 15px; }
.bgl .bgl-tile__price strong { font-family: var(--bgl-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--bgl-ink); margin-right: 2px; }
.bgl-tile__go { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 20px; border: 1.5px solid var(--bgl-accent); border-radius: 3px; color: var(--bgl-accent); font-weight: 600; font-size: 16px; transition: background-color .18s ease, color .18s ease; }
.bgl-tile__go--register, .bgl-tile:hover .bgl-tile__go, .bgl-tile:focus-visible .bgl-tile__go { background: var(--bgl-accent); color: #fff; }

/* The lead event: full width, photo or colour panel on the left, details on the right. */
.bgl .bgl-tile--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.bgl-tile--feature .bgl-tile__panel { min-height: 360px; padding: 28px 32px; }
.bgl-tile--feature .bgl-tile__date { font-size: clamp(40px, 6cqw, 72px); }
.bgl-tile--feature .bgl-tile__year { font-size: 18px; }
.bgl-tile--feature .bgl-tile__body { padding: 32px; }
.bgl .bgl-tile--feature .bgl-tile__name { font-size: clamp(32px, 4.4cqw, 48px); margin-bottom: 10px; }
.bgl .bgl-tile--feature .bgl-tile__place { font-size: 18px; }

@container (max-width: 820px) {
	.bgl-tiles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bgl .bgl-tile--feature { display: flex; }
	.bgl-tile--feature .bgl-tile__panel { min-height: 230px; padding: 22px 24px; }
	.bgl-tile--feature .bgl-tile__body { padding: 24px; }
	.bgl-tile__date, .bgl-tile--feature .bgl-tile__date { font-size: 38px; }
	.bgl .bgl-tile__name, .bgl .bgl-tile--feature .bgl-tile__name { font-size: 28px; }
	.bgl-tile__go { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.bgl .bgl-tile, .bgl-tile__go { transition: none; }
	.bgl .bgl-tile:hover, .bgl .bgl-tile:focus-visible { transform: none; }
}

.bgl-season { margin-top: clamp(40px, 6vw, 72px); }
.bgl .bgl-season__year { font-family: var(--bgl-display); font-size: 26px; line-height: 1.2; padding-bottom: 12px; border-bottom: 1px solid var(--bgl-line); }

.bgl .bgl-row {
	display: grid;
	gap: clamp(16px, 3vw, 40px);
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--bgl-line);
	color: var(--bgl-ink);
	text-decoration: none;
}
.bgl-row__body { display: flex; flex-direction: column; gap: 2px; }
.bgl-row__name { font-family: var(--bgl-display); line-height: 1.15; }
.bgl .bgl-row:hover .bgl-row__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bgl-row__status { color: var(--bgl-soft); font-size: 15px; text-align: right; }
.bgl-row__price { font-size: 18px; font-weight: 600; color: var(--bgl-ink); }

.bgl .bgl-row--plain { grid-template-columns: minmax(0, 1fr) auto; }
.bgl .bgl-row--plain .bgl-row__name { font-size: clamp(22px, 2.6vw, 30px); }

/* An event placed on a page with the shortcode sits inside the page's own width. */
.bgl-event--embedded .bgl-hero__inner, .bgl-event--embedded .bgl-facts, .bgl-event--embedded .bgl-main { padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }
.bgl-event--embedded .bgl-hero__back { visibility: hidden; }

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
	.bgl-main { grid-template-columns: minmax(0, 1fr); }
	.bgl-card { position: static; order: -1; }
}

@media (max-width: 640px) {
	.bgl { font-size: 16px; }
	.bgl-facts { grid-template-columns: 1fr 1fr; }
	.bgl-facts__item, .bgl-facts__item + .bgl-facts__item { padding: 16px 12px 16px 0; border-left: 0; }
	.bgl-day { grid-template-columns: 1fr; gap: 6px; }
	.bgl-day__list li { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
	.bgl-fields { grid-template-columns: 1fr; }
	.bgl-choice label { flex: 1 1 100%; }
	.bgl-choice span { width: 100%; }
	.bgl-form__submit .bgl-btn { width: 100%; }
	.bgl-event { padding-bottom: 76px; }
	.bgl-bar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--bgl-line);
		font-size: 15px;
	}
	.bgl-bar.is-hidden { display: none; }
	.bgl-bar strong { font-size: 18px; }
	.bgl .bgl-bar .bgl-btn { min-height: 46px; padding: 10px 18px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.bgl .bgl-btn { transition: none; }
}

/* An event placed with the shortcode lays itself out by the width of the page column it sits in. */
.bgl-event--embedded { container-type: inline-size; padding-bottom: 0; }
.bgl-event--embedded .bgl-bar { display: none; }
@container (max-width: 960px) {
	.bgl-event--embedded .bgl-main { grid-template-columns: minmax(0, 1fr); }
	.bgl-event--embedded .bgl-card { position: static; order: -1; }
	.bgl-event--embedded .bgl-story { max-width: none; }
	.bgl-event--embedded .bgl-facts { grid-template-columns: 1fr 1fr; }
	.bgl-event--embedded .bgl-facts__item, .bgl-event--embedded .bgl-facts__item + .bgl-facts__item { padding: 16px 12px 16px 0; border-left: 0; }
}
@container (max-width: 560px) {
	.bgl-event--embedded .bgl-day { grid-template-columns: 1fr; gap: 6px; }
	.bgl-event--embedded .bgl-day__list li { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
	.bgl-event--embedded .bgl-fields { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */

.bgl-team { container-type: inline-size; }

/* Header: the brand colour, the headline, and every face on the team in one row. */
.bgl-team__hero {
	background-color: var(--bgl-accent);
	background-image: repeating-radial-gradient(circle at 92% 150%, rgba(255, 255, 255, .08) 0 1.5px, transparent 1.5px 34px);
	color: #fff;
}
.bgl-team__hero-inner { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--bgl-gutter) clamp(32px, 4.5vw, 56px); }
.bgl .bgl-team__title { font-size: clamp(42px, 7cqw, 84px); line-height: 1; letter-spacing: -.01em; color: #fff; }
.bgl .bgl-team__intro { font-size: clamp(18px, 2cqw, 22px); line-height: 1.5; max-width: 52ch; margin-top: 16px; color: rgba(255, 255, 255, .9); }

.bgl-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.bgl .bgl-roster__item { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; color: #fff; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.bgl .bgl-roster__item:hover, .bgl .bgl-roster__item:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; }
.bgl-roster__face { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.bgl-roster__face img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.bgl-roster__face span { font-family: var(--bgl-display); font-size: 22px; line-height: 1; }
.bgl-roster__text { display: flex; flex-direction: column; min-width: 0; }
.bgl-roster__name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.bgl-roster__role { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .82); }

/* One full-width band per person; sides and background alternate down the page. */
.bgl-profile { background: #fff; scroll-margin-top: 24px; }
.bgl-profile:nth-of-type(even) { background: var(--bgl-wash); }
.bgl-profile__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(48px, 7vw, 96px) var(--bgl-gutter);
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.bgl-profile:nth-of-type(even) .bgl-profile__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bgl-profile:nth-of-type(even) .bgl-profile__photo { order: 2; }

/* The portrait sits on an offset outline, like a framed print slightly off its mount. */
.bgl-profile__photo { position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; }
.bgl-profile__photo::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--bgl-accent); border-radius: 6px; transform: translate(18px, 18px); }
.bgl-profile:nth-of-type(even) .bgl-profile__photo::before { transform: translate(-18px, 18px); }
.bgl-profile__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 6px; display: block; }
.bgl-profile__photo.is-empty span {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 6px;
	background-color: var(--bgl-accent);
	background-image: repeating-radial-gradient(circle at 88% 135%, rgba(255, 255, 255, .09) 0 1.5px, transparent 1.5px 30px);
	color: #fff;
	font-family: var(--bgl-display);
	font-size: clamp(72px, 12cqw, 140px);
	line-height: 1;
}

.bgl .bgl-profile__role { color: var(--bgl-accent); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.bgl .bgl-profile__name { font-size: clamp(40px, 6cqw, 72px); line-height: 1; letter-spacing: -.01em; }
.bgl-profile__bio { margin-top: 22px; max-width: 58ch; font-size: 18px; line-height: 1.65; color: #26322d; }
.bgl-profile__bio p { margin: 0 0 1em; }
.bgl-profile__bio p:last-child { margin-bottom: 0; }
.bgl .bgl-profile__focus { margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--bgl-flag); font-size: 18px; font-weight: 500; line-height: 1.4; }
.bgl .bgl-profile__focus span { display: block; font-size: 14px; font-weight: 400; color: var(--bgl-soft); }
.bgl-profile__reach { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.bgl .bgl-profile__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 1.5px solid var(--bgl-accent); border-radius: 3px; color: var(--bgl-accent); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .18s ease, color .18s ease, filter .18s ease; }
.bgl .bgl-profile__btn:hover { background: var(--bgl-accent); color: #fff; }
.bgl .bgl-profile__btn--solid { background: var(--bgl-accent); color: #fff; }
.bgl .bgl-profile__btn--solid:hover { filter: brightness(1.18); }
.bgl .bgl-profile__link { font-weight: 500; font-size: 16px; }

/* Closing band */
.bgl-team__next { background-color: var(--bgl-ink); color: #fff; }
.bgl-team__next-inner { max-width: 1120px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--bgl-gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.bgl .bgl-team__next p { font-family: var(--bgl-display); font-size: clamp(26px, 3.6cqw, 40px); line-height: 1.15; color: #fff; }
.bgl .bgl-team__next-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; border-radius: 3px; background: var(--bgl-flag); color: #1c1503; font-weight: 600; font-size: 17px; text-decoration: none; transition: filter .18s ease; }
.bgl .bgl-team__next-btn:hover { filter: brightness(1.08); color: #1c1503; }

@container (max-width: 820px) {
	.bgl-profile__inner, .bgl-profile:nth-of-type(even) .bgl-profile__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.bgl-profile:nth-of-type(even) .bgl-profile__photo { order: 0; }
	.bgl-profile__photo { max-width: 340px; justify-self: start; margin-right: 18px; }
	.bgl-profile:nth-of-type(even) .bgl-profile__photo { margin-left: 18px; margin-right: 0; }
	.bgl-profile__photo.is-empty { aspect-ratio: 4 / 3; }
	.bgl-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bgl .bgl-roster__item { border-radius: 12px; }
}
@container (max-width: 520px) {
	.bgl-roster { grid-template-columns: minmax(0, 1fr); }
	.bgl-profile__btn { flex: 1 1 100%; justify-content: center; }
	.bgl-team__next-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.bgl .bgl-roster__item, .bgl .bgl-profile__btn, .bgl .bgl-team__next-btn { transition: none; }
}
