/*
Theme Name: TBN State
Theme URI: https://texasbassnation.org
Author: Texas B.A.S.S. Nation
Author URI: https://texasbassnation.org
Description: Custom block theme for the Texas B.A.S.S. Nation state organization website. Implements the state-level brand (red, blue, silver) and serves Youth, College, Club, Team, and Kayak divisions.
Version: 1.0.4
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tbn-state
*/

/**
 * Base Styles & Utility Classes
 *
 * Extracted from design/tbn-home-prototype.html
 * WordPress theme.json provides most styling via CSS custom properties.
 * These are additional utilities and component styles.
 */

/* CSS Variables for Prototype Compatibility */
:root {
	--navy: #0B2545;
	--navy-2: #142F52;
	--blue: #1D4E89;
	--red: #A6192E;
	--silver: #C3C8CF;
	--silver-lt: #E6E9ED;
	--steel: #5B6470;
	--graphite: #1E2227;
	--mist: #F2F4F6;
	--ink: #1E2227;
	--body: #3A3F47;
	--club: #A6192E;
	--team: #1D4E89;
	--kayak: #E5A642;
	--college: #031B36;
	--youth: #B9CFE2;
	--metal: linear-gradient(180deg, #E6E9ED 0%, #C3C8CF 50%, #E6E9ED 100%);
	--head: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
	--text: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.6;
}

a {
	color: var(--blue);
}

a:hover {
	color: var(--navy);
}

a:focus,
button:focus,
select:focus {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

h1, h2, h3 {
	font-family: var(--head);
	margin: 0;
	color: var(--navy);
}

/* Layout Utilities */
.wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 80px 0;
}

.mist {
	background: var(--mist);
	border-top: 1px solid var(--silver);
}

/* Placeholder styling */
.ph {
	background: var(--silver-lt);
	color: var(--steel);
	font-size: 13px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

/* Utility Bar */
.util {
	background: var(--navy);
	color: var(--silver);
	font-size: 14px;
}

.util .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	padding-bottom: 8px;
}

.util a {
	color: var(--silver-lt);
	text-decoration: none;
	margin-left: 20px;
}

.util .icons a {
	margin-left: 12px;
	color: var(--silver);
}

.util svg {
	vertical-align: middle;
}

.util .login {
	border-left: 1px solid #3A4A66;
	padding-left: 20px;
}

/* Header */
header {
	background: #fff;
	border-bottom: 1px solid var(--silver);
}

header .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	padding-bottom: 16px;
}

.logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	margin-left: -160px;
}

/* Keep the header logo within the viewport on phones and tablets. */
@media (max-width: 900px) {
	.logo {
		margin-left: 0;
	}
}

.logo-mark {
	width: 56px;
	height: 56px;
	border-radius: 4px;
	background: var(--navy);
	border: 2px solid var(--silver);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 14px;
}

.logo-word {
	display: none;
}

.logo-note {
	display: none;
}

nav a {
	font-family: var(--head);
	font-weight: 600;
	font-size: 19px;
	color: var(--navy);
	text-decoration: none;
	margin-left: 28px;
	padding: 10px 0;
	display: inline-block;
}

nav .btn-red {
	padding: 12px 22px;
	font-size: 17px;
	letter-spacing: 0.06em;
	color: #fff;
}

/* Hero */
.hero {
	background: var(--graphite);
	position: relative;
	overflow: hidden;
}

/* Hero Slider Backgrounds */
.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 0;
}

.hero-slide.active {
	opacity: 1;
	z-index: 1;
}

.hero-overlay {
	background: linear-gradient(90deg, rgba(11, 37, 69, 0.75) 0%, rgba(11, 37, 69, 0.50) 45%, rgba(11, 37, 69, 0.15) 100%);
	position: relative;
	z-index: 2;
}

.hero .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	padding-top: 88px;
	padding-bottom: 96px;
}

.hero-main {
	flex: 1 1 560px;
	min-width: 0;
	margin-right: 48px;
}

.hero-side {
	flex: 1 1 340px;
	min-width: 0;
	border: 1px solid #3A4A66;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 32px;
}

.hero-tag {
	color: #fff;
	font-size: 18px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 800;
	display: flex;
	align-items: center;
	text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-tag span {
	display: inline-block;
	width: 42px;
	height: 4px;
	background: var(--red);
	margin-right: 14px;
	box-shadow: 0 2px 6px rgba(166,25,46,0.4);
}

.hero h1 {
	color: #fff;
	font-size: 64px;
	line-height: 1.02;
	margin: 16px 0;
}

.hero p {
	color: var(--silver-lt);
	font-size: 20px;
	max-width: 560px;
	margin: 0;
}

.photo-note {
	position: absolute;
	right: 24px;
	bottom: 16px;
	color: #8A929C;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Hero Slider Navigation Dots */
.hero-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.hero-dot:hover {
	background: rgba(255, 255, 255, 0.6);
	transform: scale(1.1);
}

.hero-dot.active {
	background: #fff;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.chooser-frame {
	margin-top: 28px;
	max-width: 600px;
	padding: 3px;
	border-radius: 6px;
	background: var(--metal);
}

.chooser {
	background: #fff;
	border-radius: 4px;
	padding: 24px;
}

.chooser label {
	font-family: var(--head);
	font-weight: 600;
	font-size: 22px;
	color: var(--navy);
	display: block;
	margin-bottom: 12px;
}

.chooser-row {
	display: flex;
	flex-wrap: wrap;
}

.chooser select {
	flex: 1 1 280px;
	min-height: 52px;
	font-family: inherit;
	font-size: 18px;
	color: var(--ink);
	padding: 0 14px;
	border: 1px solid var(--steel);
	border-radius: 4px;
	background: #fff;
	margin: 0 12px 12px 0;
}

.chooser .go,
.chooser .go:hover {
	background: var(--chooser-go-background, var(--red));
	color: var(--chooser-go-text, #fff);
	min-height: 52px;
	line-height: 52px;
	padding: 0 28px;
	font-family: var(--head);
	font-size: 18px;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}

/* Per-division GO colors are printed from the division Color settings (tbn_division_color_css). */

.chooser .go:hover {
	filter: brightness(0.95);
}

.div-info {
	display: none;
	padding: 12px 14px;
	background: var(--mist);
	border-radius: 4px;
	border-top: 3px solid var(--silver);
	margin-bottom: 12px;
}

.div-info strong {
	color: var(--navy);
	display: block;
}

.div-info span {
	font-size: 15px;
	color: var(--steel);
}

.quick a {
	font-size: 15px;
	font-weight: 600;
	margin-right: 20px;
}

.cd-top {
	background: var(--navy);
	padding: 20px 22px;
}

.cd-top .k {
	color: var(--silver);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	display: block;
}

.cd-top .t {
	color: #fff;
	font-family: var(--head);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	display: block;
	margin: 4px 0;
}

.cd-top .d {
	color: var(--silver);
	font-size: 15px;
}

.cd {
	background: var(--navy-2);
	padding: 18px 22px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 8px;
	text-align: center;
}

.cd b {
	display: block;
	font-family: var(--head);
	font-weight: 700;
	font-size: 40px;
	color: var(--silver-lt);
	line-height: 1;
}

.cd small {
	display: block;
	font-size: 12px;
	color: var(--silver);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-top: 6px;
}

.cd-live {
	display: none;
}

.cd.is-live > div {
	display: none;
}

.cd.is-live > .cd-live {
	display: block;
	grid-column: 1 / -1;
}

.cd-link {
	display: block;
	background: #fff;
	padding: 14px 22px;
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
}

/* Typography Utilities */
.eyebrow {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-steel);
	font-weight: 600;
}

.rule {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--wp--preset--color--brand-red);
	margin: 8px 0 12px;
}

/* Section Headers */
.sec-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 32px;
}

.sec-head h2 {
	font-size: 40px;
	font-weight: 700;
}

.more {
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.btn-red {
	display: inline-block;
	background: var(--wp--preset--color--brand-red);
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 700;
	padding: 12px 22px;
	font-size: 17px;
	letter-spacing: 0.06em;
}

.btn-red:hover {
	color: #fff;
	background: #8C1526;
}

.btn-outline {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--brand-navy);
	color: var(--wp--preset--color--brand-navy);
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	padding: 10px 16px;
	min-height: 44px;
	line-height: 42px;
}

/* Aspect Ratio Container */
.ratio {
	position: relative;
	padding-top: 56.25%;
}

.ratio > * {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/* Badge Component */
.badge {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	padding: 3px 8px;
	border-radius: 3px;
	margin-bottom: 10px;
}

/* Status Badge */
.status {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--brand-steel);
	border: 1px solid var(--wp--preset--color--brand-silver);
	border-radius: 3px;
	padding: 3px 8px;
}

/* Card Component */
.card {
	border: 1px solid var(--wp--preset--color--brand-silver);
	border-top-width: 4px;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card .body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card h3 {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 10px;
}

.card p {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--wp--preset--color--text-body);
}

.card .meta {
	margin-top: auto;
	font-size: 14px;
	color: var(--wp--preset--color--brand-steel);
}

/* Grid Layouts */
.grid-news {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	grid-gap: 24px;
}

.grid-div {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-gap: 20px;
}

.dcard {
	display: flex;
	flex-direction: column;
	padding: 24px 20px;
	border: 1px solid var(--wp--preset--color--brand-silver);
	border-top-width: 4px;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dcard b {
	font-size: 20px;
	font-weight: 700;
	margin: 12px 0 8px;
	display: block;
	color: var(--wp--preset--color--brand-navy);
}

.dcard span {
	font-size: 15px;
	color: var(--wp--preset--color--text-body);
	line-height: 1.5;
	margin-bottom: 16px;
	flex-grow: 1;
}

.dcard em {
	font-style: normal;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--brand-blue);
}

.dcard .ph {
	background: var(--wp--preset--color--brand-mist);
	border-radius: 4px;
	padding: 32px 16px;
	text-align: center;
	color: var(--wp--preset--color--brand-steel);
	font-size: 13px;
}

.dcard-logo {
	width: 100%;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.dcard-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Center Alignment */
.center {
	text-align: center;
}

.center .rule {
	margin-left: auto;
	margin-right: auto;
}

/* Division Colors */
.division-club .badge,
.badge-club {
	background: var(--wp--preset--color--division-club);
}

.division-team .badge,
.badge-team {
	background: var(--wp--preset--color--division-team);
}

.division-kayak .badge,
.badge-kayak {
	background: var(--wp--preset--color--division-kayak);
}

.division-college .badge,
.badge-college {
	background: var(--wp--preset--color--division-college);
}

.division-youth .badge,
.badge-youth {
	background: var(--wp--preset--color--division-youth);
}

/* Header Specific Styles */
header .wp-block-group {
	background: #fff;
}

header .has-brand-steel-color {
	display: none;
}

.wp-block-site-logo {
	margin-right: auto;
}

.wp-block-site-logo img,
.custom-logo-link img,
.custom-logo {
	max-height: 130px !important;
	height: 130px !important;
	width: auto !important;
	object-fit: contain;
	border-radius: 0;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.wp-block-site-title {
	display: none;
}

.wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 26px;
	color: var(--wp--preset--color--brand-navy);
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-decoration: none;
}

.wp-block-navigation a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 19px;
	color: var(--wp--preset--color--brand-navy);
	text-decoration: none;
}

/* Hero / Cover Block Styles */
.wp-block-cover {
	position: relative;
}

.wp-block-cover__background {
	background: var(--wp--preset--color--brand-graphite);
}

/* Event Cards in Templates */
.wp-block-query .card {
	transition: box-shadow 0.2s;
}

.wp-block-query .card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Division-specific border colors for cards */
.division-club .card {
	border-top-color: var(--wp--preset--color--division-club);
}

.division-team .card {
	border-top-color: var(--wp--preset--color--division-team);
}

.division-kayak .card {
	border-top-color: var(--wp--preset--color--division-kayak);
}

.division-college .card {
	border-top-color: var(--wp--preset--color--division-college);
}

.division-youth .card {
	border-top-color: var(--wp--preset--color--division-youth);
}

/* Utility Bar Styles */
.has-silver-lt-color a,
.has-brand-navy-background-color a {
	color: var(--wp--preset--color--silver-lt);
	text-decoration: none;
}

.has-brand-navy-background-color {
	border-bottom: 1px solid #3A4A66;
}

/* Button Enhancements */
.wp-block-button__link {
	border-radius: 4px;
	font-weight: 700;
	padding: 12px 22px;
	font-size: 17px;
	letter-spacing: 0.06em;
	transition: all 0.2s;
}

.wp-block-button.btn-red .wp-block-button__link {
	background: var(--wp--preset--color--brand-red);
	color: #fff;
	border: none;
}

.wp-block-button.btn-red .wp-block-button__link:hover {
	background: #8C1526;
}

.wp-block-button.btn-outline .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--brand-navy);
	color: var(--wp--preset--color--brand-navy);
	background: transparent;
	padding: 10px 16px;
	min-height: 44px;
	line-height: 42px;
}

.wp-block-button.btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--brand-navy);
	color: #fff;
}

/* Section spacing for block templates */
.wp-block-group.alignwide,
.wp-block-group.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* Post template grid styling */
.wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Responsive */
@media (max-width: 760px) {
	.sec-head h2 {
		font-size: 32px;
	}

	.wrap {
		padding: 0 16px;
	}

	.section {
		padding: 48px 0;
	}

	.wp-block-navigation a {
		font-size: 17px;
	}

	.grid-news,
	.grid-div {
		grid-template-columns: 1fr;
	}
}

/* Division Navigation Polish */
.division-nav .wrap {
	justify-content: center !important;
}

.division-nav-item {
	flex-shrink: 0;
}

.regions-toggle:hover,
.regions-toggle:focus {
	outline: 2px solid var(--navy);
	outline-offset: -2px;
}

.region-link:hover,
.region-link:focus {
	background-color: #0B2545 !important;
	color: #ffffff !important;
	border-color: #0B2545 !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Fish Your Region hover effect - REMOVED, now handled per-division inline */
/* .fish-region a:hover {
	background-color: var(--red) !important;
	color: #fff !important;
} */

/* Back to regions hover effect */
.region-section a[href="#fish-region"]:hover {
	opacity: 1 !important;
}

/* Visit Region button hover effect - now handled inline with division colors */

/* Homepage division destinations hover effects */
.dest-overview:hover {
	background-color: var(--red) !important;
	color: #fff !important;
	border-color: var(--red) !important;
}

/* Both chooser groups inherit their division color from the homepage palette. */
.chooser .chooser-region-link {
	background-color: #fff;
	border: 2px solid var(--chooser-division-color);
	color: var(--chooser-division-color);
}

.chooser .chooser-region-link:hover,
.chooser .chooser-region-link:focus-visible {
	background-color: var(--chooser-division-color);
	color: #fff;
	border-color: var(--chooser-division-color);
}

/* Leadership card hover effects - enhanced 3D depth */
.leader-card:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 12px 32px rgba(11,37,69,.18), 0 4px 10px rgba(11,37,69,.12) !important;
}

.leader-card.open:hover {
	box-shadow: 0 10px 28px rgba(11,37,69,.14), 0 4px 10px rgba(11,37,69,.1) !important;
}

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Responsive Division Navigation */
@media (max-width: 768px) {
	.division-nav .wrap {
		justify-content: flex-start !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.division-nav-item {
		flex-shrink: 0;
	}

	.regions-menu {
		position: fixed !important;
		left: 50% !important;
		transform: translateX(-50%);
		top: auto !important;
		min-width: 280px !important;
	}
}

/* Overview Page Responsive */
@media (max-width: 900px) {
	.intro .wrap {
		grid-template-columns: 1fr !important;
	}

	.fish-region > .wrap > div {
		align-items: flex-start !important;
		flex-direction: column;
	}

	.intro .wrap > div:first-child {
		text-align: left !important;
	}

	.region-main {
		grid-template-columns: 1fr !important;
	}

	.region-main > div {
		border-left: 0 !important;
		border-top: 1px solid var(--silverlt) !important;
	}

	.leaders-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.intro .wrap {
		padding: 40px 0 !important;
	}

	.intro h2 {
		font-size: 37px !important;
	}

	.region-section {
		padding: 48px 0 58px !important;
	}

	.region-section h2 {
		font-size: 37px !important;
	}

	.region-section > .wrap > div:nth-of-type(2) {
		align-items: flex-start !important;
		flex-direction: column;
		gap: 10px !important;
	}

	.region-section > .wrap > div:nth-of-type(2) a {
		display: none !important;
	}

	.map-panel {
		padding: 20px 10px 12px !important;
	}

	.region-main > div {
		padding: 24px 20px !important;
	}

	.club-row {
		align-items: flex-start !important;
	}

	.leaders-grid {
		grid-template-columns: 1fr !important;
	}

	.fish-region .wrap > div > div:last-child {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		padding-bottom: 4px;
	}

	.fish-region .wrap > div > div:last-child a {
		white-space: nowrap;
	}

	.region-section > .wrap > div:nth-of-type(2) > div {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.region-section > .wrap > div:nth-of-type(2) > div a:first-child {
		width: 100%;
		justify-content: center;
	}
}

/* ========================================
   Sponsor Section
   ======================================== */

.sp-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: stretch;
}

.sp-box {
	background: #fff;
	border: 1px solid var(--silver);
	border-radius: 4px;
	padding: 24px;
}

.sp-title {
	flex: 1;
}

.sp-rest {
	flex: 1;
}

.sp-k {
	display: block;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel);
	font-weight: 700;
	margin-bottom: 16px;
}

/* Logo boxes - NO grey backgrounds, NO borders */
.logo-box {
	min-height: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 12px;
}

.logo-box img {
	max-width: 100px;
	height: auto;
	object-fit: contain;
}

/* Title sponsor logo box - stacked logos */
.sp-title .logo-box {
	background: white;
	min-height: 300px;
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 13px;
	align-items: center;
}

/* Title sponsor large logo (top) - override base logo-box img rule */
.sp-title .logo-box .sp-title-logo-top {
	max-width: 100% !important;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Title sponsor small logo (bottom) - override base logo-box img rule */
.sp-title .logo-box .sp-title-logo-bottom {
	max-width: 80% !important;
	width: 80%;
	height: auto;
	object-fit: contain;
}

.sp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

/* State & Division Sponsors (Dobyns, KastKing) - white backgrounds and larger logos */
.sp-grid .logo-box {
	background: white;
	min-height: 120px;
	padding: 20px;
}

.sp-grid .logo-box img {
	max-width: 200px !important;
	max-height: 140px;
	width: auto;
	height: auto;
}

/* KastKing logo - make it larger to match Dobyns height */
.sp-grid .logo-box:nth-child(2) img {
	max-width: 280px !important;
	max-height: 180px;
}

.alliance {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 16px;
	align-items: center;
}

.alliance > div {
	text-align: center;
	padding: 12px;
}

@media (max-width: 768px) {
	.sp-row {
		flex-direction: column;
	}

	.sp-box {
		width: 100%;
	}
}

/* Alliance sponsors - grayscale with color on hover */
.alliance-logo {
	text-align: center;
	padding: 12px;
	transition: all 0.3s ease;
	filter: grayscale(100%);
}

.alliance-logo:hover {
	filter: grayscale(0%);
}

.alliance-logo img {
	max-width: 100px;
	height: auto;
	object-fit: contain;
}

/* ========================================
   Dynamic Navigation Hover Colors
   ======================================== */

/* Default hover color is red */
:root {
	--nav-hover-color: var(--red);
}

nav a:hover,
nav a:focus {
	color: var(--nav-hover-color);
	transition: color 0.2s ease;
}

nav .btn-red:hover,
nav .btn-red:focus {
	background: var(--navy);
	color: #fff;
}

/* Horizontal return navigation within division-colored heroes. */
.tbn-hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:24px; }
.tbn-hero-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.tbn-breadcrumbs {
	background:transparent;
	border:0;
	margin:24px 0 0 auto;
	width:fit-content;
	max-width:100%;
	color:inherit;
	text-align:right;
}
.tbn-hero-actions > .tbn-breadcrumbs { margin-top:0; }
.tbn-breadcrumbs .tbn-breadcrumb-list {
	display:flex;
	flex-wrap:nowrap;
	align-items:center;
	gap:10px;
	list-style:none;
	margin:0;
	padding:4px 0;
	max-width:100%;
	overflow-x:auto;
	font-family:var(--head);
	font-size:16px;
	font-weight:600;
	line-height:1.4;
}
.tbn-breadcrumbs li { display:inline-flex; align-items:center; gap:10px; flex-shrink:0; margin:0; padding:0; white-space:nowrap; }
.tbn-breadcrumbs a { display:inline; margin:0; padding:0; font:inherit; letter-spacing:normal; color:inherit; text-decoration:none; }
.tbn-breadcrumbs a:hover,.tbn-breadcrumbs a:focus { color:inherit; text-decoration:underline; text-underline-offset:4px; }
.tbn-breadcrumbs a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.tbn-breadcrumbs [aria-current] { color:inherit; font-weight:500; }
.tbn-breadcrumb-separator { flex-shrink:0; opacity:.75; }
/* Division switcher: the division being viewed is underlined. */
.tbn-breadcrumbs .tbn-breadcrumb-list { flex-wrap:wrap; justify-content:flex-end; row-gap:4px; }
/* Division pages center their hero, so the crumbs sit centered under it. */
.tbn-breadcrumbs.is-centered { margin-left:auto; margin-right:auto; text-align:center; }
.tbn-breadcrumbs.is-centered .tbn-breadcrumb-list { justify-content:center; }
.tbn-breadcrumb-division.is-current a,.tbn-breadcrumb-division.is-current span { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px; font-weight:700; }
@media(max-width:600px) {
	.tbn-hero-actions { gap:20px; }
	.tbn-breadcrumbs .tbn-breadcrumb-list { font-size:14px; gap:8px; }
	.tbn-breadcrumbs li { gap:8px; }
}

/* Reserve the right side of division director cards for the optional logo. */
.tbn-division-director-card { display:flex; align-items:flex-start; gap:20px; }
.tbn-director-card-details { flex:1; min-width:0; overflow-wrap:anywhere; }
.tbn-division-director-card .tbn-director-card-logo { order:1; width:120px; max-width:35%; height:auto; max-height:140px; object-fit:contain; flex-shrink:0; }
@media (max-width:480px) {
	.tbn-division-director-card { gap:12px; }
	.tbn-division-director-card .tbn-director-card-logo { width:90px; max-width:30%; }
}

@media (max-width:900px) {
	.tbn-division-intro-grid { grid-template-columns:minmax(0,1fr) !important; gap:28px !important; }
}

/* Shared tournament lifecycle colors across divisions and event pages. */
.tbn-status,
.tbn-event .event-hero .tbn-status {
	background: var(--tbn-status-bg, #F1F5F9);
	color: var(--tbn-status-text, #334155);
}
.tbn-status--upcoming { --tbn-status-bg:#DBEAFE; --tbn-status-text:#1E3A8A; }
.tbn-status--in-progress { --tbn-status-bg:#FEF3C7; --tbn-status-text:#78350F; }
.tbn-status--results-pending { --tbn-status-bg:#FFEDD5; --tbn-status-text:#9A3412; }
.tbn-status--results-available { --tbn-status-bg:#DCFCE7; --tbn-status-text:#166534; }
.tbn-status--standings-posted { --tbn-status-bg:#DCFCE7; --tbn-status-text:#166534; }
.tbn-status--cancelled { --tbn-status-bg:#FEE2E2; --tbn-status-text:#991B1B; }
.tbn-status--postponed { --tbn-status-bg:#F3E8FF; --tbn-status-text:#6B21A8; }
.tbn-status--date-tba { --tbn-status-bg:#F1F5F9; --tbn-status-text:#334155; }
a.tbn-status,
.tbn-status a { text-decoration:underline; text-underline-offset:3px; }

/* Championship information becomes highlighted after the approved announcement. */
.division-nav .championship-announced{background:#218838;color:#fff;border-radius:4px;box-shadow:0 2px 6px rgba(33,136,56,.25)}
.division-nav .championship-announced:hover,.division-nav .championship-announced:focus-visible{background:#196c2d;color:#fff}
.championship-ready-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:8px;vertical-align:middle;animation:tbn-championship-pulse 2.6s ease-in-out infinite}
@keyframes tbn-championship-pulse{0%,100%{opacity:1}50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.championship-ready-dot{animation:none}}

/* Layout preview: regional leadership directly below its map. */
.region-map-leadership{min-width:0}.region-map-director{padding:32px 24px 28px;overflow-wrap:anywhere}.region-map-director .leaders-grid{grid-template-columns:minmax(0,1fr)!important}.region-map-director .leadership-head h3{font-size:26px!important}.region-map-director .leader-card{min-width:0}
@media(max-width:600px){.region-main>.region-map-leadership{padding:0!important}.region-map-director{padding:32px 20px 24px}}

.division-regional-director-logo{width:340px;max-width:100%;margin:22px auto 0}.division-regional-director-logo img{display:block;width:100%;height:auto}@media(max-width:900px){.division-regional-director-logo{width:300px}}

/* Leader contact cards: logo beside the text in the map column. */
.region-map-director .tbn-business-contact.has-contact-logo{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,40%);gap:14px;align-items:center;padding:20px!important}.tbn-contact-text{min-width:0}.region-map-director .tbn-business-contact .division-regional-director-logo{width:100%;max-width:190px;margin:0 0 0 auto}.tbn-contact-text a{overflow-wrap:anywhere}

/* Champions Spotlight: fixed desktop tracks, natural content height. */
.champs { --spotlight-gold: var(--kayak); }
.champs .spotlight-shell { border: 2px solid var(--spotlight-gold); border-radius: 4px; padding: 28px; }
.champs .champ-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.champs .champ-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; align-items: start; min-width: 0; }
.champs .champ-main { width: 100%; min-width: 0; margin: 0; background: var(--navy-2); border: 1px solid var(--spotlight-gold); border-radius: 4px; overflow: hidden; }
.champs .champ-main .ratio { aspect-ratio: 4 / 3; height: auto; padding: 0; overflow: hidden; background: var(--navy); }
.champs .champ-main .ratio img { display: block; position: static; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.champs .champ-main .ph { height: 100%; display: grid; place-items: center; padding: 16px; text-align: center; }
.champs .champ-main .txt { padding: 20px; color: #fff; background: var(--navy-2); overflow-wrap: anywhere; }
.champs .champ-main .medal { display: block; background: transparent; border: 0; border-bottom: 1px solid var(--spotlight-gold); border-radius: 0; padding: 0 0 10px; color: var(--spotlight-gold); font-size: 12px; line-height: 1.5; letter-spacing: .06em; }
.champs .champ-main .names { color: #fff; font-size: 26px; line-height: 1.2; margin: 14px 0 10px; }
.champs .champ-main p { color: #fff; font-size: 15px; line-height: 1.6; }
.champs .champ-side { min-width: 0; }

.champs .spotlight-empty { background: var(--navy-2); padding: 24px; border-radius: 4px; }
.champs .spotlight-empty p { margin: 0; color: #fff; }
@media (max-width: 1100px) { .champs .champ-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
 .champs .spotlight-shell { padding: 18px; }
 .champs .champ-grid { grid-template-columns: minmax(0, 1fr); }
 .champs #champions-spotlight-title { font-size: 32px; }
}

/* Progressive enhancement: all champions remain available without JavaScript. */
.champs .champ-featured { min-width: 0; }
.champs .champ-main[hidden], .champs .champ-controls[hidden] { display: none; }
.champs .champ-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: #fff; font-size: 14px; }
.champs .champ-controls button { background: var(--navy-2); border: 1px solid var(--spotlight-gold); border-radius: 4px; color: #fff; padding: 8px 12px; font: inherit; cursor: pointer; }
.champs .champ-controls button:hover { background: var(--navy); }
.champs .champ-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Each region/division is one coordinated photo-and-list slide. */
.champs .spotlight-heading { margin-bottom: 24px; }
.champs .champ-slide[hidden] { display: none; }
.champs .champ-slide-title { margin: 0 0 16px; color: var(--spotlight-gold); font-size: 24px; }
.champs .champ-slide + .champ-slide { margin-top: 24px; }
.champs [data-champion-carousel] .champ-slide[hidden] + .champ-slide { margin-top: 0; }
.champs .champ-slide .champ-side { margin: 0; padding: 16px; }
.champs .champ-list-title { margin: 0 0 16px; color: #fff; font-size: 16px; letter-spacing: .07em; text-transform: uppercase; }
.champs .champ-table-scroll { overflow-x: auto; }
.champs .champ-side table { width: 100%; border-collapse: collapse; font-size: 13px; color: #fff; }
.champs .champ-side th, .champs .champ-side td { padding: 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); }
.champs .champ-side thead { background: rgba(255,255,255,.1); }
.champs .champ-side thead th { border-bottom: 2px solid rgba(255,255,255,.2); }
.champs .champ-side tbody th { font-weight: 600; }
.champs .champ-list-pending { color: #fff; margin: 0; }
.champs .champ-list-only { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }

/* Organization logos fit inside any article image box without cropping the artwork. */
img.tbn-featured-logo { object-fit: contain !important; padding: 20px; box-sizing: border-box; background: #f5f7fa; }
img.tbn-featured-logo.tbn-story-small { padding: 10px; }

/* Narrow-screen utility links wrap as groups instead of extending the document. */
@media (max-width: 760px) {
	.util .wrap > div:last-child { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; max-width:100%; }
	.util .wrap > div:last-child a { margin-left:0; }
	.util .icons { display:inline-flex; gap:12px; }
}
@media (max-width: 700px) {
	.regional-event-row { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
	.regional-event-row > * { min-width:0; overflow-wrap:anywhere; }
}

/* Post pagination (News, category and search pages): evenly spaced numbers, current page highlighted. */
.navigation.pagination { margin: 40px 0 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.navigation.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 4px; font-family: var(--head); font-size: 18px; font-weight: 700; line-height: 1; color: var(--navy); text-decoration: none; box-sizing: border-box; }
.navigation.pagination a.page-numbers:hover, .navigation.pagination a.page-numbers:focus-visible { background: var(--mist); }
.navigation.pagination .page-numbers.current { background: var(--navy); color: #fff; }
.navigation.pagination .page-numbers.dots { min-width: 0; padding: 0 4px; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Important Documents (region and Kayak schedule pages): one brand accent for every division. */
.tbn-important-documents h3 { font-size:20px; font-weight:600; margin:0 0 16px; font-family:var(--head); color:var(--navy); }
.tbn-important-documents h3::after { content:""; display:block; width:48px; height:3px; margin-top:8px; background:var(--red); border-radius:2px; }
.tbn-doc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:12px; }
.tbn-doc-card { display:flex; align-items:flex-start; gap:14px; background:#fff; border:1px solid var(--silver); border-left:4px solid var(--red); border-radius:6px; padding:16px; text-decoration:none; transition:transform .2s, box-shadow .2s, border-color .2s; }
.tbn-doc-card:hover, .tbn-doc-card:focus-visible { border-color:var(--red); transform:translateY(-2px); box-shadow:0 6px 14px rgba(11,37,69,.12); }
.tbn-doc-badge { flex:none; display:flex; align-items:center; justify-content:center; width:40px; height:48px; background:var(--red); color:#fff; border-radius:4px; font:700 11px/1 var(--head); letter-spacing:.06em; }
.tbn-doc-text { display:flex; flex-direction:column; gap:6px; }
.tbn-doc-title { font-size:16px; font-weight:600; line-height:1.35; color:var(--navy); font-family:var(--head); }
.tbn-doc-open { font-size:13px; font-weight:600; color:var(--red); }

/* WeighBook: live leaderboard, final results, standings, "Live now" banner, membership levels. */
.tbn-wb-table { width:100%; border-collapse:collapse; font-size:15px; margin:8px 0 12px; }
.tbn-wb-table th { text-align:left; font:600 13px/1.2 var(--head); text-transform:uppercase; letter-spacing:.04em; color:var(--steel); border-bottom:2px solid var(--silver); padding:10px 8px; }
.tbn-wb-table td { padding:10px 8px; border-bottom:1px solid var(--silver-lt); vertical-align:top; }
.tbn-wb-table td small { color:var(--steel); }
.tbn-wb-table tbody tr:first-child td { font-weight:700; }
.tbn-wb-table tr.is-dq td { color:var(--steel); text-decoration:line-through; }
.tbn-wb-table .is-qualified { color:#1e6b34; font-weight:700; }
.tbn-wb-muted { color:var(--steel); font-size:14px; }
.tbn-wb-live-dot { display:inline-flex; align-items:center; gap:6px; font:700 12px/1 var(--head); letter-spacing:.08em; color:var(--red); }
.tbn-wb-live-dot::before { content:""; width:9px; height:9px; border-radius:50%; background:var(--red); animation:tbn-wb-pulse 1.4s infinite; }
@keyframes tbn-wb-pulse { 50% { opacity:.25; } }
.tbn-wb-live-banner { background:#000; color:#fff; }
.tbn-wb-live-banner .wrap { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding-top:10px; padding-bottom:10px; }
.tbn-wb-live-banner .tbn-wb-live-dot { color:#fff; }
.tbn-wb-live-banner a { color:#fff; font-weight:600; }
.tbn-wb-live-banner .tbn-wb-live-division { font:700 12px/1 var(--head); letter-spacing:.06em; text-transform:uppercase; padding:5px 10px; border-radius:3px; margin-right:-10px; }
.tbn-wb-tiers { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; margin:16px 0; }
.tbn-wb-tier { background:#fff; border:1px solid var(--silver); border-top:4px solid var(--team, #a6192e); border-radius:6px; padding:20px; }
.tbn-wb-tier h3 { margin:4px 0 8px; font-family:var(--head); color:var(--navy); }
.tbn-wb-tier-fee { font:700 32px/1 var(--head); color:var(--navy); }
.tbn-wb-tier-note { font-weight:600; color:var(--steel); font-size:14px; }

.tbn-wb-entry-title { font:600 16px/1.3 var(--head); margin:16px 0 8px; color:var(--navy); }
.tbn-wb-cost { width:100%; border-collapse:collapse; font-size:14px; margin-bottom:8px; }
.tbn-wb-cost td { padding:6px 0; border-bottom:1px solid var(--silver-lt); }
.tbn-wb-cost td:last-child { text-align:right; white-space:nowrap; }
.tbn-wb-cost tr.is-total td { font-weight:700; border-bottom:0; border-top:2px solid var(--silver); }
.tbn-wb-entry .event-button { display:block; text-align:center; margin-top:10px; }
.tbn-wb-register { margin-top:14px; }
.tbn-wb-register .tbn-registration-button { width:100%; justify-content:center; flex-wrap:wrap; row-gap:6px; padding:12px 16px !important; box-sizing:border-box; }
.tbn-wb-register .tbn-registration-button img { flex:none; max-width:none; height:22px !important; width:auto !important; }
.tbn-wb-register .tbn-registration-button span { white-space:nowrap; }
.tbn-wb-field { columns:2 260px; margin:8px 0 0; padding-left:22px; }
.tbn-wb-field li { padding:4px 0; break-inside:avoid; }

/* Schedule rows: the title and an "Event details →" link open the event page. */
.tbn-event-title-link { color:inherit; text-decoration:none; }
.tbn-event-title-link:hover, .tbn-event-title-link:focus-visible { color:var(--event-accent, var(--navy)); text-decoration:underline; text-underline-offset:3px; }
.tbn-event-details-link { display:inline-block; margin-top:10px; font:700 14px/1.2 var(--head); color:var(--event-accent, var(--navy)); text-decoration:none; }
.tbn-event-details-link:hover, .tbn-event-details-link:focus-visible { text-decoration:underline; text-underline-offset:3px; }

/* Region "Latest News" cards: picture above the text on phones. */
@media (max-width: 640px) {
	.region-news-card { flex-direction:column; gap:16px !important; padding:16px !important; }
	.region-news-card .region-news-image img { width:100% !important; height:auto !important; aspect-ratio:4 / 3; }
}
