/**
 * Variant CSS: hours--today-highlight-card
 * Layer 2 - Path B hours role (2026-06-06).
 * One prominent "Dziś" card (large open/closed pill + today hours + note) beside a
 * compact full-week list whose current-day row is highlighted (--today). The card is
 * the answer to "is it open right now?"; the table is the full schedule next to it.
 * EVERY selector scoped to .universal-hours--today-highlight-card (no global leak).
 */

body.aibt-universal .universal-hours--today-highlight-card {
	background: var(--background);
	color: var(--text-primary);
	border-top: 1px solid var(--divider-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* === Intro === */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__intro {
	margin-bottom: var(--space-xl);
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__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 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* === Columns === */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__cols {
	gap: var(--space-2xl);
	align-items: stretch;
}

/* === "Dziś" highlight card === */
/* Accent-tinted feature panel: a strong left accent bar + tint reads as "today" on
   every theme regardless of how subtle the 8% tint is on dark surfaces. */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__todaycard {
	height: 100%;
	background: color-mix(in srgb, var(--accent) 8%, var(--background-card, var(--background)));
	border: var(--decor-border-width) solid color-mix(in srgb, var(--accent) 30%, var(--divider-primary));
	border-left: 4px solid var(--accent);
	border-radius: var(--decor-radius);
	padding: clamp(var(--space-lg), 4vw, var(--space-xl));
	display: flex;
	flex-direction: column;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__today-label {
	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(--text-secondary) !important;
	margin: 0 0 var(--space-md) 0 !important;
}

/* Status pill - "Otwarte teraz" (accent dot + solid accent bg). Static.
   On the accent surface the pill uses the CTA text colour for guaranteed contrast. */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__pill {
	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(--cta-text-primary) !important;
	background: var(--accent);
	margin: 0 0 var(--space-md) 0 !important;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	border-radius: var(--decor-radius-pill, 999px);
	padding: 0.4em 0.9em 0.4em 0.75em;
	white-space: nowrap;
	line-height: 1;
	align-self: flex-start;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__pill::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 999px;
	background: var(--cta-text-primary);
	flex: none;
}

/* Large today hours - the headline figure of the card. */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__today-time {
	font-family: var(--font-display) !important;
	font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em !important;
	color: var(--text-primary) !important;
	margin: 0 0 var(--space-md) 0 !important;
	font-variant-numeric: tabular-nums;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__note {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: auto 0 0 0 !important;
	padding-top: var(--space-md);
	max-width: 34ch;
}

/* === Week list === */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__table {
	border: var(--decor-border-width) solid var(--divider-primary);
	border-radius: var(--decor-radius);
	overflow: hidden;
	background: var(--background-card, var(--background));
	height: 100%;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row {
	gap: var(--space-md);
	align-items: center;
	/* Kill WP's default block-gap so the week list is one tight table with continuous
	   hairlines (was a ~24px gap -> loose floating rows + an empty band over --today). */
	margin-block: 0 !important;
	padding: var(--space-sm) var(--space-lg);
	border-bottom: 1px solid var(--divider-primary);
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row:last-child {
	border-bottom: 0;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__day {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 500 !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__time {
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* Today row in the list - accent-tinted + inset bar mirrors the card marker. */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row--today {
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	box-shadow: inset 3px 0 0 0 var(--accent);
}

body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row--today .universal-hours__day,
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row--today .universal-hours__time {
	color: var(--text-primary) !important;
	font-weight: 700 !important;
}

/* Closed day - de-emphasised but still AA. --text-muted fails AA (~3-4.4:1) on most
   themes for "Nieczynne" (real info); --text-secondary clears AA everywhere (>=7.2:1)
   while staying quieter than the open-day times. */
body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row--closed .universal-hours__time {
	color: var(--text-secondary) !important;
	font-weight: 500 !important;
	font-style: italic;
}

/* === Mobile: stack card over list, keep both edge-to-edge, no overflow. === */
@media (max-width: 781px) {
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__cols {
		gap: var(--space-lg);
	}
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__todaycol,
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__weekcol {
		flex-basis: 100% !important;
	}
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__row {
		padding: var(--space-sm) var(--space-md);
	}
}

/* Tighten the wide uppercase tracking on small screens (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__kicker,
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__today-label,
	body.aibt-universal .universal-hours--today-highlight-card .universal-hours__pill {
		letter-spacing: 0.06em !important;
	}
}
