/*
 * Public index ("informa la hora") — matches mockups/public_index.html.
 *
 * The page is wrapped in the standard lib/wrapper.tpl, which puts the content
 * in <main class="col ml-sm-auto px-4 py-2 overflow-auto h-100">, so the
 * centered column here sits inside that scrolling container.
 *
 * @author Jordan Skoblenick <parkinglotlust@gmail.com> 2026-09-13
 */
:root {
	--bg: #fff;
	--ink: #18181b;
	--muted: #71717a;
	--line: #ececee;
	--soft: #f6f6f7;
	--accent: #0f766e;
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}

.wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 10px 0 30px;
}

header h1 {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0;
}

header p {
	color: var(--muted);
	font-size: 14px;
	margin-top: 6px;
}

.rule {
	height: 1px;
	background: var(--line);
	margin: 28px 0 6px;
}

.intro {
	margin-bottom: 14px;
	padding: 15px 16px;
	background: var(--soft);
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.intro .t {
	font-size: 15px;
	font-weight: 600;
}

.intro .s {
	color: var(--muted);
	font-size: 13px;
}

.intro .grow {
	flex: 1;
}

.sect {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 24px 2px 6px;
}

/* scoped to #list so this (meant for the jingle rows) does not leak onto the
   wrapper's <div class="row h-100">, which would make <main> a flex item that
   shrink-wraps and prevent .wrap from centering */
#list .row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 2px;
	border-bottom: 1px solid var(--line);
}

#list .row:last-child {
	border-bottom: 0;
}

.time {
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	min-width: 52px;
	font-weight: 500;
}

.type {
	color: var(--muted);
	font-size: 14px;
	flex: 1;
}

.actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.play {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: opacity .12s;
	flex: 0 0 auto;
}

.play svg {
	width: 14px;
	height: 14px;
	fill: #fff;
}

.play:hover {
	opacity: .85;
}

.play:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.play .pause {
	display: none;
}

.play.on {
	background: var(--accent);
	border-color: var(--accent);
}

.play span {
	padding-top:4px;
}

.play.on .tri {
	display: none;
}

.play.on .pause {
	display: block;
}

.mini {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.mini svg {
	width: 11px;
	height: 11px;
	fill: var(--ink);
}

.mini:hover {
	border-color: var(--ink);
}

.mini.on {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.mini.on svg {
	fill: #fff;
}

.vlabel {
	font-size: 11px;
	color: var(--muted);
}

.none {
	color: var(--muted);
	font-size: 13px;
	font-style: italic;
}

.foot {
	margin-top: 32px;
	color: var(--muted);
	font-size: 12px;
}

/* The wrapper injects a Bootstrap #modal-spinner on every page. Bootstrap
   normally keeps it hidden (.modal{display:none}); this page only loads
   index.css and never opens it, so hide it here. */
#modal-spinner {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
