/* Public pool status page — standalone, no theme dependencies. */

:root {
	--pool-bg: #0f172a;
	--pool-card: #ffffff;
	--pool-ink: #0f172a;
	--pool-muted: #64748b;
	--pool-accent: #2e9e4f;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body.pool {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	background: var(--pool-bg);
	color: var(--pool-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Accent colour driven by current status. */
body.pool[data-status="open"] { --pool-accent: #2e9e4f; }
body.pool[data-status="getting_busy"] { --pool-accent: #e3a008; }
body.pool[data-status="nearly_full"] { --pool-accent: #e8730c; }
body.pool[data-status="at_capacity"] { --pool-accent: #d6332e; }
body.pool[data-status="closed_for_break"],
body.pool[data-status="closed"],
body.pool[data-status="closed_today"] { --pool-accent: #6b7280; }

.pool__card {
	width: 100%;
	max-width: 440px;
	background: var(--pool-card);
	border-radius: 24px;
	padding: 40px 28px;
	text-align: center;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
	border-top: 8px solid var(--pool-accent);
}

.pool__logo {
	display: block;
	max-width: 160px;
	max-height: 80px;
	width: auto;
	height: auto;
	margin: 0 auto 24px;
	object-fit: contain;
}

.pool__eyebrow {
	margin: 0 0 36px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pool-muted);
}

.pool__desc {
	margin: 18px 0 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--pool-ink);
}

.pool__desc:empty {
	display: none;
}

.pool__badge {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 28px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pool-accent) 12%, white);
	color: var(--pool-accent);
}

.pool__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pool-accent);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--pool-accent) 60%, transparent);
	animation: pool-pulse 2.4s ease-out infinite;
}

body.pool[data-status="closed"] .pool__dot,
body.pool[data-status="closed_for_break"] .pool__dot,
body.pool[data-status="closed_today"] .pool__dot {
	animation: none;
}

@keyframes pool-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pool-accent) 55%, transparent); }
	70% { box-shadow: 0 0 0 14px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

.pool__label {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.1;
}

.pool__hours {
	margin: 42px 0 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--pool-ink);
}

.pool__hours.is-closed {
	color: var(--pool-muted);
}

/* Manual maintenance closure — opening/peak hours don't apply today. */
body.pool[data-status="closed_today"] .pool__hours,
body.pool[data-status="closed_today"] .pool__peak {
	display: none;
}

.pool__peak {
	margin: 8px 0 0;
	font-size: 0.9375rem;
	color: var(--pool-muted);
}

.pool__updated {
	margin: 36px 0 0;
	font-size: 0.75rem;
	color: var(--pool-muted);
	min-height: 1.25em;
}

.pool__refresh {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 20px auto 0;
	padding: 10px 20px;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--pool-muted);
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pool__refresh:hover {
	color: var(--pool-ink);
	border-color: #cbd5e1;
	background: #f8fafc;
}

.pool__refresh:active {
	transform: scale(0.97);
}

.pool__refresh-icon {
	display: inline-block;
	font-size: 1.125rem;
	line-height: 1;
}

.pool__refresh.is-refreshing {
	pointer-events: none;
	opacity: 0.7;
}

.pool__refresh.is-refreshing .pool__refresh-icon {
	animation: pool-spin 0.7s linear infinite;
}

@keyframes pool-spin {
	to { transform: rotate(360deg); }
}

/* More info (native disclosure) */
.pool__info {
	width: 100%;
	max-width: 440px;
}

.pool__info-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	cursor: pointer;
	list-style: none;
	text-align: center;
	transition: background 0.15s, border-color 0.15s;
}

.pool__info-toggle::-webkit-details-marker {
	display: none;
}

.pool__info-toggle:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.3);
}

.pool__info-chevron {
	font-size: 1.25rem;
	transition: transform 0.2s;
}

.pool__info[open] .pool__info-chevron {
	transform: rotate(180deg);
}

.pool__info-card {
	margin-top: 16px;
	background: var(--pool-card);
	border-radius: 20px;
	padding: 28px 28px 6px;
	text-align: left;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
	animation: pool-info-in 0.2s ease-out;
}

@keyframes pool-info-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.pool__info-section {
	margin: 0 0 22px;
}

.pool__info-section h2 {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--pool-ink);
}

.pool__info-section p {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #475569;
}

.pool__info-section ul {
	margin: 0 0 12px;
	padding-left: 20px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #475569;
}

.pool__info-section li {
	margin-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.pool__dot,
	.pool__refresh.is-refreshing .pool__refresh-icon,
	.pool__info-card {
		animation: none;
	}
}

@media (min-width: 900px) {
	.pool__refresh {
		font-size: 1.0625rem;
		padding: 12px 26px;
	}
}

/* Reception screen / large display — scale everything up. */
@media (min-width: 900px) {
	.pool__card {
		max-width: 640px;
		padding: 64px 48px;
		border-radius: 32px;
	}

	.pool__logo { max-width: 220px; max-height: 110px; margin-bottom: 32px; }
	.pool__eyebrow { font-size: 1rem; }
	.pool__badge { padding: 22px 40px; gap: 18px; }
	.pool__dot { width: 22px; height: 22px; }
	.pool__label { font-size: 2.75rem; }
	.pool__desc { font-size: 1.375rem; }
	.pool__hours { font-size: 1.5rem; }
	.pool__peak { font-size: 1.125rem; }
	.pool__updated { font-size: 0.8125rem; }

	.pool__info { max-width: 640px; }
	.pool__info-toggle { font-size: 1.0625rem; padding: 15px 28px; }
	.pool__info-card { padding: 40px 40px 12px; }
	.pool__info-section h2 { font-size: 1.25rem; }
	.pool__info-section p,
	.pool__info-section ul { font-size: 1.0625rem; }
}
