@charset "UTF-8";

/* SPONSORSHIP CARD -- the one card component of the home page "Our Sponsorship" section.
   Spec: acutintpro-design-system.md section 2 (09-17-2026). Used by the featured row, the video
   row and every archive row on index.html.

   The card takes the shape of its media and the row makes the heights match: each card grows in
   proportion to --ar (its media's width over its height), so the ratio cancels out of the height
   and every card in a row lands on one height with its flyer or video whole -- nothing boxed,
   cropped, stretched, or dropped below the card beside it.

   Do not edit or remove .flex-container, .flex-item-left, .flex-item-right or .imgwrap to fix this
   section: eight other pages share them, including the align-items:center in flyer.css that drops
   a card below its neighbour here. New classes only. */

:root {
	--acp-frame: #FF99CC;
	--acp-red: #BB1100;
	--acp-card-bg: #FFF;
	--acp-card-radius: 4px;
	--acp-card-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
	--acp-card-shadow-hover: 0 6px 12px 0 rgba(0, 0, 0, .24), 0 10px 28px 0 rgba(0, 0, 0, .22);
	/* The fixed navbar is 82-83px tall at every width (measured at 1440 / 1024 / 768 / 412 / 360), plus 16px. */
	--acp-header-clearance: 100px;
}

/* Block: rows of sponsorship cards. Width comes from the page container. */
.sponsor-cards {
	--sponsor-gap: 40px;
	display: flex;
	flex-direction: column;
	row-gap: var(--sponsor-gap);
}

/* One row. Cards are justified: widths differ, heights cannot. */
.sponsor-grid {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
	justify-content: center;
	column-gap: var(--sponsor-gap);
}

/* The frame. --ar is set inline per card as calc(W / H). */
.sponsor-card {
	flex-grow: var(--ar);
	flex-shrink: 1;
	flex-basis: 0;
	min-width: 0;
	/* A scroll to the card (anchor, keyboard focus, script) lands it below the fixed header, never under it. */
	scroll-margin-top: var(--acp-header-clearance);
	display: block;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-frame);
	border-radius: var(--acp-card-radius);
	box-shadow: var(--acp-card-shadow);
	text-decoration: none;
}

.sponsor-card > picture {
	display: block;
}

/* The media, edge to edge. Radius is the card's minus its border. */
.sponsor-card__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ar);
	border-radius: calc(var(--acp-card-radius) - 1px);
}

/* Guard rail: a card that ends up alone never stretches across the row. */
.sponsor-card:only-child {
	flex: none;
	width: min(100%, 520px);
	margin-inline: auto;
}

@media (max-width: 991.98px) {
	.sponsor-cards {
		--sponsor-gap: 24px;
	}
}

/* Stack, one card per line, in DOM order. */
@media (max-width: 699.98px) {
	.sponsor-grid {
		flex-direction: column;
		align-items: center;
		row-gap: var(--sponsor-gap);
	}

	.sponsor-card {
		flex: none;
		width: min(100%, 520px);
	}
}

/* Hover belongs to real pointers only, so it never sticks after a tap. */
@media (hover: hover) and (pointer: fine) {
	a.sponsor-card {
		transition: transform 200ms ease, box-shadow 200ms ease;
	}

	a.sponsor-card:hover {
		transform: translateY(-2px);
		box-shadow: var(--acp-card-shadow-hover);
	}
}

@media (prefers-reduced-motion: reduce) {
	a.sponsor-card {
		transition: none;
	}

	a.sponsor-card:hover {
		transform: none;
		box-shadow: var(--acp-card-shadow-hover);
	}
}

/* Focus: outside the frame, never clipped. Overrides Bootstrap's a:focus ring. */
.sponsor-card:focus-visible,
.sponsor-card__media:focus-visible {
	outline: 3px solid var(--acp-red);
	outline-offset: 3px;
}

.sponsor-card:focus:not(:focus-visible) {
	outline: none;
}
