/* South Side Thunder – block theme styles
   Colors come from theme.json presets so they can be changed in Styles. */

:root {
	--th-navy: var(--wp--preset--color--navy);
	--th-navy-deep: var(--wp--preset--color--navy-deep);
	--th-gold: var(--wp--preset--color--gold);
	--th-gold-deep: var(--wp--preset--color--gold-deep);
	--th-surface: var(--wp--preset--color--surface);
	--th-band: var(--wp--preset--color--band);
	--th-ink: var(--wp--preset--color--ink);
	--th-muted: var(--wp--preset--color--muted);
	--th-line: var(--wp--preset--color--line);
	--th-display: var(--wp--preset--font-family--display);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--th-gold); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

/* Kill the default gap between header, main and footer, and between home sections */
.wp-site-blocks > * + * { margin-block-start: 0; }
.thunder-main.thunder-main > * { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Header ---------- */
.thunder-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .thunder-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .thunder-header-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .thunder-header-part { top: 0; } }

.thunder-nav {
	background: var(--th-navy-deep);
	color: #fff;
	border-bottom: 3px solid var(--th-gold);
	padding-block: 8px;
}
.thunder-nav__inner { min-height: 64px; gap: 12px 20px; }
.thunder-brand { gap: 10px; }
.thunder-brand__crest { margin: 0; }
.thunder-brand__crest img { width: 36px; height: auto; display: block; }
.thunder-brand__name {
	margin: 0;
	font-family: var(--th-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1;
}
.thunder-brand__name a { color: #fff; text-decoration: none; }
.thunder-brand__name strong { color: var(--th-gold); }
.thunder-nav__right { gap: 18px; margin-left: auto; }
.thunder-links { font-weight: 600; font-size: 15px; color: #fff; gap: 18px; }
.thunder-links a { color: #fff; text-decoration: none; opacity: .9; }
.thunder-links a:hover {
	opacity: 1;
	text-decoration: underline;
	text-decoration-color: var(--th-gold);
	text-underline-offset: 6px;
}
.thunder-links .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--th-navy-deep);
	color: #fff;
	font-size: 22px;
}
.thunder-nav .wp-block-button__link { padding: 9px 18px; font-size: 15px; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--th-gold);
	color: var(--th-navy-deep);
}
.wp-block-button.is-style-gold .wp-block-button__link:hover { background: #FFE17A; }
.wp-block-button.is-style-line-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .6);
	padding: 9px 18px;
}
.wp-block-button.is-style-line-light .wp-block-button__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}

/* ---------- Shared bits ---------- */
.thunder-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--th-navy);
	margin-bottom: 0;
}
.thunder-eyebrow + h1, .thunder-eyebrow + h2 { margin-top: 10px; }
.thunder-muted { color: var(--th-muted); }
.thunder-section { padding-block: 72px; }
.thunder-section.is-alt { background: var(--th-band); }
.thunder-section h2 { margin-bottom: 0; }
.thunder-split.thunder-split { gap: 48px; }
.thunder-head { margin-bottom: 32px; }
.thunder-head.thunder-head > * + * { margin-block-start: 10px; }

/* ---------- Hero ---------- */
.thunder-hero {
	position: relative;
	overflow: hidden;
	background: var(--th-navy);
	color: #fff;
	padding-block: 72px 84px;
}
.thunder-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(115deg, transparent 0 58%, rgba(253, 214, 81, .14) 58% 66%, transparent 66%),
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08), transparent 45%);
	pointer-events: none;
}
.thunder-hero::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -30px;
	width: min(460px, 55vw);
	height: calc(100% + 60px);
	background: var(--th-navy-deep);
	clip-path: polygon(38% 0, 78% 0, 58% 40%, 86% 36%, 30% 100%, 44% 54%, 16% 58%);
	opacity: .9;
	pointer-events: none;
}
.thunder-hero > * { position: relative; z-index: 1; }
.thunder-hero__cols { gap: 40px; }
.thunder-hero h1 { color: #fff; }
.thunder-hero h1 em { color: var(--th-gold); }
.thunder-hero .thunder-eyebrow { color: var(--th-gold); }
.thunder-lede { font-size: 20px; max-width: 46ch; color: #DCE4FA; }
.thunder-stats { gap: 28px; margin-top: 28px; font-size: 14px; color: #C9D4F5; }
.thunder-stats p { margin: 0; }
.thunder-stats strong {
	display: block;
	font-family: var(--th-display);
	font-size: 30px;
	color: #fff;
	line-height: 1;
}
.thunder-crest { margin: 0 auto; max-width: 300px; }
.thunder-crest img { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
@media (max-width: 781px) {
	.thunder-hero__crest { order: -1; }
	.thunder-crest { max-width: 150px; margin: 0; }
}

/* ---------- Event band ---------- */
.thunder-band { background: var(--th-gold); color: var(--th-navy-deep); padding-block: 18px; }
.thunder-band__inner { gap: 12px 28px; align-items: center; }
.thunder-band__inner p { margin: 0; }
.thunder-band__title {
	font-family: var(--th-display);
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.thunder-band__text { font-weight: 600; flex: 1 1 280px; }
.thunder-band .wp-block-button__link { padding: 9px 16px; }

/* ---------- Core values ---------- */
.thunder-values {
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
	border-top: 2px solid var(--th-ink);
	counter-reset: value;
}
.thunder-values li {
	counter-increment: value;
	display: grid;
	grid-template-columns: 56px 1fr;
	align-items: baseline;
	border-bottom: 1px solid var(--th-line);
	padding-block: 12px;
	font-family: var(--th-display);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 40px);
	text-transform: uppercase;
	line-height: 1;
}
.thunder-values li::before {
	content: counter(value, decimal-leading-zero);
	font-size: 22px;
	color: var(--th-navy);
	font-variant-numeric: tabular-nums;
}
.thunder-note { font-size: 14px; color: var(--th-muted); margin-top: 10px; }

/* ---------- Programs ---------- */
.thunder-programs.thunder-programs { gap: 16px; }
@media (min-width: 861px) {
	.thunder-programs.thunder-programs.is-layout-grid { grid-template-columns: repeat(6, 1fr); }
	.thunder-programs > .thunder-card { grid-column: span 2; }
	.thunder-programs > .thunder-card:nth-child(4),
	.thunder-programs > .thunder-card:nth-child(5) { grid-column: span 3; }
}
.thunder-card {
	background: var(--th-surface);
	border: 1px solid var(--th-line);
	border-radius: 10px;
	padding: 22px;
}
.thunder-card.thunder-card > * { margin-block: 0; }
.thunder-card.thunder-card > * + * { margin-block-start: 10px; }
.thunder-season, .thunder-card .wp-block-post-date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--th-muted);
}
.thunder-ages {
	display: inline-block;
	background: var(--th-gold);
	color: var(--th-navy-deep);
	font-weight: 700;
	font-size: 14px;
	padding: 2px 10px;
	border-radius: 999px;
}
.thunder-card .thunder-muted, .thunder-detail { font-size: 15px; }
.thunder-detail { color: var(--th-muted); }
.thunder-detail strong { color: var(--th-ink); }
.thunder-card.thunder-card > .thunder-detail + .thunder-detail { margin-block-start: 4px; }

/* ---------- Practice ---------- */
.thunder-days.thunder-days { gap: 8px; margin-block: 16px; }
.thunder-day {
	margin: 0;
	font-family: var(--th-display);
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
	border: 2px solid var(--th-navy);
	color: var(--th-navy);
	padding: 4px 14px;
	border-radius: 6px;
	line-height: 1.2;
}
.thunder-table.wp-block-table { margin: 0; overflow-x: auto; }
.thunder-table.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--th-surface);
	border: 1px solid var(--th-line);
	border-radius: 10px;
	overflow: hidden;
	font-variant-numeric: tabular-nums;
}
.thunder-table.wp-block-table thead { border-bottom: 0; }
.thunder-table.wp-block-table th,
.thunder-table.wp-block-table td {
	text-align: left;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--th-line);
}
.thunder-table.wp-block-table th {
	background: var(--th-navy);
	color: #fff;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.thunder-table.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.thunder-table.wp-block-table td:first-child { font-weight: 700; }

/* ---------- Family quotes ---------- */
.thunder-quotes.thunder-quotes { gap: 20px; }
.wp-block-quote.thunder-quote {
	margin: 0 0 20px;
	background: var(--th-surface);
	border: 1px solid var(--th-line);
	border-radius: 10px;
	padding: 26px;
	font-size: 18px;
}
.wp-block-column > .wp-block-quote.thunder-quote:last-child { margin-bottom: 0; }
.wp-block-quote.thunder-quote.is-big { font-size: 19px; }
.wp-block-quote.thunder-quote::before {
	content: "\201C";
	display: block;
	font-family: var(--th-display);
	font-size: 64px;
	line-height: .5;
	height: 24px;
	color: var(--th-gold-deep);
}
.wp-block-quote.thunder-quote p { margin: 14px 0 0; }
.wp-block-quote.thunder-quote cite {
	display: block;
	margin-top: 14px;
	font-style: normal;
	font-size: 17px;
	font-weight: 700;
	color: var(--th-navy);
}

/* ---------- Leadership + places ---------- */
.thunder-staff { list-style: none; padding: 0; margin: 24px 0 0; border-top: 2px solid var(--th-ink); }
.thunder-staff li {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding-block: 12px;
	border-bottom: 1px solid var(--th-line);
}
.thunder-staff strong { font-size: 18px; }
.thunder-staff em { font-style: normal; color: var(--th-muted); }
.thunder-places { margin-top: 24px; }
.thunder-places.thunder-places > * { margin-block: 0; }
.thunder-place { padding-block: 14px; border-bottom: 1px solid var(--th-line); color: var(--th-muted); }
.thunder-place:first-child { border-top: 2px solid var(--th-ink); }
.thunder-place strong { color: var(--th-ink); font-size: 18px; }
.thunder-place a { font-weight: 600; font-size: 15px; color: var(--th-navy); }

/* ---------- Footer ---------- */
.thunder-footer {
	background: var(--th-navy-deep);
	color: #DCE4FA;
	padding-block: 48px 36px;
	border-top: 4px solid var(--th-gold);
}
.thunder-footer__cols.thunder-footer__cols { gap: 32px; }
.thunder-footer__crest img { width: 72px; height: auto; }
.thunder-footer h3 { color: #fff; margin: 0 0 8px; }
.thunder-footer p { margin: 2px 0; }
.thunder-contact { margin-top: 12px !important; }
.thunder-contact a { color: #fff; text-decoration: none; }
.thunder-social p { margin: 0 0 8px; }
.thunder-social a { color: var(--th-gold); font-weight: 700; }
.thunder-fine {
	font-size: 13px;
	color: #9FB0DD;
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding-top: 16px;
	margin-top: 24px !important;
}

/* ---------- Inner pages ---------- */
.thunder-page { padding-block: 56px 72px; }
.thunder-page-title { margin-bottom: 24px; }
.thunder-post-list { display: grid; gap: 16px; padding: 0; }
.thunder-post-list h3 a { color: var(--th-ink); text-decoration: none; }
