/*
 * 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) {
	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 {
	display: none;
}

: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;
}
