/* ==========================================================================
   BKA 2026 v5 · 4/8 COMPONENTS – the reusable vocabulary.
   Buttons · links · eyebrow · cards · photo cards · chips ·
   prose · lists · statement · accordion · notice · video frame · gallery ·
   avatar · icon disc · CTA band.
   ========================================================================== */

/* Buttons (Bethesda pill) ------------------------------------------------- */
.v5-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 3.25rem;
	padding: .85rem 1.75rem;
	border: 2px solid var(--v5-red);
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red);
	color: #fff;
	font-family: var(--v5-font-text);
	font-size: .9375rem;
	font-weight: var(--v5-w-bold);
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--v5-shadow-red);
	transition: background-color var(--v5-dur) var(--v5-ease), border-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease), transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-button:hover { background: var(--v5-red-600); border-color: var(--v5-red-600); color: #fff; transform: translateY(-1px); text-decoration: none; }
.v5-button:active { transform: translateY(0); }
.v5-button .v5-icon { width: 1.15em; height: 1.15em; }
.v5-button--lg { min-height: 3.75rem; padding-inline: 2.25rem; font-size: 1rem; }
.v5-button--sm { min-height: 2.5rem; padding: .5rem 1.15rem; font-size: .8125rem; box-shadow: none; }
.v5-button--ghost { background: transparent; color: var(--v5-red); box-shadow: none; }
.v5-button--ghost:hover { background: var(--v5-red); color: #fff; }
.v5-button--white { border-color: #fff; background: #fff; color: var(--v5-red); box-shadow: var(--v5-shadow-button); }
.v5-button--white:hover { border-color: var(--v5-red-50); background: var(--v5-red-50); color: var(--v5-red-700); }
.v5-button--outline-white { border-color: rgba(255, 255, 255, .85); background: transparent; color: #fff; box-shadow: none; }
.v5-button--outline-white:hover { border-color: #fff; background: #fff; color: var(--v5-red); }
.v5-button[disabled],
.v5-button[aria-disabled="true"] { opacity: .55; transform: none; cursor: not-allowed; box-shadow: none; }

.v5-link {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: var(--v5-red);
	font-weight: var(--v5-w-bold);
	text-decoration: none;
}
.v5-link .v5-icon { transition: transform var(--v5-dur) var(--v5-ease); }
.v5-link:hover { color: var(--v5-red-600); text-decoration: none; }
.v5-link:hover .v5-icon { transform: translateX(3px); }

/* Eyebrow ------------------------------------------------------------------ */
.v5-eyebrow {
	display: block;
	margin: 0 0 1rem;
	color: var(--v5-red);
	font-family: var(--v5-font-text);
	font-size: var(--v5-fs-eyebrow);
	font-weight: var(--v5-w-bold);
	line-height: 1.4;
	letter-spacing: var(--v5-ls-caps);
	text-transform: uppercase;
}
.v5-band--red .v5-eyebrow { color: #fff; }


/* Titles ------------------------------------------------------------------ */
.v5-title { margin: 0; color: var(--v5-red); font-size: var(--v5-fs-h2); line-height: var(--v5-lh-heading); }
.v5-title--ink { color: var(--v5-ink); }
.v5-title--xl { font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); line-height: 1.02; }
.v5-band--red .v5-title { color: #fff; }

/* Cards ------------------------------------------------------------------- */
.v5-card {
	position: relative;
	padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
	border-radius: var(--v5-radius);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
	color: var(--v5-ink);
}
.v5-card > :last-child { margin-bottom: 0; }
.v5-card--mist { background: var(--v5-mist); box-shadow: none; }
.v5-card--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--v5-line); }
.v5-card__title { margin: 0 0 .65rem; font-size: var(--v5-fs-h3); color: var(--v5-red); }

/* Photo card: image + title (route cards, programme cards, mega menu style) */
.v5-photo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--v5-radius);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
	color: var(--v5-ink);
	text-decoration: none;
	isolation: isolate;
	transition: transform var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
a.v5-photo-card:hover { transform: translateY(-4px); box-shadow: var(--v5-shadow-lift); color: var(--v5-ink); text-decoration: none; }
.v5-photo-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--v5-mist);
}
.v5-photo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--v5-dur-slow) var(--v5-ease); }
a.v5-photo-card:hover .v5-photo-card__media img { transform: scale(1.045); }
.v5-photo-card__body {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem 1.4rem;
}
.v5-photo-card__title {
	margin: 0;
	color: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
	line-height: 1.15;
}
.v5-photo-card__arrow {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--v5-red-100);
	color: var(--v5-red);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
a.v5-photo-card:hover .v5-photo-card__arrow { background: var(--v5-red); color: #fff; }

/* Placeholder visual when no approved photograph exists (never an empty box) */
.v5-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .18), transparent 55%),
		linear-gradient(135deg, var(--v5-red) 0%, var(--v5-red-600) 100%);
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: clamp(3rem, 2rem + 3vw, 5rem);
	line-height: 1;
}

/* Icon disc --------------------------------------------------------------- */
.v5-icon-disc {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--v5-red-100);
	color: var(--v5-red);
}
.v5-icon-disc .v5-icon { width: 1.6rem; height: 1.6rem; }
.v5-icon-disc--lg { width: 5rem; height: 5rem; }
.v5-icon-disc--lg .v5-icon { width: 2.6rem; height: 2.6rem; }
.v5-icon-disc--solid { background: var(--v5-red); color: #fff; }

/* Chips / badges ---------------------------------------------------------- */
.v5-badge {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .3rem .75rem;
	border-radius: var(--v5-radius-pill);
	background: var(--v5-red-100);
	color: var(--v5-red-700);
	font-size: .75rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Prose ------------------------------------------------------------------- */
.v5-prose {
	max-width: var(--v5-shell-narrow);
	overflow-wrap: break-word;
	font-size: var(--v5-fs-body);
	line-height: var(--v5-lh-body);
}
.v5-prose--wide { max-width: 60rem; }
.v5-prose > :first-child { margin-top: 0; }
.v5-prose > :last-child { margin-bottom: 0; }
.v5-prose :where(h2) { margin-top: 2.2em; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); color: var(--v5-red); }
.v5-prose :where(h3) { margin-top: 1.8em; font-size: var(--v5-fs-h3); }
.v5-prose :where(h4) { margin-top: 1.6em; }
.v5-prose :where(ul) { padding-left: 0; list-style: none; }
.v5-prose :where(ul > li) { position: relative; padding-left: 1.6rem; }
.v5-prose :where(ul > li)::before {
	content: "";
	position: absolute;
	top: .72em;
	left: .2rem;
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background: var(--v5-red);
}
.v5-prose :where(ol) { padding-left: 1.4rem; }
.v5-prose :where(ol > li)::marker { color: var(--v5-red); font-weight: var(--v5-w-bold); }
.v5-prose :where(blockquote) {
	margin: 2rem 0;
	padding: 1.5rem 1.75rem;
	border-left: 5px solid var(--v5-red);
	border-radius: 0 var(--v5-radius-sm) var(--v5-radius-sm) 0;
	background: var(--v5-mist-2);
	font-family: var(--v5-font-display);
	font-size: var(--v5-fs-h4);
	line-height: 1.45;
}
.v5-prose :where(img) { border-radius: var(--v5-radius-sm); }
.v5-prose :where(figure) { margin-block: 2rem; }
.v5-prose :where(figcaption) { margin-top: .6rem; color: var(--v5-muted); font-size: var(--v5-fs-small); }
.v5-prose :where(table) { display: block; max-width: 100%; overflow-x: auto; font-size: .9375rem; }
.v5-prose :where(a) { overflow-wrap: anywhere; }
.v5-prose :where(iframe) { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--v5-radius-sm); }
.v5-band--red .v5-prose :where(a) { color: #fff; }
.v5-band--red .v5-prose :where(ul > li)::before { background: #fff; }

.v5-lead { font-size: var(--v5-fs-lead); line-height: 1.6; color: var(--v5-ink-soft); }

/* Bulleted list as a component (named lists) */
.v5-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.v5-list > li { position: relative; margin: 0; padding-left: 1.75rem; }
.v5-list > li::before {
	content: "";
	position: absolute;
	top: .66em;
	left: .25rem;
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--v5-red);
}
.v5-list--cards { gap: .75rem; }
.v5-list--cards > li {
	padding: 1rem 1.25rem 1rem 3.25rem;
	border-radius: var(--v5-radius-sm);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
}
.v5-list--cards > li::before { top: 1.6rem; left: 1.4rem; }
.v5-band--mist .v5-list--cards > li { box-shadow: none; }

/* Statement: the Róm 15,1 style (large Brandon line with the ornament) ----- */
.v5-statement { margin: 0; }
.v5-statement__text {
	margin: 0;
	max-width: 30ch;
	color: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-size: var(--v5-fs-statement);
	font-weight: var(--v5-w-display);
	line-height: 1.2;
	text-wrap: balance;
}
.v5-statement__text :where(p) { margin: 0; }
.v5-statement__text :where(strong, b) { font-weight: var(--v5-w-display); color: var(--v5-red); }
.v5-statement--wide .v5-statement__text { max-width: 44ch; }
.v5-statement--center { text-align: center; }
.v5-statement--center .v5-statement__text { margin-inline: auto; }
.v5-band--red .v5-statement__text { color: #fff; }

/* Accordion (details) ----------------------------------------------------- */
.v5-accordion { display: grid; gap: .75rem; }
.v5-accordion details {
	border-radius: var(--v5-radius-sm);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
}
.v5-accordion summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.5rem;
	font-weight: var(--v5-w-bold);
	cursor: pointer;
	list-style: none;
}
.v5-accordion summary::-webkit-details-marker { display: none; }
.v5-accordion summary::after {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--v5-red-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e41b48' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1rem no-repeat;
	transition: transform var(--v5-dur) var(--v5-ease);
}
.v5-accordion details[open] summary::after { transform: rotate(45deg); }
.v5-accordion details > :not(summary) { margin: 0; padding: 0 1.5rem 1.35rem; }

/* Notice ------------------------------------------------------------------ */
.v5-notice {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	border-left: 5px solid var(--v5-red);
	border-radius: 0 var(--v5-radius-sm) var(--v5-radius-sm) 0;
	background: var(--v5-red-50);
	color: var(--v5-ink);
}
.v5-notice > :last-child { margin-bottom: 0; }

/* Video frame (16:9, YouTube-ready) -------------------------------------- */
.v5-video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 0;
	border-radius: var(--v5-radius);
	padding: 0;
	background: #16131a;
	color: #fff;
	isolation: isolate;
}
.v5-video img,
.v5-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.v5-video::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(var(--v5-scrim), 0) 45%, rgba(var(--v5-scrim), .45) 100%);
	pointer-events: none;
	transition: opacity var(--v5-dur) var(--v5-ease);
}
.v5-video.is-playing::after { opacity: 0; }
.v5-video__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	/* Final review 2026-11-13: smaller circles, the triangle optically centred. */
	width: clamp(3.25rem, 2.75rem + 1.1vw, 4.25rem);
	height: clamp(3.25rem, 2.75rem + 1.1vw, 4.25rem);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--v5-red);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
	transform: translate(-50%, -50%);
	transition: transform var(--v5-dur) var(--v5-ease), background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-video__play .v5-icon { width: 46%; height: 46%; margin: 0; }
button.v5-video:hover .v5-video__play { background: var(--v5-red); color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.v5-video__bar {
	position: absolute;
	z-index: 2;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	gap: .6rem;
	height: .3rem;
	border-radius: 2px;
	background: rgba(255, 255, 255, .35);
	pointer-events: none;
}
.v5-video__bar::before { content: ""; width: 0; height: 100%; border-radius: inherit; background: var(--v5-red); }

/* Vertical video dialog (YouTube Shorts, home.js) ------------------------
   The dialog is exactly as wide as the 9:16 player and sits in the middle of
   the screen (2026-11-14: with width:auto it spanned the viewport and the
   player stuck to the left edge). Close button beside the player's top right
   corner (above it on phones); a spinner shows until YouTube paints. */
.v5-video-dialog {
	width: fit-content;
	height: fit-content;
	max-width: calc(100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}
.v5-video-dialog::backdrop { background: rgba(18, 12, 16, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.v5-video-dialog__frame {
	position: relative;
	height: min(86dvh, 52rem);
	max-width: calc(100vw - 2rem);
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: var(--v5-radius);
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
.v5-video-dialog__frame::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.5rem;
	height: 2.5rem;
	margin: -1.25rem 0 0 -1.25rem;
	border: 3px solid rgba(255, 255, 255, .22);
	border-top-color: #fff;
	border-radius: 50%;
	animation: v5-video-spin .9s linear infinite;
}
.v5-video-dialog__frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
@keyframes v5-video-spin { to { transform: rotate(360deg); } }
@keyframes v5-video-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v5-video-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
	.v5-video-dialog[open] { animation: v5-video-in .32s cubic-bezier(.2, .8, .2, 1) both; }
	.v5-video-dialog[open]::backdrop { animation: v5-video-fade .32s ease both; }
}
.v5-video-dialog__close {
	position: absolute;
	top: 0;
	left: calc(100% + 1rem);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--v5-ink);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	cursor: pointer;
}
.v5-video-dialog__close .v5-icon { width: 1.25rem; height: 1.25rem; }
.v5-video-dialog__close:hover { background: var(--v5-red); color: #fff; }
.v5-video-dialog__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Phones: the close button above the player (inside the dialog, so it never leaves a short screen), 9:16 kept. */
@media (max-width: 40rem) {
	.v5-video-dialog { padding-top: 3.5rem; }
	.v5-video-dialog__frame { height: auto; width: min(calc(100vw - 2rem), calc((100dvh - 6.5rem) * 9 / 16)); }
	.v5-video-dialog__close { top: 0; right: 0; left: auto; }
}

/* Gallery (scroll-snap carousel driven by editorial-20260907.js) --------- */
.v5-gallery { position: relative; }
.v5-gallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(16rem, calc((100% - 2 * var(--v5-gap)) / 2.35));
	gap: var(--v5-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: .25rem;
}
.v5-gallery__track::-webkit-scrollbar { display: none; }
.v5-gallery__track > figure {
	margin: 0;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: var(--v5-radius);
	aspect-ratio: 3 / 2;
	background: var(--v5-mist);
}
.v5-gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.v5-gallery__controls { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; font-weight: var(--v5-w-bold); }
.v5-gallery__controls button {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 2px solid var(--v5-red);
	border-radius: 50%;
	background: #fff;
	color: var(--v5-red);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-gallery__controls button:hover:not(:disabled) { background: var(--v5-red); color: #fff; }
.v5-gallery__controls button:disabled { opacity: .35; }

.v5-mosaic {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--v5-gap);
}
.v5-mosaic > figure { margin: 0; overflow: hidden; border-radius: var(--v5-radius); background: var(--v5-mist); aspect-ratio: 3 / 2; grid-column: span 2; }
.v5-mosaic > figure:nth-child(5n + 1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.v5-mosaic > figure:only-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.v5-mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* Avatar (team: neutral silhouette waiting for a real portrait) ---------- */
.v5-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: linear-gradient(160deg, var(--v5-mist) 0%, #e3e5ec 100%);
	color: #a3a6b1;
}
.v5-avatar .v5-icon { width: 60%; height: 60%; }

/* CTA band ---------------------------------------------------------------- */
.v5-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem 3rem;
	align-items: center;
}
.v5-cta__title { margin: 0; color: #fff; font-size: var(--v5-fs-h2); }

@media (max-width: 40rem) {
	.v5-button { max-width: 100%; white-space: normal; text-align: center; }
	.v5-button--lg { padding-inline: 1.5rem; }
}

@media (max-width: 56rem) {
	.v5-cta { grid-template-columns: 1fr; }
	.v5-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v5-mosaic > figure,
	.v5-mosaic > figure:nth-child(5n + 1) { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 2; }
	.v5-mosaic > figure:nth-child(3n + 1) { grid-column: 1 / -1; }
	.v5-gallery__track { grid-auto-columns: 82%; }
}
