/* /wp-content/themes/better-together/assets/css/base.css */
/*
 * Better Together · global styles (pass 4 design system).
 * Tokens come from theme.json (--wp--preset--*, --wp--custom--*). Block-specific styles are in
 * assets/css/blocks/ and load only where the block is used.
 */

:root {
	--bt-ink: var(--wp--preset--color--contrast);
	--bt-ease: var(--wp--custom--motion--ease);
	--bt-gutter: var(--wp--preset--spacing--gutter);
	--bt-wide: var(--wp--style--global--wide-size, 82rem);
	--bt-focus: var(--wp--custom--focus--color);
	/* the one text field (ADR-064): a 1.5px border at 4:1 on white and on the page, a white field, 48px tall */
	--bt-field-line: #857e72;
	--bt-field-border: 1.5px solid var(--bt-field-line);
	--bt-field-bg: var(--wp--preset--color--white);
	--bt-field-h: 48px;
	--bt-field-radius: 6px;
}

/* ---------- text fields: every input, select and textarea gets the same boundary, whatever renders it ---------- */
:where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="range"], [type="color"], [type="file"]), select, textarea) {
	box-sizing: border-box;
	min-height: var(--bt-field-h);
	padding: 0 14px;
	border: var(--bt-field-border);
	border-radius: var(--bt-field-radius);
	background-color: var(--bt-field-bg);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

:where(textarea) {
	padding-block: 12px;
}

:where(input, select, textarea)::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

/* ---------- base ---------- */
body {
	font-kerning: normal;
	font-optical-sizing: auto;
	font-variation-settings: "wdth" 100;
	text-rendering: optimizelegibility;
}

strong,
b {
	font-weight: 600;
}

:where(h1, h2) {
	font-variation-settings: "opsz" 72;
	text-wrap: balance;
}

:where(p, li, dd) {
	text-wrap: pretty;
}

:where(time, table, .bt-num, .has-stat-font-size, .has-date-font-size) {
	font-variant-numeric: tabular-nums lining-nums;
}

:where(em, i) {
	font-weight: inherit;
}

:where(h1, h2, h3, h4) em {
	font-weight: 450;
}

a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: text-decoration-thickness 0.2s var(--bt-ease), color 0.2s var(--bt-ease);
}

a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

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

@media (max-width: 600px) {
	body {
		font-size: var(--wp--preset--font-size--body-s);
		line-height: 1.55;
	}
}

/* ---------- focus: 3px ring, 3px offset; ink on light, white on dark. Never removed. ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--bt-focus);
	outline-offset: var(--wp--custom--focus--offset);
}

:where(.has-surface-dark-background-color, .is-style-card-ink, .bt-utility, .bt-footer) {
	--bt-focus: var(--wp--custom--focus--color-on-dark);
}

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

.skip-link.screen-reader-text:focus {
	top: 8px;
	left: 16px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip-path: none;
	border-radius: 6px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- eyebrow (labels): 13px, 600, +0.06em, uppercase. Uppercase follows the element's language,
   so Turkish eyebrows must carry lang="tr" (i becomes İ, not I). ---------- */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: inherit;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-variation-settings: normal;
}

:where(.has-surface-dark-background-color) .is-style-eyebrow:not(.has-text-color) {
	color: var(--wp--preset--color--on-dark-muted);
}

.is-style-eyebrow.has-lock-icon {
	display: flex;
	align-items: center;
	gap: 8px;
}

.is-style-eyebrow.has-lock-icon::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: var(--bt-icon-lock) center / 100% 100% no-repeat;
	mask: var(--bt-icon-lock) center / 100% 100% no-repeat;
}

.is-style-credit {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/* ---------- Easy read: body text in Atkinson Hyperlegible Next 20 / 1.7; headings stay in Literata ---------- */
.is-easy-read body {
	font-family: var(--wp--preset--font-family--easy-read);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.7;
}

.is-easy-read :is(p, li, label, dd, dt, td, th, figcaption, input, select, textarea, button, .wp-block-button__link):not(:is(h1, h2, h3, h4, h5, h6, .has-display-font-family) *) {
	font-family: var(--wp--preset--font-family--easy-read);
}

.is-easy-read :is(p, li, dd, figcaption):is(.has-caption-font-size, .has-small-font-size, .has-body-s-font-size, .has-body-font-size) {
	font-size: 1.25rem !important;
	line-height: 1.7;
}

.is-easy-read .wp-block-post-content :is(p, li) {
	line-height: 1.7;
}

/* ---------- section reveal (only once reveal.js marks the page) ---------- */
.bt-reveal-on .bt-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--wp--custom--motion--reveal) var(--bt-ease), transform var(--wp--custom--motion--reveal) var(--bt-ease);
}

.bt-reveal-on .bt-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- the one caption line: event · year under or above a photograph (Sprint 11) ---------- */
:root .bt-caption-line {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}

/* ---------- layout helpers used by the patterns ---------- */
.bt-section {
	padding-block: var(--wp--preset--spacing--section);
}

.bt-measure {
	max-width: var(--wp--custom--measure);
}

/* Flex children sizing (ratios measured from the canvases). */
.bt-grow-135 { flex: 1.35 1 33.75rem; min-width: 0; }
.bt-grow-130 { flex: 1.3 1 30rem; min-width: 0; }
.bt-grow-145 { flex: 1.45 1 32.5rem; min-width: 0; }
.bt-grow-110 { flex: 1.1 1 28.75rem; min-width: 0; }
.bt-grow-100 { flex: 1 1 25rem; min-width: 0; }
.bt-grow-2 { flex: 2 1 35rem; min-width: 0; }

/* ---------- utility bar ---------- */
:root .bt-utility {
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

:root .bt-utility__inner {
	min-height: 44px;
	gap: 16px;
}

:root .bt-utility .bt-tagline {
	margin: 0;
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-utility__nav {
	gap: 4px;
	margin-left: auto;
}

:root .bt-utility a {
	color: var(--wp--preset--color--base-2);
	text-decoration: none;
}

:root .bt-utility a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.35em;
}

:root .bt-easy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

/* the utility bar is icon-led (Sprint 11): line icons from the theme set (1.75 stroke), words kept */
:root .bt-easy__glyph {
	display: inline-grid;
	place-items: center;
	line-height: 1;
}

:root :is(.bt-easy__glyph, .bt-lang__icon, .bt-sister, .bt-account) svg {
	display: block;
	flex: none;
}

:root .bt-lang__icon {
	display: inline-grid;
	margin-right: -2px;
	opacity: 0.85;
}

:root .bt-easy__on {
	display: none;
	margin-left: -4px;
	color: var(--wp--preset--color--accent);
}

:root .bt-easy[aria-pressed="true"] .bt-easy__glyph {
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
}

:root .bt-easy[aria-pressed="true"] .bt-easy__on {
	display: inline;
}

:root .bt-lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-lang__current {
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

:root .bt-lang a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

:root .bt-sister,
:root .bt-account {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
}

:root .bt-account {
	gap: 8px;
}

@media (max-width: 1179px) {
	:root .bt-utility .bt-tagline {
		display: none;
	}
}

@media (max-width: 960px) {
	:root .bt-utility .bt-sister {
		display: none;
	}

	:root .bt-easy__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ---------- header ---------- */
:root .bt-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
	transition: background-color 0.3s var(--wp--custom--motion--ease, ease), border-color 0.3s var(--wp--custom--motion--ease, ease);
}

/* Smart sticky (Sprint 11, ADR-061; assets/js/header.js): with JavaScript the header sticks to the top,
   slides up out of the way while the reader scrolls down and comes back on the first scroll up. Transform
   only, and only while hidden: a transform on the header would hold the open menu's fixed overlay inside it. */
.bt-js .wp-site-blocks > .bt-header-part {
	position: sticky;
	top: 0;
	z-index: 40;
	transition: transform 0.32s var(--wp--custom--motion--ease, ease);
}

.bt-js .wp-site-blocks > .bt-header-part.is-hidden {
	transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
	.bt-js .wp-site-blocks > .bt-header-part,
	:root .bt-header {
		transition: none;
	}
}

/* Over a full-bleed photo hero (Home) the header is transparent at the top of the page, with a scrim behind
   white links and the white logo (the R08 mono-white lockup: same artwork, white fills), and turns solid
   once the page has scrolled 64px. The hero runs up under it. */
.bt-has-photo-hero .wp-site-blocks > .bt-header-part {
	margin-bottom: calc(-1 * clamp(76px, 7vw, 104px) - 1px);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header {
	border-bottom-color: transparent;
	background: transparent;
	color: var(--wp--preset--color--white);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header::before {
	content: "";
	position: absolute;
	inset: 0 0 -48px;
	z-index: -1;
	background: linear-gradient(180deg, rgb(20 18 26 / 0.8) 0%, rgb(20 18 26 / 0.62) 62%, rgb(20 18 26 / 0) 100%);
	pointer-events: none;
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header .atam-logo [fill] {
	fill: var(--wp--preset--color--white);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header :is(.bt-nav .wp-block-navigation-item__content, .bt-nav .wp-block-navigation__responsive-container-open) {
	color: var(--wp--preset--color--white);
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header .bt-nav .wp-block-navigation__responsive-container-open.always-shown {
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--white);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header .bt-nav .wp-block-navigation__responsive-container-open.always-shown:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	text-shadow: none;
}

/* the open menu is always the solid paper overlay */
html:not(.bt-scrolled) .bt-has-photo-hero .bt-header .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation-item__content, .wp-block-navigation__responsive-container-close:not(:hover)) {
	color: var(--wp--preset--color--contrast);
	text-shadow: none;
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header .wp-block-button.bt-join.is-style-secondary {
	--fill: var(--wp--custom--button--secondary-on-dark--fill);
	--fg: var(--wp--custom--button--secondary-on-dark--fg);
	--bd: var(--wp--custom--button--secondary-on-dark--border);
	--chip: var(--wp--custom--button--secondary-on-dark--chip);
	--chip-fg: var(--wp--custom--button--secondary-on-dark--chip-fg);
	--hfg: var(--wp--custom--button--secondary-on-dark--hover-fg);
	--hbd: var(--wp--custom--button--secondary-on-dark--hover-border);
}

html:not(.bt-scrolled) .bt-has-photo-hero .bt-header :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

.bt-header .atam-logo [fill] {
	transition: fill 0.3s var(--wp--custom--motion--ease, ease);
}

/* the utility controls at the foot of the open menu (inc/Header.php); on phones this is their only place */
.bt-menu-utility,
.bt-menu-actions {
	display: none;
}

/* Join, NYE booking (ATAM) or Donate (Orange Tree) under the links in the open menu (21 Nov 2026) */
:root .bt-header .wp-block-navigation__responsive-container.is-menu-open .bt-menu-actions {
	order: 98;
	display: block;
	width: 100%;
	margin-top: 24px;
}

:root .bt-header .wp-block-navigation__responsive-container.is-menu-open .bt-menu-actions .wp-block-buttons {
	gap: 12px;
}

:root .bt-header .wp-block-navigation__responsive-container.is-menu-open .bt-menu-actions .wp-block-button__link {
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: inherit;
}

:root .bt-header .wp-block-navigation__responsive-container.is-menu-open .bt-menu-utility {
	order: 99;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	width: 100%;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-menu-utility :is(.bt-easy, .bt-lang, .bt-sister, .bt-account) {
	padding-inline: 0 16px;
	color: inherit;
}

:root .bt-menu-utility a {
	color: var(--wp--preset--color--contrast);
}

:root .bt-menu-utility .bt-lang__current {
	color: var(--wp--preset--color--contrast);
}

:root .bt-menu-utility .bt-easy__label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
}

/* phones and small tablets: the utility bar's controls live in the menu instead */
@media (max-width: 960px) {
	:root .bt-utility-part {
		display: none;
	}
}

:root .bt-header__bar {
	min-height: clamp(76px, 7vw, 104px);
	gap: 24px;
}

:root .bt-header__actions {
	flex: none;
	gap: 10px;
}

@media (min-width: 1180px) and (max-width: 1359px) {
	:root .bt-header__bar .bt-nav--seven {
		order: 3;
	}
}

@media (max-width: 1179px) {
	:root .bt-header__bar .bt-nav {
		order: 3;
	}

	:root .bt-header__actions .bt-join {
		display: none;
	}
}

/* Small phones (320 to 389px): logo, Donate and Menu share one row without scrolling sideways. */
@media (max-width: 389px) {
	:root .bt-header__bar,
	:root .bt-header__end {
		gap: 10px;
	}

	:root .bt-header__bar .bt-logo__mark {
		height: 34px;
	}
}

/* Small phones: long Turkish words in display headings ("Cumhuriyetimizin", "Topluluğumuzdan") fit
   the line; a word that still cannot fit breaks rather than pushing the page sideways. */
@media (max-width: 389px) {
	:root .has-display-s-font-size {
		font-size: clamp(2rem, 10vw, 2.5rem) !important;
	}

	:root :is(h1, h2, h3) {
		overflow-wrap: break-word;
	}
}

/* Below 360px Donate drops its arrow so logo, Donate and Menu still share one row: the phone action bar
   only appears once the hero has scrolled away, so the header keeps Donate one tap away (Sprint 10). */
@media (max-width: 359px) {
	:root .bt-header__actions .wp-block-button__link {
		justify-content: center;
		padding-inline: 16px;
	}

	:root .bt-header__actions .wp-block-button__link::after {
		content: none;
	}

	:root .bt-header__actions .wp-block-button__link::before {
		background: var(--wp--custom--button--plain-primary-chip);
		clip-path: circle(0 at 50% 50%);
	}
}

/* ---------- footer ---------- */
/* The page ends on the footer's colour: below the body's last row (a sliver under a pixel when the page's
   height is fractional, or the space under a short page) the canvas is the dark band, not the paper. The
   body keeps the paper colour (theme.json). Sprint 10. */
:root:has(.bt-footer-part) {
	background: var(--wp--preset--color--surface-dark);
}

:root .bt-footer {
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark-2);
	font-size: var(--wp--preset--font-size--body);
}

:root .bt-footer a {
	color: var(--wp--preset--color--on-dark);
}

:root .bt-footer a:hover {
	color: var(--wp--preset--color--white);
}

:root .bt-footer__inner > * {
	margin-block: 0;
}

:root .bt-footer__inner {
	padding-top: clamp(56px, 6vw, 96px);
	padding-bottom: 40px;
}

:root .bt-footer__rule {
	border-bottom: 1px solid var(--wp--preset--color--line-dark);
}

:root .bt-footer__ack {
	gap: 32px clamp(48px, 6vw, 112px);
	padding-block: clamp(48px, 5vw, 72px) 48px;
}

:root .bt-acknowledgement {
	flex: 1 1 26.25rem;
	max-width: 30em;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--ack);
	line-height: 1.35;
	color: var(--wp--preset--color--on-dark);
}

:root .bt-footer__cols {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)) !important;
	padding-block: 48px;
	gap: 40px 32px;
}

:root .bt-footer__cols .wp-block-group > * {
	margin-block: 0;
}

:root .bt-footer__cols .is-style-eyebrow {
	margin: 0 0 14px;
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-footer__contact {
	margin: 0;
	line-height: 1.75;
}

:root .bt-footer__contact a {
	color: var(--wp--preset--color--on-dark);
}

:root .bt-footer .wp-block-navigation {
	line-height: 1.75;
	font-weight: 420;
	font-size: var(--wp--preset--font-size--body);
}

:root .bt-footer .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0;
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

:root .bt-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.35em;
}

:root .bt-footer__legal {
	gap: 12px 32px;
	padding-top: 28px;
	border-top: 1px solid var(--wp--preset--color--line-dark);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

:root .bt-legal__emphasis {
	color: var(--wp--preset--color--on-dark);
}

/* Compact footer: the acknowledgement's rule already separates the legal line. */
:root .bt-footer__ack + .bt-footer__legal {
	border-top: 0;
}

:root .bt-footer__legal-lines {
	gap: 4px 32px;
}

:root .bt-footer__legal-lines > * {
	margin: 0;
}

:root .bt-footer__tax {
	color: var(--wp--preset--color--on-dark);
	font-weight: 600;
}

:root .bt-footer__legal-nav {
	gap: 0 24px;
	font-size: var(--wp--preset--font-size--caption);
}

:root .bt-footer__legal-nav .wp-block-navigation {
	font-size: inherit;
}

:root .bt-footer__legal-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	line-height: 1.2;
}

:root .bt-footer .bt-lang {
	padding: 0;
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-footer .bt-lang a {
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

/* Newsletter (footer) */
:root .bt-newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px clamp(48px, 6vw, 112px);
	padding-bottom: clamp(48px, 5vw, 72px);
	border-bottom: 1px solid var(--wp--preset--color--line-dark);
}

:root .bt-newsletter__intro {
	flex: 1 1 22.5rem;
	min-width: 0;
}

:root .bt-newsletter__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-l);
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--on-dark);
}

:root .bt-newsletter__lede {
	max-width: 28em;
	margin: 14px 0 0;
}

:root .bt-newsletter__form {
	display: grid;
	flex: 1 1 28.75rem;
	gap: 16px;
	min-width: 0;
}

:root .bt-newsletter__field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--wp--preset--color--on-dark);
}

:root .bt-newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

:root .bt-newsletter__row input {
	flex: 1 1 16.25rem;
	box-sizing: border-box;
	min-width: 0;
	min-height: var(--bt-field-h);
	padding: 0 16px;
	border: 1.5px solid var(--wp--preset--color--base);
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

:root .bt-newsletter__row .wp-block-button {
	align-self: center;
}

:root .bt-newsletter__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

:root .bt-newsletter__lang {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	border: 0;
}

:root .bt-newsletter__lang-label {
	margin-right: 4px;
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-newsletter__lang label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--wp--preset--color--on-dark);
	cursor: pointer;
}

:root .bt-newsletter__lang input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--wp--preset--color--accent);
}

:root .bt-newsletter__privacy {
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-newsletter__privacy a {
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-newsletter__topics {
	color: var(--wp--preset--color--on-dark);
}

:root .bt-newsletter__topics summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.25em;
	cursor: pointer;
}

:root .bt-newsletter__topics fieldset {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
}

:root .bt-newsletter__topics-hint {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--on-dark-muted);
}

:root .bt-newsletter__topics-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}

:root .bt-newsletter__topics-list label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	cursor: pointer;
}

:root .bt-newsletter__topics-list input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--wp--preset--color--accent);
}

:root .bt-newsletter__status {
	margin: 0;
	padding: 12px 16px;
	border-left: 3px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-dark);
}

/* ---------- mobile action bar (phones only) ---------- */
:root .bt-action-bar {
	display: none;
}

@media (max-width: 960px) {
	/* Focus and in-page links stop above the action bar while it shows (WCAG 2.4.11). */
	html.bt-bar-shown,
	html:not(.bt-js):has(.bt-has-action-bar) {
		scroll-padding-bottom: 84px;
	}

	/*
	 * Sprint 10: fixed and out of the flow, so it never leaves a band under the footer. With JavaScript it waits
	 * until the hero has gone (assets/js/action-bar.js) and slides in; the footer keeps room for it.
	 */
	.wp-site-blocks > .bt-action-bar-part {
		position: fixed;
		inset: auto 0 0;
		z-index: 15;
		margin-block-start: 0;
		transition: transform 0.24s var(--wp--custom--motion--ease, ease), visibility 0s;
	}

	.bt-js .wp-site-blocks > .bt-action-bar-part:not(.is-shown) {
		visibility: hidden;
		transform: translateY(100%);
		transition: transform 0.24s var(--wp--custom--motion--ease, ease), visibility 0s 0.24s;
	}

	:root .bt-has-action-bar .bt-footer {
		padding-bottom: 76px;
	}

	:root .bt-action-bar {
		display: flex;
		gap: 10px;
		padding: 10px 16px;
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--base);
	}

	.bt-action-bar .wp-block-button:first-child {
		flex: 1.4;
	}

	.bt-action-bar .wp-block-button {
		flex: 1;
	}

	.bt-action-bar .wp-block-button__link {
		justify-content: flex-start;
		width: 100%;
	}
}

/* Small phones: both buttons fit side by side (320px and up, longer labels in Turkish and on Orange Tree). */
@media (max-width: 389px) {
	:root .bt-action-bar {
		gap: 8px;
		padding-inline: 12px;
	}

	.bt-action-bar .wp-block-button,
	.bt-action-bar .wp-block-button:first-child {
		--gap: 6px;
		--fs: 1rem;

		flex: 1 1 auto;
		min-width: 0;
	}

	.bt-action-bar .wp-block-button:not(.is-style-text-link) .wp-block-button__link {
		padding-left: 16px;
	}
}

/* ---------- site blocks: no gap between header, main and footer ---------- */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- anchors clear the sticky header. The page itself never scrolls smoothly (scripts and tests rely on
   instant jumps); only the carousels glide, and only without reduced motion (carousel.css). ---------- */
html.bt-js {
	scroll-padding-top: 96px;
}

/* ---------- reduced motion: colour changes only ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}

	.bt-reveal-on .bt-reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.bt-reveal-on .bt-reveal {
		opacity: 1;
		transform: none;
	}

	.bt-utility,
	.bt-action-bar,
	.bt-carousel__bar {
		display: none !important;
	}
}

/* ---------- full-width sections sit edge to edge ---------- */
:root :where(.wp-block-post-content, .bt-main) > .alignfull {
	margin-block: 0;
}

/* ---------- radios and checkboxes in every form (Sprint 10) ----------
 * One size and one look everywhere a visitor fills something in: 22px, a 1.5px ink border (well over the 3:1
 * WCAG 1.4.11 asks of a control's edge), filled with the brand's text colour when checked (plum on ATAM) with
 * a white tick or dot, and the site's 3px focus ring. On the dark footer the border is light and the fill amber.
 */
:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]) {
	box-sizing: border-box;
	display: inline-grid;
	flex: none;
	place-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: 4px;
	background: var(--wp--preset--color--white);
	cursor: pointer;
	appearance: none;
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input[type="radio"] {
	border-radius: 50%;
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"])::before {
	content: "";
	width: 12px;
	height: 12px;
	transform: scale(0);
	background: var(--wp--preset--color--white);
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input[type="checkbox"]::before {
	clip-path: polygon(14% 44%, 0 65%, 42% 100%, 100% 18%, 84% 4%, 40% 66%);
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input[type="radio"]::before {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]):checked {
	border-color: var(--wp--preset--color--primary-text);
	background: var(--wp--preset--color--primary-text);
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]):checked::before {
	transform: scale(1);
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]):focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]):disabled {
	border-color: var(--wp--preset--color--muted);
	cursor: not-allowed;
	opacity: 0.6;
}

:root .bt-newsletter input:is([type="checkbox"], [type="radio"]) {
	border-color: var(--wp--preset--color--on-dark);
	background: transparent;
}

:root .bt-newsletter input:is([type="checkbox"], [type="radio"]):checked {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
}

:root .bt-newsletter input:is([type="checkbox"], [type="radio"])::before {
	background: var(--wp--preset--color--surface-dark);
}

:root .bt-newsletter input:is([type="checkbox"], [type="radio"]):focus-visible {
	outline-color: var(--wp--preset--color--on-dark);
}

@media (forced-colors: active) {
	:root :is(.bt-form, .bt-give, .bt-ms, .bt-newsletter, .bt-filters) input:is([type="checkbox"], [type="radio"]) {
		appearance: auto;
	}
}

/* Wording still in [brackets]: the public never sees it (inc/Placeholders.php); editors see it outlined. */
.bt-placeholder {
	outline: 2px dashed #a15c00;
	outline-offset: 3px;
}

/* the NYE card in the open ATAM menu (21 Nov 2026) */
:root .bt-header .wp-block-navigation__responsive-container.is-menu-open .bt-menu-promo {
	display: grid;
	grid-template-columns: minmax(96px, 34%) 1fr;
	align-items: center;
	gap: 14px;
	max-width: 34rem;
	margin-bottom: 14px;
	padding: 10px;
	border-radius: 16px;
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark);
	text-decoration: none;
}

:root .bt-header .bt-menu-promo img {
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
	border-radius: 10px;
}

:root .bt-header .bt-menu-promo__text {
	display: grid;
	gap: 2px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
}

:root .bt-header .bt-menu-promo__text strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading-s);
	font-weight: 500;
	line-height: 1.15;
}

:root .bt-header .bt-menu-promo__tag {
	justify-self: start;
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--saffron);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

:root .bt-header .bt-menu-promo:is(:hover, :focus-visible) strong {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The sending bar (Sprint 26, ADR-112; owner, 22 Nov 2026): fills while a form is on its way, completes when it lands. */
:root .bt-send {
	position: relative;
	height: 6px;
	margin-top: 12px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--wp--preset--color--base-3);
	opacity: 0;
	transition: opacity 0.2s ease;
}

:root .bt-send.is-on,
:root .bt-send.is-done {
	opacity: 1;
}

:root .bt-send > span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	overflow: hidden;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
	transition: width 4s cubic-bezier(0.1, 0.7, 0.3, 1);
}

:root .bt-send.is-on > span {
	width: 88%;
}

:root .bt-send.is-done > span {
	width: 100%;
	transition-duration: 0.35s;
}

:root .bt-send.is-on > span::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent);
	content: "";
	animation: bt-send-shine 1.1s linear infinite;
}

@keyframes bt-send-shine {

	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {

	:root .bt-send > span {
		transition: none;
	}

	:root .bt-send.is-on > span::after {
		animation: none;
	}
}

/* /wp-content/themes/better-together/assets/css/content.css */
/*
 * Sprint 8a content: Our Table groups, committee portraits, sponsors and supporters, single-photo albums,
 * the click-to-load video, Our Shared Home's pledges and brochure, and the scroll effects. Loaded on every
 * page (the sponsors strip is on Home), after pages.css. Kept apart from pages.css so the parallel
 * membership work (Sprint 8b) and this sprint touch different files.
 */

/* ================= Our Table: dishes by course ================= */
:root .bt-dishgroups {
	display: grid;
	gap: clamp(40px, 5vw, 64px);
	margin-top: clamp(40px, 4vw, 56px);
}

:root .bt-dishgroup > .bt-dishgroup__title {
	margin: 0 0 4px;
	color: var(--wp--preset--color--primary-text);
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:root .bt-dish h4 {
	margin: 0;
	font-size: clamp(1.38125rem, 1.8vw, 1.6125rem);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.006em;
}

/* The menu (owner, 23 November 2026, ADR-124): one course at a time behind tabs (pages.js), a tall
   photograph of the course beside its dishes, the photograph staying in view while a long course scrolls.
   Without JavaScript every course is shown in turn, each with its photograph. */
:root .bt-menu {
	gap: 0;
}

:root .bt-menu .bt-tablist {
	gap: 8px;
	margin-bottom: clamp(28px, 3vw, 40px);
	padding-bottom: 2px;
	border-bottom: 0;
	overflow-x: auto;
	flex-wrap: nowrap;
	scrollbar-width: none;
}

:root .bt-menu .bt-tab {
	flex: none;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:root .bt-menu .bt-tab:hover {
	border-color: var(--wp--preset--color--contrast);
}

:root .bt-menu .bt-tab[aria-selected="true"] {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white);
}

:root .bt-menu .bt-dishgroup {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0 clamp(28px, 4.5vw, 72px);
	align-items: start;
}

:root .bt-menu .bt-dishgroup > .bt-dishgroup__title {
	grid-column: 1 / -1;
	margin-bottom: 16px;
}

:root .bt-menu .bt-dishgroup__media {
	position: sticky;
	top: calc(var(--bt-sticky-top, 24px) + 16px);
	margin: 0;
}

/* each course's photos rotate in one frame (ADR-128): the frame carries the rounding and the shadow */
:root .bt-menu .bt-dishgroup__media .bt-rotator__stage {
	border-radius: 12px;
	box-shadow: 0 18px 40px -24px rgb(35 33 43 / 0.45);
}

:root .bt-menu .bt-dishgroup__media figcaption {
	margin: 12px 0 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
}

:root .bt-menu .bt-dishes {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)) !important;
	gap: 0 clamp(24px, 3vw, 40px) !important;
}

:root .bt-menu .bt-dish {
	padding: 18px 0 20px;
}

:root .bt-menu .bt-dish__head {
	flex-wrap: wrap;
	gap: 6px 12px;
}

:root .bt-menu .bt-dish__region {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--base-2);
	font-size: 0.8125rem;
	white-space: nowrap;
}

:root .bt-menu.is-tabbed .bt-tabpanel:not([hidden]) {
	animation: bt-menu-course 0.42s var(--wp--custom--motion--ease) both;
}

@keyframes bt-menu-course {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@media (max-width: 781px) {
	:root .bt-menu .bt-dishgroup {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .bt-menu .bt-dishgroup__media {
		position: static;
		margin-bottom: 8px;
	}

	:root .bt-menu .bt-dishgroup__media .bt-rotator__stage {
		aspect-ratio: 16 / 10 !important;
	}

	:root .bt-menu .bt-tablist {
		margin-inline: calc(-1 * var(--wp--preset--spacing--gutter));
		padding-inline: var(--wp--preset--spacing--gutter);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .bt-menu.is-tabbed .bt-tabpanel:not([hidden]) {
		animation: none;
	}
}

/* Celebrations, grouped (ADR-124): a small heading over each group of dates. */
:root .bt-dates__title {
	margin: clamp(32px, 3.4vw, 44px) 0 0;
	color: var(--wp--preset--color--primary-text);
	font-family: var(--wp--preset--font-family--text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:root .bt-dates__title + .bt-dates {
	margin-top: 12px !important;
}

/* ================= About: timeline's next item, committee portraits ================= */
:root .bt-timeline li.bt-timeline__next {
	border-top-style: dashed;
}

:root .bt-timeline li.bt-timeline__next::before {
	border: 1.5px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base-2);
}

:root .bt-person__photo {
	margin: 0 0 16px !important;
}

:root .bt-person__photo img {
	display: block;
	width: 120px;
	height: auto;
	border-radius: 12px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

:root .bt-people__note {
	max-width: 44em;
	margin-top: 32px;
	color: var(--wp--preset--color--contrast-2);
}

/* ================= sponsors and supporters (atam-core/sponsors) ================= */
.atam-sponsors ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atam-sponsors__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
}

.atam-sponsor {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	background: var(--wp--preset--color--base);
}

.atam-sponsor--premier {
	border-color: var(--wp--preset--color--primary);
	box-shadow: inset 0 3px 0 var(--wp--preset--color--primary);
}

.atam-sponsor__logo {
	display: grid;
	place-items: center;
	height: 112px;
	padding: 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
}

.atam-sponsor__logo img {
	max-width: 100%;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Small links inside cards and tiles keep a target at least 24px tall on phones (WCAG 2.2, 26 Nov 2026). */
.atam-supporter__name a,
:root .bt-listing__cat a,
:root .bt-listing__addr a {
	display: inline-block;
	padding-block: 2px;
}

/* Logos on a white square (from event slides and sponsor boards) blend into the tile instead of showing a white box. */
.atam-sponsor__logo img,
.atam-sponsors__logo img,
:root .bt-listing__media--logo img {
	mix-blend-mode: multiply;
}

.atam-sponsor__mono {
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	letter-spacing: 0.04em;
}

.atam-sponsor__body > * {
	margin: 0;
}

.atam-sponsor__tier {
	color: var(--wp--preset--color--primary-text);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atam-sponsor__name {
	margin-top: 6px !important;
	font-size: clamp(1.38125rem, 1.8vw, 1.6125rem);
	font-weight: 500;
	line-height: 1.15;
}

.atam-sponsor__name a,
.atam-supporter__name a {
	color: inherit;
	text-decoration: none;
}

.atam-sponsor__name a:hover,
.atam-supporter__name a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.atam-sponsor__summary {
	margin-top: 8px !important;
	color: var(--wp--preset--color--contrast-2);
}

.atam-sponsor__history {
	display: grid;
	gap: 4px;
	margin-top: 14px !important;
	padding-top: 12px !important;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.atam-sponsor__years {
	color: var(--wp--preset--color--muted);
	font-variant-numeric: lining-nums tabular-nums;
}

.atam-sponsor__site {
	margin-top: 12px !important;
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: anywhere;
}

.atam-sponsor__site a {
	color: var(--wp--preset--color--primary-text);
	font-weight: 600;
	text-underline-offset: 0.18em;
}

/* Website and social pages (26 Nov 2026): one wrapping row of plain-text links, each a comfortable tap target. */
.atam-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	padding: 0;
	list-style: none;
}

.atam-links a {
	display: inline-block;
	padding-block: 4px;
}

.atam-supporter .atam-links {
	margin: 0 !important;
}

/* a short list: each former sponsor keeps a card's width instead of stretching across the page */
.atam-sponsors__supporters.atam-sponsors__former {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* phones: former sponsors two to a row with smaller logo boxes, so the list is half as long (page review,
   26 Nov 2026); current supporters keep a full row for their links */
@media (max-width: 599px) {
	.atam-sponsors__supporters.atam-sponsors__former {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.atam-sponsors__former .atam-supporter .atam-sponsor__logo {
		height: 64px;
	}

	.atam-sponsors__former .atam-supporter .atam-sponsor__logo img {
		max-height: 40px;
	}

	.atam-sponsors__former .atam-supporter .atam-supporter__since {
		font-size: var(--wp--preset--font-size--small);
	}
}

.atam-sponsors__note {
	margin: -8px 0 16px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.atam-sponsors__sub {
	margin: clamp(40px, 5vw, 56px) 0 16px;
	font-size: var(--wp--preset--font-size--heading-s);
	font-weight: 500;
}

.atam-sponsors__supporters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.atam-supporter {
	display: grid;
	align-content: start;
	gap: 10px;
}

.atam-supporter .atam-sponsor__logo {
	height: 88px;
}

/* the logo keeps the box's padding (the logo files are trimmed to their artwork) */
.atam-supporter .atam-sponsor__logo img {
	max-height: 52px;
}

.atam-supporter > p {
	margin: 0;
}

.atam-supporter__name {
	font-weight: 600;
}

.atam-supporter__since {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* compact (About): logos and names only */
.atam-sponsors--compact .atam-sponsor {
	padding: 16px;
	gap: 14px;
}

.atam-sponsors--compact .atam-sponsor__logo {
	height: 88px;
}

/* strip (Home, above the footer) */
/* community partners (owner, 23 November 2026): public bodies ATAM works with. Official logos in colour once
   their files are in assets/images/partners/; until then, the names in the same quiet style. */
:root .bt-partners-strip {
	padding-block: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--wp--preset--color--line);
}

:root .bt-sponsor-strip + .bt-partners-strip {
	padding-top: 0;
	border-top: 0;
}

.bt-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 40px;
}

.bt-partners__title {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bt-partners__list {
	display: flex;
	flex: 1 1 480px;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-partners__item a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-radius: 8px;
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
	text-decoration: none;
}

.bt-partners__item a:hover .bt-partners__name {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.bt-partners__item.has-logo img {
	display: block;
	width: auto;
	max-width: 168px;
	height: 48px;
	object-fit: contain;
}

@media (max-width: 600px) {
	.bt-partners__item.has-logo img {
		max-width: 120px;
		height: 40px;
	}
}

:root .bt-sponsor-strip {
	padding-block: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--wp--preset--color--line);
}

.atam-sponsors--strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
}

.atam-sponsors__thanks,
.atam-sponsors__more {
	margin: 0;
}

.atam-sponsors__thanks {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atam-sponsors__logos {
	display: flex;
	flex: 1 1 520px;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

/* every logo in the same box: a fixed height and a maximum width, scaled to fit (Sprint 10). A business
   without a logo shows its monogram at the same height; the names are for screen readers. */
.atam-sponsors__logo {
	--logo-h: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--logo-h);
	max-width: 144px;
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
}

.atam-sponsors__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.atam-sponsors__logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.atam-sponsors__logo .atam-sponsor__mono {
	display: grid;
	place-items: center;
	width: var(--logo-h);
	height: var(--logo-h);
	border-radius: 50%;
	background: var(--wp--preset--color--base-2);
	font-size: calc(var(--logo-h) * 0.38);
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.atam-sponsors__logos {
		gap: 14px 22px;
	}

	.atam-sponsors__logo {
		--logo-h: 36px;
		max-width: 100px;
	}
}

/* wider screens: the thanks and the link share the first line, the logos the full width beneath */
@media (min-width: 782px) {
	.atam-sponsors--strip .atam-sponsors__logos {
		flex-basis: 100%;
		order: 3;
		justify-content: space-between;
		gap: 16px 40px;
	}

	.atam-sponsors--strip .atam-sponsors__logo {
		max-width: 132px;
	}
}

.atam-sponsors__more a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

/* the badge on ATAM Connect cards and listing pages */
.atam-sponsor-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 4px 12px 4px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.atam-sponsor-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

.atam-listing-draft,
:root .bt-sponsors-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-sponsors-note {
	margin-top: 32px;
}

/* ================= gallery: themes ================= */
:root .bt-themes__title {
	margin: clamp(32px, 4vw, 48px) 0 16px;
}

.bt-themes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 782px) {
	.bt-themes__grid {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}

.bt-theme-card a {
	display: grid;
	gap: 4px;
	color: inherit;
	text-decoration: none;
}

.bt-theme-card__media {
	display: block;
	overflow: hidden;
	margin-bottom: 8px;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--base-3);
	aspect-ratio: 4 / 3;
}

.bt-theme-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--wp--custom--motion--fill) var(--wp--custom--motion--ease);
}

.bt-theme-card a:is(:hover, :focus-visible) .bt-theme-card__media img {
	transform: scale(1.04);
}

.bt-theme-card__name {
	font-size: var(--wp--preset--font-size--heading-xs);
	font-weight: 600;
	line-height: 1.2;
}

.bt-theme-card a:is(:hover, :focus-visible) .bt-theme-card__name {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.bt-theme-card__n {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.bt-theme-card.is-current .bt-theme-card__media {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

.bt-themes__all {
	margin: 20px 0 0;
}

.bt-themes__all a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

:root .bt-album__themes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px !important;
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-album__themes a {
	padding: 4px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

:root .bt-album__themes a:is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

/* ================= gallery: an album with one photo (albums with more are the carousel: carousel.css) ===== */
.bt-album-one {
	--bt-show-ratio: 3 / 2;
}

/* an album with one photo (inc/Gallery.php): full content width at 3:2 on every screen, caption beneath.
   :not(#bt-one) matches the weight of core's own :not(#individual-image) gallery rules. */
:root .wp-block-gallery.has-nested-images.bt-album-one {
	display: block;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) {
	display: block;
	width: 100%;
	margin: 0;
	overflow: visible;
	border-radius: 0;
	background: none;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) img {
	width: 100%;
	background: var(--wp--preset--color--base-3);
	height: auto;
	aspect-ratio: var(--bt-show-ratio, 3 / 2);
	border-radius: var(--wp--custom--radius--media);
	object-fit: cover;
}

:root .wp-block-gallery.has-nested-images.bt-album-one figure.wp-block-image:not(#bt-one) figcaption {
	position: static;
	max-height: none;
	margin: 12px 0 0;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	text-align: left;
	text-shadow: none;
}

:root .wp-block-gallery.bt-album-one + .bt-carousel__bar--one {
	justify-content: flex-end;
	margin-top: 4px;
}

/* ================= click-to-load video (atam-core/video) ================= */
:root .bt-watch__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: start;
	gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 781px) {
	:root .bt-watch__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .bt-watch__grid .atam-video--facebook:first-child {
		max-width: 360px;
	}
}

.atam-video {
	margin: 0;
}

.atam-video__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--surface-dark);
	aspect-ratio: var(--atam-video-ratio, 16 / 9);
}

.atam-video__still,
.atam-video__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.atam-video__still--blank {
	background:
		radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.12), transparent 55%),
		linear-gradient(135deg, var(--wp--preset--color--primary-strong), var(--wp--preset--color--surface-dark));
}

.atam-video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
}

.atam-video__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.94);
	box-shadow: 0 4px 18px rgb(0 0 0 / 0.25);
	transition: transform var(--wp--custom--motion--press) var(--wp--custom--motion--ease);
}

.atam-video__icon::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 6px;
	border-block: 12px solid transparent;
	border-left: 20px solid var(--wp--preset--color--contrast);
}

.atam-video__play:is(:hover, :focus-visible) .atam-video__icon {
	transform: scale(1.06);
}

.atam-video__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -8px;
}

.atam-video__caption {
	display: grid;
	gap: 4px;
	margin-top: 12px;
}

.atam-video__title {
	font-weight: 600;
}

.atam-video__note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ================= Our Shared Home: how it began, pledges, first pledges ================= */
:root .bt-pledges {
	margin-top: 32px;
	padding: 24px;
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

:root .bt-pledges > * {
	margin-block: 0;
}

:root .bt-pledges__figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 14px 0 16px !important;
}

:root .bt-pledges__figure {
	display: grid;
	gap: 2px;
	margin: 0;
}

:root .bt-pledges__figure strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
	font-variant-numeric: lining-nums tabular-nums;
}

:root .bt-pledges__figure span {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-pledges__note {
	margin-top: 12px !important;
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-roll-first {
	max-width: 44em;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

:root .bt-roll-first > * {
	margin-block: 0 8px;
}

/* ================= Our Shared Home brochure: A4 sheets on screen and in print ================= */
:root .bt-bro__bar {
	padding-block: clamp(32px, 4vw, 56px) 24px;
}

:root .bt-bro__bar-text > * {
	margin-block: 0 8px;
}

:root .bt-bro {
	--bt-sheet-w: min(210mm, calc(100vw - 32px));
	display: grid;
	justify-items: center;
	gap: 32px;
	padding: 0 16px clamp(48px, 6vw, 96px);
	background: var(--wp--preset--color--base-2);
	padding-top: 32px;
}

:root .bt-bro__sheet {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: var(--bt-sheet-w);
	min-height: calc(var(--bt-sheet-w) * 1.4142);
	margin: 0;
	padding: clamp(24px, 6vw, 18mm);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	box-shadow: 0 2px 24px rgb(35 33 43 / 0.12);
	font-size: clamp(0.875rem, 1.6vw, 1rem);
}

:root .bt-bro__sheet > * {
	margin-block: 0 12px;
}

:root .bt-bro__sheet h2 {
	margin-block: 4px 14px;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.1;
}

:root .bt-bro__sheet h3 {
	margin-block: 0 6px;
	font-size: 1.125rem;
}

:root .bt-bro__sheet .bt-index {
	margin-top: 18px;
}

:root .bt-bro__folio {
	margin-top: auto !important;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

/* cover */
:root .bt-bro__sheet--1 {
	padding: 0;
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark);
}

:root .bt-bro__cover-photo {
	flex: 1 1 auto;
	margin: 0 !important;
}

:root .bt-bro__cover-photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 55%;
	object-fit: cover;
}

:root .bt-bro__cover-text {
	padding: clamp(24px, 5vw, 16mm) clamp(24px, 6vw, 18mm);
}

:root .bt-bro__cover-text > * {
	margin-block: 0 12px;
}

:root .bt-bro__cover-text .is-style-eyebrow {
	color: var(--wp--preset--color--on-dark-2);
}

:root .bt-bro__logo img {
	width: 120px;
	height: auto;
}

:root .bt-bro__title {
	font-size: clamp(2rem, 5vw, 3.25rem) !important;
	line-height: 1.02 !important;
}

:root .bt-bro__lede {
	max-width: 32em;
	font-size: 1.0625rem;
}

:root .bt-bro__imprint {
	color: var(--wp--preset--color--on-dark-muted);
	font-size: 0.75rem;
}

:root .bt-bro__sheet:not(.bt-bro__sheet--1) .bt-bro__imprint {
	color: var(--wp--preset--color--muted);
}

:root .bt-bro__band {
	margin: calc(-1 * clamp(24px, 6vw, 18mm)) calc(-1 * clamp(24px, 6vw, 18mm)) 20px !important;
}

:root .bt-bro__band img {
	display: block;
	width: 100%;
	height: 52mm;
	object-fit: cover;
}

:root .bt-bro__lead {
	font-size: 1.125rem;
}

:root .bt-bro__priorities {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .bt-bro__priorities span {
	display: inline-block;
	min-width: 1.5em;
	margin-right: 4px;
	color: var(--wp--preset--color--primary-text);
	font-weight: 700;
}

:root .bt-bro__priorities strong {
	margin-right: 6px;
}

:root .bt-bro__gates,
:root .bt-bro__safes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 8px !important;
}

:root .bt-bro__gate,
:root .bt-bro__safe {
	padding: 14px;
	border-radius: 10px;
	background: var(--wp--preset--color--base-2);
	font-size: 0.875rem;
}

:root .bt-bro__gate > *,
:root .bt-bro__safe > * {
	margin-block: 0 6px;
}

:root .bt-bro__fm {
	padding: 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
}

:root .bt-bro__fm > * {
	margin-block: 0 8px;
}

:root .bt-bro__big {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.5rem;
	line-height: 1;
}

:root .bt-bro__benefits {
	columns: 2;
	column-gap: 24px;
	margin: 0;
	padding-left: 1.1em;
}

:root .bt-bro__help {
	margin-top: 8px;
	padding: 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--on-dark);
}

:root .bt-bro__help > * {
	margin-block: 0 8px;
}

:root .bt-bro__thanks {
	color: var(--wp--preset--color--on-dark-2);
}

@media (max-width: 600px) {
	:root .bt-bro__gates,
	:root .bt-bro__safes {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .bt-bro__benefits {
		columns: 1;
	}
}

@page {
	size: a4;
	margin: 0;
}

@media print {
	:root .bt-utility-part,
	:root .bt-header-part,
	:root .bt-footer-part,
	:root .bt-action-bar-part,
	:root .bt-bro__bar,
	:root #wpadminbar,
	:root .skip-link {
		display: none !important;
	}

	:root body {
		background: #fff;
	}

	:root .bt-bro {
		--bt-sheet-w: 210mm;
		display: block;
		padding: 0;
		background: none;
	}

	:root .bt-bro__sheet {
		width: 210mm;
		height: 297mm;
		min-height: 0;
		padding: 18mm;
		box-shadow: none;
		font-size: 12pt;
		line-height: 1.5;
		break-after: page;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	:root .bt-bro__sheet:last-child {
		break-after: auto;
	}

	:root .bt-bro__sheet--1 {
		padding: 0;
	}

	:root .bt-bro__sheet h2 {
		font-size: 24pt;
	}

	:root .bt-bro__sheet :is(p, li) {
		font-size: inherit;
	}

	:root .bt-bro__sheet h3 {
		font-size: 13pt;
	}

	:root .bt-bro__lead,
	:root .bt-bro__lede {
		font-size: 14pt !important;
	}

	:root .bt-bro__gate,
	:root .bt-bro__safe {
		font-size: 10.5pt;
	}

	:root .bt-bro__sheet :is(.bt-bro__folio, .bt-bro__imprint, .bt-pledges__note) {
		font-size: 8.5pt;
	}

	:root .bt-bro__sheet .bt-bro__big {
		font-size: 34pt;
	}

	:root .bt-pledges--bro .bt-pledges__figure strong {
		font-size: 30pt;
	}

	:root .bt-bro__title {
		font-size: 36pt !important;
	}

	:root .bt-bro__band {
		margin: -18mm -18mm 16px !important;
	}

	:root .bt-bro__gates,
	:root .bt-bro__safes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	:root .bt-bro__benefits {
		columns: 2;
	}

	:root .bt-reveal-on .bt-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ================= scroll effects ================= */
/* Large photos drift slowly against the page as it scrolls (transform only: no layout shift). The same list
   is in content.js, which sets --bt-scroll where scroll-driven animations are not supported. */
@media (prefers-reduced-motion: no-preference) {
	:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media,
	:root .bt-ph__media {
		overflow: hidden;
	}

	@supports (animation-timeline: view()) {
		:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
		:root .bt-ph__media img {
			animation: bt-drift linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}

		/* cards, dishes, sponsors and videos rise into place as they enter */
		:root :is(.bt-theme-card, .atam-sponsor, .atam-supporter, .bt-dish, .bt-person, .atam-video, .bt-carousel--single, .bt-bro__sheet) {
			animation: bt-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}
	}

	:root.bt-parallax-js :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
	:root.bt-parallax-js .bt-ph__media img {
		transform: translate3d(0, calc((var(--bt-scroll, 0.5) - 0.5) * 7%), 0) scale(1.08);
		will-change: transform;
	}
}

@keyframes bt-drift {
	from {
		transform: translate3d(0, -3.5%, 0) scale(1.08);
	}

	to {
		transform: translate3d(0, 3.5%, 0) scale(1.08);
	}
}

@keyframes bt-rise {
	from {
		opacity: 0.001;
		transform: translate3d(0, 28px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media print {
	:root :is(.bt-wide-figure, .bt-figure, .bt-camp__chapter) .bt-media img,
	:root .bt-ph__media img,
	:root :is(.bt-theme-card, .atam-sponsor, .atam-supporter, .bt-dish, .bt-person, .atam-video, .bt-carousel--single, .bt-bro__sheet) {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ================= photos added through the pages (Sprint 8a) ================= */
:root .bt-sec > .alignwide > .bt-figure {
	margin-top: clamp(40px, 5vw, 64px);
}

:root .bt-figure--narrow {
	max-width: min(100%, 560px);
	margin-inline-start: auto;
}

:root .bt-bro__photo {
	margin-top: 8px !important;
}

:root .bt-bro__photo img {
	display: block;
	width: 100%;
	height: 62mm;
	border-radius: 10px;
	object-fit: cover;
}

/* ================= photo rows (Sprint 9): Our Table, the About milestones, volunteers ================= */
:root .bt-photo-row {
	display: grid;
	grid-template-columns: repeat(var(--bt-row-cols, 3), minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(28px, 3.4vw, 48px);
}

:root .bt-photo-row--2 {
	--bt-row-cols: 2;
}

:root .bt-photo-row--4 {
	--bt-row-cols: 4;
}

:root .bt-photo-row > .wp-block-image {
	margin: 0;
}

:root .bt-photo-row .bt-media img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--base-2);
}

:root .bt-photo-row figcaption {
	margin: 10px 0 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	text-align: left;
}

@media (max-width: 1023px) {
	:root .bt-photo-row--4 {
		--bt-row-cols: 2;
	}
}

@media (max-width: 781px) {
	:root .bt-photo-row--3 {
		--bt-row-cols: 1;
	}
}

@media (max-width: 480px) {
	:root .bt-photo-row--2 {
		--bt-row-cols: 1;
	}
}

/* Sponsor logos everywhere: grey until hover or keyboard focus, then in their own colours, linking to the
   sponsor's profile (owner, 20 Nov 2026). Touch screens have no hover, so they always show colour. */
.atam-sponsor .atam-sponsor__logo img,
.atam-supporter .atam-sponsor__logo img {
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.atam-sponsors__logo a:hover img,
.atam-sponsors__logo a:focus-visible img,
.atam-sponsor:hover .atam-sponsor__logo img,
.atam-sponsor:focus-within .atam-sponsor__logo img,
.atam-supporter:hover .atam-sponsor__logo img,
.atam-supporter:focus-within .atam-sponsor__logo img {
	filter: none;
	opacity: 1;
}

a.atam-sponsor__logo {
	text-decoration: none;
}

@media (hover: none) {
	.atam-sponsors__logo img,
	.atam-sponsor .atam-sponsor__logo img,
	.atam-supporter .atam-sponsor__logo img {
		filter: none;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atam-sponsors__logo img,
	.atam-sponsor .atam-sponsor__logo img,
	.atam-supporter .atam-sponsor__logo img {
		transition: none;
	}
}

/* ================= ATAM Connect: what we share, recently shared (ADR-125) ================= */
:root .bt-connect-about__rule {
	padding-left: 14px;
	border-left: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast-2);
}

:root .bt-connect-about__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)) !important;
	margin-top: clamp(32px, 4vw, 56px);
}

/* Posters keep their whole design: each sits in the same 4:5 frame, scaled to fit, never cropped; the
   title opens the full poster. */
:root .bt-poster .bt-poster__media {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--wp--preset--color--base-2);
}

:root .bt-poster .bt-poster__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto !important;
	object-fit: contain;
}

/* ================= Home: NYE 2027 band (ADR-129), until New Year's Day ================= */
:root .bt-nye-band {
	padding-block: clamp(32px, 3.6vw, 52px);
	background-image: radial-gradient(120% 140% at 0% 0%, rgb(245 173 25 / 0.14), transparent 55%);
}

:root .bt-nye-band__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: clamp(20px, 3vw, 48px);
	align-items: center;
}

:root .bt-nye-band__poster {
	display: block;
	width: clamp(104px, 11vw, 160px);
	transform: rotate(-2.5deg);
	transition: transform var(--wp--custom--motion--media, 0.4s) ease-out;
}

:root .bt-nye-band__poster img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 22px 44px -20px rgb(0 0 0 / 0.7);
}

:root .bt-nye-band:hover .bt-nye-band__poster {
	transform: rotate(0deg) scale(1.03);
}

:root .bt-nye-band__text > * {
	margin-block: 0;
}

:root .bt-nye-band__text > * + * {
	margin-top: 10px;
}

:root .bt-nye-band__when {
	color: rgb(255 255 255 / 0.82);
}

:root .bt-nye-band__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px !important;
}

:root .bt-nye-band__facts[hidden] {
	display: none;
}

:root .bt-nye-band__facts span {
	padding: 4px 12px;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.01em;
}

:root .bt-nye-band__facts span:first-child {
	border-color: transparent;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface-dark);
}

:root .bt-nye-band__actions {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px 20px;
}

@media (max-width: 959px) {
	:root .bt-nye-band__row {
		grid-template-columns: auto minmax(0, 1fr);
	}

	:root .bt-nye-band__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
	}
}

@media (max-width: 599px) {
	:root .bt-nye-band__row {
		align-items: start;
	}

	:root .bt-nye-band__poster {
		width: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .bt-nye-band__poster,
	:root .bt-nye-band:hover .bt-nye-band__poster {
		transform: none;
		transition: none;
	}
}

/* ================= ATAM Connect: list your business (ADR-131) ================= */
:root .bt-connect-list__row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 4.5vw, 72px);
	align-items: start;
}

:root .bt-connect-list__steps {
	margin: 20px 0 0;
	padding-left: 1.2em;
	color: var(--wp--preset--color--contrast-2);
}

:root .bt-connect-list__steps li + li {
	margin-top: 6px;
}

:root .bt-connect-list__form {
	padding: clamp(20px, 3vw, 36px);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 18px 40px -28px rgb(35 33 43 / 0.4);
}

:root .bt-connect-list__form fieldset + fieldset {
	margin-top: 20px;
}

@media (max-width: 959px) {
	:root .bt-connect-list__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* live listings from /api/directory/ (live-forms.js) */
:root .bt-listing__member {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wp--preset--color--base-2);
	font-size: 0.8125rem;
	font-weight: 600;
}

:root .bt-listing__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-listing--nolink::before,
:root .bt-listing--nolink::after {
	display: none;
}

:root .bt-listing__links a {
	position: relative;
	z-index: 3;
}

/* ================= Directory cards (26 Nov 2026): picture, offer, address and contact buttons ================= */
:root .bt-listing--media {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-right: 0;
}

/* the picture replaces the corner arrow: the whole card still opens the business */
:root .bt-listing--media::before,
:root .bt-listing--media::after {
	display: none;
}

:root .bt-listing__media {
	order: -1;
	overflow: hidden;
	margin: 0 0 14px !important;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
	aspect-ratio: 3 / 2;
}

:root .bt-listing__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* logos are shown whole, centred on the card colour (the block writes object-fit: cover inline) */
:root .bt-listing__media--logo img {
	padding: 12% 14%;
	object-fit: contain !important;
}

:root .bt-listing__mono {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--contrast-2);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	letter-spacing: 0.04em;
}

:root .bt-listing__offer {
	margin-top: 12px !important;
	padding: 8px 12px;
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 8px 8px 0;
	background: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-listing__addr {
	margin-top: 10px !important;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

:root .bt-listing__offer a,
:root .bt-listing__addr a {
	position: relative;
	z-index: 3;
	color: var(--wp--preset--color--primary-text);
	font-weight: 600;
	text-underline-offset: 0.18em;
}

:root .bt-listing__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto !important;
	padding-top: 14px;
}

:root .bt-chip {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

:root .bt-chip:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-text);
}

:root .bt-chip:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/*
 * Contact and social icons (owner, 26 Nov 2026): an icon before each label, chosen by where the link goes. Website,
 * phone, email, LinkedIn and Directions use plain outline shapes. Instagram, Facebook, TikTok, YouTube and Threads use
 * the platforms' own one-colour glyphs, from Simple Icons 14.0.0 (CC0). LinkedIn asked Simple Icons to remove its mark,
 * so it keeps the briefcase. The labels stay, so every link still says where it leads.
 */
:root {
	--bt-ic-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3'/%3E%3C/svg%3E");
	--bt-ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.7 4.2-2.2 1.4a11 11 0 0 0 6.4 6.4l1.4-2.2L20 15.5V19a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1'/%3E%3C/svg%3E");
	--bt-ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	--bt-ic-work: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E");
	--bt-ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
	--bt-ic-instagram: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077'/%3E%3C/svg%3E");
	--bt-ic-facebook: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E");
	--bt-ic-tiktok: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E");
	--bt-ic-youtube: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
	--bt-ic-threads: url("data:image/svg+xml,%3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E");
}

:root .bt-chip::before,
.atam-links a::before,
:root .bt-listing__addr a::before {
	content: "";
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	margin-inline-end: 6px;
	vertical-align: -0.2em;
	background: currentcolor;
	-webkit-mask: var(--bt-ic, var(--bt-ic-web)) center / contain no-repeat;
	mask: var(--bt-ic, var(--bt-ic-web)) center / contain no-repeat;
}

:root .bt-listing__addr a::before {
	--bt-ic: var(--bt-ic-pin);

	margin-inline: 2px 4px;
}

:root a[href^="tel:"] {
	--bt-ic: var(--bt-ic-phone);
}

:root a[href^="mailto:"] {
	--bt-ic: var(--bt-ic-mail);
}

:root a[href*="instagram.com/"] {
	--bt-ic: var(--bt-ic-instagram);
}

:root a[href*="facebook.com/"],
:root a[href*="fb.com/"] {
	--bt-ic: var(--bt-ic-facebook);
}

:root a[href*="linkedin.com/"] {
	--bt-ic: var(--bt-ic-work);
}

:root a[href*="tiktok.com/"] {
	--bt-ic: var(--bt-ic-tiktok);
}

:root a[href*="youtube.com/"],
:root a[href*="youtu.be/"] {
	--bt-ic: var(--bt-ic-youtube);
}

:root a[href*="threads.net/"],
:root a[href*="threads.com/"] {
	--bt-ic: var(--bt-ic-threads);
}

/* Join ATAM Connect, the moderated group (26 Nov 2026): the short join form sits in a card under the group's rules. */
.bt-connect-join {
	margin-top: 28px !important;
	padding: clamp(18px, 4vw, 28px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}

.bt-connect-join > h3 {
	margin: 0 0 12px;
}

/* Membership: two photos under the benefits (owner, 26 Nov 2026: show why membership matters). */
.bt-mem-photos {
	margin-top: clamp(28px, 5vw, 48px) !important;
}

/* /wp-content/themes/better-together/assets/css/carousel.css */
/*
 * The site's one carousel (inc/Carousel.php, assets/js/carousel.js; ADR-063): a scroll-snapping track that
 * swipes without script, the pill indicator and 48px icon-circle buttons in a bar beneath. Variants:
 * strip (Moments: several photos at their own ratios, gallery.css), single (one photo at a time, caption
 * beneath) and cards (a row of cards). The bar appears only with JavaScript (bt-js is set before the first
 * paint, so nothing shifts). Reduced motion: every move is instant.
 */
.bt-carousel {
	--bt-car-gap: 16px;
	position: relative;
	min-width: 0;
}

:root .bt-carousel .bt-carousel__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--bt-car-gap);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.bt-carousel .bt-carousel__track::-webkit-scrollbar {
	display: none;
}

.bt-carousel .bt-carousel__track:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 4px;
}

:root .bt-carousel .bt-carousel__slide {
	flex: none;
	scroll-snap-align: start;
}

/* a full-bleed strip starts on the wide grid and snaps each photo to it (the strip's --inline, gallery.css) */
:root .bt-carousel--strip .bt-carousel__track {
	padding-inline: var(--inline, var(--wp--preset--spacing--gutter));
	scroll-padding-inline: var(--inline, var(--wp--preset--spacing--gutter));
}

/* ---------- one photo at a time ---------- */
.bt-carousel--single {
	--bt-ratio: 3 / 2;
}

:root .bt-carousel--single .bt-carousel__track.wp-block-gallery.has-nested-images figure.wp-block-image:not(#bt-car) {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
	border-radius: 0;
	background: none;
}

:root .bt-carousel--single .bt-carousel__track.wp-block-gallery.has-nested-images figure.wp-block-image:not(#bt-car) img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--bt-ratio);
	border-radius: var(--wp--custom--radius--media);
	background: var(--wp--preset--color--base-3);
	/* each photo whole inside the frame: never cropped through a group (R12 to R15 handovers) */
	object-fit: contain;
}

/* the caption beneath the photo, the site's one caption style */
:root .bt-carousel .bt-carousel__track.wp-block-gallery.has-nested-images figure.wp-block-image:not(#bt-car) figcaption {
	position: static;
	max-height: none;
	margin: 10px 0 0;
	padding: 0;
	overflow: visible;
	background: none;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.45;
	text-align: left;
	text-shadow: none;
	font-variant-numeric: tabular-nums;
}

:root .bt-carousel .bt-carousel__track.wp-block-gallery.has-nested-images figure.wp-block-image:not(#bt-car):has(figcaption)::before {
	content: none;
}

/* ---------- cards in a row ---------- */
.bt-carousel--cards {
	--bt-car-gap: clamp(16px, 2vw, 24px);
}

:root .bt-carousel--cards .bt-carousel__track {
	padding-block: 4px 8px;
	scroll-padding-inline: 4px;
}

:root .bt-carousel--cards .bt-carousel__slide {
	flex-basis: calc((100% - 2 * var(--bt-car-gap)) / 3);
	min-width: 0;
	margin: 0;
}

@media (max-width: 1023px) {
	:root .bt-carousel--cards .bt-carousel__slide {
		flex-basis: calc((100% - var(--bt-car-gap)) / 2);
	}
}

@media (max-width: 600px) {
	:root .bt-carousel--cards .bt-carousel__slide {
		flex-basis: 84%;
	}
}

/* ---------- the bar: pill indicator (or a counter) and the two buttons ---------- */
.bt-carousel__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 20px;
}

html:not(.bt-js) .bt-carousel__bar:not(.bt-carousel__bar--one) {
	display: none;
}

.bt-carousel.is-static .bt-carousel__bar {
	visibility: hidden;
}

/* a full-bleed strip keeps its bar on the wide grid */
.bt-carousel--strip .bt-carousel__bar {
	padding-inline: max(var(--wp--preset--spacing--gutter), calc((100% - var(--wp--style--global--wide-size, 82rem)) / 2));
}

.bt-carousel__nav {
	display: flex;
	flex: none;
	gap: 8px;
	margin-left: auto;
}

.bt-carousel__count {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
}

.bt-carousel__now {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* "Report or remove this photo" (ADR-054), first in an album's bar */
.bt-carousel__report {
	flex: none;
	order: 3;
	width: 100%;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	text-align: right;
	text-underline-offset: 3px;
}

.bt-carousel__bar:has(.bt-carousel__report) {
	flex-wrap: wrap;
}

.bt-carousel__report:hover {
	color: var(--wp--preset--color--contrast);
}

/* ---------- the brand pill indicator: the current slide is a short pill, the others small dots ---------- */
.bt-dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
}

.bt-dot {
	--bt-dot: #857e72;
	--bt-dot-on: var(--wp--preset--color--primary);
	display: grid;
	place-items: center;
	width: 24px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.bt-dot[aria-current="true"] {
	width: 40px;
}

.bt-dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--bt-dot);
	transition: width 0.32s var(--wp--custom--motion--ease, ease), background-color 0.32s;
}

.bt-dot[aria-current="true"]::before {
	width: 28px;
	background: var(--bt-dot-on);
}

.bt-dot:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: -4px;
	border-radius: 999px;
}

:where(.has-surface-dark-background-color, .is-style-card-ink) .bt-dot {
	--bt-dot: rgb(255 255 255 / 0.55);
	--bt-dot-on: var(--wp--preset--color--white);
}

:where(.has-surface-dark-background-color, .is-style-card-ink) .bt-dot:focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* ---------- icon-only circle buttons (48px): carousels, the lightbox ---------- */
.bt-icon-btn {
	--bt-ring: var(--wp--preset--color--contrast);
	--bt-hfill: var(--wp--preset--color--contrast);
	--bt-hfg: var(--wp--preset--color--white);
	position: relative;
	isolation: isolate;
	overflow: visible;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bt-ring);
	box-shadow: inset 0 0 0 1.5px var(--bt-ring);
	cursor: pointer;
	transition: color var(--wp--custom--motion--fill) var(--wp--custom--motion--ease), transform var(--wp--custom--motion--press) var(--wp--custom--motion--ease);
}

.bt-icon-btn::before {
	content: "";
	position: absolute;
	inset: -1px; /* 1px past the ring so no edge line shows on hover: see assets/css/blocks/button.css */
	z-index: -1;
	border-radius: 50%;
	background: var(--bt-hfill);
	clip-path: circle(0 at 50% 50%);
	transition: clip-path var(--wp--custom--motion--fill) var(--wp--custom--motion--ease);
}

.bt-icon-btn:hover,
.bt-icon-btn:focus-visible {
	color: var(--bt-hfg);
}

.bt-icon-btn:hover::before,
.bt-icon-btn:focus-visible::before {
	clip-path: circle(75% at 50% 50%);
}

.bt-icon-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 3px;
}

.bt-icon-btn:active {
	transform: scale(0.96);
}

.bt-icon-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	overflow: hidden;
}

.bt-icon-btn[aria-disabled="true"] {
	--bt-ring: #b9b1a5;
	cursor: default;
}

.bt-icon-btn[aria-disabled="true"]::before {
	display: none;
}

.bt-icon-btn[aria-disabled="true"]:hover {
	color: var(--bt-ring);
}

:where(.has-surface-dark-background-color, .is-style-card-ink) .bt-icon-btn {
	--bt-ring: var(--wp--preset--color--white);
	--bt-hfill: var(--wp--preset--color--white);
	--bt-hfg: var(--wp--preset--color--contrast);
}

:where(.has-surface-dark-background-color, .is-style-card-ink) .bt-icon-btn:focus-visible {
	outline-color: var(--wp--preset--color--white);
}

@media (prefers-reduced-motion: no-preference) {
	:root .bt-carousel .bt-carousel__track {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-dot::before,
	.bt-icon-btn,
	.bt-icon-btn::before {
		transition: none;
	}
}
