/* ==========================================================================
   Rally theme
   Night-court palette: deep green-black ground, chalk lines, optic accents.
   ========================================================================== */

:root {
	--accent: #C8F25A;
	--accent-rgb: 200, 242, 90;
	--ink: #0D1512;
	--bg: #0D1512;
	--bg-2: #121C18;
	--bg-3: #0A110E;
	--card: #17231E;
	--text: #F2F5EF;
	--muted: #B7C4BC;
	--faint: #8FA197;
	--line: rgba(242, 245, 239, 0.1);
	--padel: #5AB4FF;
	--pickle: #C8F25A;
	--tennis: #FF8A4C;
	--display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
	--body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1240px;
	--gutter: 24px;
	--radius: 22px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	background-image: radial-gradient(1200px 520px at 85% -10%, rgba(var(--accent-rgb), .07), transparent 60%);
	background-repeat: no-repeat;
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img,
svg,
video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px;
	background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
	margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow--sport { color: var(--c, var(--accent)); }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform .18s ease, background .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 12px 30px rgba(var(--accent-rgb), .3); }
.btn--accent:hover { color: var(--ink); box-shadow: 0 16px 36px rgba(var(--accent-rgb), .4); }
.btn--ghost { border-color: rgba(242, 245, 239, .22); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--dark:hover { color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--text);
}
.link-arrow::after { content: '→'; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

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

.site-header {
	position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled {
	background: rgba(13, 21, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__ball {
	position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
	box-shadow: inset -5px -5px 0 rgba(0, 0, 0, .2); overflow: hidden; transition: transform .6s var(--ease);
}
.brand__ball::after {
	content: ''; position: absolute; left: -10px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .7);
}
.brand:hover .brand__ball { transform: rotate(200deg); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu li { position: relative; }
.site-nav .menu a { color: #C9D4CD; text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; }
.site-nav .menu a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a { color: var(--text); }
.site-nav .menu a:hover::after,
.site-nav .menu .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 200px; list-style: none; margin: 8px 0 0; padding: 10px 16px;
	background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .2s ease;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-header__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }

.nav-toggle {
	display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 12px; margin: 0 auto; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 10px; }
.nav-open .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.site-nav {
		position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: stretch; gap: 24px; padding: 28px var(--gutter);
		background: var(--bg); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); overflow-y: auto;
	}
	.admin-bar .site-nav { top: 122px; }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 14px 0; font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); }
	.site-nav .menu a::after { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 16px; margin: 0; }
	.nav-open { overflow: hidden; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .site-nav { top: 122px; }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-end; justify-content: space-between; }
.hero__copy { flex: 1 1 600px; min-width: 0; }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.sport-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(242, 245, 239, .14);
	font-size: 13px; color: #C9D4CD;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.hero__title {
	margin: 0; font-weight: 800; font-size: clamp(48px, 8vw, 112px); line-height: .92; letter-spacing: -0.045em; max-width: 11ch;
}
.underline {
	color: var(--accent); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
	background-position: 0 94%; background-size: 0% 8px; animation: rallyUnder 1.1s .6s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes rallyUnder { to { background-size: 100% 8px; } }
.hero__aside { flex: 1 1 340px; max-width: 440px; }
.hero__lede { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.hero__stats > div { padding: 12px 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.hero__stats dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero__stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.hero__stats .hero__hours { font-size: 15px; font-family: var(--body); font-weight: 600; padding-top: 6px; }

/* Faint court lines drawing themselves behind the hero. */
.hero__court { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.hero__line { position: absolute; background: rgba(242, 245, 239, .07); }
.hero__line--a { left: 0; right: 0; top: 30%; height: 1px; transform-origin: left; animation: rallyDraw 1.6s .2s var(--ease) both; }
.hero__line--b { left: 0; right: 0; bottom: 18%; height: 1px; transform-origin: right; animation: rallyDraw 1.6s .4s var(--ease) both; }
.hero__line--net { top: 0; bottom: 0; right: 28%; width: 1px; transform-origin: top; animation: rallyDrawY 1.4s .6s var(--ease) both; }
@keyframes rallyDraw { from { transform: scaleX(0); } }
@keyframes rallyDrawY { from { transform: scaleY(0); } }
.hero__ball {
	position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #E6FF4D; box-shadow: 0 0 22px rgba(230, 255, 77, .6);
	animation: rallyHeroBall 7s ease-in-out infinite;
}
@keyframes rallyHeroBall {
	0% { left: 62%; top: 82%; }
	25% { left: 72%; top: 18%; }
	50% { left: 92%; top: 64%; }
	75% { left: 80%; top: 26%; }
	100% { left: 62%; top: 82%; }
}

/* ---------- ticker ---------- */

.ticker-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-3); }
.ticker-band:empty { display: none; }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--tight { padding-top: 32px; padding-bottom: 88px; }
.section--book { padding: 56px 0 72px; }
.section__head { margin-bottom: 36px; max-width: 760px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; }
.section__title { margin: 0; font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.035em; }

.plugin-missing {
	padding: 48px; border-radius: 28px; border: 2px dashed rgba(var(--accent-rgb), .4); background: var(--bg-2); text-align: center;
}
.plugin-missing p { color: var(--muted); }

/* sport cards */
.sport-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sport-card {
	display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
	transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.sport-card:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.sport-card__art { padding: 28px 28px 8px; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .06), transparent 60%); }
.sport-card__body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sport-card__name { margin: 0; font-weight: 800; font-size: 36px; color: var(--c); }
.sport-card__body p { color: var(--muted); margin: 0; }
.sport-card__facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.sport-card__facts li { padding: 4px 10px; border-radius: 999px; background: var(--bg-3); font-family: var(--mono); font-size: 12px; color: #C9D4CD; }
.sport-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.sport-card__count { font-family: var(--mono); font-size: 13px; color: var(--faint); }

.court-svg { display: block; width: 100%; height: auto; }
.court-svg__ball { animation: rallySvgBall 3s ease-in-out infinite; }
@keyframes rallySvgBall {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(60px, -50px); }
	50% { transform: translate(130px, -10px); }
	75% { transform: translate(60px, -40px); }
}

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature h3 { margin: 16px 0 8px; font-family: var(--body); font-size: 20px; letter-spacing: 0; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* memberships */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.tier {
	position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 26px;
	background: var(--bg-2); border: 1px solid var(--line);
}
.tier--featured { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tier__badge {
	position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--accent);
	font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.tier__name { margin: 0; font-size: 22px; font-family: var(--body); letter-spacing: 0; }
.tier__price { margin: 0; }
.tier__price strong { font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.04em; }
.tier__price span { color: var(--faint); }
.tier--featured .tier__price span { color: rgba(13, 21, 18, .7); }
.tier__perks { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tier__perks li { position: relative; padding-left: 26px; }
.tier__perks li::before {
	content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
	border: 2px solid var(--accent);
}
.tier--featured .tier__perks li::before { border-color: var(--ink); background: var(--ink); }
.tier .btn { margin-top: auto; }
.tier--featured .btn--accent { background: var(--ink); color: var(--accent); box-shadow: none; }

/* cards (posts) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
	display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
	transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card__title { margin: 0; font-size: 22px; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.entry-meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.entry-meta a { color: var(--faint); }

.post-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 8% 12%; }
.post-art--padel { background: radial-gradient(circle at 30% 20%, rgba(90, 180, 255, .25), transparent 60%), var(--bg-3); }
.post-art--pickleball { background: radial-gradient(circle at 70% 20%, rgba(200, 242, 90, .2), transparent 60%), var(--bg-3); }
.post-art--tennis { background: radial-gradient(circle at 50% 90%, rgba(255, 138, 76, .25), transparent 60%), var(--bg-3); }

/* visit band */
.visit { padding: 0 0 96px; }
.visit__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 32px;
	background: var(--accent); color: var(--ink);
}
.visit .eyebrow { color: rgba(13, 21, 18, .7); }
.visit__title { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; }
.visit__address { margin: 8px 0 0; font-weight: 600; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg-3); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__brand p { margin-top: 14px; color: var(--muted); max-width: 34ch; }
.site-footer__title { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer p { margin: 0 0 8px; font-size: 15px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px;
	border-top: 1px solid var(--line); font-size: 13px; color: var(--faint);
}
@media (max-width: 820px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- inner pages ---------- */

.page-hero { padding: 56px 0 24px; }
.page-hero__title { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.04em; max-width: 18ch; }
.page-hero__lede { margin: 16px 0 0; max-width: 60ch; font-size: 19px; color: var(--muted); }
.page-hero--post .entry-meta { margin-bottom: 14px; }

.single-post__media { margin: 12px 0 36px; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-3); }
.single-post__media img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 18px; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull,
.entry-content > .rally-booking,
.entry-content > .rb-open-games { max-width: none; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { margin-top: 1.4em; font-size: 24px; }
.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
	font-family: var(--display); font-size: 26px; line-height: 1.3; letter-spacing: -0.01em;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; padding: 14px 24px; }
.entry-content .wp-block-columns { gap: 20px; }
.entry-content .wp-block-column.is-style-card,
.entry-content .rally-panel { padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--bg-2);
	font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none;
}

.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.post-nav a { display: block; padding: 20px; border-radius: 18px; background: var(--bg-2); color: var(--text); text-decoration: none; font-weight: 700; }
.post-nav a span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.post-nav .nav-next { text-align: right; grid-column: 2; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(242, 245, 239, .16);
	background: var(--bg-3); color: var(--text); font: inherit;
}
.comment-form input[type="submit"],
.search-form button,
.search-form input[type="submit"] {
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

.empty-state,
.not-found { text-align: center; padding: 56px 0; }
.empty-state .search-form { max-width: 480px; margin: 24px auto 0; }
.not-found { padding: 96px 0 120px; }
.not-found .page-hero__title,
.not-found .page-hero__lede { margin-left: auto; margin-right: auto; }
.not-found .btn-row { justify-content: center; margin-top: 28px; }
.not-found__score {
	display: inline-block; margin-bottom: 24px; padding: 10px 18px; border-radius: 12px; background: var(--accent); color: var(--ink);
	font-family: var(--mono); font-weight: 700; font-size: 22px; animation: rallyPop .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes rallyPop { from { opacity: 0; transform: scale(.6); } }

/* courts archive & single */
.court-group { margin-bottom: 56px; }
.court-group__title { display: flex; align-items: center; gap: 12px; font-size: 32px; }
.court-group__title .dot { width: 12px; height: 12px; }
.court-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.court-card {
	display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius); background: var(--bg-2);
	border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .3s var(--ease), border-color .3s;
}
.court-card:hover { transform: translateY(-4px); border-color: var(--c); color: var(--text); }
.court-card .court-svg { margin-bottom: 6px; }
.court-card__name { font-weight: 700; font-size: 19px; }
.court-card__meta { color: var(--muted); font-size: 14px; }
.court-card__status { font-family: var(--mono); font-size: 12px; color: var(--c); }
.court-card__status.is-closed { color: var(--faint); }
.court-single__hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.court-single__hero > div:first-child { flex: 1 1 420px; }
.court-single__art { flex: 1 1 360px; max-width: 520px; }
.court-single__facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.court-single__facts li { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }

/* widgets */
.widget { margin-bottom: 32px; }
.widget-title { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- reveal ---------- */

.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.visit__inner { padding: 32px 24px; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.post-nav .nav-next { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.underline { background-size: 100% 8px; }
}
