/*
 * Pages: the parts shared by About, Community, Work with us, Book a call, the
 * legal pages and the 404 page.
 *
 * Each page is built from core blocks. The class names here go in a block's
 * Advanced > Additional CSS class(es) box. The README lists them.
 */

/* ---------- Section backgrounds ---------- */

.te-bg-white {
	background: var(--te-warm-white);
}

.te-bg-grey {
	background: var(--te-warm-grey);
}

.te-bg-peach {
	background: var(--te-peach);
	color: var(--te-meteorite);
}

.te-bg-dark {
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.te-bg-dark > .te-small-heading,
.te-bg-dark .te-split__a > .te-small-heading,
.te-bg-dark .te-sechead__title > .te-small-heading {
	color: var(--te-on-dark-muted);
}

/* ---------- Text ---------- */

.te-h2--measure {
	max-width: 820px;
}

/* The paragraph under a section heading. */
.te-lead {
	max-width: 480px;
	margin-top: 20px;
	color: var(--te-text-2);
	font-size: 17px;
	line-height: 26px;
}

.te-lead + .te-lead {
	margin-top: 14px;
}

.te-lead--mid {
	max-width: 560px;
}

.te-lead--wide {
	max-width: 620px;
}

.te-lead--first {
	margin-top: 0;
}

.te-sechead__title .te-lead {
	margin-top: 16px;
}

.te-sechead--flush .te-sechead__title .te-lead {
	margin-top: 20px;
}

.te-bg-dark .te-lead {
	color: var(--te-on-dark-3);
}

.te-small {
	margin-top: 12px;
	color: var(--te-text-3);
	font-size: 14px;
}

/* A button row under text. */
.te-site .wp-block-buttons.te-cta {
	margin-top: 28px;
}

/* Buttons: an arrow pointing down the page, or the "leaves the site" arrow without a new tab. */
.te-site .te-arrow-down .wp-block-button__link::after {
	content: "↓" / "";
}

.te-site .te-arrow-down .wp-block-button__link:hover::after {
	transform: translateY(2px);
}

.te-site .te-arrow-ext .wp-block-button__link::after {
	content: "↗" / "";
}

.te-site .te-arrow-ext .wp-block-button__link:hover::after {
	transform: none;
}

.te-site .wp-block-button__link[target="_blank"] {
	gap: 5px;
}

.te-site .wp-block-button__link[target="_blank"]:hover::after {
	transform: none;
}

/* Small peach tag, such as "Coming soon". */
.te-blocks .lozenge-new {
	display: inline-block;
	align-self: flex-start;
	padding: 3px 12px;
	border-radius: 50px;
	background: var(--te-peach);
	color: var(--te-meteorite);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
}

/* Section heading rows on these pages. */
.te-sechead--wide {
	margin-bottom: 36px;
	align-items: flex-end;
}

.te-sechead--flush {
	gap: 24px 48px;
	margin-bottom: 0;
}

.te-sechead__title > .te-h2 {
	margin-top: 18px;
}

.te-small-heading--above {
	margin-bottom: 14px;
	color: var(--te-text-3);
}

/* ---------- Two columns: text beside a list, card or form ---------- */

.te-split {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 40px 72px;
	align-items: start;
}

.te-split--narrow {
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.te-split--gap-below {
	margin-bottom: 40px;
}

.te-split__b > .te-small-heading {
	color: var(--te-text-3);
}

/* ---------- Page hero: photo, title and a facts card ---------- */

.te-phero {
	position: relative;
	display: flex;
	min-height: 620px;
	overflow: hidden;
	background: var(--te-charcoal);
	color: var(--te-on-dark);
}

.te-phero--short {
	min-height: 460px;
}

.te-phero > .te-phero__img {
	position: absolute;
	inset: 0;
	margin: 0;
}

.te-phero__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the photo so the text stays readable. */
.te-phero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgb(33 33 33 / 0.9) 0%, rgb(33 33 33 / 0.72) 50%, rgb(33 33 33 / 0.35) 100%);
}

.te-phero--short::before {
	background: linear-gradient(90deg, rgb(33 33 33 / 0.92) 0%, rgb(33 33 33 / 0.78) 50%, rgb(33 33 33 / 0.45) 100%);
}

.te-phero__grid,
.te-phero--short > .te-phero__copy {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 132px var(--te-gutter) 56px;
}

.te-phero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
	gap: 40px 64px;
	align-items: end;
}

.te-phero--short > .te-phero__copy {
	align-self: flex-end;
}

.admin-bar .te-phero__grid,
.admin-bar .te-phero--short > .te-phero__copy {
	padding-top: 164px;
}

.te-phero .te-phero__copy > .te-small-heading,
.te-lhero > .te-small-heading,
.te-nf .te-small-heading {
	color: var(--te-on-dark-2);
}

.te-phero__title {
	max-width: 760px;
	margin-top: 18px;
	font-size: clamp(48px, 5.4vw, 80px);
	line-height: 0.98;
}

.te-phero--short .te-phero__title {
	max-width: 820px;
}

.te-phero__intro {
	max-width: 580px;
	margin-top: 24px;
	color: var(--te-on-dark-2);
	font-size: 19px;
	line-height: 29px;
}

.te-phero--short .te-phero__intro {
	max-width: 600px;
}

.te-site .wp-block-buttons.te-phero__cta {
	margin-top: 28px;
}

/* The facts card. */
.ev-feat {
	padding: 28px;
	border-radius: var(--r-l);
	background: var(--te-warm-white);
	box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6);
	color: var(--te-meteorite);
}

.ev-feat > .te-small-heading {
	color: var(--te-text-3);
}

/* A list of label and value pairs. Write the label, then the value in bold. */
.te-dates {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.te-dates li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 10px;
	border-top: 1px solid var(--te-warm-grey);
	color: var(--te-text-3);
}

.te-dates li strong {
	color: var(--te-meteorite);
	font-weight: 600;
	text-align: right;
}

/* Plain dark hero for the legal pages. */
.te-lhero {
	padding: 148px var(--te-gutter) 56px;
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.admin-bar .te-lhero {
	padding-top: 180px;
}

.te-lhero .te-phero__title {
	max-width: 900px;
}

.te-lhero .te-phero__intro {
	max-width: 640px;
}

/* ---------- Numbered list of points ---------- */

.ab-pillars {
	counter-reset: pillar;
}

.ab-pillars--after-label,
.ab-pillars.bk-steps {
	margin-top: 14px;
}

.ab-pillars.bk-steps {
	margin-top: 28px;
}

.ab-pillar {
	position: relative;
	padding: 20px 0 20px 44px;
	border-top: 1px solid var(--te-rule);
	counter-increment: pillar;
}

.ab-pillar:last-child {
	border-bottom: 1px solid var(--te-rule);
}

.ab-pillar::before {
	content: counter(pillar, decimal-leading-zero) / "";
	position: absolute;
	top: 22px;
	left: 0;
	color: var(--te-orange-text);
	font-weight: 600;
}

.te-bg-grey .ab-pillar::before {
	color: var(--te-orange-text-grey);
}

.ab-pillar__title {
	font-size: 21px;
	line-height: 26px;
}

.ab-pillar > p {
	margin-top: 6px;
	color: var(--te-text-2);
}

.bk-note {
	margin-top: 24px;
	color: var(--te-text-2);
}

/* ---------- Tick list ---------- */

.ev-ticks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.ev-ticks li {
	position: relative;
	padding-left: 34px;
}

.ev-ticks li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--te-peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%232A2C2F' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
}

/* On the peach band the tick sits on white so it still shows. */
.te-bg-peach .ev-ticks li::before {
	background-color: var(--te-white);
}

/* ---------- Cards in rows ---------- */

.co-ways,
.te-grid4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.co-groups,
.ww-sp,
.bk-exp {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.co-way,
.v-panel,
.ww-sp__item,
.bk-exp__item {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: var(--r-l);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

/* Four ways to join in: numbered cards. */
.co-ways {
	counter-reset: way;
}

.co-way {
	align-items: flex-start;
	min-height: 300px;
	counter-increment: way;
}

.co-way::before {
	content: counter(way, decimal-leading-zero) / "";
	color: var(--te-orange-text);
	font-weight: 600;
}

/* Two classes, so this beats the WordPress rule that removes the margin from a group's first block. */
.co-way > .co-way__title {
	margin-top: 14px;
	font-size: 24px;
	line-height: 28px;
}

.co-way > p {
	margin-top: 10px;
	margin-bottom: 24px;
	color: var(--te-text-2);
}

.co-way > .wp-block-buttons {
	margin-top: auto;
}

/* Four ways to work together: label, statement, button. */
.v-panel {
	gap: 16px;
	min-height: 280px;
}

.v-panel > .te-small-heading {
	color: var(--te-text-3);
}

.v-panel__title,
.ww-sp__title,
.bk-exp__title,
.ww-case__title {
	font-size: 24px;
	line-height: 28px;
}

.te-site .wp-block-buttons.v-panel__cta {
	margin-top: auto;
}

.v-panel--peach {
	background: var(--te-peach);
	box-shadow: none;
}

.v-panel--peach > .te-small-heading {
	color: var(--te-text-2);
}

/* What you can sponsor. */
.ww-sp__item {
	min-height: 220px;
}

.ww-sp__item > p:not(.lozenge-new):not(.te-link-arrow),
.bk-exp__item > p {
	margin-top: 10px;
	color: var(--te-text-2);
}

.ww-sp__item > p:not(.lozenge-new):not(.te-link-arrow) {
	margin-bottom: 20px;
}

.ww-sp__item > .te-link-arrow {
	margin-top: auto;
}

.ww-sp__item > .lozenge-new + .ww-sp__title {
	margin-top: 14px;
}

/* Example project card. */
.ww-case {
	margin-top: 28px;
	padding: 28px;
	border-radius: var(--r-l);
	background: var(--te-white);
}

.ww-case > .te-small-heading {
	color: var(--te-text-3);
}

.ww-case__title {
	margin-top: 10px;
}

.ww-case > p:not(.te-small-heading) {
	margin-top: 10px;
	color: var(--te-text-2);
}

/* Community groups, on the dark band. */
.co-group {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border-radius: var(--r-l);
	box-shadow: inset 0 0 0 1px rgb(253 252 244 / 0.22);
}

.co-group__title {
	margin-top: 16px;
	font-size: 28px;
	line-height: 32px;
}

.co-group > p:not(.lozenge-new) {
	margin-top: 10px;
	color: var(--te-on-dark-3);
}

.co-interest {
	margin-top: 16px;
	padding: 28px;
	border-radius: var(--r-l);
	background: rgb(253 252 244 / 0.07);
}

/* Under the three groups: where to register an interest. */
.co-groups__ask {
	margin-top: 24px;
	color: var(--te-on-dark-3);
}

.co-groups__ask a {
	color: var(--te-on-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Three photos in a row. */
.co-photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.co-photos figure {
	margin: 0;
}

.co-photos img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--r-l);
}

/* Quotes on a page other than Home. */
.te-page .te-quotes {
	margin-top: 36px;
}

/* Events list on warm white: rows need an edge. */
.te-bg-white .te-event {
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

/* ---------- About ---------- */

/* The ambition statement. Mark a word in italics to underline it in orange. */
.te-ambition {
	position: relative;
}

.te-ambition__text {
	max-width: 1180px;
	margin-top: 18px;
	font-family: var(--hf);
	font-size: clamp(36px, 4.2vw, 60px);
	font-weight: var(--hw);
	letter-spacing: var(--ht);
	line-height: 1.05;
	text-wrap: balance;
}

.te-ambition__text--small {
	font-size: clamp(34px, 3.4vw, 50px);
}

.te-ambition__text em {
	font-style: normal;
	text-decoration: underline 4px var(--te-orange);
	text-underline-offset: 8px;
}

/* A label on a section that is still being decided. Delete the paragraph to remove it. */
.amb-tag {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 5;
	padding: 6px 14px;
	border-radius: 1000px;
	background: var(--te-orange);
	color: var(--te-charcoal);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 18px;
}

@media (min-width: 961px) {
	.orr-grid--wide {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

.te-orrery .te-orrery__copy > .te-small-heading {
	color: var(--orr-small);
}

/* Team */
.ab-team {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.v-team {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.v-team__photo {
	margin: 0 0 10px;
}

.v-team__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: var(--r-l);
}

.v-team__name {
	font-size: 22px;
	line-height: 24px;
}

.v-team > p {
	color: var(--te-text-2);
}

.v-team__role {
	font-weight: 600;
}

.ab-assoc {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--te-rule);
}

/* A small heading above a group: a month of events, a set of logos, a panel. */
.ev-month {
	color: var(--te-text-2);
	font-family: var(--te-font);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 26px;
}

.ab-assoc .te-lead {
	max-width: none;
	margin-top: 8px;
}

/* Board: a white card with a name and role on each row. Write the name in bold, then the role. */
.te-look {
	padding: 32px;
	border-radius: var(--r-l);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.te-look__title {
	font-size: 24px;
	line-height: 24px;
}

.ab-board {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ab-board li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 14px 0;
	border-top: 1px solid var(--te-warm-grey);
	color: var(--te-text-2);
	text-align: right;
}

.ab-board li strong {
	flex: 0 0 auto;
	color: var(--te-meteorite);
	font-family: var(--hf);
	font-size: 19px;
	font-weight: var(--hw);
	letter-spacing: var(--ht);
	text-align: left;
}

/*
 * Board portraits. Each name can carry an inline image (added in the editor,
 * at the start of the line). On a phone or tablet it shows as a small round
 * picture beside the name. With a mouse on a wider screen it is hidden, and
 * site.js shows it beside the pointer while the name is hovered over.
 */
.ab-board li:has(img) {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 14px;
	align-items: center;
	text-align: left;
}

.ab-board li img {
	grid-row: 1 / span 2;
	width: 44px !important;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

@media (hover: hover) and (min-width: 901px) {
	.ab-board.has-preview li:has(img) {
		display: flex;
		text-align: right;
	}

	.ab-board.has-preview li img {
		display: none;
	}

	.ab-board.has-preview li {
		transition: opacity 0.2s ease;
	}

	.ab-board.is-previewing li:not(.is-on) {
		opacity: 0.45;
	}
}

.te-preview {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 40;
	width: 128px;
	height: 128px;
	overflow: hidden;
	border-radius: var(--r-s);
	background: var(--te-warm-grey);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 32px -8px rgb(0 0 0 / 0.3);
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-9999px, 0, 0);
	transition: opacity 0.2s ease;
}

.te-preview.is-on {
	opacity: 1;
}

.te-preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (hover: none), (max-width: 900px) {
	.te-preview {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.te-preview,
	.ab-board.has-preview li {
		transition: none;
	}
}

/* Contact details: small label, then the detail. */
.ab-contact {
	margin-top: 28px;
}

.ab-contact__label {
	color: var(--te-text-2);
	font-family: var(--te-font);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 26px;
}

.ab-contact__label + p {
	margin-top: 6px;
	font-size: 17px;
	line-height: 26px;
}

.ab-contact p + .ab-contact__label {
	margin-top: 18px;
}

.ab-contact a {
	color: var(--te-meteorite);
}

.ab-contact a[target="_blank"]::after {
	content: " ↗" / " (opens in a new tab)";
}

/* ---------- Forms ---------- */

/* The white card a form sits in. */
.ev-form {
	padding: 32px;
	border-radius: var(--r-l);
	background: var(--te-white);
}

.ev-form--outline {
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.ev-fgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.te-standin--stack .ev-fgrid {
	grid-template-columns: 1fr;
}

.ev-span {
	grid-column: 1 / -1;
}

.ev-in {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
}

.ev-in em {
	color: var(--te-text-3);
	font-style: normal;
	font-weight: 400;
}

.ev-in input,
.ev-in select,
.ev-in textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--te-stone);
	border-radius: var(--r-s);
	background: var(--te-white);
	color: var(--te-meteorite);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
}

.ev-in textarea {
	resize: vertical;
}

.ev-in input:focus,
.ev-in select:focus,
.ev-in textarea:focus {
	outline: 2px solid var(--te-orange);
	outline-offset: 1px;
}

.te-standin__intro {
	margin: 0 0 18px;
	color: var(--te-text-3);
	font-size: 14px;
}

.te-standin__note {
	margin: 18px 0 0;
	color: var(--te-text-2);
	font-size: 14px;
	line-height: 21px;
}

.te-standin__submit {
	margin-top: 22px;
}

.te-standin__note + .te-standin__submit {
	margin-top: 18px;
}

/* Says plainly that a stand-in form does not send. */
.te-standin__flag {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px dashed var(--te-rule);
	color: var(--te-text-3);
	font-size: 13px;
	line-height: 18px;
}

.te-bg-dark .te-standin__flag {
	border-top-color: rgb(253 252 244 / 0.3);
	color: var(--te-on-dark-muted);
}

/* Community groups: tick boxes, then an email and button on one row. */
.te-standin--groups fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.te-standin--groups legend {
	padding: 0;
	font-size: 21px;
	line-height: 26px;
}

.co-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin-top: 14px;
}

.co-checks label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 17px;
	cursor: pointer;
}

.co-checks input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--te-orange);
}

.co-irow {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	max-width: 720px;
	margin-top: 14px;
}

.co-irow .ev-in {
	flex: 1 1 280px;
}

.co-irow .ev-in input {
	border-color: transparent;
}

.co-irow .v-btn {
	min-height: 48px;
}

/* Call topics, on the dark band. */
.ww-topics {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 28px;
	border: 0;
	border-radius: var(--r-l);
	background: rgb(253 252 244 / 0.07);
}

.ww-topics legend {
	float: left;
	width: 100%;
	margin-bottom: 12px;
	padding: 0;
	color: var(--te-on-dark-muted);
}

.ww-topics label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	font-size: 17px;
	cursor: pointer;
}

.ww-topics input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--te-orange);
}

.ww-topics .v-btn {
	align-self: flex-start;
	margin-top: 16px;
}

/* Booking form. */
.bk-fs {
	min-width: 0;
	margin: 0 0 28px;
	padding: 0 0 28px;
	border: 0;
	border-bottom: 1px solid var(--te-rule-soft);
}

.bk-fs--last {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.bk-fs legend {
	float: left;
	width: 100%;
	margin-bottom: 16px;
	padding: 0;
	font-family: var(--hf);
	font-size: 24px;
	font-weight: var(--hw);
	letter-spacing: var(--ht);
	line-height: 28px;
}

.bk-fs legend + * {
	clear: both;
}

.bk-n {
	margin-right: 12px;
	color: var(--te-orange-text);
	font-size: 16px;
	letter-spacing: 0;
}

.bk-topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 24px;
}

.bk-topics label {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
}

.bk-topics input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--te-meteorite);
}

.bk-sub {
	clear: both;
	margin: 0 0 10px;
	color: var(--te-text-3);
	font-size: 14px;
	font-weight: 500;
}

.bk-days {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 22px;
}

.bk-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 10px 4px;
	border: 1.5px solid var(--te-stone);
	border-radius: var(--r-s);
	background: var(--te-white);
	color: var(--te-meteorite);
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bk-dw,
.bk-dm {
	font-size: 13px;
	font-weight: 500;
}

.bk-dd {
	font-family: var(--hf);
	font-size: 28px;
	font-weight: var(--hw);
	line-height: 30px;
}

.bk-times {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bk-time {
	min-width: 92px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid var(--te-stone);
	border-radius: var(--btn-r);
	background: var(--te-white);
	color: var(--te-meteorite);
	font: inherit;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bk-day:hover,
.bk-time:hover {
	border-color: var(--te-meteorite);
}

.bk-day[aria-pressed="true"],
.bk-time[aria-pressed="true"] {
	border-color: var(--te-meteorite);
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.bk-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--te-rule-soft);
}

.bk-foot p {
	margin: 0;
	color: var(--te-text-2);
}

.bk-foot strong {
	color: var(--te-meteorite);
}

/* ---------- Breadcrumb on a dark band ---------- */

.ps-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	list-style: none;
}

.ps-crumb li + li::before {
	content: "/" / "";
	margin-right: 10px;
	color: var(--te-on-dark-muted);
}

.ps-crumb a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	color: var(--te-on-dark-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Legal pages ---------- */

.lg-wrap {
	display: grid;
	grid-template-columns: 260px minmax(0, 720px);
	gap: 72px;
	align-items: start;
}

.lg-toc {
	position: sticky;
	top: 104px;
}

.lg-toc h2 {
	margin: 0 0 12px;
	color: var(--te-text-3);
	font-family: var(--te-font);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 26px;
}

.lg-toc ol {
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--te-rule);
	list-style: none;
}

.lg-toc a {
	display: flex;
	align-items: center;
	min-height: 36px;
	margin-left: -1px;
	padding: 4px 0 4px 16px;
	border-left: 2px solid transparent;
	color: var(--te-meteorite);
	font-size: 15px;
	line-height: 20px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lg-toc a:hover {
	border-left-color: var(--te-orange);
}

.lg-body {
	color: var(--te-meteorite);
	font-size: 17px;
	line-height: 28px;
}

.lg-section {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--te-rule);
	scroll-margin-top: 104px;
}

.lg-body h2 {
	font-size: 32px;
	line-height: 36px;
}

.lg-body h3 {
	margin-top: 28px;
	font-size: 21px;
	line-height: 26px;
}

.lg-body p {
	margin-top: 16px;
}

.lg-body ul {
	margin-top: 16px;
	padding: 0 0 0 22px;
}

.lg-body li {
	margin-top: 8px;
}

.lg-body li::marker {
	color: var(--te-orange-text);
}

.lg-body a {
	color: var(--te-meteorite);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lg-body a:hover {
	color: var(--te-orange-text);
}

.lg-body p a[target="_blank"]::after {
	content: " ↗" / " (opens in a new tab)";
}

.lg-body .lg-upd {
	margin: 0 0 24px;
	color: var(--te-text-3);
	font-size: 15px;
	line-height: 22px;
}

.lg-sum,
.lg-card {
	padding: 28px 32px;
	border-radius: var(--r-l);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.lg-card {
	margin-top: 24px;
}

.lg-sum h2 {
	font-size: 24px;
	line-height: 28px;
}

.te-site .wp-block-buttons.lg-cta {
	margin-top: 24px;
}

/* Tables scroll sideways inside their own box on small screens. */
.lg-tw {
	margin-top: 20px;
	overflow-x: auto;
	border-radius: var(--r-s);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
}

.lg-tw:focus-visible {
	outline: 3px solid var(--te-orange);
	outline-offset: 2px;
}

.lg-tw table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 22px;
}

.lg-tw th,
.lg-tw td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--te-rule-soft);
	text-align: left;
	vertical-align: top;
}

.lg-tw thead {
	border: 0;
}

.lg-tw thead th {
	background: var(--te-warm-grey);
	color: var(--te-text-2);
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

/* The first column names the row. */
.lg-tw tbody td:first-child {
	width: 24%;
	font-weight: 600;
}

.lg-tw tbody tr:last-child td {
	border-bottom: 0;
}

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

.te-nf {
	position: relative;
	overflow: hidden;
	background: var(--te-meteorite);
	color: var(--te-on-dark);
}

.te-nf__inner {
	position: relative;
	z-index: 2;
	padding: 168px var(--te-gutter) 88px;
}

.te-nf .te-phero__title {
	margin: 18px 0 0;
}

.te-nf .te-phero__intro {
	max-width: 560px;
	margin: 24px 0 0;
}

.te-nf__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 32px 0 0;
}

.nf-rings {
	position: absolute;
	top: 50%;
	right: -60px;
	width: 680px;
	max-width: none;
	height: 680px;
	margin-top: -340px;
	overflow: visible;
	pointer-events: none;
}

.nf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.nf-grid li {
	position: relative;
	padding: 26px 28px 24px;
	border-radius: var(--r-l);
	background: var(--te-white);
	box-shadow: inset 0 0 0 1px var(--te-rule-soft);
	transition: box-shadow 0.2s ease;
}

.nf-grid li:hover,
.nf-grid li:focus-within {
	box-shadow: inset 0 0 0 2px var(--te-meteorite);
}

.nf-grid h3 {
	margin: 0;
	font-size: 24px;
	line-height: 28px;
}

.nf-grid h3 a {
	color: var(--te-meteorite);
	text-decoration: none;
}

.nf-grid h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--r-l);
}

.nf-grid h3 a:focus-visible {
	outline: none;
}

.nf-grid h3 a:focus-visible::after {
	outline: 3px solid var(--te-orange);
	outline-offset: 2px;
}

.nf-grid p {
	margin: 10px 0 0;
	padding-right: 32px;
	color: var(--te-text-2);
	font-size: 15px;
	line-height: 22px;
}

.nf-arr {
	position: absolute;
	right: 26px;
	bottom: 22px;
	transition: transform 0.2s ease;
}

.nf-grid li:hover .nf-arr {
	transform: translateX(3px);
}

.nf-search {
	max-width: 640px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--te-rule);
}

.nf-search label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
}

.nf-search div {
	display: flex;
	gap: 8px;
}

.nf-search input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--te-stone);
	border-radius: var(--r-s);
	background: var(--te-white);
	color: var(--te-meteorite);
	font: inherit;
	font-size: 16px;
	appearance: none;
}

.nf-search input:focus {
	outline: 2px solid var(--te-orange);
	outline-offset: 1px;
}

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

@media (max-width: 1100px) {
	.co-ways,
	.te-grid4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bk-days {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1000px) {
	.te-split,
	.te-split--narrow {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.te-phero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ev-feat {
		max-width: 480px;
	}

	.co-groups,
	.co-photos,
	.ww-sp,
	.bk-exp {
		grid-template-columns: minmax(0, 1fr);
	}

	.co-way,
	.v-panel,
	.ww-sp__item {
		min-height: 0;
	}

	.co-way > .wp-block-buttons,
	.te-site .wp-block-buttons.v-panel__cta {
		margin-top: 4px;
	}

	.lg-wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.lg-toc {
		position: static;
	}

	.lg-body {
		font-size: 16px;
		line-height: 26px;
	}

	.lg-body h2 {
		font-size: 27px;
		line-height: 31px;
	}

	.lg-sum,
	.lg-card {
		padding: 20px;
	}

	.nf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nf-rings {
		opacity: 0.45;
	}
}

@media (max-width: 720px) {
	.ab-team {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.v-team__photo img {
		aspect-ratio: 4 / 3;
	}

	.amb-tag {
		top: 12px;
		right: 12px;
	}
}

@media (max-width: 640px) {
	.nf-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nf-rings {
		right: -340px;
	}
}

@media (max-width: 600px) {
	.te-phero {
		min-height: 0;
	}

	.te-phero__grid,
	.te-phero--short > .te-phero__copy {
		padding: 120px 20px 32px;
	}

	.admin-bar .te-phero__grid,
	.admin-bar .te-phero--short > .te-phero__copy {
		padding-top: 166px;
	}

	.te-phero__title {
		font-size: 44px;
	}

	.te-phero__intro {
		font-size: 17px;
		line-height: 26px;
	}

	.ev-feat {
		max-width: none;
		padding: 20px;
	}

	.te-lhero {
		padding: 120px 20px 40px;
	}

	.te-nf__inner {
		padding: 132px 20px 56px;
	}

	.co-ways,
	.te-grid4 {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 28px;
	}

	.co-groups,
	.ww-sp,
	.bk-exp {
		margin-top: 28px;
	}

	.co-way,
	.v-panel,
	.ww-sp__item,
	.bk-exp__item,
	.co-group,
	.co-interest,
	.ww-case,
	.ww-topics {
		padding: 20px;
	}

	.ev-form,
	.te-look {
		padding: 20px;
	}

	.ev-fgrid,
	.bk-topics {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Name above role, both on the left. */
	.ab-board li {
		flex-direction: column;
		gap: 2px;
		text-align: left;
	}

	.te-dates li {
		flex-direction: column;
		gap: 2px;
	}

	.te-dates li strong {
		text-align: left;
	}

	.co-irow .v-btn,
	.te-standin__submit {
		width: 100%;
		justify-content: center;
	}

	.bk-foot .v-btn {
		width: 100%;
		justify-content: center;
	}

	.nf-search div {
		flex-direction: column;
	}

	.te-ambition__text {
		font-size: 32px;
	}
}

/* A breadcrumb written as a list block at the top of a hero. */
.te-site ul.ps-crumb {
	margin: 0;
	padding: 0;
}

.te-phero--past {
	min-height: 440px;
}

.te-phero--past .te-phero__title,
.pf-hero .te-phero__title {
	margin-top: 18px;
}

.pf-hero {
	padding-top: 132px;
}

.admin-bar .pf-hero {
	padding-top: 164px;
}

@media (max-width: 600px) {
	.te-phero--past {
		min-height: 0;
	}

	.pf-hero {
		padding-top: 120px;
	}

	.admin-bar .pf-hero {
		padding-top: 166px;
	}
}
