/* =======================================================================
 * PHASE A — foundations: page header, forms, navigation components,
 * disclosure, tables, embed facade, cookie consent, checkout header.
 * Tokens only (no raw colours). Light + Inverse via the semantic tokens.
 * Specs: batch-a-spec.md section 10 / 11 (NA1-NA13), voice-copy-pass.md.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * Page header pattern (eyebrow <p> + H1 + lead)
 * ------------------------------------------------------------------- */
.sf-page {
	padding-block-start: 0;
}

.sf-page__header {
	margin-bottom: var(--sf-space-xl);
}

/* No breadcrumb -> the block starts at space-4xl (128 / 80). */
.sf-page-intro--plain {
	padding-block-start: var(--sf-space-4xl);
}

.sf-page-intro.has-breadcrumb {
	padding-block-start: var(--sf-space-xl);
}

.sf-page-intro--display .sf-page-intro__heading {
	max-width: 12em;
	font-size: var(--sf-text-page-title);
	line-height: var(--sf-leading-tight);
	letter-spacing: var(--sf-tracking-display);
}

.sf-page__header .sf-page-intro--display .sf-page-intro__heading {
	max-width: 12em;
}

/* Identity variant: one H1, two levels. The term is the big line; the
   voice sits under it, smaller, in the same serif. */
.sf-page-intro__heading--identity {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
}

.sf-page-intro__heading--identity .h1-term {
	display: block;
}

.sf-page-intro__heading--identity .h1-voice {
	display: block;
	max-width: 22em;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-3xl);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-h2);
	letter-spacing: var(--sf-tracking-h2);
}

.sf-page-intro--h1 .sf-page-intro__heading--identity .h1-voice {
	font-size: var(--sf-text-2xl);
}

/* 320–359px: the longest word of the identity names («Τριαντάφυλλος») is 7 em wide, so at the 44px floor of the title
   token it is wider than the 280px column and was cut. Below 360 the size follows the viewport (12vw = 38px at 320:
   the word fits with room to spare); from 360 up the token applies unchanged. Words are never split or hyphenated. */
@media (max-width: 359px) {
	.sf-page__header .sf-page-intro .sf-page-intro__heading--identity {
		font-size: min(var(--sf-text-page-title), 12vw);
		hyphens: manual;
		overflow-wrap: normal;
		word-break: normal;
	}
}

/* Page-header entrance (CSS only: runs once, never hides without CSS support
   for animations; reduced motion = no animation at all, see motion.css). */

/* ---------------------------------------------------------------------
 * Checkout header
 * ------------------------------------------------------------------- */
.site-header--checkout .site-header__bar {
	justify-content: space-between;
}

.site-header--checkout .site-header__logo--lockup {
	display: block;
}

.site-header__end--checkout {
	display: flex;
	align-items: center;
	gap: var(--sf-space-lg);
}

.site-header__back {
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
}

.site-header__help {
	display: none;
	margin: 0;
	gap: var(--sf-space-3xs);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
}

@media (min-width: 48rem) {
	.site-header__help {
		display: inline-flex;
		flex-wrap: wrap;
	}
}

/* ---------------------------------------------------------------------
 * Focus ring on controls (shared)
 * ------------------------------------------------------------------- */
.sf-search-field__input:focus-visible,
.sf-disclosure__summary:focus-visible,
.sf-toc__link:focus-visible,
.sf-cookie-dialog__close:focus-visible,
.sf-search-field__clear:focus-visible,
.sf-share-row__action:focus-visible,
.sf-search-result__title a:focus-visible,
.sf-data-table:focus-visible,
.sf-filter-bar__tag:focus-visible {
	outline: 2px solid transparent; /* forced-colors */
	box-shadow:
		0 0 0 var(--sf-focus-ring-width) var(--sf-color-bg),
		0 0 0 calc(var(--sf-focus-ring-width) * 2) var(--sf-color-focus);
}

/* ---------------------------------------------------------------------
 * Form Error Summary
 * ------------------------------------------------------------------- */
.sf-error-summary {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	padding: var(--sf-space-md);
	border: 2px solid var(--sf-color-danger);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-color-surface);
	color: var(--sf-color-text);
	scroll-margin-top: calc(var(--sf-header-height-desktop) + 1.5rem);
}

.sf-error-summary:focus {
	outline: 0;
}

.sf-error-summary:focus-visible {
	box-shadow: 0 0 0 var(--sf-focus-ring-width) var(--sf-color-bg), 0 0 0 calc(var(--sf-focus-ring-width) * 2) var(--sf-color-focus);
}

.sf-error-summary__title {
	display: flex;
	gap: var(--sf-space-2xs);
	align-items: flex-start;
	margin: 0;
	color: var(--sf-color-heading);
	font-size: var(--sf-text-base);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-small);
}

.sf-error-summary__icon {
	flex: 0 0 auto;
	margin-top: 0.15em;
	color: var(--sf-color-danger);
}

.sf-error-summary__list {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	margin: 0;
	padding: 0 0 0 calc(20px + var(--sf-space-2xs));
	list-style: none;
}

.sf-error-summary__list a {
	display: inline-block;
	min-height: 1.5rem;
}

.sf-field--error .sf-field__error::before {
	content: "";
}

/* Invalid controls: 2px danger border + the message (never colour alone). */
[aria-invalid="true"] {
	border-color: var(--sf-color-danger);
	border-width: 2px;
}

/* ---------------------------------------------------------------------
 * Search Field (NA1)
 * ------------------------------------------------------------------- */
.sf-search-field {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
	width: 100%;
	max-width: 45.625rem; /* 730 */
}

.sf-search-field__label {
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
}

.sf-search-field__row {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	align-items: stretch;
}

.sf-search-field__control {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.sf-search-field__icon {
	position: absolute;
	top: 50%;
	left: var(--sf-space-xs);
	transform: translateY(-50%);
	color: var(--sf-color-icon);
	pointer-events: none;
}

.sf-search-field__input {
	width: 100%;
	height: 3.25rem; /* 52 */
	padding: 0 var(--sf-space-3xl) 0 2.5rem;
	border: var(--sf-border-width) solid var(--sf-color-border-strong);
	border-radius: var(--sf-radius-sm);
	background: var(--sf-color-surface);
	color: var(--sf-color-text);
	font: inherit;
	font-size: var(--sf-text-base);
	transition: border-color var(--sf-duration-fast) var(--sf-ease-standard);
	appearance: none;
}

.sf-search-field__input:hover {
	border-color: var(--sf-color-border-emphasis);
}

.sf-search-field__input::-webkit-search-cancel-button {
	display: none;
}

.sf-search-field__clear {
	position: absolute;
	top: 50%;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	transform: translateY(-50%);
	border: 0;
	border-radius: var(--sf-radius-sm);
	background: transparent;
	color: var(--sf-color-icon);
	cursor: pointer;
}

.sf-search-field__clear[hidden] {
	display: none;
}

.sf-search-field__submit {
	flex: 0 0 auto;
}

.sf-search-field__submit-icon {
	display: none;
}

.sf-search-field--compact .sf-search-field__input {
	height: 2.75rem;
}

.sf-search-field--compact {
	max-width: 31.875rem; /* 510 */
}

.sf-search-field--panel {
	max-width: none;
}

.sf-search-field--panel .sf-search-field__input {
	height: 2.875rem; /* 46 */
}

.sf-search-field--error .sf-search-field__input {
	border: 2px solid var(--sf-color-danger);
}

.sf-search-field__error {
	display: flex;
	gap: var(--sf-space-3xs);
	align-items: center;
}

@media (min-width: 48rem) {
	.sf-search-field__row {
		flex-direction: row;
		align-items: center;
	}
}

/* Compact: icon-only submit on narrow screens (44x44). */
@media (max-width: 47.99rem) {
	.sf-search-field--compact .sf-search-field__row {
		flex-direction: row;
	}

	.sf-search-field--compact .sf-search-field__submit {
		width: 2.75rem;
		padding-inline: 0;
	}

	.sf-search-field--compact .sf-search-field__submit .sf-button__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sf-search-field--compact .sf-search-field__submit-icon {
		display: block;
	}
}

/* ---------------------------------------------------------------------
 * Filter Bar (NA2)
 * ------------------------------------------------------------------- */
.sf-filter-bar {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
}

.sf-filter-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-filter-bar__tag {
	gap: var(--sf-space-3xs);
	min-height: 2.75rem; /* 44 touch target on all widths */
	padding-block: 0;
}

@media (min-width: 64rem) {
	.sf-filter-bar__tag {
		min-height: 1.875rem; /* the Figma tag is 30 on desktop */
	}
}

.sf-filter-bar__count {
	font-size: var(--sf-text-xs);
	opacity: 0.85;
}

.sf-filter-bar__check {
	flex: 0 0 auto;
}

/* Optional single-row strip on narrow screens (mobile="scroll"). */
@media (max-width: 47.99rem) {
	.sf-filter-bar--scroll {
		position: relative;
	}

	.sf-filter-bar--scroll .sf-filter-bar__list {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--sf-page-gutter));
		padding-inline: var(--sf-page-gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.sf-filter-bar--scroll .sf-filter-bar__list::-webkit-scrollbar {
		display: none;
	}

	.sf-filter-bar--scroll .sf-filter-bar__item {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
}

/* ---------------------------------------------------------------------
 * Pagination additions (NA7)
 * ------------------------------------------------------------------- */
.sf-pagination__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	color: var(--sf-color-text-muted);
}

.sf-pagination__status--compact {
	display: none;
}

.sf-pagination__prev,
.sf-pagination__next {
	min-height: 2.75rem;
}

@media (max-width: 47.99rem) {
	.sf-pagination--numbered .sf-pagination__pages {
		display: none;
	}

	.sf-pagination--numbered .sf-pagination__status--compact {
		display: inline;
	}

	.sf-pagination {
		justify-content: space-between;
	}
}

/* ---------------------------------------------------------------------
 * Empty State (NA8) + Search Result (NA9)
 * ------------------------------------------------------------------- */
.sf-empty-state {
	max-width: 32.5rem;
	padding-block: var(--sf-space-xl);
}

@media (min-width: 48rem) {
	.sf-empty-state {
		padding-block: var(--sf-space-3xl);
	}
}

.sf-empty-state__heading {
	font-size: var(--sf-text-xl);
}

.sf-empty-state__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-xs) var(--sf-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-search-result {
	position: relative;
	gap: var(--sf-space-3xs);
	padding-block: var(--sf-space-md);
	border-top: 0;
	border-bottom: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-search-result__type {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-search-result__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sf-search-result__title a:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--sf-color-focus);
	outline-offset: 2px;
}

.sf-search-result__title a:focus-visible::after {
	outline: 0;
}

.sf-search-result__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sf-search-result mark {
	padding: 0 0.125em;
	background: var(--sf-sky-300);
	color: var(--sf-navy-900);
}

/* ---------------------------------------------------------------------
 * Disclosure (NA6) + TOC (NA3)
 * ------------------------------------------------------------------- */
.sf-disclosure {
	border-top: var(--sf-border-width) solid var(--sf-color-border);
	border-bottom: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-disclosure + .sf-disclosure {
	border-top: 0;
}

.sf-disclosure__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-sm);
	min-height: 3rem;
	padding: var(--sf-space-2xs) var(--sf-space-3xs);
	color: var(--sf-color-heading);
	font-size: var(--sf-text-base);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-small);
	list-style: none;
	cursor: pointer;
	transition: background-color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-disclosure__summary::-webkit-details-marker {
	display: none;
}

.sf-disclosure__summary:hover {
	background: var(--sf-color-surface-muted);
}

.sf-disclosure__chevron {
	flex: 0 0 auto;
	transition: transform var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-disclosure[open] > .sf-disclosure__summary .sf-disclosure__chevron {
	transform: rotate(180deg);
}

.sf-disclosure__content {
	padding: var(--sf-space-sm) var(--sf-space-3xs) var(--sf-space-md);
}

/* Label swap with CSS only. */
.sf-disclosure--swap .sf-disclosure__label--open {
	display: none;
}

.sf-disclosure--swap[open] .sf-disclosure__label--open {
	display: inline;
}

.sf-disclosure--swap[open] .sf-disclosure__label--closed {
	display: none;
}

.sf-toc__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: var(--sf-space-xs) 0 var(--sf-space-xs) var(--sf-space-md);
	list-style: decimal;
}

.sf-toc__item {
	padding-block: var(--sf-space-2xs);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-toc__link {
	color: var(--sf-color-text);
	text-decoration: none;
}

.sf-toc__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.sf-toc__link[aria-current="location"] {
	font-weight: var(--sf-font-weight-medium);
	color: var(--sf-color-heading);
}

/* Rail mode (toc.js, >= 1024): sticky, always open, the title is an eyebrow. */
.sf-toc.is-rail {
	position: sticky;
	top: calc(var(--sf-header-height-desktop) + var(--sf-space-md));
	max-height: calc(100vh - var(--sf-header-height-desktop) - 3rem);
	overflow-y: auto;
}

.sf-toc.is-rail .sf-toc__details {
	border: 0;
}

.sf-toc.is-rail .sf-toc__summary {
	min-height: 0;
	padding: 0 0 var(--sf-space-2xs);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	letter-spacing: var(--sf-tracking-eyebrow);
	text-transform: uppercase;
	pointer-events: none;
	cursor: default;
}

.sf-toc.is-rail .sf-disclosure__chevron {
	display: none;
}

.sf-toc.is-rail .sf-toc__list {
	padding-left: 0;
	list-style: none;
	border-left: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-toc.is-rail .sf-toc__item {
	margin-left: -1px;
	padding: var(--sf-space-2xs) 0 var(--sf-space-2xs) var(--sf-space-sm);
	border-left: 2px solid transparent;
}

.sf-toc.is-rail .sf-toc__item:has([aria-current="location"]) {
	border-left-color: var(--sf-color-border-emphasis);
}

/* ---------------------------------------------------------------------
 * Share Row (NA4)
 * ------------------------------------------------------------------- */
.sf-share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-2xs) var(--sf-space-lg);
	padding-block: var(--sf-space-xl);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-share-row__label {
	margin: 0;
}

.sf-share-row__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-3xs) var(--sf-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-share-row__list > li[hidden] {
	display: none;
}

.sf-share-row__action {
	min-height: 2.75rem;
	align-items: center;
	background: none;
	border: 0;
	font-size: var(--sf-text-sm);
	cursor: pointer;
}

.sf-share-row__fallback {
	flex: 1 1 100%;
	padding: var(--sf-space-2xs);
	border: var(--sf-border-width) solid var(--sf-color-border-strong);
	border-radius: var(--sf-radius-sm);
	font: inherit;
}

.sf-share-row__fallback[hidden] {
	display: none;
}

/* ---------------------------------------------------------------------
 * Data Table (NA13)
 * ------------------------------------------------------------------- */
.sf-data-table {
	position: relative;
	max-width: 100%;
	margin-block: var(--sf-space-xl);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	/* scroll hint shadows at the edges (visible only while scrollable) */
	background:
		linear-gradient(to right, var(--sf-color-bg) 30%, transparent) left center / 2rem 100% no-repeat local,
		linear-gradient(to left, var(--sf-color-bg) 30%, transparent) right center / 2rem 100% no-repeat local,
		linear-gradient(to right, rgb(12 39 59 / 14%), transparent) left center / 0.75rem 100% no-repeat scroll,
		linear-gradient(to left, rgb(12 39 59 / 14%), transparent) right center / 0.75rem 100% no-repeat scroll;
}

.sf-data-table__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
	text-align: left;
}

.sf-data-table__caption {
	padding-bottom: var(--sf-space-xs);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
	text-align: left;
	caption-side: top;
}

.sf-data-table th,
.sf-data-table td {
	padding: var(--sf-space-xs) var(--sf-space-sm);
	vertical-align: top;
}

.sf-data-table thead th {
	border-bottom: 2px solid var(--sf-color-border-emphasis);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	text-transform: uppercase;
	white-space: nowrap;
}

.sf-data-table tbody th,
.sf-data-table tbody td {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-data-table tbody th {
	color: var(--sf-color-heading);
	font-weight: var(--sf-font-weight-medium);
}

.sf-data-table .is-numeric {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

@media (max-width: 47.99rem) {
	.sf-data-table__table {
		min-width: 34rem;
	}

	.sf-data-table--sticky tbody th,
	.sf-data-table--sticky thead th:first-child {
		position: sticky;
		left: 0;
		background: var(--sf-color-bg);
	}
}

/* ---------------------------------------------------------------------
 * Embed Facade (NA5)
 * ------------------------------------------------------------------- */
.sf-embed {
	width: 100%;
	max-width: 52.5rem; /* 840 */
}

.sf-embed__stage {
	position: relative;
}

.sf-embed__facade {
	display: flex;
	gap: var(--sf-space-md);
	align-items: center;
	min-height: 9.5rem; /* 152 — the player replaces it at the same height */
	padding: var(--sf-space-md);
	border: var(--sf-border-width) solid var(--sf-color-border);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-sky-100);
	color: var(--sf-color-text);
}

.sf-embed--inverse .sf-embed__facade {
	border-color: var(--sf-color-border);
	background: var(--sf-navy-900);
	color: var(--sf-white);
}

.sf-embed__cover {
	flex: 0 0 6rem;
	width: 6rem;
	height: 6rem;
	background: var(--sf-sky-300);
	overflow: hidden;
}

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

.sf-embed__body {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	align-items: flex-start;
	min-width: 0;
}

.sf-embed__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-embed--inverse .sf-embed__title,
.sf-embed--inverse .sf-embed__meta,
.sf-embed--inverse .sf-embed__note {
	color: var(--sf-white);
}

.sf-embed__meta,
.sf-embed__note {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-embed__note {
	max-width: 36rem;
}

.sf-embed__fallback {
	margin: 0;
}

.sf-embed__load {
	margin-block: var(--sf-space-3xs);
}

/* The load button needs JS; without it only the platform link remains. */
html:not(.js) .sf-embed__load,
html:not(.js) .sf-embed__note {
	display: none;
}

.sf-embed__load[hidden] {
	display: none;
}

.sf-embed.is-loading .sf-embed__facade {
	opacity: 0.7;
}

.sf-embed__frame {
	display: block;
	width: 100%;
	border: 0;
}

.sf-embed--audio .sf-embed__frame {
	height: 9.5rem;
}

.sf-embed--video .sf-embed__frame {
	aspect-ratio: 16 / 9;
	height: auto;
}

.sf-embed--video .sf-embed__facade {
	aspect-ratio: 16 / 9;
	align-items: flex-end;
	min-height: 0;
}

.sf-embed--video .sf-embed__poster {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.sf-embed--video .sf-embed__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-embed--video .sf-embed__body {
	position: relative;
	z-index: 1;
}

@media (max-width: 47.99rem) {
	.sf-embed__facade {
		align-items: flex-start;
	}

	.sf-embed__cover {
		flex-basis: 4.5rem;
		width: 4.5rem;
		height: 4.5rem;
	}
}

/* ---------------------------------------------------------------------
 * Cookie banner (NA11)
 * ------------------------------------------------------------------- */
.sf-cookie-banner {
	position: fixed;
	/* Left (and, on small screens, right) edge = the page's content edge, the same
	   line as the grid at every width (see --sf-shell-edge in layout.css). */
	right: var(--sf-shell-edge);
	bottom: var(--sf-space-xs);
	left: var(--sf-shell-edge);
	z-index: 15; /* above content (sticky 10), below the header (20) so menus and the drawer, which live inside it, always cover the banner; the dialog is in the top layer */
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	max-width: 32.5rem; /* 520 */
	padding: var(--sf-space-md);
	border: var(--sf-border-width) solid var(--sf-color-border);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-white);
	box-shadow: var(--sf-shadow-raised);
	color: var(--sf-ink-950);
}

.sf-cookie-banner[hidden] {
	display: none;
}

.sf-cookie-banner__title {
	margin: 0;
	color: var(--sf-navy-900);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-h4);
}

.sf-cookie-banner__text {
	margin: 0;
	color: var(--sf-ink-950);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-cookie-banner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sf-space-xs);
}

.sf-cookie-banner__actions .sf-button {
	min-width: 0;
	padding-inline: var(--sf-space-xs);
	white-space: normal;
}

.sf-cookie-banner__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-3xs) var(--sf-space-lg);
	margin: 0;
}

.sf-cookie-banner__links .sf-text-link {
	min-height: 2.75rem;
	align-items: center;
	background: none;
	border: 0;
	font-size: var(--sf-text-sm);
	cursor: pointer;
}

.sf-cookie-banner .sf-button--secondary,
.sf-cookie-banner .sf-text-link {
	--sf-color-bg: var(--sf-white);
}

@media (min-width: 48rem) {
	.sf-cookie-banner {
		right: auto;
		bottom: var(--sf-space-md);
		left: var(--sf-shell-edge);
		width: 32.5rem;
	}
}

/* While the banner is open the end of the page keeps room for it, so the last
   links of the footer can be scrolled clear of the banner (WCAG 2.4.11).
   --sf-consent-offset is set from the banner height by cookie-consent.js. */
.site-footer {
	padding-bottom: var(--sf-consent-offset, 0px);
}

@media print {
	.sf-cookie-banner,
	.sf-cookie-dialog {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------
 * Cookie preferences dialog (NA12)
 * ------------------------------------------------------------------- */
.sf-cookie-dialog {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--sf-white);
	color: var(--sf-ink-950);
}

.sf-cookie-dialog::backdrop {
	background: rgb(12 39 59 / 40%); /* navy 40% — the one overlay of the system */
}

.sf-cookie-dialog[open] {
	display: flex;
	flex-direction: column;
}

.sf-cookie-dialog__form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1 1 auto;
}

.sf-cookie-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-sm);
	padding: var(--sf-space-md) var(--sf-space-md) var(--sf-space-xs);
}

.sf-cookie-dialog__title {
	margin: 0;
	color: var(--sf-navy-900);
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

.sf-cookie-dialog__title:focus {
	outline: 0;
}

.sf-cookie-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: var(--sf-radius-sm);
	background: transparent;
	color: var(--sf-navy-900);
	cursor: pointer;
}

.sf-cookie-dialog__body {
	flex: 1 1 auto;
	padding: 0 var(--sf-space-md) var(--sf-space-md);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sf-cookie-dialog__intro {
	margin: 0 0 var(--sf-space-sm);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-cookie-dialog__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-cookie-dialog__item {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	padding-block: var(--sf-space-sm);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-cookie-dialog__check {
	align-items: center;
}

.sf-cookie-dialog__check .sf-checkbox__label {
	font-weight: var(--sf-font-weight-medium);
}

.sf-cookie-dialog__badge {
	margin-left: auto;
	color: var(--sf-slate-blue-600);
	font-size: var(--sf-text-xs);
}

.sf-cookie-dialog__desc {
	margin: 0 0 0 calc(20px + var(--sf-space-xs));
	color: var(--sf-slate-blue-600);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-cookie-dialog__disclosure {
	margin-left: calc(20px + var(--sf-space-xs));
	margin-top: var(--sf-space-3xs);
}

.sf-cookie-dialog__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-3xs) var(--sf-space-lg);
	margin: var(--sf-space-sm) 0 0;
}

.sf-cookie-dialog__footer {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	padding: var(--sf-space-sm) var(--sf-space-md) var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
	background: var(--sf-white);
}

.sf-cookie-dialog .sf-button--secondary,
.sf-cookie-dialog .sf-text-link {
	--sf-color-bg: var(--sf-white);
}

@media (min-width: 40rem) {
	.sf-cookie-dialog {
		width: 40rem; /* 640 */
		max-width: calc(100vw - 2rem);
		height: auto;
		max-height: min(46rem, calc(100dvh - 2rem));
		margin: auto;
		border-radius: var(--sf-radius-xs);
		box-shadow: var(--sf-shadow-raised);
	}

	.sf-cookie-dialog__header {
		padding: var(--sf-space-md) var(--sf-space-lg) var(--sf-space-xs);
	}

	.sf-cookie-dialog__body {
		padding: 0 var(--sf-space-lg) var(--sf-space-md);
	}

	.sf-cookie-dialog__footer {
		flex-direction: row;
		flex-wrap: wrap;
		padding: var(--sf-space-sm) var(--sf-space-lg) var(--sf-space-md);
	}
}

/* Share row: copy confirmation shows a check (not colour alone). */
.sf-share-row__done-icon {
	display: none;
}

.sf-share-row__action.is-done .sf-share-row__copy-icon {
	display: none;
}

.sf-share-row__action.is-done .sf-share-row__done-icon {
	display: inline-block;
}

/* Cookie confirmation line (role="status"); the text is empty except for 3s. */
.sf-cookie-notice {
	position: fixed;
	left: var(--sf-space-md);
	bottom: var(--sf-space-md);
	z-index: calc(var(--sf-z-modal) + 1);
	max-width: min(32.5rem, calc(100vw - 2rem));
	margin: 0;
	padding: var(--sf-space-xs) var(--sf-space-sm);
	border: var(--sf-border-width) solid var(--sf-color-border);
	border-radius: var(--sf-radius-xs);
	background: var(--sf-white);
	color: var(--sf-ink-950);
	font-size: var(--sf-text-sm);
	box-shadow: var(--sf-shadow-raised);
}

.sf-cookie-notice:empty,
.sf-cookie-notice:not(.is-visible) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	box-shadow: none;
}

.sf-search-result__title .sf-icon {
	display: inline-block;
	margin-left: var(--sf-space-3xs);
	vertical-align: -0.1em;
}

/* A failed send is announced like the error summary: keep it clear of the sticky header when it is scrolled to. */
.sf-pi-form__failure {
	scroll-margin-top: calc(var(--sf-header-height-desktop) + 1.5rem);
}
