/* Venue OS — public styles.
   Mobile first. Every colour comes from a token so a venue rebrands by editing
   config, never CSS. System font stack on purpose: the host is far from the
   Philippines and a webfont round trip costs more than it returns here. */

*, *::before, *::after { box-sizing: border-box; }

.vos-body {
	margin: 0;
	background: var(--vos-surface);
	color: var(--vos-ink);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.vos-shell {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.vos-skip {
	position: absolute;
	left: -9999px;
}
.vos-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	background: var(--vos-ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.vos-header {
	border-bottom: 1px solid var(--vos-line);
	background: var(--vos-surface);
	position: sticky;
	top: 0;
	z-index: 20;
}

.vos-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand account" "nav nav";
	align-items: center;
	gap: 10px 16px;
	min-height: 64px;
}

.vos-brand   { grid-area: brand; }
.vos-nav     { grid-area: nav; }

.vos-account-btn {
	grid-area: account;
	justify-self: end;
	white-space: nowrap;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--vos-line);
	color: var(--vos-ink);
	background: #fff;
}
.vos-account-btn:hover { border-color: var(--vos-primary); color: var(--vos-primary-ink); }

.vos-brand { text-decoration: none; }

.vos-brand__mark {
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.02em;
	color: var(--vos-ink);
}

.vos-nav {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 0 -20px;
	padding: 0 20px 8px;
}
.vos-nav::-webkit-scrollbar { display: none; }

.vos-nav__link {
	white-space: nowrap;
	text-decoration: none;
	color: var(--vos-muted);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: 999px;
}
.vos-nav__link:hover { color: var(--vos-ink); }
.vos-nav__link.is-current {
	color: var(--vos-primary-ink);
	background: var(--vos-primary-wash);
}
.vos-nav__soon {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vos-muted);
	margin-left: 6px;
}

/* ------------------------------------------------------------------ type */

.vos-main { min-height: 60vh; padding: 28px 0 56px; }

.vos-h1 {
	font-size: clamp(28px, 7vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 800;
	margin: 0 0 12px;
}

.vos-lede {
	font-size: 17px;
	color: var(--vos-muted);
	max-width: 54ch;
	margin: 0 0 24px;
}

/* --------------------------------------------------------------- buttons */

.vos-btn {
	display: inline-block;
	background: var(--vos-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 22px;
	border-radius: var(--vos-radius);
	border: 0;
	cursor: pointer;
}
.vos-btn:hover { filter: brightness(0.94); }

.vos-btn--quiet {
	background: transparent;
	color: var(--vos-ink);
	border: 1px solid var(--vos-line);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--vos-primary);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- pending */

.vos-pending { padding: 48px 20px 64px; }

.vos-pending .vos-lede { margin-bottom: 28px; }

/* ------------------------------------------------------------- footer */

.vos-footer {
	border-top: 1px solid var(--vos-line);
	padding: 28px 0 40px;
	background: var(--vos-surface);
}

.vos-footer p { margin: 0 0 4px; }

.vos-footer__name { font-weight: 800; letter-spacing: -0.01em; }

.vos-footer__addr { color: var(--vos-muted); font-size: 14px; }

.vos-footer__powered {
	margin-top: 14px;
	font-size: 12px;
	color: var(--vos-muted);
	letter-spacing: 0.01em;
}
.vos-footer__powered a { color: var(--vos-muted); text-decoration: underline; text-underline-offset: 2px; }
.vos-footer__powered a:hover { color: var(--vos-ink); }

/* ---------------------------------------------------------------- tablet */

@media (min-width: 720px) {
	.vos-header__inner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "brand nav account";
		min-height: 72px;
	}
	.vos-nav { margin: 0; padding: 0; overflow: visible; }
	.vos-main { padding: 40px 0 72px; }
}

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

/* ---------------------------------------------------------------- account */

.vos-account { padding-bottom: 48px; }

.vos-h2 { font-size: 19px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }

.vos-cols { display: grid; gap: 20px; }

.vos-card {
	border: 1px solid var(--vos-line);
	border-radius: var(--vos-radius);
	padding: 22px;
	background: var(--vos-surface);
}

.vos-field { display: block; margin-bottom: 16px; }

.vos-field > span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.vos-field > span em {
	font-style: normal;
	font-weight: 400;
	color: var(--vos-muted);
}

.vos-field input {
	width: 100%;
	font: inherit;
	padding: 12px 14px;
	border: 1px solid var(--vos-line);
	border-radius: 10px;
	background: #fff;
	color: var(--vos-ink);
}

.vos-field input:focus-visible {
	outline: 3px solid var(--vos-primary);
	outline-offset: 1px;
	border-color: var(--vos-primary);
}

.vos-fine { font-size: 13px; color: var(--vos-muted); margin: 14px 0 0; }

.vos-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--vos-muted);
	text-decoration: underline;
	cursor: pointer;
}

.vos-note {
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	margin: 0 0 24px;
}
.vos-note--ok  { background: var(--vos-primary-wash); color: var(--vos-primary-ink); }
.vos-note--bad { background: #FEF2F2; color: #991B1B; }

@media (min-width: 720px) {
	.vos-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ------------------------------------------------------------ leaderboard */

.vos-highlights { display: grid; gap: 12px; margin: 24px 0 8px; }

.vos-hl {
	border: 1px solid var(--vos-line);
	border-radius: var(--vos-radius);
	padding: 16px 18px;
	background: var(--vos-primary-wash);
}
.vos-hl__label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.07em; color: var(--vos-primary-ink); }
.vos-hl__name  { margin: 6px 0 2px; font-size: 18px; font-weight: 700; }
.vos-hl__stat  { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.vos-hl__sub   { margin: 0; font-size: 12px; color: var(--vos-muted); }

.vos-filters { margin: 20px -20px 8px; padding: 0 20px; }
.vos-filters__row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.vos-filters__row::-webkit-scrollbar { display: none; }

.vos-chip {
	white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 600;
	padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--vos-line); color: var(--vos-muted); background: #fff;
}
.vos-chip.is-on { background: var(--vos-primary); border-color: var(--vos-primary); color: #fff; }

.vos-tablewrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }

.vos-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vos-table caption { caption-side: bottom; text-align: left; padding-top: 12px; }
.vos-table th {
	text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--vos-muted); font-weight: 700; padding: 10px 12px;
	border-bottom: 1px solid var(--vos-line); white-space: nowrap;
}
.vos-table td { padding: 12px; border-bottom: 1px solid var(--vos-line); white-space: nowrap; }
.vos-table tbody tr:nth-child(-n+3) { background: var(--vos-primary-wash); }

.vos-rank { font-weight: 800; width: 40px; }
.vos-num  { text-align: right; font-variant-numeric: tabular-nums; }
.vos-up   { color: #15803D; font-weight: 700; }
.vos-down { color: #B91C1C; font-weight: 700; }

.vos-plink { color: var(--vos-ink); text-decoration: none; font-weight: 600; }
.vos-plink:hover { text-decoration: underline; }
.vos-sub { display: block; font-size: 12px; color: var(--vos-muted); font-weight: 400; }

.vos-list { margin: 0; padding-left: 20px; }
.vos-list li { margin-bottom: 8px; }

.vos-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 24px; }
.vos-stat {
	border: 1px solid var(--vos-line); border-radius: var(--vos-radius);
	padding: 14px 16px; text-align: center;
}
.vos-stat__n { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.vos-stat__l { display: block; font-size: 12px; color: var(--vos-muted); margin-top: 2px; }

/* ------------------------------------------------------------------- home */

.vos-hero { padding: 44px 0 40px; background: var(--vos-primary-wash); }
.vos-hero__h { margin: 0 0 12px; font-size: clamp(34px, 10vw, 60px); line-height: 1.02;
	letter-spacing: -0.035em; font-weight: 800; }
.vos-hero__p { margin: 0 0 24px; font-size: 17px; color: var(--vos-muted); }
.vos-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.vos-band { padding: 36px 20px; }
.vos-band--tint { background: var(--vos-primary-wash); border-radius: var(--vos-radius); }

@media (min-width: 720px) {
	.vos-highlights { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.vos-stats { grid-template-columns: repeat(4, 1fr); }
	.vos-hero { padding: 72px 0 64px; }
}

/* ---------------------------------------------------------------- booking */

.vos-weeknav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.vos-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.vos-grid th {
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
	color: var(--vos-muted); font-weight: 700; padding: 6px 4px; white-space: nowrap;
}
.vos-grid thead th span { display: block; font-size: 10px; }
.vos-grid tbody th { text-align: right; padding-right: 10px; white-space: nowrap; }
.vos-grid td { padding: 2px; }

.vos-cell {
	display: block; width: 100%; min-width: 34px; height: 26px;
	border-radius: 5px; border: 0; padding: 0;
}
i.vos-cell { display: inline-block; width: 20px; height: 14px; vertical-align: -2px; }

.vos-cell.is-open    { background: var(--vos-primary-wash); border: 1px solid var(--vos-primary); cursor: pointer; }
.vos-cell.is-open:hover  { background: var(--vos-primary); }
.vos-cell.is-picked  { background: var(--vos-primary); box-shadow: 0 0 0 2px var(--vos-ink); }
.vos-cell.is-taken   { background: #E5E7EB; }
/* Claimed but not paid for. Distinct from confirmed, because it can lapse. */
.vos-cell.is-held,
.vos-cell.is-checkout { background: #FEF3C7; color: #92400E; }
.vos-cell.is-onhold  { background: #FEF3C7; color: #92400E; }
.vos-cell.is-blocked,
.vos-cell.is-maintenance { background: repeating-linear-gradient(45deg, #E5E7EB, #E5E7EB 3px, #F9FAFB 3px, #F9FAFB 6px); }
.vos-cell.is-open_play  { background: #FDE68A; }
.vos-cell.is-training,
.vos-cell.is-coaching   { background: #DBEAFE; }
.vos-cell.is-tournament { background: #E9D5FF; }
.vos-cell.is-released   { background: var(--vos-primary-wash); }

/* A cell that says what it is, and can be tapped when it is joinable. */
.vos-cell.has-label {
	display: flex; align-items: center; justify-content: center;
	min-width: 74px; padding: 0 4px; text-decoration: none; color: var(--vos-ink);
	font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center;
	overflow: hidden;
}
.vos-cell.has-label > span {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.vos-cell.has-label { cursor: pointer; }
a.vos-cell.has-label:hover { filter: brightness(0.95); text-decoration: underline; }
.vos-cell.is-reserved_court { background: repeating-linear-gradient(-45deg, #DBEAFE, #DBEAFE 3px, #F8FAFC 3px, #F8FAFC 6px); }
.vos-cell.is-past,
.vos-cell.is-beyond,
.vos-cell.is-closed  { background: #F9FAFB; }

.vos-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px;
	font-size: 13px; color: var(--vos-muted); }

.vos-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* --------------------------------------------------------------- payments */

.vos-pay {
	margin-top: 16px; padding-top: 16px;
	border-top: 1px solid var(--vos-line);
}
.vos-pay .vos-list { margin-bottom: 18px; }
.vos-pay input[type="file"] { padding: 10px 0; border: 0; }

/* ------------------------------------------------------------- activities */

.vos-tag {
	display: inline-block;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
	padding: 4px 10px; border-radius: 999px;
	background: var(--vos-primary-wash); color: var(--vos-primary-ink);
}

/* ---------------------------------------------------------- owner console */

.vos-console__head { margin-bottom: 20px; }
.vos-console__h {
	font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
	color: var(--vos-muted); font-weight: 700; margin: 30px 0 10px;
}

.vos-alert {
	border: 1px solid #FCA5A5; background: #FEF2F2;
	border-radius: var(--vos-radius); padding: 16px 18px; margin-bottom: 20px;
}
.vos-alert__title { margin: 0 0 6px; font-weight: 800; color: #991B1B; }
.vos-alert ul { margin: 0; padding-left: 18px; color: #7F1D1D; font-size: 14px; }
.vos-alert li { margin-bottom: 4px; }

.vos-meter { height: 14px; background: #E5E7EB; border-radius: 999px; overflow: hidden; }
.vos-meter > span { display: block; height: 100%; background: var(--vos-primary); }

.vos-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.vos-checks { display: flex; gap: 14px; flex-wrap: wrap; }
.vos-checks label { font-size: 14px; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.vos-checks input { width: auto; }

.vos-field select {
	width: 100%; font: inherit; padding: 12px 14px;
	border: 1px solid var(--vos-line); border-radius: 10px; background: #fff; color: var(--vos-ink);
}

.vos-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.vos-slotchip {
	font-size: 12px; padding: 5px 10px; border-radius: 6px;
	background: #F3F4F6; color: var(--vos-ink); white-space: nowrap;
}
.vos-slotchip.is-rental, .vos-slotchip.is-released { background: #DCFCE7; }
.vos-slotchip.is-open_play { background: #FDE68A; }
.vos-slotchip.is-training, .vos-slotchip.is-coaching { background: #DBEAFE; }
.vos-slotchip.is-tournament { background: #E9D5FF; }
.vos-slotchip.is-pending, .vos-slotchip.is-hold { background: #FEF3C7; }

.vos-console .vos-card { margin-bottom: 14px; }
.vos-console .vos-stats { margin-bottom: 14px; }

/* ------------------------------------------------------------ account tabs */

.vos-tabs {
	display: inline-flex; gap: 4px; padding: 4px;
	background: #F3F4F6; border-radius: 999px; margin-bottom: 18px;
}
.vos-tabs a {
	text-decoration: none; font-size: 14px; font-weight: 700;
	padding: 8px 18px; border-radius: 999px; color: var(--vos-muted);
}
.vos-tabs a.is-on { background: #fff; color: var(--vos-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* -------------------------------------------------------------- console nav */

.vos-conav {
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
	margin: 0 -20px 20px; padding: 0 20px 10px;
	border-bottom: 1px solid var(--vos-line);
}
.vos-conav::-webkit-scrollbar { display: none; }
.vos-conav a {
	white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 700;
	padding: 9px 14px; border-radius: 999px; color: var(--vos-muted);
}
.vos-conav a.is-on { background: var(--vos-primary); color: #fff; }

.vos-dot {
	display: inline-block; width: 7px; height: 7px; border-radius: 50%;
	background: #DC2626; vertical-align: 3px; margin-left: 4px;
}

.vos-mini { width: 100%; font: inherit; font-size: 14px; padding: 9px 11px;
	border: 1px solid var(--vos-line); border-radius: 8px; background: #fff; }

/* ---------------------------------------------------------------- extras */

.vos-extras { margin: 6px 0 18px; }

.vos-extra {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
	padding: 12px 0; border-bottom: 1px solid var(--vos-line);
}
.vos-extra__name { font-weight: 600; font-size: 15px; }
.vos-extra__name .vos-fine { display: block; font-weight: 400; }
.vos-extra__price { font-size: 14px; color: var(--vos-muted); white-space: nowrap; }
.vos-extra select { width: auto; min-width: 64px; padding: 8px 10px; }
