/*
 * Allsport Academy clinics listing.
 *
 * Lengths are in px on purpose. This theme sets a 10px root font size, so rem
 * values render at roughly half their intended size (62rem came out as 620px,
 * not ~990px). Do not reintroduce rem here.
 *
 * Paragraph and list rules are scoped as `.aac .aac__x` on purpose: the theme's
 * custom.css sets `.site-content-wrapper p { font-size: 23px }`, which outranks
 * a bare single class. Two classes beat it without resorting to !important.
 *
 * Values come from the Elementor kit (post 7): Primary #013333, Secondary
 * #19FFB4, page-title navy #294265, headings Bebas Neue, body Inter. Type is
 * set explicitly throughout, because the theme resets headings to
 * `font-weight: inherit` and sizes paragraphs at 23px, so anything left to
 * inherit renders thin and oversized.
 */
.aac {
	--aac-mint: #19FFB4;
	--aac-mint-dark: #05DB95;
	--aac-primary: #013333;
	--aac-navy: #294265;
	--aac-ink: #010104;
	--aac-rule: #dfe4e8;
}

/* Academy branding */
.aac__brand {
	margin: 0 0 40px;
	text-align: center;
}

.aac__brand-title {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 600;
	margin: 0 0 8px;
}

.aac .aac__brand-intro {
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 736px;
}

.aac__heading {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 600;
	text-align: center;
}

/* Filter tabs, matched to the site's existing Bebas filter styling */
.aac__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 48px;
}

.aac__filter {
	background: transparent;
	border: 2px solid var(--aac-mint);
	color: var(--aac-navy);
	cursor: pointer;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	padding: 14px 22px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.aac__filter:hover {
	background: var(--aac-mint-dark);
	border-color: var(--aac-mint-dark);
	color: var(--aac-ink);
}

.aac__filter.is-active {
	background: var(--aac-mint);
	color: var(--aac-ink);
}

.aac__filter:focus-visible {
	outline: 3px solid var(--aac-primary);
	outline-offset: 2px;
}

/* Clinic block */
.aac__clinic {
	border-top: 1px solid var(--aac-rule);
	display: grid;
	gap: 16px 40px;
	grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
	padding: 36px 0;
}

/*
 * An author `display` rule beats the UA stylesheet's [hidden] { display: none },
 * so the filter's hidden attribute needs this to actually hide anything.
 */
.aac__clinic[hidden] {
	display: none;
}

.aac__clinic-title {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-size: 42px;
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 6px;
}

.aac .aac__clinic-meta {
	color: var(--aac-primary);
	font-family: Inter, sans-serif;
	font-size: 17px;
	font-weight: 700;
	/* Looser tracking suits small caps; at 17px it reads better tightened. */
	letter-spacing: .06em;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.aac .aac__clinic-desc {
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* Day and time cards */
/*
 * The theme injects a mint bullet with `.page .site-content-wrapper ul li::before`
 * (specificity 0,2,3), which list-style:none cannot touch. Three classes plus the
 * pseudo-element outranks it.
 */
.aac .aac__slots .aac__slot::before {
	content: none;
}

.aac .aac__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aac__slot {
	margin: 0;
}

.aac__slot-link {
	border: 2px solid var(--aac-mint);
	color: var(--aac-ink);
	display: inline-block;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	padding: 16px 20px;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.aac__slot-link:hover,
.aac__slot-link:focus-visible {
	background: var(--aac-mint);
	color: var(--aac-ink);
	text-decoration: none;
}

.aac__slot-link:focus-visible {
	outline: 3px solid var(--aac-primary);
	outline-offset: 2px;
}

.aac .aac__empty {
	font-family: Inter, sans-serif;
	font-size: 18px;
	padding: 40px 0;
	text-align: center;
}

/* Reserve space for the Phase 2 availability badge */
.aac__slot-status {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	margin-inline-start: 10px;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.aac__clinic {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.aac__filter {
		font-size: 20px;
		padding: 12px 16px;
	}

	.aac__clinic-title {
		font-size: 34px;
	}
}

/* Program overview page */
.aac-program {
	margin: 0 auto;
	max-width: 992px;
	padding: 32px 20px 64px;
}

.aac-program__head {
	border-bottom: 1px solid var(--aac-rule);
	padding-bottom: 28px;
}

.aac-program__title {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 600;
	margin: 0 0 6px;
}

.aac .aac-program__intro {
	font-family: Inter, sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
	margin: 16px 0 0;
	max-width: 736px;
}

.aac .aac-program__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
}

.aac .aac-program__facts .aac-program__fact-label {
	color: var(--aac-primary);
	display: block;
	font-family: Inter, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.aac-program__fact-value {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 30px;
	font-weight: 600;
}

.aac-program__subhead {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-weight: 600;
	margin: 40px 0 0;
}

.aac-program__slot {
	border-top: 1px solid var(--aac-rule);
	padding: 28px 0;
}

.aac-program__slot-title {
	color: var(--aac-navy);
	font-family: 'Bebas Neue', sans-serif;
	font-size: 30px;
	font-weight: 400;
	margin: 0 0 12px;
}

.aac .aac-program__sessions {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.aac .aac-program__sessions li {
	display: flex;
	flex-wrap: wrap;
	font-family: Inter, sans-serif;
	font-size: 17px;
	gap: 8px 16px;
	padding: 5px 0;
}

.aac .aac-program__sessions .aac-program__slot::before,
.aac .aac-program__sessions li::before,
.aac .aac-program__facts li::before {
	content: none;
}

.aac-program__session-label {
	font-weight: 700;
	min-width: 112px;
}

.aac-program__session-skips {
	color: var(--aac-primary);
	font-style: italic;
}

.aac .aac-program__slot-details {
	color: var(--aac-primary);
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.aac-program__register {
	background: var(--aac-mint);
	border: 2px solid var(--aac-mint);
	color: var(--aac-ink);
	display: inline-block;
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 700;
	padding: 16px 30px;
	text-decoration: none;
}

.aac-program__register:hover,
.aac-program__register:focus-visible {
	background: var(--aac-mint-dark);
	border-color: var(--aac-mint-dark);
	color: var(--aac-ink);
}

.aac-program__register:focus-visible {
	outline: 3px solid var(--aac-primary);
	outline-offset: 2px;
}

.aac .aac-program__back {
	border-top: 1px solid var(--aac-rule);
	font-family: Inter, sans-serif;
	font-size: 16px;
	margin: 32px 0 0;
	padding-top: 28px;
}

/* One-line explanation of how sessions work */
.aac .aac__note {
	font-family: Inter, sans-serif;
	font-size: 17px;
	margin: 0 auto 28px;
	max-width: 640px;
	text-align: center;
}

/* Availability badges, filled in from Dash after load */
.aac__slot-status {
	border-radius: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	margin-inline-start: 10px;
	padding: 3px 7px;
	text-transform: uppercase;
	white-space: nowrap;
}

.aac__slot-status.is-open {
	background: var(--aac-mint);
	color: var(--aac-ink);
}

.aac__slot-status.is-nearly {
	background: #FFD166;
	color: var(--aac-ink);
}

.aac__slot-status.is-waitlist {
	background: #E9EDF0;
	color: #4A5560;
}

.aac__slot-status.is-multiple,
.aac__slot-status.is-upcoming {
	background: transparent;
	border: 1px solid #C7D0D8;
	color: var(--aac-primary);
}

/* Sessions are the top level; each opens to the day/times running in it */
.aac .aac__sessions-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aac__session-group {
	border: 2px solid var(--aac-rule);
}

.aac__session-group:has(.aac__session-head[aria-expanded="true"]) {
	border-color: var(--aac-mint);
}

.aac__session-head {
	align-items: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	min-height: 56px;
	padding: 12px 16px;
	text-align: left;
	width: 100%;
}

.aac__session-head[aria-expanded="true"] {
	background: #F2FFFB;
}

.aac__session-head:focus-visible {
	outline: 3px solid var(--aac-primary);
	outline-offset: -3px;
}

.aac__session-head-text {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.aac__session-name {
	color: var(--aac-ink);
	font-family: Inter, sans-serif;
	font-size: 17px;
	font-weight: 700;
}

.aac__session-range {
	color: #4A5560;
	font-family: Inter, sans-serif;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.aac__session-body {
	border-top: 1px solid var(--aac-rule);
	display: flex;
	flex-direction: column;
}

/* An author display value beats [hidden]; without this the panel stays open */
.aac__session-body[hidden] {
	display: none;
}

.aac .aac__session-meta {
	background: #FAFCFD;
	border-bottom: 1px solid #EDF1F4;
	color: var(--aac-primary);
	font-family: Inter, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	margin: 0;
	padding: 9px 16px;
	text-transform: uppercase;
}

.aac__time {
	align-items: center;
	border-bottom: 1px solid #EDF1F4;
	color: var(--aac-ink);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	min-height: 60px;
	padding: 12px 16px;
	text-decoration: none;
}

.aac__time:last-child {
	border-bottom: 0;
}

.aac__time:hover,
.aac__time:focus-visible {
	background: #F7FFFD;
	color: var(--aac-ink);
}

.aac__time:focus-visible {
	outline: 3px solid var(--aac-primary);
	outline-offset: -3px;
}

.aac__time-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.aac__time-when {
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 700;
}

.aac__time-dates {
	color: #4A5560;
	font-family: Inter, sans-serif;
	font-size: 13px;
}

.aac__session-status {
	background: var(--aac-mint);
	color: var(--aac-ink);
	flex: 0 0 auto;
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 5px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}

.aac__time.is-nearly .aac__session-status { background: #FFD166; }
.aac__time.is-waitlist .aac__session-status { background: #E9EDF0; color: #4A5560; }
.aac__time.is-upcoming .aac__session-status { background: transparent; border: 1px solid #C7D0D8; color: var(--aac-primary); }
.aac__time.is-unknown { pointer-events: none; }
.aac__time.is-unknown .aac__session-status { background: transparent; border: 1px solid #E4E9ED; color: #7C8791; }

/* Price and class count under the grade label, when they hold for the whole program */
.aac .aac__clinic-facts {
	color: #4A5560;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 600;
	margin: 6px 0 0;
}
