/* OpenHours – front end */
.ohb {
	--ohb-accent: #16a34a;
	--ohb-open: #16a34a;
	--ohb-closed: #dc2626;
	--ohb-warn: #d97706;
	--ohb-bg: #ffffff;
	--ohb-fg: #0f172a;
	--ohb-muted: #64748b;
	--ohb-line: rgba(15, 23, 42, 0.08);
	--ohb-soft: rgba(15, 23, 42, 0.04);
	--ohb-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
	font-family: inherit;
	line-height: 1.45;
	box-sizing: border-box;
}
.ohb *, .ohb *::before, .ohb *::after { box-sizing: inherit; }

.ohb-theme-dark {
	--ohb-bg: #0f172a;
	--ohb-fg: #f1f5f9;
	--ohb-muted: #94a3b8;
	--ohb-line: rgba(241, 245, 249, 0.09);
	--ohb-soft: rgba(241, 245, 249, 0.05);
	--ohb-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
	--ohb-open: #4ade80;
	--ohb-closed: #f87171;
	--ohb-warn: #fbbf24;
}
@media (prefers-color-scheme: dark) {
	.ohb-theme-auto {
		--ohb-bg: #0f172a;
		--ohb-fg: #f1f5f9;
		--ohb-muted: #94a3b8;
		--ohb-line: rgba(241, 245, 249, 0.09);
		--ohb-soft: rgba(241, 245, 249, 0.05);
		--ohb-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
		--ohb-open: #4ade80;
		--ohb-closed: #f87171;
		--ohb-warn: #fbbf24;
	}
}

/* ---------- Badge ---------- */
.ohb-badge {
	--ohb-state: var(--ohb-open);
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45em;
	padding: 0.42em 0.95em 0.42em 0.8em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ohb-state) 12%, var(--ohb-bg));
	color: var(--ohb-fg);
	border: 1px solid color-mix(in srgb, var(--ohb-state) 28%, transparent);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	backdrop-filter: saturate(1.4) blur(6px);
	-webkit-backdrop-filter: saturate(1.4) blur(6px);
	transition: background 0.3s, border-color 0.3s;
}
.ohb-badge.is-closed { --ohb-state: var(--ohb-closed); }
.ohb-badge.is-closing, .ohb-badge.is-opening { --ohb-state: var(--ohb-warn); }
.ohb-badge--sm { font-size: 13px; padding: 0.32em 0.8em 0.32em 0.7em; }
.ohb-badge--lg { font-size: 18px; padding: 0.55em 1.2em 0.55em 1em; }

.ohb-badge__title { font-weight: 650; color: var(--ohb-state); }
.ohb-badge__sub { color: var(--ohb-muted); font-weight: 450; }
.ohb-badge__sub::before { content: "·"; margin-right: 0.45em; opacity: 0.7; }

.ohb-dot {
	position: relative;
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--ohb-state);
	flex: none;
}
.ohb-badge.is-open .ohb-dot::after,
.ohb-badge.is-closing .ohb-dot::after,
.ohb-badge.is-opening .ohb-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--ohb-state);
	animation: ohb-pulse 2s ease-out infinite;
}
@keyframes ohb-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ohb-dot::after { animation: none !important; }
}

/* ---------- Card ---------- */
.ohb-card {
	max-width: 440px;
	padding: 22px 22px 18px;
	border-radius: 20px;
	background: var(--ohb-bg);
	color: var(--ohb-fg);
	border: 1px solid var(--ohb-line);
	box-shadow: var(--ohb-shadow);
}
.ohb-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.ohb-card__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	color: var(--ohb-accent);
	background: color-mix(in srgb, var(--ohb-accent) 13%, transparent);
	flex: none;
}
.ohb-card__title {
	margin: 0 auto 0 0 !important;
	padding: 0 !important;
	font-size: 18px !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2 !important;
	color: inherit !important;
}
.ohb-note {
	margin: 0 0 12px !important;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	color: var(--ohb-fg);
	background: color-mix(in srgb, var(--ohb-warn) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--ohb-warn) 30%, transparent);
}

.ohb-week {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ohb-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0 !important;
	padding: 9px 12px;
	border-radius: 11px;
	font-size: 15px;
	transition: background 0.2s;
}
.ohb-row + .ohb-row { margin-top: 2px !important; }
.ohb-row__day { font-weight: 550; text-transform: capitalize; }
.ohb-row__hours {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--ohb-muted);
}
.ohb-closed { color: var(--ohb-muted); opacity: 0.8; font-style: normal; }
.ohb-row.is-today {
	background: color-mix(in srgb, var(--ohb-accent) 11%, transparent);
	box-shadow: inset 3px 0 0 var(--ohb-accent);
}
.ohb-row.is-today .ohb-row__day,
.ohb-row.is-today .ohb-row__hours { color: var(--ohb-fg); font-weight: 650; }

.ohb-card--compact { padding: 16px; max-width: 360px; }
.ohb-card--compact .ohb-row { padding: 6px 10px; font-size: 14px; }

.ohb-specials {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--ohb-line);
}
.ohb-specials__title {
	margin: 0 0 8px !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ohb-muted);
}
.ohb-specials ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ohb-specials li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 10px;
	align-items: baseline;
	margin: 0 !important;
	padding: 5px 0;
	font-size: 14px;
}
.ohb-specials__date { font-weight: 600; font-variant-numeric: tabular-nums; }
.ohb-specials__label { color: var(--ohb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ohb-specials__hours { color: var(--ohb-muted); font-variant-numeric: tabular-nums; text-align: right; }
.ohb-specials__hours.is-closed { color: var(--ohb-closed); font-weight: 600; }

/* Fallback for browsers without color-mix(). */
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.ohb-badge { background: var(--ohb-soft); border-color: var(--ohb-line); }
	.ohb-card__icon, .ohb-row.is-today { background: var(--ohb-soft); }
	.ohb-note { background: var(--ohb-soft); border-color: var(--ohb-line); }
}
