/*
Theme Name: USBOXLA
Theme URI: https://www.usboxla.com
Author: US Box Lacrosse Association
Description: Custom block theme for the US Box Lacrosse Association main website. Navy, USBOXLA blue and red with Barlow Condensed headings, matching stats.usboxla.com.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: usboxla
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(a) { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #FFD25A; outline-offset: 2px; }
img { height: auto; }

/* Eyebrow / kicker text */
.eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: .9rem;
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px; height: 3px;
	background: var(--wp--preset--color--red);
	vertical-align: middle;
	margin-right: 10px;
	transform: translateY(-2px);
}
.has-text-align-center.eyebrow::before { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(4,14,32,.25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .brand { min-width: 0; }
.site-header .brand-name,
.site-header .brand-name a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	line-height: 1.05;
	margin: 0;
}
.site-header .wp-block-site-logo img { width: 38px; height: auto; }
.site-header .main-nav { font-family: var(--wp--preset--font-family--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; }
.site-header .main-nav .wp-block-navigation-item__content { color: #fff; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header .main-nav .wp-block-navigation-item__content:hover,
.site-header .main-nav .current-menu-item > .wp-block-navigation-item__content { opacity: 1; border-bottom-color: var(--wp--preset--color--red); text-decoration: none; }
.site-header .header-cta .wp-block-button__link { padding: 10px 18px; font-size: .95rem; white-space: nowrap; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 28px 24px; }
/* Switch to the ☰ menu below 1100px (core switches at 600px, too late for five items + logo) */
@media (max-width: 1023px) {
	.site-header .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.site-header .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.site-header .wp-block-navigation__responsive-container-open svg,
.site-header .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; fill: #fff; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { font-size: 1.6rem; padding: 6px 0; opacity: 1; }
@media (max-width: 1080px) { .site-header .brand-name { font-size: 1rem; letter-spacing: .05em; } }
@media (max-width: 600px) {
	.site-header .brand-name, .site-header .brand-name a { font-size: .9rem; letter-spacing: .03em; max-width: 9.5em; }
	.site-header .wp-block-site-logo img { width: 32px; }
	.site-header .header-cta .wp-block-button__link { padding: 8px 12px; font-size: .85rem; }
}

/* ---------- Star / dot texture used on navy bands ---------- */
.is-style-stars {
	background-image:
		radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px),
		linear-gradient(135deg, var(--wp--preset--color--navy) 0%, #0d2b5c 55%, var(--wp--preset--color--blue) 140%) !important;
	background-size: 18px 18px, 100% 100% !important;
}
.stripe-top { border-top: 6px solid var(--wp--preset--color--red); }

/* ---------- Hero ---------- */
.hero.wp-block-cover { min-height: min(86vh, 760px) !important; }
.hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(6,20,45,.92) 0%, rgba(6,20,45,.8) 38%, rgba(6,20,45,.62) 55%, rgba(6,20,45,.12) 80%, rgba(6,20,45,0) 100%) !important;
	opacity: 1 !important;
}
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .wp-block-cover__image-background { object-position: 72% 30% !important; }
@media (max-width: 781px) {
	.hero.wp-block-cover { min-height: 640px !important; align-items: flex-end; }
	.hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(6,20,45,.96) 0%, rgba(6,20,45,.78) 50%, rgba(6,20,45,.15) 100%) !important; }
	.hero .wp-block-cover__image-background { object-position: 62% 20% !important; }
}

/* ---------- Quick-link cards ---------- */
.quick-links { margin-top: -72px !important; position: relative; z-index: 2; }
.ql-card {
	height: 100%;
	border-top: 5px solid var(--wp--preset--color--blue);
	box-shadow: 0 10px 30px rgba(10,29,63,.12);
	transition: transform .18s ease, box-shadow .18s ease;
}
.ql-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,29,63,.18); }
.ql-card.accent-red { border-top-color: var(--wp--preset--color--red); }
.ql-card.accent-gold { border-top-color: var(--wp--preset--color--gold); }
.ql-card.accent-navy { border-top-color: var(--wp--preset--color--navy); }
.ql-card h3 a { color: inherit; text-decoration: none; }
.ql-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ql-card { position: relative; }
.ql-card .more { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--wp--preset--color--blue); margin-top: auto; }
.wp-block-column > .ql-card { display: flex; flex-direction: column; }
@media (max-width: 781px) { .quick-links { margin-top: -40px !important; } }

/* ---------- Event cards (regionals) ---------- */
.event-card {
	height: 100%;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	border-left: 4px solid var(--wp--preset--color--red);
	position: relative;
	transition: background .18s ease;
}
.event-card:hover { background: rgba(255,255,255,.11); }
.event-card .date { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: .02em; }
.event-card h3 a { color: #fff; text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; inset: 0; }
.event-card.is-light { background: #fff; border-color: var(--wp--preset--color--line); border-left-color: var(--wp--preset--color--red); }
.event-card.is-light h3 a { color: var(--wp--preset--color--navy); }

/* ---------- Stat / fact chips ---------- */
.fact-row .fact { border-left: 3px solid var(--wp--preset--color--red); padding-left: 14px; }
.fact .num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }

/* ---------- Image treatments ---------- */
.photo-frame img { border-radius: 4px; box-shadow: 0 18px 40px rgba(10,29,63,.22); }
.photo-tag { position: relative; }
.wp-block-image.is-style-angled img { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); border-radius: 0; }

/* ---------- Checklist ---------- */
.is-style-checklist { list-style: none; padding-left: 0; }
.is-style-checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.is-style-checklist li::before {
	content: "";
	position: absolute; left: 0; top: .32em;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.has-navy-background-color .is-style-checklist li::before,
.is-style-stars .is-style-checklist li::before { background-color: var(--wp--preset--color--red); }

/* ---------- Page title band ---------- */
.page-band h1 { margin: 0; }
.page-band .wp-block-post-date { opacity: .8; }

/* ---------- News cards ---------- */
.news-card { height: 100%; border-bottom: 3px solid var(--wp--preset--color--blue); }
.news-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.news-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.news-card .wp-block-post-title a:hover { color: var(--wp--preset--color--blue); }

/* ---------- Footer ---------- */
.site-footer a { color: #fff; opacity: .8; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer h2 { font-size: 1rem !important; letter-spacing: .14em; color: #fff; opacity: .6; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .45em; }
.site-footer .wp-block-social-links a { opacity: 1; }
.site-footer .footer-brand .wp-block-site-logo img { width: 56px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255,255,255,.75) !important;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--navy) !important; border-color: #fff !important; }
.wp-block-button__link { transition: filter .15s ease, background .15s ease, color .15s ease; }
.wp-block-button__link:hover { filter: brightness(1.08); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--blue); color: #fff; border-color: var(--wp--preset--color--blue); }

/* Text link with arrow */
.arrow-link a { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.arrow-link a::after { content: " \2192"; }

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


/* ---------- Wrapping card rows ---------- */
.card-grid.wp-block-columns { flex-wrap: wrap !important; }
.card-grid.wp-block-columns > .wp-block-column { flex: 1 1 200px !important; min-width: 0; }
.quick-links .wp-block-columns { flex-wrap: wrap !important; }
.quick-links .wp-block-columns > .wp-block-column { flex: 1 1 230px !important; }
.event-card h3, .event-card .date, .ql-card h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Wide banner crop for photos at the top of inner pages */
.wp-block-image.is-banner img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; width: 100%; }
@media (max-width: 600px) { .wp-block-image.is-banner img { aspect-ratio: 4 / 3; } }
.wp-block-image.is-banner.focus-top img { object-position: 50% 12%; }

/* ---------- Section sub-navigation (BC Tour etc.) ---------- */
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--wp--preset--spacing--50) !important; }
.section-nav a { font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; text-decoration: none; padding: 7px 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 3px; color: var(--wp--preset--color--navy); background: #fff; }
.section-nav a:hover, .section-nav a[aria-current] { background: var(--wp--preset--color--navy); color: #fff; border-color: var(--wp--preset--color--navy); }
.fact .eyebrow::before { display: none; }
.fact .eyebrow { margin-bottom: 4px; }
.event-summary .wp-block-columns { margin-bottom: 0; }
.tourney-table table { font-size: .95rem; }
.tourney-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 700px) { .tourney-table td:nth-child(4), .tourney-table th:nth-child(4) { display: none; } .tourney-table td:nth-child(2) { white-space: normal; } }
.wp-block-table thead { border-bottom: 3px solid var(--wp--preset--color--red); }
.wp-block-table th { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .06em; text-align: left; background: var(--wp--preset--color--navy); color: #fff; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wp--preset--color--ice); }
.wp-block-post-content .wp-block-image img { border-radius: 3px; }

/* ---------- Dropdowns ---------- */
.site-header .main-nav .wp-block-navigation__submenu-container { background: var(--wp--preset--color--navy) !important; border: 0 !important; border-top: 3px solid var(--wp--preset--color--red) !important; box-shadow: 0 14px 30px rgba(4,14,32,.35); padding: 8px 0; min-width: 240px !important; }
.site-header .main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; font-size: .95rem; border-bottom: 0 !important; opacity: .85; text-transform: none; letter-spacing: .02em; font-family: var(--wp--preset--font-family--body); font-weight: 500; }
.site-header .main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { opacity: 1; background: rgba(255,255,255,.08); }
@media (max-width: 1023px) {
	.site-header .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.site-header .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding-left: 14px !important; border-top: 0 !important; box-shadow: none; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.05rem !important; font-family: var(--wp--preset--font-family--body); text-transform: none; }

/* ---------- Menu always on one line ---------- */
.site-header .main-nav .wp-block-navigation__container { flex-wrap: nowrap !important; }
.site-header .main-nav .wp-block-navigation-item { white-space: nowrap; }
.site-header .main-nav { gap: 22px; }
.site-header .brand-name { white-space: nowrap; }
/* If it still doesn't fit (narrow window, zoom, fonts), switch to the ☰ menu instead of wrapping */
.nav-tight .site-header .main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
.nav-tight .site-header .main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }

/* ---------- Upcoming events cards ---------- */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ev-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.ev-card h3 { margin: 0; font-size: 1.35rem; }
.ev-card .date { margin: 0; color: var(--wp--preset--color--red); font-size: 1.6rem !important; }
.ev-card .ev-where { margin: 0; color: var(--wp--preset--color--muted); }
.ev-badge { display: inline-block; align-self: flex-start; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--wp--preset--color--ice); color: var(--wp--preset--color--navy); vertical-align: middle; }
.ev-badge.regional { background: #e3eefc; color: var(--wp--preset--color--blue); }
.ev-badge.national, .ev-badge.usboxla { background: var(--wp--preset--color--navy); color: #fff; }
.ev-badge.live { background: var(--wp--preset--color--red); color: #fff; }
.ev-empty { color: var(--wp--preset--color--muted); }
.ev-past { margin-top: var(--wp--preset--spacing--40); }
.ev-past summary { cursor: pointer; font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--navy); padding: 10px 0; }
.ev-past .tourney-table { opacity: .8; }

/* ---------- Daily Player Spotlight ---------- */
.spotlight { color: #fff; padding: var(--wp--preset--spacing--60) 20px;
	background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px), linear-gradient(135deg, var(--wp--preset--color--navy) 0%, #0d2b5c 55%, var(--wp--preset--color--blue) 140%);
	background-size: 18px 18px, 100% 100%; border-top: 6px solid var(--wp--preset--color--red); }
.spotlight-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: var(--wp--preset--spacing--50); align-items: center; }
.spotlight .sp-photo { margin: 0; }
.spotlight .sp-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 44px rgba(0,0,0,.35); border: 4px solid #fff; }
.spotlight .eyebrow { color: #fff; margin: 0 0 10px; }
.spotlight h2 { color: #fff; font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 6px; }
.spotlight .sp-meta { color: #c9d3e3; margin: 0 0 18px; font-size: 1.05rem; }
.spotlight .sp-reason { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 12px 6px 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 40px; font-size: .95rem; }
.spotlight .sp-reason img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.spotlight .sp-reason strong { color: #FFD25A; }
.spotlight .sp-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.spotlight .sp-stats div { min-width: 76px; padding: 10px 14px; background: rgba(255,255,255,.08); border-top: 3px solid var(--wp--preset--color--red); text-align: center; }
.spotlight .sp-stats b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 2.4rem; line-height: 1; }
.spotlight .sp-stats span { font-family: var(--wp--preset--font-family--display); letter-spacing: .12em; font-size: .8rem; color: #c9d3e3; }
.spotlight .sp-stats-label { color: #9aa6ba; font-size: .85rem; margin: 8px 0 22px; }
@media (max-width: 760px) {
	.spotlight-inner { grid-template-columns: 1fr; }
	.spotlight .sp-photo { max-width: 340px; }
}

/* ---------- Tournament logos ---------- */
.ev-card.has-logo { padding-top: 18px; }
.ev-logo-tile { width: 100%; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); margin: -4px 0 10px; padding-bottom: 10px; }
.ev-logo-tile .is-shield { opacity: .9; max-height: 84px !important; }
.ev-logo-tile img, .ev-logo-tile a { max-height: 100px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.tourney-table td.ev-name { display: flex; align-items: center; gap: 10px; }
.tourney-table td.ev-name .ev-logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; background: #fff; border-radius: 3px; }
.event-card .card-logo { margin: 0 0 10px !important; }
.event-card .card-logo img { display: block; width: 100% !important; height: 120px !important; object-fit: contain; background: #fff; border-radius: 4px; padding: 6px; }
.event-summary .summary-logo { float: right; margin: 0 0 10px 20px; }
.event-summary .summary-logo img { width: 170px; height: auto; max-height: 150px; object-fit: contain; background: #fff; border-radius: 4px; padding: 6px; }
@media (max-width: 600px) { .event-summary .summary-logo { float: none; margin: 0 0 12px; } .event-summary .summary-logo img { width: 140px; } }
.nat-logo img { width: 190px; height: auto; }

/* ---------- Home hero photo rotator ---------- */
.hero .hero-slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 35%; opacity: 0; transition: opacity 1.3s ease; transform: scale(1.02); }
.hero .hero-slide.is-active { opacity: 1; animation: heroZoom 9s ease-out forwards; }
.hero .hero-slide.no-anim { animation: none; transition: none; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero .wp-block-cover__background { z-index: 1 !important; }
.hero .wp-block-cover__inner-container { z-index: 2 !important; position: relative; }
.hero .hero-rotator { display: none !important; }
@media (prefers-reduced-motion: reduce) { .hero .hero-slide { transition: none; animation: none !important; } }

/* ---------- Event page hero (regionals, Nationals) ---------- */
.ev-hero { position: relative; overflow: hidden; }
.ev-hero .stars { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: .25em; line-height: 1; }
.ev-hero .stars .s1 { color: var(--wp--preset--color--red); } .ev-hero .stars .s2 { color: #fff; } .ev-hero .stars .s3 { color: #3d8bff; }
.ev-hero h1 { color: #fff; margin: 0; line-height: .95; }
.ev-hero .ev-date { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 14px 0 6px; text-transform: uppercase; color: #fff; }
.ev-hero .ev-venue { color: #c9d3e3; margin: 0 0 22px; font-size: 1.05rem; }
.ev-hero .div-box { border: 2px solid rgba(255,255,255,.5); border-radius: 12px; padding: 16px 20px; max-width: 460px; background: rgba(255,255,255,.04); }
.ev-hero .div-box h3 { color: #fff; margin: 0 0 8px; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; }
.ev-hero .div-box ul { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 24px; font-size: .98rem; }
.ev-hero .div-box li { margin: 2px 0; break-inside: avoid; }
.ev-hero .div-box p { margin: 8px 0 0; color: #c9d3e3; font-size: .9rem; }
.ev-hero .ev-hero-logo { margin: 0; text-align: center; }
.ev-hero .ev-hero-logo img { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.ev-hero .wp-block-buttons { margin-top: 24px; }
@media (max-width: 781px) { .ev-hero .ev-hero-logo img { max-width: 300px; } .ev-hero .div-box ul { columns: 1; } }

.city-head { font-family: var(--wp--preset--font-family--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.4rem) !important; text-align: center; margin-bottom: var(--wp--preset--spacing--50) !important; color: var(--wp--preset--color--navy); }
.feature { position: relative; padding-left: 58px; margin-bottom: 26px !important; }
.feature::before { content: ""; position: absolute; left: 0; top: 2px; width: 40px; height: 40px; background-repeat: no-repeat; background-size: contain; }
.feature.feat-trophy::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23005EC4%22%3E%3Cpath%20d%3D%22M7%203h10v2h3v3a4%204%200%200%201-4%204h-.3A5%205%200%200%201%2013%2014.9V18h3v3H8v-3h3v-3.1A5%205%200%200%201%208.3%2012H8a4%204%200%200%201-4-4V5h3V3zm0%204H6v1a2%202%200%200%200%201%201.7V7zm11%200v2.7A2%202%200%200%200%2018%208V7h-1z%22%2F%3E%3C%2Fsvg%3E"); }
.feature.feat-hotel::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23005EC4%22%3E%3Cpath%20d%3D%22M3%2021V5h2v9h7V8h6a3%203%200%200%201%203%203v10h-2v-3H5v3H3zm5.5-8A2.5%202.5%200%201%201%208.5%208a2.5%202.5%200%200%201%200%205z%22%2F%3E%3C%2Fsvg%3E"); }
.feature.feat-flag::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23005EC4%22%3E%3Cpath%20d%3D%22M5%2021V3h2v1h12l-2.5%204.5L19%2013H7v8H5z%22%2F%3E%3C%2Fsvg%3E"); }
.feature.feat-pin::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23005EC4%22%3E%3Cpath%20d%3D%22M12%202a7%207%200%200%201%207%207c0%205-7%2013-7%2013S5%2014%205%209a7%207%200%200%201%207-7zm0%204.5A2.5%202.5%200%201%200%2012%2011.5%202.5%202.5%200%200%200%2012%206.5z%22%2F%3E%3C%2Fsvg%3E"); }
.feature h3 { margin: 0 0 6px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.feature p { margin: 0; }
.feature .partner-logo { margin: 10px 0 0 !important; }
.feature .partner-logo img { max-height: 70px; width: auto; }

/* Photo slider: a Gallery block with the class "photo-slider" */
.wp-block-gallery.photo-slider { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px !important; padding-bottom: 8px; scrollbar-width: thin; }
.wp-block-gallery.photo-slider > .wp-block-image { flex: 0 0 86% !important; width: 86% !important; scroll-snap-align: start; margin: 0 !important; }
.wp-block-gallery.photo-slider > .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; height: auto !important; width: 100% !important; border-radius: 4px; }
.slider-hint { text-align: right; color: var(--wp--preset--color--muted); font-size: .8rem !important; margin-top: 4px !important; }

/* brand-wrap-fix: on phones let the name wrap to two lines beside the logo */
@media (max-width: 700px) {
	.site-header .brand-name, .site-header .brand-name a { white-space: normal !important; max-width: 11em; font-size: .95rem; line-height: 1.05; }
	.site-header .brand { flex-shrink: 1; min-width: 0; }
	.site-header .wp-block-site-logo img { width: 34px !important; }
}

/* ---------- Rotating word (qualifying states on regional pages) ---------- */
.rotating-word { font-family: var(--wp--preset--font-family--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; color: #3d8bff; margin: 4px 0 0 !important; min-height: 1.1em; white-space: nowrap; overflow: hidden; visibility: hidden; }
.rotating-word.is-ready { visibility: visible; }
.rotating-word .rw-ch { display: inline-block; animation: rwZoom .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes rwZoom { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.ev-hero .rotating-word + .ev-date { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .rotating-word .rw-ch { animation: none; } }

/* rw-mobile */
@media (max-width: 600px) { .rotating-word { font-size: 1.8rem; } }

/* ---------- Nationals History (champions by year) ---------- */
.champ-history h2 { margin-bottom: 10px; }
.champ-row { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50) !important; }
.champ-year { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem) !important; line-height: .9; margin: 0; color: #fff; position: sticky; top: 90px; }
.champ-photo { margin: 0 0 18px !important; }
.champ-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.champ-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; }
.champ-list li { padding: 8px 0 8px 14px; border-left: 3px solid #FFD25A; }
.champ-list .cd { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: #9fb3d1; }
.champ-list strong { font-size: 1.1rem; color: #fff; }
@media (max-width: 781px) { .champ-year { position: static; font-size: 3rem !important; } }

.nats-map { margin: 0; }
.nats-map img { width: 100%; height: auto; }

.champ-list li.is-pictured { border-left-color: #3d8bff; background: rgba(61,139,255,.16); padding-right: 10px; }
.champ-list li.is-pictured strong { color: #8fc0ff; }
.champ-list li.is-pictured::after { content: "Pictured"; display: inline-block; margin-left: 8px; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: #3d8bff; color: #fff; padding: 2px 7px; border-radius: 2px; vertical-align: middle; }
.champ-photo figcaption { color: #c9d3e3; font-size: .9rem; margin-top: 8px; text-align: left; }
.champ-photo figcaption strong { color: #8fc0ff; }

/* logo-consistency: every card gets the same logo box, the tag floats in the corner so dates line up */
.ev-card { position: relative; }
.ev-card .ev-logo-tile { height: 132px; margin: -4px 0 12px; padding-bottom: 12px; }
.ev-card .ev-logo-tile a { display: block; width: 116px; height: 116px; max-height: none; }
.ev-card .ev-logo-tile img, .ev-card .ev-logo-tile .is-shield { width: 116px !important; height: 116px !important; max-width: none !important; max-height: none !important; object-fit: contain; opacity: 1; }
.ev-card .ev-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }


/* ---------- Events hub (/events/) ---------- */
.tier-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tier-ladder li { margin: 0; }
.tier-ladder a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.tier-ladder a:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.tier-ladder strong { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.6rem; line-height: 1; min-width: 2.2ch; text-align: center; color: #fff; }
.tier-ladder span { font-family: var(--wp--preset--font-family--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; line-height: 1.15; }
.tier-ladder em { display: block; font-family: var(--wp--preset--font-family--body); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .88rem; color: #c9d3e3; margin-top: 2px; }
.tier-ladder li:nth-child(1) a { border-left: 5px solid #f2c14e; }
.tier-ladder li:nth-child(2) a { border-left: 5px solid var(--wp--preset--color--red); }
.tier-ladder li:nth-child(3) a { border-left: 5px solid #3d8bff; }
.tier-tag { display: inline-block; font-family: var(--wp--preset--font-family--display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 10px !important; }
.tier-tag.t1 { background: #f2c14e; color: #0a1d3f; }
.tier-tag.t2 { background: var(--wp--preset--color--red); color: #fff; }
.tier-tag.t3 { background: #3d8bff; color: #fff; }
.nats-feature .nats-logo { margin: 0; text-align: center; }
.nats-feature .nats-logo img { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 16px 30px rgba(10,29,63,.25)); }
.nats-feature .big-date { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; text-transform: uppercase; color: var(--wp--preset--color--navy); margin: 6px 0 4px; }
.nats-feature .where { font-size: 1.15rem; color: var(--wp--preset--color--muted); margin: 0 0 16px; }
.is-style-stars .ev-cards .event-card.is-light { border-color: transparent; }
.is-style-stars .ev-empty, .is-style-stars .ev-empty a { color: #fff; }
.how-steps .step { height: 100%; background: #fff; border-top: 5px solid var(--wp--preset--color--blue); box-shadow: 0 10px 30px rgba(10,29,63,.10); }
.how-steps .step .num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--wp--preset--color--red); margin: 0; }
.how-steps .step h3 { margin: 6px 0 6px; font-size: 1.3rem; }

.ev-cards .event-card { height: auto; }
.tier-ladder strong { white-space: nowrap; min-width: 2.6ch; }
.nats-feature h2 { margin-bottom: 0; }
.nats-feature .big-date { margin-top: 12px; }
.how-steps.card-grid.wp-block-columns > .wp-block-column { flex: 1 1 150px !important; }
@media (max-width: 700px) { .how-steps.card-grid.wp-block-columns > .wp-block-column { flex-basis: 40% !important; } }

/* Events dropdown: tier headings + indented items */
.site-header .main-nav .wp-block-navigation__submenu-container .nav-head > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .1em !important; font-size: .85rem !important; opacity: 1 !important; padding-top: 12px !important; padding-bottom: 4px !important; }
.site-header .main-nav .wp-block-navigation__submenu-container .nav-head.t1 > .wp-block-navigation-item__content { color: #f2c14e !important; }
.site-header .main-nav .wp-block-navigation__submenu-container .nav-head.t2 > .wp-block-navigation-item__content { color: #ff6b78 !important; }
.site-header .main-nav .wp-block-navigation__submenu-container .nav-head.t3 > .wp-block-navigation-item__content { color: #6fa8ff !important; }
.site-header .main-nav .wp-block-navigation__submenu-container .nav-head:not(:first-child) { border-top: 1px solid rgba(255,255,255,.12); margin-top: 6px; }
.site-header .main-nav .wp-block-navigation__submenu-container .nav-sub > .wp-block-navigation-item__content { padding-top: 5px !important; padding-bottom: 5px !important; padding-left: 30px !important; }
.wp-block-navigation__responsive-container.is-menu-open .nav-head > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display) !important; text-transform: uppercase !important; letter-spacing: .08em; font-weight: 700; margin-top: 8px; }
.wp-block-navigation__responsive-container.is-menu-open .nav-sub > .wp-block-navigation-item__content { padding-left: 16px !important; }

/* ---------- Home page rotating photos (.photo-spot) ---------- */
.photo-spot:not(.wp-block-cover) { position: relative; overflow: hidden; }
.photo-spot img.spot-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity 1.3s ease; }
.photo-spot img.spot-photo.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .photo-spot img.spot-photo { transition: none; } }

