/**
 * Variant CSS: locations--three-hours-grid
 *
 * Three location cards built around opening hours. Each card has a header row
 * (name + "otwarte dziś" status pill), address, an emphasised hours block with
 * an accent left bar, and a footer (phone + nav link). Status pill is a green-ish
 * accent-tinted badge; the --closed modifier mutes it. Text stays --ink; the
 * always-tinted hours block uses --ink on an accent wash (still polarity-aware).
 * Cards stack to one column on mobile.
 */

body.aibt-universal .universal-locations--three-hours-grid {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
}

/* Intro. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__intro {
	margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	color: var(--ink) !important;
	opacity: 0.74;
	margin: 0 auto !important;
}

/* Hours cards. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hours-grid {
	gap: clamp(1.2rem, 3vw, 2rem) !important;
	align-items: stretch !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard {
	display: flex;
	flex-direction: column;
	padding: clamp(1.3rem, 2.8vw, 1.9rem) !important;
	border-radius: var(--decor-radius, 16px);
	background: color-mix(in srgb, var(--ink) 3%, var(--bg-main, transparent));
	border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
	box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.38);
	transition: transform var(--duration-fast, 0.18s) var(--ease-default, ease),
		box-shadow var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.44);
}

/* Header row — name + status pill. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-head {
	gap: 0.6rem !important;
	margin-bottom: var(--space-sm) !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-name {
	font-family: var(--font-display) !important;
	font-size: clamp(1.2rem, 2.4vw, 1.5rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__status {
	flex-shrink: 0;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
	padding: 0.3em 0.7em !important;
	border-radius: var(--decor-radius-pill, 999px) !important;
	margin: 0 !important;
	white-space: nowrap;
}

/* Open status gets a small leading dot. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__status::before {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-inline-end: 0.45em;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
}

/* Closed modifier — muted, neutral ink. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__status--closed {
	color: var(--ink) !important;
	opacity: 0.55;
	background: color-mix(in srgb, var(--ink) 9%, transparent) !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-address {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.78;
	margin: 0 0 var(--space-md) 0 !important;
}

/* Emphasised hours block — accent-washed panel with left bar. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hours-block {
	position: relative;
	padding: clamp(0.85rem, 2vw, 1.1rem) clamp(0.9rem, 2vw, 1.15rem) !important;
	padding-left: clamp(1.1rem, 2.4vw, 1.4rem) !important;
	margin-bottom: var(--space-md) !important;
	border-radius: var(--decor-radius, 12px);
	background: color-mix(in srgb, var(--accent) 8%, transparent);
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hours-block::before {
	content: "";
	position: absolute;
	inset-block: clamp(0.85rem, 2vw, 1.1rem);
	inset-inline-start: 0;
	width: 3px;
	border-radius: var(--decor-radius-pill, 999px);
	background: var(--accent);
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hours-caption {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--ink) !important;
	opacity: 0.55;
	margin: 0 0 0.3rem 0 !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-hours {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 600 !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

/* Footer — phone + nav link, pinned to bottom. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-foot {
	margin-top: auto !important;
	gap: 0.6rem !important;
	padding-top: var(--space-sm);
	border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-phone {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 700 !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-link .wp-block-button__link {
	padding: 0 !important;
	background: transparent !important;
	color: var(--accent) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-sm) !important;
	border: none !important;
}

body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-link .wp-block-button__link:hover {
	color: var(--accent-hover, var(--accent)) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Keyboard focus ring (a11y) — nav link lacks a visible focus state. */
body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard-link .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--decor-radius, 6px);
}

/* One column on mobile. */
@media (max-width: 781px) {
	body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard {
		flex-basis: 100% !important;
	}
}

@media (max-width: 640px) {
	body.aibt-universal .universal-locations--three-hours-grid .universal-locations__status {
		letter-spacing: 0 !important;
	}
}

/* Respect reduced-motion — drop card lift transform. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard,
	body.aibt-universal .universal-locations--three-hours-grid .universal-locations__hcard:hover {
		transition: none;
		transform: none;
	}
}
