/*
 * Shared list card — public notices (template-parts/notice-card.php) and
 * council meetings ([delegatr_event_cards] via inc/po-cards.php).
 *
 *   [ date tile ]  EYEBROW (type / weekday · time)
 *   [ 16  NOV   ]  Title, up to three lines                         →
 *   [ 2026      ]  • Municipality  • Municipality   (only when useful)
 *
 * --po-accent  municipality colour (tile tint + top band, hover border)
 * --po-stripe  joint notice: one band per municipality
 * --po-dot     colour of one municipality in the pill row
 */

.po-card {
	--po-card-accent: var(--po-accent, #018000);
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px 12px 12px;
	background: #fff;
	border: 1px solid #e3e6ee;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(20, 20, 40, .04);
	color: var(--po-primary, #222233);
	font-family: var(--po-font-body, Roboto, sans-serif);
	text-align: left;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.po-card--region { --po-card-accent: #018000; }
.po-card:not(.po-card--static):hover {
	border-color: var(--po-card-accent);
	box-shadow: 0 6px 18px rgba(20, 20, 40, .09);
	transform: translateY(-1px);
}
.po-card:has(.po-card__link:focus-visible) { outline: 3px solid var(--po-primary, #222233); outline-offset: 2px; }
.po-card__link:focus-visible { outline: none; }

/* Date tile */
.po-card__date {
	position: relative;
	flex: 0 0 64px;
	height: 74px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	padding-top: 5px;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 10px;
	background: color-mix(in srgb, var(--po-card-accent) 13%, #fff);
	color: var(--po-primary, #222233);
	line-height: 1;
}
.po-card__date::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--po-stripe, var(--po-card-accent));
}
.po-card--joint .po-card__date { background: #f2f3f7; }
.po-card__day { font: 400 1.85rem/1 var(--po-font-head, "Fjalla One", sans-serif); }
.po-card__month { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.po-card__year { font-size: .68rem; color: #5b6070; }

/* Text */
.po-card__body { flex: 1 1 auto; min-width: 0; }
.po-card__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #5b6070;
}
.po-card__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--po-stripe, var(--po-card-accent));
	flex: 0 0 auto;
}
.po-card__title {
	margin: 3px 0 0;
	font: 700 1rem/1.35 var(--po-font-body, Roboto, sans-serif);
	letter-spacing: 0;
	text-transform: none;
	color: var(--po-primary, #222233);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.po-card__title a { color: inherit; text-decoration: none; }
/* Whole card is the link target. */
.po-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.po-card:hover .po-card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Who it concerns */
.po-card__munis { list-style: none; margin: 6px 0 0; padding: 0; font-size: .78rem; line-height: 1.5; font-weight: 600; color: #3d4150; }
.po-card__muni { display: inline; margin: 0 10px 0 0; white-space: nowrap; }
.po-card__muni::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--po-dot, #018000); vertical-align: 1px; }

.po-card__arrow { flex: 0 0 auto; font-size: 1.15rem; color: #a3a8b6; transition: transform .15s ease, color .15s ease; }
.po-card:hover .po-card__arrow { color: var(--po-primary, #222233); transform: translateX(3px); }

/* Lists */
.po-notices { display: grid; gap: 12px; }
.custom-event-listing.delegatr-event-cards .po-card + .po-card { margin-top: 0; }

@media (max-width: 480px) {
	.po-card { gap: 12px; padding: 10px 12px 10px 10px; }
	.po-card__date { flex-basis: 54px; height: 64px; }
	.po-card__day { font-size: 1.55rem; }
	.po-card__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.po-card, .po-card__arrow { transition: none; }
	.po-card:not(.po-card--static):hover { transform: none; }
}
