/*
Theme Name:   Tiebreakers
Theme URI:    https://tiebreakers.com
Description:  GeneratePress child theme for tiebreakers.com. Brand styles, header and footer live here; page layouts are built with GenerateBlocks using the tb- classes below.
Author:       Tiebreakers (HeadCase LLC)
Template:     generatepress
Version:      0.3.0
Requires PHP: 8.1
Text Domain:  tiebreakers
*/

/* ==========================================================================
   1. Tokens — copied from the Tiebreakers design system (tokens.json).
   Dark is the default. Add class "tb-light" to any section for the light theme.
   ========================================================================== */
:root {
	--tb-blue: #0564ff;
	--tb-blue-hover: #0450d1;
	--tb-gold: #eec76e;
	--tb-charcoal: #212322;
	--on-blue: #ffffff;
	--on-gold: #212322;

	--surface: #212322;
	--surface-raised: #2b2e2d;
	--surface-sunken: #1a1c1b;
	--ink: #ffffff;
	--ink-muted: #c4c7c5;
	--link: #6aa2ff;
	--border-subtle: #3d403f;
	--border-strong: #8a8e8c;
	--focus-ring: #eec76e;
	--accent-text: #6aa2ff;

	--font-sans: "Jost", "Futura PT", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-label: "Open Sans", "Futura PT Cond", "Arial Narrow", sans-serif;

	--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
	--space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
	--radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;
	--shadow-glow: 0 0 0 2px #0564ff, 0 12px 32px rgba(5, 100, 255, 0.35);
	--tb-max: 1200px;
}
.tb-light {
	--surface: #ffffff;
	--surface-raised: #f4f4f2;
	--surface-sunken: #f4f4f2;
	--ink: #212322;
	--ink-muted: #5a5d5c;
	--link: #0450d1;
	--border-subtle: #e2e3e1;
	--border-strong: #7d817f;
	--focus-ring: #0450d1;
	--accent-text: #0450d1;
	background: var(--surface);
	color: var(--ink);
}
.tb-surface-raised { background: var(--surface-raised); }

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 26px;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
a:hover, a:focus { color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: inherit; margin-bottom: 0.5em; }
h1 { font-size: 48px; line-height: 52px; }
h2 { font-size: 36px; line-height: 42px; }
h3 { font-size: 24px; line-height: 30px; }
p { margin-bottom: 1em; }
img { height: auto; }

.tb-display-xl { font-size: 64px; line-height: 68px; letter-spacing: -0.01em; font-weight: 600; }
.tb-lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.tb-small { font-size: 14px; line-height: 20px; }
.tb-muted { color: var(--ink-muted); }
.tb-label, .tb-eyebrow {
	font-family: var(--font-label);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.tb-eyebrow { display: block; color: var(--accent-text); margin-bottom: var(--space-2); }
.tb-gold-text { color: var(--tb-gold); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 2px;
}

@media (max-width: 768px) {
	body { font-size: 17px; }
	h1 { font-size: 34px; line-height: 38px; }
	h2 { font-size: 28px; line-height: 34px; }
	.tb-display-xl { font-size: 40px; line-height: 44px; }
}

/* GeneratePress: let tb sections run full width; we size content with .tb-wrap. */
.tb-full .site-content { display: block; }
.tb-full .site.grid-container,
.tb-full .site-content .content-area { max-width: none; width: 100%; padding: 0; }
.tb-full .inside-article, .tb-full .site-main, .tb-full .separate-containers .inside-article { padding: 0; margin: 0; background: transparent; }
.tb-full .entry-content:not(:first-child) { margin-top: 0; }
.tb-full.separate-containers .site-main { margin: 0; }
.tb-full .site-content, .tb-full .site, .tb-full .inside-article { background: transparent; }
.tb-full .entry-header { display: none; }

.tb-wrap { max-width: var(--tb-max); margin-left: auto; margin-right: auto; padding-left: var(--space-12); padding-right: var(--space-12); }
.tb-section { padding-top: var(--space-24); padding-bottom: var(--space-24); }
@media (max-width: 768px) {
	.tb-wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
	.tb-section { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.tb-btn, .tb-button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
	min-height: 48px; padding: var(--space-3) var(--space-6);
	border: 2px solid transparent; border-radius: var(--radius-pill);
	font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	background: var(--tb-blue); color: var(--on-blue);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}
.tb-btn:hover, .tb-btn:focus, .tb-button:hover, .tb-button:focus { background: var(--tb-blue-hover); color: var(--on-blue); }
.tb-btn--gold, .tb-btn--gold:hover, .tb-btn--gold:focus { background: var(--tb-gold); color: var(--on-gold); }
.tb-btn--gold:hover { filter: brightness(1.06); }
.tb-btn--secondary, .tb-btn--secondary:focus { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.tb-btn--secondary:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.tb-btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.tb-btn svg { flex: none; }

/* ==========================================================================
   4. Cards, tags, stats, steps, FAQ
   ========================================================================== */
.tb-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.tb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-4); }

.tb-card {
	display: flex; flex-direction: column;
	background: var(--surface-raised); color: var(--ink);
	border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.tb-card:hover, .tb-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.tb-card__media { aspect-ratio: 16 / 9; background: var(--surface-sunken); overflow: hidden; }
.tb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); flex: 1; }
.tb-card__label { font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.tb-card__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; }
.tb-card__title a { color: inherit; text-decoration: none; }
.tb-card__key { font-weight: 600; }
.tb-card__text { margin: 0; color: var(--ink-muted); }
.tb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: auto; padding-top: var(--space-4); }

.tb-tag {
	display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3);
	border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
	font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 12px; line-height: 14px;
	letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}
.tb-tag--gold { background: var(--tb-gold); border-color: var(--tb-gold); color: var(--on-gold); }
.tb-tag--blue { border-color: var(--tb-blue); color: var(--accent-text); }

.tb-stats { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tb-stat { padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--border-subtle); }
.tb-stat__num { font-size: clamp(36px, 4vw, 48px); line-height: 1; font-weight: 600; white-space: nowrap; }
.tb-stat__num--gold { color: var(--tb-gold); }
.tb-stat__cap { margin-top: var(--space-2); font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.tb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tb-steps > li { display: flex; flex-direction: column; gap: var(--space-2); border-top: 2px solid var(--tb-blue); padding-top: 20px; color: var(--ink-muted); }
.tb-steps > li strong { font-size: 22px; line-height: 28px; color: var(--ink); }
.tb-steps > li::before { counter-increment: tb-step; content: counter(tb-step); font-size: 40px; line-height: 1; font-weight: 600; color: var(--accent-text); }
.tb-steps { counter-reset: tb-step; }
.tb-steps > li.is-gold { border-top-color: var(--tb-gold); }
.tb-steps > li.is-gold::before { color: var(--tb-gold); }
.tb-light .tb-steps > li.is-gold::before { color: var(--ink); }

/* FAQ: native <details> so it works without JavaScript. */
.tb-faq { border-top: 1px solid var(--border-subtle); }
.tb-faq details { border-bottom: 1px solid var(--border-subtle); }
.tb-faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
	padding: 20px 0; cursor: pointer; list-style: none;
	font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink);
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after { content: "+"; color: var(--accent-text); font-size: 28px; line-height: 1; font-weight: 400; }
.tb-faq details[open] summary::after { content: "\2212"; }
.tb-faq details > :not(summary) { margin: 0 0 20px; color: var(--ink-muted); max-width: 760px; }

/* Shortcode output from Tiebreakers Core */
.tb-hours { border-collapse: collapse; width: auto; margin: 0; }
.tb-hours th, .tb-hours td { padding: 2px 16px 2px 0; border: 0; text-align: left; font-weight: 400; color: var(--ink-muted); }
.tb-ended-notice { padding: 16px 20px; border: 1px solid var(--tb-gold); border-radius: var(--radius-md); }

/* Forms (Gravity Forms + simple forms) */
.tb-input, .gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper select, .gform_wrapper textarea {
	min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm);
	border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.gform_wrapper textarea { padding: var(--space-3) var(--space-4); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.tb-utility { background: var(--surface-sunken); border-bottom: 1px solid var(--border-subtle); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tb-utility__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.tb-utility__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.tb-utility__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-utility a { color: var(--ink); text-decoration: none; }
.tb-utility .tb-tag { border-color: var(--tb-gold); color: var(--tb-gold); }

.tb-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.admin-bar .tb-header { top: 32px; }
.tb-header .tb-wrap, .tb-utility .tb-wrap, .tb-footer .tb-wrap { max-width: 1440px; }
.tb-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.tb-logo { display: inline-flex; flex: none; }
.tb-logo svg { height: 44px; width: auto; display: block; }
.tb-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.tb-nav a { display: inline-block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; white-space: nowrap; }
.tb-nav a:hover, .tb-nav .current-menu-item > a, .tb-nav .current-menu-ancestor > a, .tb-nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--tb-blue); }
.tb-actions { display: flex; flex-wrap: nowrap; gap: var(--space-2); align-items: center; }
.tb-menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: transparent; color: var(--ink); padding: 0; }
.tb-menu-toggle:hover, .tb-menu-toggle:focus { background: transparent; color: var(--ink); }

/* Mobile: nav collapses, booking buttons move to a fixed bar at the bottom. */
.tb-actionbar { display: none; }
@media (max-width: 1240px) {
	.tb-header__in { flex-wrap: wrap; }
	.tb-menu-toggle { display: inline-flex; }
	.tb-header .tb-actions { display: none; }
	.tb-nav { display: none; width: 100%; order: 3; }
	.tb-nav.is-open { display: block; }
	.tb-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
	.tb-nav li { border-top: 1px solid var(--border-subtle); }
	.tb-nav a { display: block; padding: 14px 0; font-size: 20px; }
	.tb-nav a:hover, .tb-nav a[aria-current="page"] { box-shadow: none; }
	.tb-actionbar {
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
		padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom));
		background: var(--surface); border-top: 1px solid var(--border-subtle);
	}
	.tb-actionbar .tb-btn { min-height: 48px; padding: 8px 6px; font-size: 14px; white-space: normal; text-align: center; line-height: 1.15; }
	body { padding-bottom: 72px; }
}
@media (max-width: 600px) {
	.tb-utility .tb-hide-sm { display: none; }
	.tb-logo svg { height: 36px; }
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.tb-footer { background: var(--surface-sunken); border-top: 1px solid var(--border-subtle); padding: var(--space-16) 0 var(--space-8); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.tb-footer__grid { display: grid; gap: var(--space-8); grid-template-columns: 1.1fr 1fr 1.2fr 0.9fr 1.3fr; }
.tb-footer .tb-hours th, .tb-footer .tb-hours td { white-space: nowrap; }
@media (max-width: 1024px) { .tb-footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-12); } }
.tb-footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.tb-footer h2 { margin: 0 0 var(--space-2); font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tb-footer a { color: var(--ink-muted); text-decoration: none; }
.tb-footer a:hover, .tb-footer a:focus { color: var(--ink); }
.tb-footer .tb-phone { color: var(--ink); }
.tb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.tb-footer__logo svg { width: 180px; height: auto; display: block; }
.tb-footer__social { display: flex; gap: var(--space-4); margin-top: var(--space-2); }
.tb-footer__social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--ink); }
.tb-footer__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); font-size: 14px; }
.tb-footer .tb-hours th, .tb-footer .tb-hours td { padding: 2px 16px 2px 0; }
.tb-signup { display: flex; flex-direction: column; gap: var(--space-2); }
.tb-signup label { font-size: 14px; }
.tb-signup .tb-input { width: 100%; }

/* ==========================================================================
   7. Motion preferences
   ========================================================================== */
.tb-card, .tb-btn { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tb-card:hover, .tb-card:focus-within { transform: none; }
	.tb-hero video { display: none; }
}

/* ==========================================================================
   8. Templates: singles, listings, chips (v0.3)
   ========================================================================== */
.tb-media-ph { display: flex; align-items: flex-end; padding: var(--space-4); background: var(--surface-sunken); color: var(--ink-muted); }
.tb-hero-media { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunken); }
.tb-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-hero-media.tb-media-ph { align-items: center; justify-content: center; }
.tb-hero-media--event { aspect-ratio: 21 / 8; }
@media (max-width: 768px) { .tb-hero-media, .tb-hero-media--event { aspect-ratio: 4 / 3; border-radius: var(--radius-md); } }

.tb-section--tight-top { padding-top: var(--space-12); }
.tb-split { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-start; }
.tb-split__main { flex: 3 1 520px; min-width: 0; }
.tb-split__side { flex: 2 1 320px; min-width: 0; }
.tb-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.tb-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-8); }
.tb-head-row h2 { margin: 0; }
.tb-head-row a { font-weight: 600; }
.tb-eyebrow + h1, .tb-eyebrow + h2 { margin-top: 0; }
.tb-stat__num--long { font-size: 28px; line-height: 34px; white-space: normal; }
.tb-prose { max-width: 760px; }
.tb-prose > *:last-child { margin-bottom: 0; }
.tb-gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: var(--space-6); }
.tb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.tb-price-text { font-size: 18px; line-height: 28px; }
.tb-price-list { margin: 0; }
.tb-price-list__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.tb-price-list__row:first-child { padding-top: 0; }
.tb-price-list dt { font-size: 17px; line-height: 24px; }
.tb-price-list dt { flex: 1 1 auto; }
.tb-price-list dd { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; text-align: right; white-space: nowrap; }
.tb-price-list__note { margin: var(--space-4) 0 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.tb-price-list__note:first-child { margin-top: 0; font-size: 18px; line-height: 28px; color: inherit; }
@media (max-width: 600px) { .tb-price-list__row { flex-direction: column; gap: 2px; } .tb-price-list dd { text-align: left; white-space: normal; } }

.tb-breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 20px 0; font-size: 14px; color: var(--ink-muted); }
.tb-breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); }
.tb-breadcrumb a { color: var(--ink-muted); }
.tb-breadcrumb [aria-current] { color: var(--ink); }

.tb-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Promo cards and hero */
.tb-promo-card__top { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); min-height: 200px; padding: var(--space-8) var(--space-6); background: #1a1c1b; color: #ffffff; }
.tb-promo-card__top.is-featured { background: var(--tb-blue); }
.tb-promo-card__top .tb-label { color: #c4c7c5; }
.tb-promo-card__top.is-featured .tb-label { color: #ffffff; }
.tb-promo-card__offer { font-size: 28px; line-height: 34px; font-weight: 600; }
.tb-promo-hero { display: flex; flex-wrap: wrap; border-radius: var(--radius-lg); overflow: hidden; background: var(--tb-blue); color: #ffffff; }
.tb-promo-hero__text { flex: 1 1 480px; min-width: 0; padding: var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; }
.tb-promo-hero__text h1 { margin: 0; }
.tb-promo-hero__offer { margin: 0; font-size: 24px; line-height: 32px; }
.tb-promo-hero__media { flex: 1 1 420px; min-height: 380px; background: var(--tb-blue-hover); color: #ffffff; }
.tb-promo-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-promo-hero__media.tb-media-ph { align-items: center; justify-content: center; color: #ffffff; }
.tb-btn--light, .tb-btn--light:hover, .tb-btn--light:focus { background: #ffffff; color: #212322; }
.tb-btn--outline-light, .tb-btn--outline-light:hover, .tb-btn--outline-light:focus { background: transparent; color: #ffffff; border-color: #ffffff; }
.tb-promo-hero :focus-visible { outline-color: #ffffff; }
@media (max-width: 768px) { .tb-promo-hero__text { padding: var(--space-8) var(--space-6); } .tb-promo-hero__media { min-height: 220px; } }

.tb-include-list { list-style: none; margin: 0 0 var(--space-8); padding: 0; border-top: 1px solid var(--border-subtle); }
.tb-include-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.tb-include-list a { color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.tb-include-list a:hover { color: var(--link); }
.tb-include-list span { color: var(--ink-muted); font-size: 15px; text-align: right; }
.tb-fine-print { margin-top: var(--space-6); padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.tb-fine-print p { margin: var(--space-2) 0 0; }
.tb-infobox { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--border-subtle); }
.tb-infobox p { margin: 0 0 var(--space-3); }
.tb-infobox .tb-btn { margin-top: var(--space-2); }
.tb-infobox__big { font-size: 22px; line-height: 30px; font-weight: 600; }

/* Event list */
.tb-events { display: flex; flex-direction: column; gap: var(--space-4); }
.tb-event-month { margin: var(--space-6) 0 0; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-subtle); color: var(--ink-muted); }
.tb-event-month:first-child { margin-top: 0; }
.tb-event-row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.tb-event-row__date { flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 20px 0; background: var(--surface); border-right: 1px solid var(--border-subtle); }
.tb-event-row__day { font-size: 36px; line-height: 40px; font-weight: 600; }
.tb-event-row__media { flex: 0 0 220px; min-height: 140px; overflow: hidden; border-right: 1px solid var(--border-subtle); }
.tb-event-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-event-row__body { flex: 1 1 320px; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }
.tb-event-row__cta { display: flex; align-items: center; padding: 20px 24px; }
@media (max-width: 768px) {
	.tb-event-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
	.tb-event-row__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 2 / 1; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
	.tb-event-row__date { grid-column: 1; grid-row: 2 / span 2; padding: 16px 0; }
	.tb-event-row__body { grid-column: 2; grid-row: 2; padding: 16px 16px 8px; }
	.tb-event-row__cta { grid-column: 2; grid-row: 3; padding: 0 16px 16px; }
}

/* Packages */
.tb-package__price { font-size: 32px; line-height: 1; font-weight: 600; }
.tb-package__includes { margin: var(--space-2) 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-1); }

/* Filter chips */
.tb-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.tb-chip, .tb-chip:focus { min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 2px solid var(--border-strong); background: transparent; color: var(--ink); font-family: var(--font-sans); font-weight: 600; font-size: 15px; cursor: pointer; }
.tb-chip:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.tb-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
[data-tb-tags][hidden] { display: none !important; }

/* ==========================================================================
   9. Page building blocks (v0.3.1): Home and landing pages
   ========================================================================== */
.tb-full .entry-content > *, .tb-full .entry-content .tb-wrap > * { margin-block-start: 0; }
.tb-full .entry-content .tb-wrap > * + * { margin-block-start: 0; }
.tb-full .entry-content > .tb-section, .tb-full .entry-content > section { margin: 0; }
.tb-section--flush-top { padding-top: 0; }

.tb-hero { position: relative; min-height: 680px; display: flex; align-items: flex-end; background: var(--surface-sunken); overflow: hidden; }
.tb-hero__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a8e8c; }
.tb-hero__media video, .tb-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,35,34,0) 30%, rgba(33,35,34,.92) 100%); pointer-events: none; }
.tb-hero__in { position: relative; z-index: 1; width: 100%; display: flex; flex-wrap: wrap; gap: var(--space-10, 40px); align-items: flex-end; justify-content: space-between; padding-top: var(--space-24); padding-bottom: var(--space-16); }
.tb-hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.tb-hero__text h1 { margin: 0; max-width: 680px; }
.tb-hero__text .tb-lead { margin: 0; max-width: 600px; }
.tb-hero__book { flex: 0 1 440px; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.tb-hero__opt { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.tb-hero__opt + .tb-hero__opt { border-top: 1px solid var(--border-subtle); }
.tb-hero__opt > div { display: flex; flex-direction: column; gap: 2px; }
.tb-hero__opt strong { font-size: 20px; line-height: 28px; }
.tb-hero__opt span { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.tb-hero__opt .tb-btn { align-self: flex-start; }
@media (max-width: 768px) { .tb-hero { min-height: 0; } .tb-hero__in { padding-top: 160px; padding-bottom: var(--space-8); } }

.tb-stats-wrap { padding-top: var(--space-12); }
.tb-two-col { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.tb-col > h2 { margin: 0 0 var(--space-6); }
.tb-col .tb-grid { grid-template-columns: 1fr; }
.tb-col .tb-event-row__media { display: none; }
.tb-col .tb-event-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.tb-col .tb-event-row__date { grid-column: 1; grid-row: 1 / span 2; padding: 16px 0; }
.tb-col .tb-event-row__body { grid-column: 2; grid-row: 1; padding: 16px 16px 8px; }
.tb-col .tb-event-row__cta { grid-column: 2; grid-row: 2; padding: 0 16px 16px; }
.tb-split--center { align-items: center; }
.tb-split__main--narrow { flex: 1 1 300px; }
.tb-split__side--wide { flex: 2 1 520px; }
.tb-feature-media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); align-items: flex-end; }
.tb-tile { text-decoration: none; }
.tb-tile .tb-card__media { aspect-ratio: 4 / 3; }
.tb-tile .tb-card__title { font-size: 22px; line-height: 28px; }
.tb-tile:hover .tb-card__title { color: var(--link); }
.tb-banner { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; justify-content: space-between; padding: var(--space-12); border-radius: var(--radius-lg); background: var(--tb-blue); color: #ffffff; }
.tb-banner > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--space-2); }
.tb-banner h2 { margin: 0; }
.tb-banner :focus-visible { outline-color: #ffffff; }
.tb-btn--dark, .tb-btn--dark:hover, .tb-btn--dark:focus { background: #212322; color: #ffffff; }
@media (max-width: 768px) { .tb-banner { padding: var(--space-8) var(--space-6); } }

/* GeneratePress wraps group blocks in an inner container; tb sections size themselves. */
.tb-full .entry-content .wp-block-group__inner-container { max-width: none; padding: 0; margin: 0; }
.tb-full .entry-content .tb-two-col > .wp-block-group__inner-container, .tb-full .entry-content .tb-split > .wp-block-group__inner-container { display: contents; }

/* Page heads and the facts list (v0.3.2) */
.tb-page-head { padding: var(--space-16) 0 var(--space-12); border-bottom: 1px solid var(--border-subtle); }
.tb-page-head h1 { margin: 0 0 var(--space-3); }
.tb-page-head .tb-lead { margin: 0; max-width: 720px; }
.tb-section--tight { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.tb-facts { margin: 0; border-top: 1px solid var(--border-subtle); }
.tb-facts > div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--border-subtle); }
.tb-facts dt { color: var(--ink-muted); padding-top: 4px; }
.tb-facts dd { margin: 0; font-size: 18px; line-height: 28px; }
.tb-facts .tb-hours th, .tb-facts .tb-hours td { color: var(--ink); padding: 0 16px 2px 0; }
@media (max-width: 600px) { .tb-facts > div { grid-template-columns: 1fr; } }

/* Restaurant menu (v0.3.3) */
.tb-menu__nav { position: sticky; top: 76px; z-index: 5; padding: var(--space-3) 0; margin-bottom: var(--space-4); background: var(--surface); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tb-menu__nav::-webkit-scrollbar { display: none; }
.admin-bar .tb-menu__nav { top: 108px; }
.tb-menu__nav .tb-chip { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
@media (min-width: 769px) { .tb-menu__nav { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 768px) { .tb-menu__nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); } }
.tb-menu__legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--ink-muted); font-size: 14px; margin: 0 0 var(--space-8); }
.tb-menu__legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.tb-menu__section { padding: var(--space-8) 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: 150px; }
.tb-menu__section h2 { margin: 0 0 var(--space-2); }
.tb-menu__note { margin: 0 0 var(--space-6); color: var(--ink-muted); max-width: 860px; }
.tb-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6) var(--space-12); grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.tb-menu__item { display: flex; flex-direction: column; gap: 4px; }
.tb-menu__line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.tb-menu__name { margin: 0; font-size: 19px; line-height: 26px; font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tb-menu__price { font-weight: 600; white-space: nowrap; color: var(--ink); text-align: right; }
.tb-menu__desc { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.tb-menu__new { align-self: flex-start; font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 12px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.tb-light .tb-menu__new { color: #0450d1; }
.tb-menu__mark { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; line-height: 1; }
.tb-menu__mark--signature { color: #8a6a1f; background: #f7ecd2; }
.tb-menu__mark--vegetarian { color: #1f6b33; background: #e1f1e4; }
.tb-menu__mark--spicy { color: #b42318; background: #fde4e1; }
.tb-menu__mark--gluten_free { color: #5a5d5c; background: #e2e3e1; }
.tb-menu__fine { margin: var(--space-8) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); color: var(--ink-muted); font-size: 13px; line-height: 20px; }
@media (max-width: 1240px) { .tb-menu__nav { top: 0; } .admin-bar .tb-menu__nav { top: 46px; } }

/* Lists and price tables (v0.3.4) */
.tb-check { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.tb-check li { position: relative; padding-left: 28px; }
.tb-check li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 999px; background: var(--tb-blue); box-shadow: 0 0 0 3px rgba(5,100,255,.25); }
.tb-price-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-3); font-size: 18px; }
.tb-price-table th, .tb-price-table td { padding: 16px 12px 16px 0; border: 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; }
.tb-price-table thead th { font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 0; }
.tb-price-table tbody th { font-size: 24px; font-weight: 600; width: 28%; }
.tb-price-table td .tb-tag { margin-left: var(--space-2); vertical-align: middle; }
.tb-price-table__bonus { color: var(--tb-gold); font-weight: 600; }
.tb-light .tb-price-table__bonus { color: #8a6a1f; }


/* 10. Photos */
.tb-feature-media { overflow: hidden; }
.tb-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-hero__media img { object-position: center 60%; }
.tb-hero__media > img, .tb-hero__media > video { position: absolute; inset: 0; }

/* 11. Menu section notes */
.tb-menu__notes { margin: 0 0 var(--space-6); max-width: 920px; display: flex; flex-direction: column; gap: var(--space-4); }
.tb-menu__notes .tb-menu__note { margin: 0; }
.tb-menu__group-label { margin: 0 0 var(--space-2); font-family: var(--font-label); font-stretch: 75%; font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.tb-light .tb-menu__group-label { color: #0450d1; }
.tb-menu__pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-menu__pills li { padding: 6px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--surface-raised); font-size: 15px; line-height: 20px; color: var(--ink); }

/* 12. Headline wrapping: even line breaks, no one-word last lines */
h1, h2, h3, .tb-card__title, .tb-card__key, .tb-stat__cap { text-wrap: balance; }
@media (max-width: 600px) { .tb-card__title { font-size: 22px; line-height: 28px; } }

/* 13. Location pages */
.tb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.tb-card__body .tb-tag { align-self: flex-start; }
.tb-map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface-sunken); }
.tb-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 768px) { .tb-map { aspect-ratio: 4 / 3; } }

.tb-visit { display: flex; flex-direction: column; gap: var(--space-6); }
.tb-visit p { margin: var(--space-1) 0 0; }
.tb-visit .tb-label { display: block; margin-bottom: var(--space-1); }

/* 14. Gravity Forms: match the Tiebreakers design system (overrides GF's Orbital theme) */
.gform_wrapper.gform-theme {
	--gf-color-primary: var(--tb-blue); --gf-color-primary-rgb: 5, 100, 255; --gf-color-primary-contrast: #fff; --gf-color-primary-darker: var(--tb-blue-hover);
	--gf-ctrl-label-color-primary: var(--ink); --gf-ctrl-label-color-secondary: var(--ink-muted); --gf-ctrl-desc-color: var(--ink-muted);
	--gf-ctrl-label-color-req: var(--tb-gold); --gf-font-family-base: var(--font-sans);
	--gf-ctrl-bg-color: var(--surface); --gf-ctrl-color: var(--ink); --gf-ctrl-border-color: var(--border-strong); --gf-ctrl-radius: var(--radius-sm);
	--gf-ctrl-size-md: 48px; --gf-ctrl-font-size: 16px; --gf-ctrl-placeholder-color: var(--ink-muted);
	--gf-ctrl-btn-radius: var(--radius-pill); --gf-ctrl-btn-font-size: 16px; --gf-ctrl-btn-font-weight: 600;
	font-family: var(--font-sans);
}
.gform_wrapper.gform-theme .gfield_label, .gform_wrapper.gform-theme legend.gfield_label { color: var(--ink) !important; font-size: 16px !important; font-weight: 600 !important; }
.gform_wrapper.gform-theme .gform-field-label--type-sub, .gform_wrapper.gform-theme .gfield_description { color: var(--ink-muted) !important; }
.gform_wrapper.gform-theme .gfield_required { color: var(--ink-muted) !important; font-weight: 400; }
.gform_wrapper.gform-theme input[type="text"], .gform_wrapper.gform-theme input[type="email"], .gform_wrapper.gform-theme input[type="tel"], .gform_wrapper.gform-theme input[type="number"], .gform_wrapper.gform-theme select, .gform_wrapper.gform-theme textarea {
	background-color: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--border-strong) !important; border-radius: var(--radius-sm) !important; font-family: var(--font-sans) !important; font-size: 16px !important; box-shadow: none !important;
}
.gform_wrapper.gform-theme input:focus, .gform_wrapper.gform-theme select:focus, .gform_wrapper.gform-theme textarea:focus { outline: 2px solid var(--focus-ring) !important; outline-offset: 2px; }
.gform_wrapper.gform-theme .gform_footer .gform_button, .gform_wrapper.gform-theme input[type="submit"] {
	background: var(--tb-blue) !important; color: #fff !important; border: 0 !important; border-radius: var(--radius-pill) !important; min-height: 48px; padding: 0 28px !important; font-family: var(--font-sans) !important; font-size: 16px !important; font-weight: 600 !important;
}
.gform_wrapper.gform-theme .gform_footer .gform_button:hover { background: var(--tb-blue-hover) !important; }
.gform_wrapper.gform-theme .gfield_validation_message, .gform_wrapper.gform-theme .gform_validation_errors { color: #ff8a7a !important; background: transparent !important; border-color: #ff8a7a !important; }
.gform_confirmation_message { padding: var(--space-6); border: 1px solid var(--tb-gold); border-radius: var(--radius-md); color: var(--ink); }
.gform_wrapper.gform-theme .ginput_container_fileupload input[type="file"] { color: var(--ink); }
.tb-footer .gform_wrapper.gform-theme .gform_footer { margin-top: var(--space-2); padding: 0; }
.tb-footer .gform_wrapper.gform-theme .gform_button { width: 100%; }

#gform_wrapper_3 .gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 15. Awards & Press */
.tb-award { display: flex; flex-direction: column; }
.tb-award__badge { padding: 0; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.tb-award__badge img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tb-award .tb-btn { align-self: flex-start; margin-top: var(--space-2); }
.tb-press-head { margin-top: var(--space-16); }
.tb-press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.tb-press__item { padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.tb-press__title { margin: var(--space-1) 0 0; font-size: 19px; line-height: 26px; font-weight: 600; }
.tb-press__title a { color: var(--ink); }
a.tb-stat { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.tb-stat:hover { border-color: var(--tb-gold); }

/* 16. Menu: multi-price lines wrap on phones */
@media (max-width: 600px) { .tb-menu__line { flex-wrap: wrap; } .tb-menu__price { white-space: normal; text-align: left; } }

/* 17. Stat cards: 2 x 2 on phones */
@media (max-width: 600px) { .tb-stats { grid-template-columns: 1fr 1fr; gap: var(--space-3); } .tb-stat { padding: var(--space-4); } .tb-stat__num { font-size: 30px; } .tb-stat__num--long { font-size: 22px; line-height: 26px; } .tb-stat__cap { font-size: 12px; line-height: 15px; } }

/* 18. Story blocks (Booville) */
.tb-story { max-width: 720px; margin: 0 auto; text-align: center; }
.tb-story__logo { width: 100%; max-width: 560px; height: auto; margin: 0 auto var(--space-8); display: block; }
.tb-story p { font-size: 18px; line-height: 30px; color: var(--ink-muted); }
.tb-story__lead { font-size: 24px !important; line-height: 32px !important; color: var(--tb-gold) !important; font-weight: 600; }
.tb-story__beat { color: var(--ink) !important; font-weight: 600; }
.tb-story__how { max-width: 720px; margin: var(--space-8) auto 0; }
.tb-story__how-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); margin: 0 0 var(--space-4); }

.tb-menu__notes--after { margin-top: var(--space-6); }

/* 19. Community photo grid */
.tb-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-12) 0 0; padding: 0; }
.tb-gallery figure { margin: 0; }
.tb-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.tb-gallery figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 900px) { .tb-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-gallery { gap: var(--space-3); margin-top: var(--space-8); } .tb-gallery figcaption { font-size: 13px; line-height: 18px; } }

.tb-gallery--lead { margin: 0 0 var(--space-16); }
@media (max-width: 600px) { .tb-gallery--lead { margin: 0 0 var(--space-12); } }

/* Trademark symbols added by Tiebreakers Core */
.tb-tm { font-size: 0.55em; line-height: 0; vertical-align: super; margin-left: 0.04em; font-weight: inherit; letter-spacing: 0; }

/* Header fit on laptop widths (1241-1439px): tighten so all three header buttons stay on screen. Nov 28, 2026 */
@media (min-width: 1241px) and (max-width: 1439px) { .tb-header__in { gap: 16px 20px; } .tb-logo svg { height: 36px; } .tb-nav ul { gap: 8px 16px; } .tb-nav a { font-size: 16px; } .tb-header .tb-actions .tb-btn { padding-left: 14px; padding-right: 14px; } }
