/*
Theme Name: Chicago TOPSoccer
Description: A simple, editable block theme preserving the Chicago TOPSoccer Little Devils identity.
Version: 1.1.3
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chicago-topsoccer
Tags: block-patterns, full-site-editing, custom-logo, custom-menu
*/

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

html {
	background: #fff;
}

body {
	margin: 0;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.cts-header {
	padding-block-start: 0;
}

.cts-brand-band {
	min-height: 136px;
	padding: 1.25rem 2rem;
	color: #20262c;
	gap: 1.5rem;
	justify-content: flex-start;
}

.cts-brand-band .wp-block-site-logo img {
	display: block;
	max-width: 100%;
	height: auto;
	width: 180px;
}

.cts-brand-band .wp-block-site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.cts-brand-band .wp-block-site-title a {
	color: #a80000;
}

.cts-menu-band {
	margin-block-start: 0 !important;
}

.cts-navigation {
	min-height: 48px;
	color: #fff;
}

.cts-navigation .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.cts-navigation .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
	flex: 1 1 auto;
	justify-content: center;
}

.cts-navigation .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1rem;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.cts-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	width: 100%;
	min-height: 48px;
}

.cts-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content {
	padding-inline: 1rem 2rem;
}

.cts-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
	position: absolute;
	z-index: 1;
	inset-inline-end: 1rem;
	top: 50%;
	width: 12px;
	height: 12px;
	margin: 0;
	transform: translateY(-50%);
	pointer-events: none;
}

.cts-navigation .wp-block-navigation-item:is(:hover, :focus-within) > .wp-block-navigation-item__content,
.cts-navigation .current-menu-item > .wp-block-navigation-item__content {
	background: #830000;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.cts-navigation .wp-block-navigation-submenu {
	gap: 0;
}

.cts-navigation .wp-block-navigation__submenu-container {
	min-width: 13rem !important;
	background: #a00000 !important;
	color: #fff !important;
	border-color: #df7777 !important;
}

.cts-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	justify-content: flex-start;
	text-align: left;
}

.cts-navigation .wp-block-navigation-submenu__toggle,
.cts-navigation .wp-block-navigation__responsive-container-open,
.cts-navigation .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	align-items: center;
}

.cts-navigation .wp-block-navigation__responsive-container-open {
	margin-inline-start: auto;
}

.cts-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem;
	background: #a00000;
	color: #fff;
}

.cts-navigation .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
}

.cts-navigation .is-menu-open .wp-block-navigation__container,
.cts-navigation .is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: stretch;
}

.cts-navigation .is-menu-open .wp-block-navigation-item__content {
	justify-content: flex-start;
	text-align: left;
}

.cts-main {
	padding-block: clamp(2rem, 5vw, 4rem) 4rem;
	min-height: 40vh;
}

.cts-main :where(p, li) {
	max-width: 70ch;
}

.cts-main :where(h1, h2, h3) {
	text-wrap: balance;
	letter-spacing: -0.025em;
}

.cts-main > .wp-block-post-title {
	padding-block-end: 1.5rem;
	border-block-end: 1px solid #c5cdd3;
	margin-block-end: 2rem;
}

.cts-main :where(p, li, h1, h2, h3, h4, h5, h6, a) {
	overflow-wrap: anywhere;
}

.cts-main .wp-block-column {
	min-width: 0;
}

.cts-section + .cts-section {
	margin-block-start: clamp(3rem, 6vw, 5rem);
}

.cts-intro,
.cts-photo-pair,
.cts-news-grid,
.cts-video-grid {
	gap: 2rem;
}

.cts-intro {
	align-items: start;
}

.cts-intro .wp-block-image img,
.cts-photo-pair .wp-block-image img,
.cts-news-grid .wp-block-image img,
.cts-video-grid .wp-block-image img {
	display: block;
	width: 100%;
}

.cts-news-grid > .wp-block-column,
.cts-video-grid > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.cts-card {
	height: 100%;
	padding: 1.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: #f1f4f6;
}

.cts-card > :first-child {
	margin-block-start: 0;
}

.cts-card .wp-block-heading {
	font-size: 1.5rem;
}

.cts-card .wp-block-image {
	margin-inline: 0;
}

.cts-season {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-block-start: 4px solid #b00000;
	border-block-end: 1px solid #c5cdd3;
	background: #f1f4f6;
}

.cts-documents .wp-block-button,
.cts-documents .wp-block-button__link {
	max-width: 100%;
}

.cts-documents .wp-block-button__link {
	white-space: normal;
	overflow-wrap: anywhere;
}

.wp-block-button__link:hover {
	background: #830000;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 160ms ease, color 160ms ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
	background: transparent;
	color: #b00000;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #f1f4f6;
	color: #830000;
}

.cts-brand-copy > p {
	margin: 0;
}

.cts-brand-name {
	font-size: clamp(1.25rem, 3vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.035em;
}

.cts-brand-tagline {
	color: #4b5660;
	font-size: 1rem;
}

.cts-hero .wp-block-heading {
	max-width: 10ch;
	font-size: clamp(3rem, 5.6vw, 5.5rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.05;
	margin-block: 0 1.5rem;
}

.cts-hero-emphasis {
	display: block;
	color: #b00000;
}

.cts-hero .cts-intro {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
	gap: 3rem;
	align-items: center;
	padding-block: 1rem 3rem;
}

.cts-hero .cts-intro::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -1rem -1rem -1rem 15%;
	background: #fcf1f1;
	clip-path: polygon(30% 40%, 100% 0, 100% 100%, 0 75%);
}

.cts-intro > .wp-block-column {
	min-width: 0;
}

.cts-hero-photo {
	position: relative;
	isolation: isolate;
	margin: 0;
}

.cts-hero-photo::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 1.25rem -1rem -1rem 1.25rem;
	background: #b00000;
	border-radius: 1rem;
}

.cts-hero-photo img {
	display: block;
	border-radius: 0.875rem;
}

.cts-hero .wp-block-buttons {
	margin-block-start: 1.75rem;
	gap: 0.75rem;
}

@media (max-width: 781px) {
	.cts-hero .cts-intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		padding-block: 0.5rem 1.5rem;
	}

	.cts-hero .wp-block-heading {
		max-width: none;
		font-size: clamp(2.75rem, 10vw, 4.5rem);
	}

	.cts-hero-photo {
		margin-inline-end: 0.5rem;
	}

	.cts-hero-photo::after {
		inset: 0.75rem -0.5rem -0.5rem 0.75rem;
	}
}

.cts-intro-label {
	color: #b00000;
	font-size: 1.0625rem;
	font-weight: 600;
}

.cts-season-note {
	color: #4b5660;
	font-size: 1rem;
}

.cts-season-note a,
.cts-main a[href^="mailto:"] {
	display: inline-block;
	padding-block: 0.125rem;
}

.cts-home-photos img {
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.cts-home-photos > .wp-block-column {
	display: flex;
	align-items: flex-start;
}

.cts-home-photos .wp-block-image {
	margin: 0;
}

.cts-affiliate-logo {
	display: inline-block;
	max-width: 32rem !important;
	padding: 1.5rem;
	border-radius: 0.5rem;
	background: #20262c;
}

@media (min-width: 782px) {
	.cts-home-photos.wp-block-columns {
		display: grid;
		grid-template-columns: 3fr 2fr;
	}
}

.cts-home-video {
	margin-block-start: 3rem;
}

.cts-home-video .wp-block-image {
	max-width: 36rem;
}

.cts-card .wp-block-image,
.cts-main > .wp-block-post-content > .cts-section > .wp-block-image {
	max-width: 48rem;
}

.cts-news-grid .cts-card {
	background: transparent;
	padding: 1.5rem 0;
	border-block-start: 1px solid #c5cdd3;
	border-radius: 0;
}

.cts-news-grid .wp-block-image img {
	max-height: 26rem;
	width: auto;
	max-width: 100%;
}

.cts-archive-note {
	padding: 1rem 1.25rem;
	border: 1px solid #c5cdd3;
	border-radius: 0.5rem;
	background: #f1f4f6;
}

.cts-footer {
	padding: 3rem 2rem 2rem;
	border-block-end: 5px solid #b00000;
	color: #20262c;
}

.cts-footer-logos {
	gap: 2rem;
	flex-wrap: wrap;
}

.cts-footer-logos .wp-block-image {
	flex: 0 1 220px;
	margin: 0;
}

.cts-footer-logos img {
	display: block;
	width: 100%;
	max-height: 100px;
	object-fit: contain;
}

.cts-footer p {
	font-size: 1rem;
}

.cts-sponsors-copy {
	color: #a80000;
	font-weight: 600;
}

.cts-amazon-copy {
	color: #4b5660;
	font-size: 1rem;
}

.cts-footer a {
	color: #a80000;
}

.cts-footer p a {
	display: inline-block;
	min-height: 2.75rem;
	padding-block: 0.5rem;
}

.cts-footer .wp-block-social-links .wp-social-link {
	background: #a80000;
	color: #fff;
}

.cts-footer .wp-block-social-links .wp-social-link a {
	min-width: 44px;
	min-height: 44px;
	color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #20262c !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff !important;
}

.editor-styles-wrapper {
	font-family: "Open Sans", Arial, sans-serif;
}

@media (max-width: 781px) {
	.cts-intro,
	.cts-photo-pair,
	.cts-news-grid,
	.cts-video-grid {
		gap: 1.5rem;
	}

	.cts-footer-logos {
		gap: 1.5rem;
	}

	.cts-footer-logos .wp-block-image {
		flex-basis: calc(33.333% - 1rem);
	}
}

@media (max-width: 599px) {
	.cts-brand-band {
		min-height: 0;
		padding: 1rem;
		gap: 0.75rem;
	}

	.cts-brand-band .wp-block-site-logo img {
		max-width: min(100%, 27vw);
	}

	.cts-brand-band .wp-block-site-logo {
		flex: 0 0 27vw;
		width: 27vw;
		max-width: 108px;
	}

	.cts-brand-copy {
		flex: 1 1 8rem;
	}

	.cts-brand-tagline {
		font-size: 0.875rem;
	}

	.cts-brand-name {
		font-size: clamp(1rem, 4.7vw, 1.25rem);
	}

	.cts-hero .wp-block-columns {
		gap: 2rem;
	}

	.cts-hero .wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	.cts-hero .wp-block-button__link {
		width: 100%;
	}

	.cts-navigation {
		padding-inline: 0.5rem;
	}

	.cts-footer {
		padding: 1.5rem 1rem;
	}

	.cts-footer-logos {
		gap: 1rem;
	}

	.cts-footer-logos .wp-block-image {
		flex-basis: calc(33.333% - 0.667rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
