/*
 * Wydarzenia „Zapisz te daty” (template-parts/events/dates.php). No section
 * mockup; built from the preview docs/preview/wydarzenia_v4.png: a warm
 * band, heading with a rule and a line under it, cards with a wide photo,
 * a date pill, the title and „Szczegóły wkrótce”.
 * Three cards in a row from 64em, two from 40em, one on phones.
 */

.hf-events-dates
{
	padding-block: var(--hf-space-section-block);
	background: var(--hf-color-band-strong);
}

.hf-events-dates__header
{
	margin-bottom: var(--hf-space-l);
}

.hf-events-dates__title
{
	margin: 0;
	font-size: var(--hf-text-h2-m);
}

.hf-events-dates__lead
{
	margin: var(--hf-space-s) 0 0;
	color: var(--hf-color-text);
	font-size: var(--hf-text-xl);
	line-height: 1.35;
}

.hf-events-dates__summary
{
	margin: var(--hf-space-xs) 0 0;
	color: var(--hf-color-text);
	font-size: var(--hf-text-control);
}

.hf-events-dates__items
{
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hf-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hf-events-dates__card
{
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--hf-color-card-border);
	border-radius: var(--hf-radius-m);
	background: var(--hf-color-surface);
}

/* Wide, low photo as in the preview (about 2.6:1). The image is taken out
   of the flow, or its own height would stretch the box past the ratio. */
.hf-events-dates__media
{
	position: relative;
	aspect-ratio: 13 / 5;
	background: var(--hf-color-band);
}

.hf-events-dates__image
{
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hf-events-dates__body
{
	padding: var(--hf-space-s) var(--hf-space-m) var(--hf-space-m);
}

.hf-events-dates__date
{
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 var(--hf-space-s);
	padding: 0.45rem 1.25rem 0.45rem 0.85rem;
	border: 1px solid var(--hf-color-card-border);
	border-radius: var(--hf-radius-s);
	background: var(--hf-color-band-strong);
	color: var(--hf-color-heading);
	font-size: var(--hf-text-control);
	line-height: 1.3;
}

.hf-events-dates__date-icon
{
	flex: none;
	width: 1.35em;
	height: 1.35em;
	color: var(--hf-color-icon);
	stroke-width: 2.4;
}

.hf-events-dates__card-title
{
	margin: 0 0 var(--hf-space-2xs);
	font-size: var(--hf-text-card-title);
	text-wrap: balance;
}

.hf-events-dates__note
{
	margin: 0;
	color: var(--hf-color-text);
	font-size: var(--hf-text-control);
}

/* Phones: one card per row; 13:5 would leave a thin strip of photo. */
@media (max-width: 39.99em)
{
	.hf-events-dates__media
	{
		aspect-ratio: 2 / 1;
	}
}

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

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