/* Weekly Classes page — built on tokens.css custom properties. */

.atfal-classes {
	font-family: var(--font-body);
	color: var(--color-grey-700);
	background: var(--color-white);
}
.atfal-classes h1,
.atfal-classes h2,
.atfal-classes h3 {
	color: var(--color-ink);
}
.atfal-classes a {
	text-decoration: none;
	color: inherit;
}
.atfal-classes img {
	max-width: 100%;
	height: auto;
	display: block;
}
.atfal-classes a:focus-visible,
.atfal-classes summary:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}
.ac-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ac-section {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-7) var(--space-5);
}

/* Hero */
.ac-hero {
	background: linear-gradient(160deg, #1a1a1a 0%, var(--color-ink) 55%, #0d0d0d 100%);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ac-hero__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	/* Extra top padding clears the theme's sticky header. */
	padding: 7rem var(--space-5) var(--space-8);
	text-align: center;
}
.ac-hero__badge {
	display: inline-flex;
	align-items: center;
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	letter-spacing: 0.06em;
	color: var(--color-white);
	background: var(--color-red);
	padding: var(--space-1) var(--space-4);
	border-radius: 999px;
	margin-bottom: var(--space-5);
}
.atfal-classes .ac-hero__title {
	font-size: var(--text-h1);
	font-weight: var(--weight-heavy);
	letter-spacing: -0.02em;
	line-height: var(--leading-tight);
	color: var(--color-white);
	margin: 0 0 var(--space-4);
}
.ac-hero__intro {
	max-width: 640px;
	margin: 0 auto;
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-grey-300);
}

/* Action Hub */
.ac-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-5);
}
.ac-hub-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--color-white);
	border: 1px solid var(--color-grey-200);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--space-7) var(--space-5);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ac-hub-card:hover,
.ac-hub-card:focus-visible {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}
.ac-hub-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--space-5);
	border-radius: 50%;
	background: var(--color-red-tint);
	color: var(--color-red);
}
.ac-hub-card__icon-svg {
	width: 28px;
	height: 28px;
}
.ac-hub-card__title {
	font-size: var(--text-h3);
	font-weight: var(--weight-bold);
	margin: 0 0 var(--space-2);
}
.ac-hub-card__subtitle {
	font-size: var(--text-sm);
	color: var(--color-grey-600);
	line-height: var(--leading-normal);
	margin: 0 0 var(--space-5);
}
.ac-hub-card__cta {
	margin-top: auto;
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	color: var(--color-red);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.ac-hub-card__cta span {
	display: inline-block;
	transition: transform 0.15s ease;
}
.ac-hub-card:hover .ac-hub-card__cta span,
.ac-hub-card:focus-visible .ac-hub-card__cta span {
	transform: translateX(3px);
}

/* Syllabus intro banner */
.ac-syllabus-banner {
	background: var(--color-grey-100);
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	text-align: center;
}
.ac-syllabus-banner__title {
	font-size: var(--text-h2);
	font-weight: var(--weight-bold);
	margin: 0 0 var(--space-4);
}
.ac-syllabus-banner__body {
	max-width: 640px;
	margin: 0 auto;
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-grey-700);
}

/* Document download cards */
.ac-doc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-6);
}
.ac-doc-card {
	display: flex;
	gap: var(--space-5);
	background: var(--color-white);
	border: 1px solid var(--color-grey-200);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: var(--space-5);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ac-doc-card:hover,
.ac-doc-card:focus-visible {
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
	border-color: rgba(201,33,39,0.3);
}
.ac-doc-card__cover {
	flex-shrink: 0;
	width: 120px;
	height: 160px;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	background: var(--color-grey-100);
}
.ac-doc-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ac-doc-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ac-doc-card__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--color-ink);
	margin-bottom: var(--space-2);
}
.ac-doc-card__desc {
	font-size: var(--text-sm);
	color: var(--color-grey-600);
	line-height: var(--leading-normal);
	margin-bottom: var(--space-4);
}
.ac-doc-card__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	align-self: flex-start;
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	color: var(--color-white);
	background: var(--color-red);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-sm);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background-color 0.15s ease;
}
.ac-doc-card:hover .ac-doc-card__cta,
.ac-doc-card:focus-visible .ac-doc-card__cta {
	background: var(--color-red-deep);
}

/* Preparation guide accordion */
.ac-guide {
	max-width: var(--container-max);
	background: var(--color-white);
	border: 1px solid var(--color-grey-200);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.ac-guide__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-5);
	cursor: pointer;
	list-style: none;
}
.ac-guide__toggle::-webkit-details-marker {
	display: none;
}
.ac-guide__toggle-left {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}
.ac-guide__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--color-red-tint);
	color: var(--color-red);
	font-size: 1.1rem;
}
.ac-guide__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--color-ink);
}
.ac-guide__chevron {
	flex-shrink: 0;
	color: var(--color-grey-600);
	transition: transform 0.2s ease;
}
.ac-guide[open] .ac-guide__chevron {
	transform: rotate(180deg);
}
.ac-guide__body {
	padding: 0 var(--space-5) var(--space-5);
}
.ac-guide__note {
	font-size: var(--text-sm);
	font-style: italic;
	line-height: var(--leading-relaxed);
	color: var(--color-grey-600);
	background: var(--color-grey-100);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
	.ac-hub-grid { grid-template-columns: 1fr; }
	.ac-doc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ac-hero__inner { padding: 6.5rem var(--space-4) var(--space-6); }
	.ac-section { padding: var(--space-6) var(--space-4); }
	.ac-doc-card { flex-direction: column; }
	.ac-doc-card__cover { width: 100%; max-width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
	.ac-hub-card,
	.ac-hub-card__cta span,
	.ac-doc-card,
	.ac-doc-card__cta,
	.ac-guide__chevron {
		transition: none;
	}
}
