/*
 * Factum base styles: loaded on every page.
 *
 * Colours, fonts, sizes and spacing come from theme.json (--wp--preset--* and
 * --wp--custom--*). The aliases below are shorthands only; to rebrand, edit theme.json.
 */

/* ---------- Tokens (aliases of theme.json values) ---------- */
:root {
	--c-ink: var(--wp--preset--color--ink);
	--c-paper: var(--wp--preset--color--paper);
	--c-paper-2: var(--wp--preset--color--paper-2);
	--c-muted: var(--wp--preset--color--muted);
	--c-rule: var(--wp--preset--color--rule);
	--c-accent: var(--wp--preset--color--accent);
	--c-secondary: var(--wp--preset--color--secondary);
	--c-white: var(--wp--preset--color--white); /* "On strong colour": text on accent/ink; flips in dark mode */
	--c-surface: var(--wp--preset--color--surface);
	--c-subtle: var(--wp--preset--color--subtle);
	--c-accent-hover: var(--wp--preset--color--accent-hover);
	--c-brand: var(--wp--preset--color--brand); /* Factum orange: bars, marks, buttons (ink text on it) */
	--c-night: #0f0e0d; /* Always-dark bands (featured screening, banners), both modes */
	--c-hero-text: #f8f5ef; /* Text on photo overlays (always dark), both modes */
	--c-events: var(--wp--preset--color--section-events);
	--c-films: var(--wp--preset--color--section-films);
	--c-stories: var(--wp--preset--color--section-stories);
	--c-archive: var(--wp--preset--color--section-archive);

	--f-serif: var(--wp--preset--font-family--serif);
	--f-sans: var(--wp--preset--font-family--sans);

	--fs-xs: var(--wp--preset--font-size--xs);
	--fs-sm: var(--wp--preset--font-size--sm);
	--fs-base: var(--wp--preset--font-size--base);
	--fs-md: var(--wp--preset--font-size--md);
	--fs-lg: var(--wp--preset--font-size--lg);
	--fs-xl: var(--wp--preset--font-size--xl);
	--fs-xxl: var(--wp--preset--font-size--xxl);
	--fs-display: var(--wp--preset--font-size--display);

	--sp-1: var(--wp--preset--spacing--10);
	--sp-2: var(--wp--preset--spacing--20);
	--sp-3: var(--wp--preset--spacing--30);
	--sp-4: var(--wp--preset--spacing--40);
	--sp-5: var(--wp--preset--spacing--50);
	--sp-6: var(--wp--preset--spacing--60);
	--sp-7: var(--wp--preset--spacing--70);
	--sp-8: var(--wp--preset--spacing--80);

	--radius-sm: var(--wp--custom--radius--md);
	--radius-md: var(--wp--custom--radius--md);
	--radius-pill: var(--wp--custom--radius--pill);
	--shadow-sm: var(--wp--preset--shadow--sm);
	--shadow-md: var(--wp--preset--shadow--md);

	--lh-tight: var(--wp--custom--line-height--tight);
	--lh-heading: var(--wp--custom--line-height--heading);
	--lh-body: var(--wp--custom--line-height--body);

	--measure: var(--wp--custom--measure);
	--container: var(--wp--custom--container);
	--gutter: var(--wp--custom--gutter);
	--header-h: var(--wp--custom--header-height);
	--focus: var(--wp--custom--focus);

	--section: var(--c-accent); /* Overridden per section via .section--* */
}

/* Armenian sets slightly taller than Latin. */
:root:lang(hy) {
	--lh-body: var(--wp--custom--line-height--body-hy);
	--lh-heading: var(--wp--custom--line-height--heading-hy);
	--lh-tight: var(--wp--custom--line-height--heading-hy);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-kerning: normal;
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--f-serif);
	font-weight: 700;
	line-height: var(--lh-heading);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

ul[class],
ol[class] {
	list-style: none;
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--c-accent-hover);
}

hr {
	border: 0;
	border-top: 1px solid var(--c-rule);
	margin: var(--sp-6) 0;
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--sp-4);
	top: -100px;
	z-index: 1000;
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-ink);
	color: var(--c-white);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: var(--sp-3);
	color: var(--c-white);
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.site-main:focus {
	outline: none;
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--sp-5);
}

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

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

/* ---------- UI type ---------- */
.ui,
.button,
.kicker,
.label,
.meta {
	font-family: var(--f-sans);
}

.kicker,
.label {
	display: inline-block;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--section);
}

:lang(hy) .kicker,
:lang(hy) .label {
	letter-spacing: 0.02em; /* Armenian capitals need less tracking. */
}

.meta {
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

/* Section colour-coding. */
.section--events { --section: var(--c-events); }
.section--films { --section: var(--c-films); }
.section--stories { --section: var(--c-stories); }
.section--archive { --section: var(--c-archive); }

/* ---------- Buttons ---------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 2.75rem;
	padding: 0.55em 1.1em;
	border: 1px solid var(--c-brand);
	border-radius: 2px;
	background: var(--c-brand);
	color: #0f0e0d; /* Ink on Factum orange: 6:1 in both modes */
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
	background: #ff7a2e;
	border-color: #ff7a2e;
	color: #0f0e0d;
}

.button--ghost {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-muted);
}

.button--ghost:hover {
	background: var(--c-paper-2);
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.button--small {
	min-height: 2.25rem;
	padding: 0.35em 0.85em;
	font-size: var(--fs-xs);
}

.button[disabled],
.button[aria-disabled="true"] {
	background: var(--c-paper-2);
	border-color: var(--c-rule);
	color: var(--c-muted);
	cursor: not-allowed;
}

.is-placeholder {
	outline: 2px dashed var(--c-accent);
	outline-offset: 2px;
	background: repeating-linear-gradient(-45deg, var(--c-paper), var(--c-paper) 6px, var(--c-paper-2) 6px, var(--c-paper-2) 12px);
	color: var(--c-ink);
	border-color: var(--c-rule);
	cursor: help;
}

/* ---------- Announcement bar ---------- */
.announcement {
	background: var(--c-ink);
	color: var(--c-white);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
}

.announcement__inner {
	display: flex;
	justify-content: center;
	padding-block: var(--sp-2);
}

.announcement__link,
.announcement__text {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	color: inherit;
	text-decoration: none;
}

.announcement__link:hover {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-paper);
	border-bottom: 1px solid var(--c-rule);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	min-height: var(--header-h);
}

.site-header__brand {
	flex: 0 0 auto;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	color: var(--c-ink);
	text-decoration: none;
}

.site-logo--text {
	font-family: var(--f-serif);
	font-size: var(--fs-lg);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
}

.site-logo__img {
	width: auto;
	max-height: 2.25rem;
}

.site-header__toggle,
.offcanvas__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-inline-start: calc(-1 * var(--sp-2));
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
}

.no-js .site-header__toggle {
	display: none;
}

.site-nav {
	display: none;
	flex: 1 1 auto;
}

.site-nav__list {
	display: flex;
	gap: var(--sp-5);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.site-nav__list a {
	display: block;
	padding-block: var(--sp-3);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_parent > a {
	color: var(--c-ink);
	border-bottom-color: var(--c-accent);
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	margin-inline-start: auto;
}

.site-header__support {
	display: none;
}

/* Without JS, show the section nav as a scrollable strip below the header row. */
.no-js .site-header__inner {
	flex-wrap: wrap;
}

.no-js .site-nav {
	display: block;
	order: 10;
	flex-basis: 100%;
	overflow-x: auto;
}

@media (min-width: 40em) {
	.site-header__support {
		display: inline-flex;
		min-height: 2.25rem;
		padding: 0.35em 0.9em;
	}
}

@media (min-width: 64em) {
	.site-header__toggle {
		display: none;
	}

	.site-nav,
	.no-js .site-nav {
		display: block;
		order: 0;
		flex-basis: auto;
		margin-inline-start: var(--sp-5);
	}
}

/* ---------- Language switcher ---------- */
.lang-switch__list {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.lang-switch__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	justify-content: center;
	padding-inline: var(--sp-2);
	text-decoration: none;
	color: var(--c-muted);
}

.lang-switch__link.is-current {
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--c-accent);
	text-underline-offset: 0.3em;
}

a.lang-switch__link:hover {
	color: var(--c-ink);
}

.lang-switch--compact .lang-switch__item + .lang-switch__item::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 1em;
	margin-inline-end: var(--sp-1);
	background: var(--c-rule);
	vertical-align: middle;
}

.lang-switch--full .lang-switch__list {
	gap: var(--sp-3);
}

/* ---------- Off-canvas menu ---------- */
.offcanvas {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(24rem, 88vw);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	box-shadow: var(--shadow-md);
}

.offcanvas::backdrop {
	background: rgba(21, 20, 19, 0.55);
}

.offcanvas[open] {
	animation: factum-slide-in 0.2s ease-out;
}

@keyframes factum-slide-in {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

.has-offcanvas,
.has-offcanvas body {
	overflow: hidden;
}

.offcanvas__panel {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	min-height: 100%;
	padding: var(--sp-3) var(--gutter) var(--sp-6);
}

.offcanvas__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--c-rule);
	padding-bottom: var(--sp-2);
}

.offcanvas__title {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.offcanvas__close {
	margin-inline: 0 calc(-1 * var(--sp-2));
}

.offcanvas__list {
	font-family: var(--f-serif);
	font-size: var(--fs-lg);
	font-weight: 600;
}

.offcanvas__list a {
	display: block;
	padding-block: var(--sp-3);
	border-bottom: 1px solid var(--c-rule);
	text-decoration: none;
}

.offcanvas__list .sub-menu {
	padding-inline-start: var(--sp-4);
	font-size: var(--fs-base);
	font-weight: 400;
	list-style: none;
}

.offcanvas__tools {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-4);
}

.offcanvas__utility-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3) var(--sp-5);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
}

/* ---------- Footer ---------- */
.site-footer {
	margin-top: var(--sp-8);
	border-top: 1px solid var(--c-rule);
	background: var(--c-paper-2);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
}

.site-footer__inner {
	display: grid;
	gap: var(--sp-6);
	padding-block: var(--sp-7) var(--sp-6);
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
}

.site-footer__tagline {
	max-width: 32ch;
	margin: 0;
	color: var(--c-muted);
}

.site-footer__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-2) var(--sp-5);
}

.site-footer__list a,
.site-footer__utility-list a {
	display: inline-block;
	padding-block: var(--sp-1);
	text-decoration: none;
}

.site-footer__list a:hover,
.site-footer__utility-list a:hover {
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-block: var(--sp-4) var(--sp-5);
	border-top: 1px solid var(--c-rule);
	color: var(--c-muted);
}

.site-footer__copy {
	margin: 0;
}

.site-footer__utility-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-5);
}

@media (min-width: 48em) {
	.site-footer__inner {
		grid-template-columns: 2fr 2fr 1fr;
	}
}

/* ---------- Generic content (pages, fallback templates) ---------- */
.page-header {
	padding-block: var(--sp-7) var(--sp-5);
	border-bottom: 1px solid var(--c-rule);
	margin-bottom: var(--sp-6);
}

.page-title {
	font-size: var(--fs-xxl);
	line-height: var(--lh-tight);
	margin: 0;
}

.entry-content > * {
	max-width: var(--measure);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--container);
}

.entry-content > .alignfull {
	max-width: none;
}

.entry-content figcaption,
.wp-element-caption {
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	color: var(--c-muted);
	margin-top: var(--sp-2);
}

/* ---------- Block styles ---------- */
/* Pull quote */
.wp-block-pullquote.is-style-factum-pull,
.wp-block-quote.is-style-factum-pull {
	margin-block: var(--sp-6);
	padding: var(--sp-4) 0;
	border: 0;
	border-top: 1px solid var(--c-rule);
	border-bottom: 1px solid var(--c-rule);
	text-align: start;
}

.wp-block-pullquote.is-style-factum-pull blockquote {
	margin-inline: 0;
}

.wp-block-pullquote.is-style-factum-pull p,
.wp-block-quote.is-style-factum-pull p {
	font-size: var(--fs-lg);
	font-style: italic;
	font-weight: 500;
	line-height: var(--lh-heading);
	color: var(--c-ink);
}

.wp-block-pullquote.is-style-factum-pull p::before,
.wp-block-quote.is-style-factum-pull p:first-child::before {
	content: "\201C";
	display: block;
	color: var(--c-accent);
	font-size: 2.5em;
	line-height: 0.6;
	margin-bottom: 0.15em;
}

.wp-block-pullquote.is-style-factum-pull cite,
.wp-block-quote.is-style-factum-pull cite {
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-style: normal;
	color: var(--c-muted);
}

/* Image with credit: put the credit in italics inside the caption; it renders on its own line. */
.wp-block-image.is-style-with-credit figcaption {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	text-align: start;
	border-bottom: 1px solid var(--c-rule);
	padding-bottom: var(--sp-2);
}

.wp-block-image.is-style-with-credit figcaption em,
.wp-block-image.is-style-with-credit figcaption i {
	font-style: normal;
	font-size: 0.92em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-muted);
}

/* Callout */
.wp-block-group.is-style-factum-callout {
	padding: var(--sp-5);
	border-inline-start: 2px solid var(--section, var(--c-accent));
	background: var(--c-paper-2);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
}

.wp-block-group.is-style-factum-callout > :last-child {
	margin-bottom: 0;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Section heading ---------- */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
	padding-top: var(--sp-3);
	border-top: 1px solid var(--c-ink);
}

.section-head__title {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-ink);
}

:lang(hy) .section-head__title {
	letter-spacing: 0.03em;
}

.section-head__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.section-head__more:hover {
	text-decoration: underline;
}

/* ---------- Badges ---------- */
.badge {
	display: inline-block;
	padding: 0.15em 0.55em;
	border: 1px solid var(--c-rule);
	border-radius: var(--radius-pill);
	background: var(--c-paper-2);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.4;
}

.badge--cancelled { border-color: var(--c-ink); }
.badge--past { color: var(--c-muted); }
.badge--ongoing { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- Cards ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	min-width: 0;
}

.card__media {
	display: block;
	overflow: hidden;
	background: var(--c-paper-2);
	aspect-ratio: 16 / 9;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
}

.card__title {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: var(--lh-heading);
}

.card__title a {
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	color: inherit;
}

.card__deck {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	margin: 0;
	font-size: var(--fs-xs);
}

.card__byline {
	font-weight: 600;
	color: var(--c-ink);
}

/* Story variants */
.card-story--rail,
.card-story--list {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--sp-4);
}

.card-story--rail .card__media {
	order: 2;
	flex: 0 0 6.5rem;
}

.card-story--rail .card__body,
.card-story--list .card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.card-story--rail .card__title {
	font-size: var(--fs-base);
}

.card-story--list .card__media {
	flex: 0 0 7.5rem;
}

@media (min-width: 40em) {
	.card-story--list .card__media {
		flex-basis: 12.5rem;
	}

	.card-story--list .card__title {
		font-size: var(--fs-lg);
	}
}

/* Format accents */
.format--long-read { --section: var(--c-stories); }
.format--explainer { --section: var(--c-secondary); }
.format--interview { --section: var(--c-films); }
.format--archive { --section: var(--c-archive); }
.format--news { --section: var(--c-accent); }

/* Event card */
.card-event__body {
	display: flex;
	gap: var(--sp-4);
	align-items: flex-start;
}

.card-event__main {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	min-width: 0;
}

.card-event__meta {
	display: grid;
	gap: var(--sp-1);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
}

.card-event__meta li {
	display: flex;
	gap: 0.4em;
	align-items: flex-start;
}

.card-event__meta .icon {
	flex: 0 0 auto;
	margin-top: 0.15em;
}

.card-event__cta {
	margin-top: var(--sp-2);
}

.card-event.is-cancelled .card__title,
.card-event.is-past .card__title {
	color: var(--c-muted);
}

.card-event.is-cancelled .card__title a {
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* Date block */
.date-block {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	padding: var(--sp-2) var(--sp-2) var(--sp-2);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	font-family: var(--f-sans);
	line-height: 1.1;
	text-align: center;
}

.date-block__month,
.date-block__weekday {
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--section, var(--c-ink));
}

.date-block__weekday {
	color: var(--c-muted);
	font-weight: 600;
}

.date-block__day {
	font-family: var(--f-serif);
	font-size: var(--fs-xl);
	font-weight: 600;
	color: var(--c-ink);
}

/* Film card */
.card-film .card__media {
	aspect-ratio: 2 / 3;
}

.card-film .card__title {
	font-size: var(--fs-base);
}

/* Partners */
.partner-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-5) var(--sp-6);
}

.partner__link {
	display: block;
	text-decoration: none;
}

.partner__link img {
	width: auto;
	max-width: 9rem;
	max-height: 4rem;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

a.partner__link:hover img,
a.partner__link:focus-visible img {
	filter: none;
	opacity: 1;
}

.partner__name {
	font-family: var(--f-sans);
	font-weight: 700;
}

/* Grids */
.card-grid {
	display: grid;
	gap: var(--sp-6) var(--sp-5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 40em) {
	.card-grid--3,
	.card-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Forms ---------- */
.field {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.field__label {
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.field__input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55em 0.75em;
	border: 1px solid var(--c-muted);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-base);
}

.field__input[aria-invalid="true"] {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 1px var(--c-accent);
}

.field__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.field__row .field__input {
	flex: 1 1 14rem;
	width: auto;
}

.field__error {
	margin: 0;
	color: var(--c-accent);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.form-msg {
	margin: var(--sp-3) 0 0;
	padding: var(--sp-3) var(--sp-4);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	border-inline-start: 2px solid var(--c-accent);
	background: var(--c-surface);
}

.form-msg--error {
	border-color: var(--c-accent);
	color: var(--c-ink);
}

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

/* ---------- Support prompt ---------- */
.support-prompt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-5);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius-sm);
	background: var(--c-paper-2);
}

.support-prompt__title {
	margin: 0;
	font-size: var(--fs-lg);
}

.support-prompt__text {
	margin: 0;
	font-size: var(--fs-sm);
}

/* ---------- Share (articles, events, films) ---------- */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-5);
	padding-block: var(--sp-5);
	border-top: 1px solid var(--c-rule);
	border-bottom: 1px solid var(--c-rule);
}

.share__title {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.share__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 2.75rem;
	padding: 0.4em 0.9em;
	border: 1px solid var(--c-rule);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.share__link:hover,
.share__copy.is-copied {
	border-color: var(--c-ink);
	background: var(--c-paper-2);
	color: var(--c-ink);
}


/* ---------- Video facade (trailers, video articles) ---------- */
.video-facade {
	position: relative;
	margin-top: var(--sp-6);
	aspect-ratio: 16 / 9;
	background: var(--c-ink);
	overflow: hidden;
}

.video-facade__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
}

.video-facade__play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--sp-3);
	color: var(--c-hero-text);
	font-family: var(--f-sans);
	font-weight: 600;
	text-decoration: none;
}

.video-facade__icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-white);
	transition: transform 0.15s ease;
}

.video-facade__play:hover .video-facade__icon,
.video-facade__play:focus-visible .video-facade__icon {
	transform: scale(1.06);
}

.video-facade__play:hover {
	color: var(--c-hero-text);
}

.video-facade__note {
	position: absolute;
	right: var(--sp-3);
	bottom: var(--sp-2);
	margin: 0;
	color: #d8d1c4;
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
}

.video-facade iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* Play badge on video cards */
.card__media {
	position: relative;
}

.card__play {
	position: absolute;
	left: var(--sp-3);
	bottom: var(--sp-3);
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-white);
	box-shadow: var(--shadow-sm);
}

.card-story--feature .card__play {
	width: 3.5rem;
	height: 3.5rem;
}

/* Feature story card (archives, homepage videos) */
.card-story--feature {
	display: grid;
	gap: var(--sp-5);
}

.card-story--feature .card__title {
	font-size: var(--fs-xl);
	line-height: var(--lh-tight);
}

.card-story--feature .card__deck {
	font-size: var(--fs-md);
}

@media (min-width: 64em) {
	.card-story--feature {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
	}
}


/* ---------- Dark mode (follows the reader's system setting) ----------
 * Redefines the theme.json palette variables, so every component follows.
 * Contrast on --paper (#0f0e0d): ink 15.8:1, muted 8.9:1, subtle 6.2:1, accent 8.3:1.
 * "white" means "text on a strong colour", so it turns dark here.
 */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--ink: #efe8dc;
		--wp--preset--color--paper: #0f0e0d;
		--wp--preset--color--paper-2: #1a1816;
		--wp--preset--color--surface: #1f1c19;
		--wp--preset--color--muted: #b3aa9e;
		--wp--preset--color--subtle: #a1978a;
		--wp--preset--color--rule: #33302c;
		--wp--preset--color--accent: #ff8a4c;
		--wp--preset--color--accent-hover: #ffab7d;
		--wp--preset--color--secondary: #ff8a4c;
		--wp--preset--color--section-events: #ff8a4c;
		--wp--preset--color--section-films: #ff8a4c;
		--wp--preset--color--section-stories: #ff8a4c;
		--wp--preset--color--section-archive: #ff8a4c;
		--wp--preset--color--white: #0f0e0d;
		--wp--custom--focus: #ff8a4c;
		--c-night: #1a1816;
		color-scheme: dark;
	}

	:root:not([data-theme="light"]) img {
		filter: brightness(0.92);
	}

	:root:not([data-theme="light"]) .partner__link img {
		filter: grayscale(1) invert(0.85) brightness(1.1);
	}

	:root:not([data-theme="light"]) a.partner__link:hover img {
		filter: invert(0.85) brightness(1.1);
	}
}

/* ---------- Text-first lists ---------- */
.card.no-media {
	gap: var(--sp-2);
}

.card-story--rail.no-media,
.card-story--list.no-media,
.card-story--river.no-media,
.card-story--feature.no-media {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.card-story--list.no-media .card__title {
	font-size: var(--fs-lg);
}

.card-story--feature.no-media .card__title {
	font-size: var(--fs-xl);
	line-height: var(--lh-tight);
}

.card-story--feature.no-media .card__deck {
	font-size: var(--fs-md);
	max-width: 48ch;
}

.card__deck {
	max-width: 60ch;
}

.card__video-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-white);
}

/* Sample (fictional) content markers */
.sample-tag {
	display: inline-block;
	padding: 0 0.5em;
	border: 1px dashed var(--c-muted);
	border-radius: var(--radius-pill);
	font-family: var(--f-sans);
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1.6;
	color: var(--c-muted);
}

.sample-notice {
	margin-block: var(--sp-4);
	padding: var(--sp-3) var(--sp-4);
	border: 1px dashed var(--c-muted);
	border-radius: var(--radius-sm);
	background: var(--c-paper-2);
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	color: var(--c-ink);
	max-width: calc(52rem + 2 * var(--gutter));
}

/* ---------- Brand (from the Factum screening page) ----------
 * Near-black and tuff paper, Factum orange for marks and bars, serif headlines.
 */
.brand-mark {
	display: block;
	width: auto;
	height: 2.25rem;
	mix-blend-mode: multiply; /* The mark sits on cream; let the paper show through. */
}

.site-logo--text {
	gap: 0.5rem;
}

.site-logo--text .brand-mark {
	height: 2rem;
}

.section-head__title {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}

.section-head__title::before {
	content: "";
	width: 3px;
	height: 1.1em;
	background: var(--c-brand);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand-mark {
		mix-blend-mode: normal;
		border-radius: 2px;
	}
}

/* ---------- Banners (announcements and partner banners) ---------- */
.banner-slot {
	margin-block: var(--sp-6);
}

.banner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-4);
	margin-block: var(--sp-6);
	padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 4px);
	font-family: var(--f-sans);
}

.banner-slot .banner {
	margin-block: 0;
}

.banner p {
	margin: 0;
}

.banner__body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	min-width: 0;
	max-width: 46rem;
}

.banner__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.banner__kicker:empty {
	display: none;
}

.banner__title {
	font-family: var(--f-serif);
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: var(--lh-tight);
	color: var(--c-ink);
}

.banner__text {
	font-size: var(--fs-sm);
	line-height: 1.55;
	color: var(--c-muted);
}

.banner__button {
	flex: 0 0 auto;
}

/* Dark: the screening page's black band with an orange bar. */
.banner--dark {
	background: var(--c-night);
}

.banner--dark::before,
.banner--paper::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 4px;
	background: var(--c-brand);
}

.banner--dark .banner__kicker {
	color: var(--c-brand);
}

.banner--dark .banner__title {
	color: #f8f5ef;
}

.banner--dark .banner__text {
	color: #c9c0b4;
}

.banner--dark .sample-tag {
	border-color: #9c9286;
	color: #c9c0b4;
}

/* Light */
.banner--paper {
	background: var(--c-paper-2);
}

/* Partner: the image, or a labelled empty space until a partner banner is uploaded. */
.banner--sponsor {
	align-items: center;
	justify-content: center;
	min-height: 8rem;
	padding: var(--sp-5);
	border: 1px dashed var(--c-subtle);
	text-align: center;
}

.banner--sponsor .banner__body {
	align-items: center;
}

.banner--sponsor .banner__kicker {
	justify-content: center;
	color: var(--c-subtle);
}

.banner--sponsor .banner__title {
	font-family: var(--f-sans);
	font-size: var(--fs-base);
}

.banner--sponsor:has(.banner__image) {
	min-height: 0;
	padding: 0;
	border: 0;
	gap: var(--sp-2);
}

.banner__flag {
	display: flex;
	gap: var(--sp-2);
	align-self: flex-start;
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-subtle);
}

.banner__image-link,
.banner__image {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 48em) {
	.banner:not(.banner--sponsor) {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-6);
		padding: var(--sp-6) var(--sp-6) var(--sp-6) calc(var(--sp-6) + 4px);
	}

	.banner--sponsor {
		aspect-ratio: 970 / 250;
		min-height: 0;
	}

	.banner--sponsor:has(.banner__image) {
		aspect-ratio: auto;
	}

	.banner__title {
		font-size: var(--fs-xl);
	}
}

/* Narrow placements (inside the article text, on event pages): keep it compact. */
.entry-content .banner:not(.banner--sponsor),
.banner.banner--event:not(.banner--sponsor) {
	flex-direction: column;
	align-items: flex-start;
	padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 4px);
}

.entry-content .banner .banner__title,
.banner--event .banner__title {
	font-size: var(--fs-lg);
}

.banner .sample-tag {
	letter-spacing: 0;
	text-transform: none;
}

.banner--home-top .banner__title {
	font-size: var(--fs-lg);
}

/* ---------- Typography pass (audit) ---------- */

/* Section headings: the orange bar is the emphasis; the rule above stays light. */
.section-head {
	border-top-color: var(--c-rule);
}

/* Armenian: uppercase and letter-spacing make Armenian labels hard to read. */
:lang(hy) .kicker,
:lang(hy) .label,
:lang(hy) .section-head__title,
:lang(hy) .banner__kicker,
:lang(hy) .banner__flag,
:lang(hy) .share__title,
:lang(hy) .offcanvas__title,
:lang(hy) .latest-strip__label,
:lang(hy) .supporters__title,
:lang(hy) .event-partners__title,
:lang(hy) .film-panel__subtitle,
:lang(hy) .date-block__month,
:lang(hy) .date-block__weekday,
:lang(hy) .article-figure__credit,
:lang(hy) .masthead__date {
	letter-spacing: 0;
	text-transform: none;
}

/* ---------- Alignment pass (audit) ---------- */
.sample-notice-wrap {
	margin-block: var(--sp-4);
}

.sample-notice {
	max-width: 40rem;
	margin: 0;
}

/* On articles the notice and the end banner line up with the centred text column. */
.single-post .sample-notice {
	max-width: var(--measure);
	margin-inline: auto;
}

.single-post .banner-slot .banner {
	max-width: var(--measure);
	margin-inline: auto;
}

/* ---------- Footer (audit): the screening page's black footer ---------- */
.site-footer {
	border-top: 0;
	background: var(--c-night);
	color: #efe8dc;
}

.site-footer a {
	color: #efe8dc;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .site-logo {
	color: #f8f5ef;
}

.site-footer .brand-mark {
	mix-blend-mode: normal;
}

.site-footer__tagline {
	color: #c9c0b4;
}

.site-footer__heading {
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-brand);
}

:lang(hy) .site-footer__heading {
	letter-spacing: 0;
	text-transform: none;
}

.site-footer__contact-list {
	display: grid;
	gap: var(--sp-2);
}

.site-footer__bottom {
	border-top-color: #33302c;
	color: #a1978a;
}

.site-footer :focus-visible {
	outline-color: var(--c-brand);
}

/* Inner-page header search, matching the homepage section bar. */
.site-header__search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--c-ink);
}

.site-header__search:hover {
	color: var(--c-accent);
}

/* The Factum mark is a cream tile (JPG): show it as a deliberate tile everywhere. */
.brand-mark,
.site-footer .brand-mark {
	mix-blend-mode: normal;
	border-radius: 2px;
}

/* Slim header on phones: keep the language switch on one line next to the search icon. */
.lang-switch__list {
	flex-wrap: nowrap;
	white-space: nowrap;
}

@media (max-width: 39.99em) {
	.site-header__tools {
		gap: var(--sp-2);
	}

	.site-header__search {
		width: 2.25rem;
	}
}

/* Orange banner: support appeals. Ink text on Factum orange (6:1); the button flips to ink. */
.banner--brand {
	background: var(--c-brand);
}

.banner--brand .banner__kicker,
.banner--brand .banner__title,
.banner--brand .banner__text {
	color: #0f0e0d;
}

.banner--brand .sample-tag {
	border-color: #0f0e0d;
	color: #0f0e0d;
}

.banner--brand .button {
	border-color: #0f0e0d;
	background: #0f0e0d;
	color: #f8f5ef;
}

.banner--brand .button:hover {
	border-color: #2a2622;
	background: #2a2622;
	color: #fff;
}

.banner--brand :focus-visible {
	outline-color: #0f0e0d;
}

/* ---------- Logo (SVG, redrawn from the old Factum logo) ---------- */
.site-logo--svg {
	display: inline-flex;
	align-items: center;
	color: var(--c-ink);
}

.site-logo--svg .logo {
	display: block;
	width: auto;
	height: 2.25rem;
}

.site-logo--svg .logo-mark,
.masthead__logo .logo-mark {
	fill: var(--c-brand);
}

.site-footer .site-logo--svg {
	color: #f8f5ef;
}

.site-footer .site-logo--svg .logo {
	height: 2.75rem;
}

/* ---------- Logo placement (second pass) ---------- */

/* Page headers: a larger logo with room before the navigation. */
.site-header__inner {
	gap: var(--sp-5);
}

.site-header__brand {
	margin-inline-end: var(--sp-3);
}

.site-logo--svg .logo {
	height: 2.75rem;
}

@media (min-width: 64em) {
	.site-logo--svg .logo {
		height: 3rem;
	}
}

/* Optical alignment: the mark's foot hangs below the word, so lift the logo slightly. */
.site-header .site-logo--svg {
	padding-bottom: 0.25rem;
}

/* Event pages: the header is black, so the logo sits on the invitation like the screening page. */
.has-invite-hero .site-header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
	background: #000;
	color: #efe8dc;
}

.has-invite-hero .site-header .site-logo--svg,
.has-invite-hero .site-header__toggle,
.has-invite-hero .site-header__search,
.has-invite-hero .site-nav__list a {
	color: #efe8dc;
}

.has-invite-hero .site-nav__list a:hover,
.has-invite-hero .site-nav__list .current-menu-item > a {
	color: #fff;
	border-bottom-color: var(--c-brand);
}

.has-invite-hero .site-header .lang-switch__link {
	color: rgba(239, 232, 220, 0.7);
}

.has-invite-hero .site-header .lang-switch__link.is-current,
.has-invite-hero .site-header a.lang-switch__link:hover {
	color: #fff;
}

.has-invite-hero .site-header .lang-switch--compact .lang-switch__item + .lang-switch__item::before {
	background: rgba(255, 255, 255, 0.25);
}

.has-invite-hero .site-header :focus-visible {
	outline-color: var(--c-brand);
}

.has-invite-hero .site-header .site-logo--svg .logo {
	height: 3rem;
}

/* Inline SVGs need their proportions, or browsers stretch the box and shift the drawing. */
.logo--compact {
	aspect-ratio: 286 / 120;
	width: auto;
}

.logo--classic {
	aspect-ratio: 336 / 300;
	width: auto;
}

/* Phones: keep the logo, search and language switch on one line. */
@media (max-width: 39.99em) {

	.site-logo--svg .logo,
	.has-invite-hero .site-header .site-logo--svg .logo {
		height: 2.25rem;
	}

	.site-header__inner {
		gap: var(--sp-3);
	}

	.site-header__brand {
		margin-inline-end: 0;
	}
}

@media (min-width: 40em) and (max-width: 63.99em) {

	.has-invite-hero .site-header .site-logo--svg .logo {
		height: 2.75rem;
	}
}

/* =========================================================================
   Audit 2 — P1: one action colour, places meter, mobile masthead
   ========================================================================= */

/* Places meter: "68 of 100 places left". */
.places {
	display: grid;
	gap: 0.4rem;
	max-width: 20rem;
	font-family: var(--f-sans);
}

.places__label {
	margin: 0;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

.places__bar {
	display: block;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(15, 14, 13, 0.12);
}

.places__bar > span {
	display: block;
	height: 100%;
	background: var(--c-brand);
}

/* One action colour: orange is for the main action (Register, Donate). Secondary buttons
 * are ink (filled) or outlined. */
.button--ink,
.newsletter .button,
.newsletter__form .button {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-paper);
}

.button--ink:hover,
.newsletter .button:hover,
.newsletter__form .button:hover {
	border-color: #2a2622;
	background: #2a2622;
	color: #fff;
}

.button--outline,
.button--support {
	border-color: currentColor;
	background: transparent;
	color: var(--c-ink);
}

.button--outline:hover,
.button--support:hover {
	border-color: var(--c-brand);
	background: transparent;
	color: var(--c-accent);
}

.has-invite-hero .site-header .button--support {
	color: #efe8dc;
}

.has-invite-hero .site-header .button--support:hover {
	color: #fff;
}

/* Support appeals: black band with an orange bar and the orange Donate-style button. */
.banner--brand {
	background: #0f0e0d;
}

.banner--brand::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 4px;
	background: var(--c-brand);
}

.banner--brand .banner__kicker {
	color: var(--c-brand);
}

.banner--brand .banner__title {
	color: #f8f5ef;
}

.banner--brand .banner__text {
	color: #c9c0b4;
}

.banner--brand .sample-tag {
	border-color: #9c9286;
	color: #c9c0b4;
}

.banner--brand .button {
	border-color: var(--c-brand);
	background: var(--c-brand);
	color: #0f0e0d;
}

.banner--brand .button:hover {
	border-color: #ff7a2e;
	background: #ff7a2e;
	color: #0f0e0d;
}

.banner--brand :focus-visible {
	outline-color: var(--c-brand);
}

/* Film cards: next screening. */
.card-film__next {
	margin: var(--sp-2) 0 0;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	font-weight: 600;
}

/* Headlines wrap evenly. */
h1,
h2,
h3,
.card__title {
	text-wrap: balance;
}

/* =========================================================================
   Audit 2 — P3: newsletter band (every page that shows it) and inline variant
   ========================================================================= */

.newsletter--band {
	position: relative;
	padding-block: var(--sp-7);
	background: #0f0e0d;
	color: #efe8dc;
}

.newsletter--band::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 4px;
	background: var(--c-brand);
}

.newsletter--band .newsletter__inner {
	display: grid;
	gap: var(--sp-5);
	align-items: end;
}

@media (min-width: 52em) {
	.newsletter--band .newsletter__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}
}

.newsletter--band .newsletter__kicker {
	margin: 0 0 var(--sp-2);
	color: var(--c-brand);
}

.newsletter--band .newsletter__title {
	margin: 0 0 var(--sp-2);
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	font-weight: 600;
	line-height: var(--lh-tight);
	color: #f8f5ef;
}

.newsletter--band .newsletter__text {
	max-width: 38ch;
	margin: 0;
	font-family: var(--f-sans);
	color: #c9c0b4;
}

.newsletter--band .field__label {
	color: #c9c0b4;
}

.newsletter--band .field__row {
	display: flex;
	gap: var(--sp-2);
}

.newsletter--band .field__input {
	flex: 1 1 auto;
	min-width: 0;
	border-color: rgba(255, 255, 255, 0.3);
	background: #1a1816;
	color: #f8f5ef;
}

/* On black, Subscribe is the cream button (orange stays for Register / Donate). */
.newsletter--band .button {
	flex: 0 0 auto;
	border-color: #f8f5ef;
	background: #f8f5ef;
	color: #0f0e0d;
}

.newsletter--band .button:hover {
	border-color: #fff;
	background: #fff;
	color: #0f0e0d;
}

.newsletter--band .form-msg {
	margin-top: var(--sp-3);
	border: 0;
	background: transparent;
	padding: 0;
	color: #f8f5ef;
}

.newsletter--band .form-msg--error {
	color: #ffab7d;
}

.newsletter--band :focus-visible {
	outline-color: var(--c-brand);
}

@media (max-width: 30em) {

	.newsletter--band .field__row {
		flex-direction: column;
	}
}

/* Inline (inside the registration success box). */
.newsletter--inline {
	margin-top: var(--sp-5);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--c-rule);
}

.newsletter--inline .newsletter__kicker {
	display: none;
}

.newsletter--inline .newsletter__title {
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-md);
	font-weight: 600;
}

.newsletter--inline .field__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.newsletter--inline .field__input {
	flex: 1 1 14rem;
	min-width: 0;
}

/* Spacing: the band sits flush between sections. */
.single-post .newsletter--band {
	margin-top: var(--sp-7);
}

/* =========================================================================
   Audit 2 — P2: registration that feels like an invitation
   ========================================================================= */

.reg-form__recap {
	margin-bottom: var(--sp-4);
	padding-bottom: var(--sp-4);
	border-bottom: 1px solid var(--c-rule);
}

.reg-form__event {
	margin: 0;
	font-family: var(--f-serif);
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: var(--lh-heading);
}

.reg-form__when {
	margin: var(--sp-1) 0 0;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.reg-form .places {
	max-width: none;
	margin-bottom: var(--sp-4);
}

.reg-form__row {
	display: grid;
	gap: 0 var(--sp-4);
}

@media (min-width: 30em) {

	.reg-form__row {
		grid-template-columns: 7rem minmax(0, 1fr);
	}
}

.reg-form__submit {
	width: 100%;
}

.reg-done__title {
	margin: 0 0 var(--sp-2);
	font-family: var(--f-serif);
	font-size: var(--fs-xl);
	font-weight: 600;
	line-height: var(--lh-tight);
}

.reg-done__text {
	margin: 0 0 var(--sp-4);
	color: var(--c-muted);
}

.reg-done__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-bottom: var(--sp-3);
}

.reg-done__share {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-sm);
}

/* Mobile sticky bar: places left. */
.sticky-cta__places {
	display: block;
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

/* The Support link sits in the section menu; the header button would repeat it. */
.site-header__support {
	display: none !important;
}

/* Footer: newsletter and Donate side by side, above the links. */
.site-footer__asks {
	display: grid;
	gap: var(--sp-6);
	padding-block: var(--sp-7);
	border-bottom: 1px solid #33302c;
}

@media (min-width: 52em) {

	.site-footer__asks {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}

	.site-footer__ask--support {
		padding-inline-start: var(--sp-7);
		border-inline-start: 1px solid #33302c;
	}
}

.site-footer .newsletter--inline {
	margin: 0;
	padding: 0;
	border: 0;
}

.site-footer .newsletter--inline .newsletter__title,
.site-footer__ask-title {
	margin: 0 0 var(--sp-2);
	font-family: var(--f-serif);
	font-size: var(--fs-lg);
	font-weight: 600;
	color: #f8f5ef;
}

.site-footer .newsletter__text,
.site-footer__ask-text {
	margin: 0 0 var(--sp-4);
	color: #c9c0b4;
}

.site-footer .field__label {
	color: #c9c0b4;
}

.site-footer .field__input {
	border-color: rgba(255, 255, 255, 0.3);
	background: #1a1816;
	color: #f8f5ef;
}

.site-footer .newsletter .button {
	border-color: #f8f5ef;
	background: #f8f5ef;
	color: #0f0e0d;
}

.site-footer .form-msg {
	border: 0;
	background: transparent;
	padding: 0;
	color: #f8f5ef;
}

/* Armenian event titles on phones (event pages). */
@media (max-width: 39.99em) {

	:lang(hy) .invite-hero__title {
		font-size: 1.85rem;
		line-height: 1.2;
	}
}

/* Buttons in the black footer keep their own text colour (the footer link colour would fail contrast). */
.site-footer .button {
	color: #0f0e0d;
}

.site-footer .button:hover {
	color: #0f0e0d;
}
