/*
 * Public design layer for atfal.ca (PREMIUM_UI_NOTES.md). Public pages only:
 * functions.php never enqueues it on /portal/ and it is not on the portal's
 * stylesheet allowlist.
 *
 * Page stylesheets give each screen its layout; this file, printed after
 * them, gives the whole public site one set of shared components:
 *
 *   1. Layout      - container, section rhythm, section heads, eyebrows.
 *   2. Bands       - the ink band (.ah-band--dark) and its text.
 *   3. Buttons     - primary (ink), secondary (white, hairline), text link,
 *                    round icon buttons; one size scale, one focus ring.
 *   4. Header      - sticky white bar, nav states, dropdown panel, phone menu.
 *   5. Pages       - department, About, Classes, Ijtima and page-builder
 *                    pages: sans headings, soft cards, artwork corners.
 *   6. Footer
 *   7. Motion      - gentle entrance; nothing moves with reduced motion.
 *
 * Colour values come only from tokens.css: ink, white and neutral greys.
 */

/* ===========================================================================
   1. LAYOUT
   =========================================================================== */
.ah-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--container-max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.atfal-home .ah-section {
	padding-block: var(--section-y);
}
.ah-section__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-bottom: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
}
.ah-section__head--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	align-items: end;
	gap: var(--space-5) var(--space-7);
}
.ah-section__head--split > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.atfal-home .ah-section__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-heading);
	font-size: var(--text-h2);
	font-weight: var(--weight-semibold);
	line-height: 1.1;
	letter-spacing: var(--tracking-heading);
	text-align: left;
	color: var(--color-ink);
	text-wrap: balance;
}
.atfal-home .ah-section__title::before,
.atfal-home .ah-section__title::after {
	content: none;
}
.atfal-home .ah-section__lead {
	max-width: 46ch;
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-grey-600);
	justify-self: end;
}
.atfal-home .ah-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-label);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-normal);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	color: var(--color-grey-600);
}
@media (max-width: 800px) {
	.ah-section__head--split { grid-template-columns: minmax(0, 1fr); }
	.atfal-home .ah-section__lead { justify-self: start; }
}

/* ===========================================================================
   2. BANDS
   The ink band: tokens.css flips the accent, edges and text greys inside
   .ah-band--dark, so buttons and focus rings invert on their own.
   =========================================================================== */
.ah-band--dark {
	background: var(--bw-black);
	color: var(--bw-on-dark);
}
.atfal-home .ah-band--dark .ah-section__title {
	color: var(--bw-white);
}
.atfal-home .ah-band--dark .ah-eyebrow,
.atfal-home .ah-band--dark .ah-section__lead {
	color: var(--bw-on-dark-soft);
}

/* ===========================================================================
   3. BUTTONS
   =========================================================================== */
.ah-btn,
.ai-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: 0 var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius-control);
	font-family: var(--font-body);
	font-size: var(--text-button);
	font-weight: var(--weight-semibold);
	line-height: 1;
	letter-spacing: -0.005em;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.ah-btn--lg {
	min-height: 52px;
	padding-inline: var(--space-6);
	font-size: var(--text-base);
	border-radius: 12px;
}
.ah-btn:active,
.ai-btn:active {
	transform: translateY(1px);
}
.ah-btn__arrow {
	display: inline-block;
	transition: transform var(--duration-fast) ease;
}
.ah-btn:hover .ah-btn__arrow,
.ah-link-cta:hover .ah-btn__arrow,
a:hover > .ah-link-cta .ah-btn__arrow,
a:hover > .ah-btn .ah-btn__arrow {
	transform: translateX(3px);
}

/* Primary: an ink fill (a white fill on ink bands). Two classes beat the page
   stylesheets' `.atfal-home a { color: inherit }`. */
.ah-btn.ah-btn--primary,
.ai-btn.ai-btn--primary {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-on-accent);
	box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ah-btn.ah-btn--primary:hover,
.ai-btn.ai-btn--primary:hover,
a:hover > .ah-btn.ah-btn--primary {
	background: var(--color-accent-strong);
	border-color: var(--color-accent-strong);
	color: var(--color-on-accent);
}

/* Secondary (glass, ghost and outline are older names for it): the surface
   colour with a hairline edge. */
.ah-btn.ah-btn--secondary,
.ah-btn.ah-btn--glass,
.ah-btn.ah-btn--ghost,
.ai-btn.ai-btn--glass,
.ai-btn.ai-btn--outline {
	background: var(--bw-white);
	border-color: var(--bw-grey-300);
	color: var(--bw-black);
	box-shadow: var(--shadow-xs);
}
.ah-btn.ah-btn--secondary:hover,
.ah-btn.ah-btn--glass:hover,
.ah-btn.ah-btn--ghost:hover,
.ai-btn.ai-btn--glass:hover,
.ai-btn.ai-btn--outline:hover {
	background: var(--bw-grey-50);
	border-color: var(--bw-grey-500);
	color: var(--bw-black);
}
/* On ink: transparent with a light hairline. */
:is(.ah-band--dark, .ad-hero, .ac-hero, .ai-hero, .atfal-ijtima, .af-footer) :is(.ah-btn--secondary, .ah-btn--glass, .ah-btn--ghost, .ai-btn--glass, .ai-btn--outline).ah-btn,
:is(.ah-band--dark, .ad-hero, .ac-hero, .ai-hero, .atfal-ijtima, .af-footer) :is(.ai-btn--glass, .ai-btn--outline).ai-btn {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--bw-white);
	box-shadow: none;
}
:is(.ah-band--dark, .ad-hero, .ac-hero, .ai-hero, .atfal-ijtima, .af-footer) :is(.ah-btn--secondary, .ah-btn--glass, .ah-btn--ghost, .ai-btn--glass, .ai-btn--outline).ah-btn:hover,
:is(.ah-band--dark, .ad-hero, .ac-hero, .ai-hero, .atfal-ijtima, .af-footer) :is(.ai-btn--glass, .ai-btn--outline).ai-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--bw-white);
}

/* Tertiary: an underlined text link. */
.ah-btn.ah-btn--tertiary,
.ah-link-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--color-ink);
}
.ah-btn.ah-btn--tertiary {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.3em;
}
.ah-btn.ah-btn--tertiary:hover {
	text-decoration-thickness: 2px !important;
}

/* Round icon buttons: carousels, the quote rotator, About tabs. */
.ah-icon-btn,
.atfal-home .ah-initiatives__btn,
.ah-guidance__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bw-grey-300);
	border-radius: 50%;
	background: var(--bw-white);
	color: var(--bw-black);
	box-shadow: var(--shadow-xs);
	cursor: pointer;
	transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.ah-icon-btn:hover,
.atfal-home .ah-initiatives__btn:hover,
.ah-guidance__nav:hover {
	background: var(--bw-grey-50);
	border-color: var(--bw-grey-500);
}
.ah-band--dark :is(.ah-icon-btn, .ah-initiatives__btn, .ah-guidance__nav) {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.24) !important;
	color: var(--bw-white) !important;
	box-shadow: none;
}
.ah-band--dark :is(.ah-icon-btn, .ah-initiatives__btn, .ah-guidance__nav):hover {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Focus: one ring everywhere (inverted on ink, through the tokens). */
body:not(.atfal-portal-body) :is(.ah-btn, .ai-btn, .ah-icon-btn, .ah-initiatives__btn, .ah-guidance__nav, .ah-nav-cta, .ah-nav-signin, .ah-brand, .ah-mega__item, .af-map-card__cta):focus-visible,
.atfal-home a:focus-visible,
.atfal-home button:focus-visible,
.atfal-home [tabindex]:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring) !important;
}

/* Cells of the ruled resource table sit inside a clipped, rounded frame:
   their ring is drawn inside the cell so no side is cut off. */
.atfal-home .ah-resource:focus-visible {
	box-shadow: inset 0 0 0 2px var(--bw-black) !important;
}

/* ===========================================================================
   4. HEADER
   A white bar that stays at the top; a hairline appears once the page
   scrolls under it. Nav labels in ink; hover and the current page are a
   soft pill, never colour alone.
   =========================================================================== */
.header_3.ah-header,
.header_4.ah-header {
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}
.header_3.ah-header .row.elms_row,
.header_4.ah-header .row.elms_row {
	background: rgba(255, 255, 255, 0.98) !important;
}
.header_3.ah-header {
	border-bottom: 1px solid var(--bw-grey-200);
}
.header_3.ah-header.onSticky {
	border-bottom-color: var(--bw-grey-200);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px -16px rgba(0, 0, 0, 0.18) !important;
}
.header_4.ah-header {
	border-bottom: 1px solid var(--bw-grey-200);
}
.header_3.ah-header .row.elms_row {
	max-width: calc(var(--container-wide) + 2 * var(--gutter)) !important;
	padding-inline: var(--gutter) !important;
}
.header_3.ah-header #menu_header_3 > li > a {
	padding: 8px 14px !important;
	border-radius: var(--radius-sm);
	font-size: 14.5px !important;
	font-weight: var(--weight-medium) !important;
	letter-spacing: -0.005em;
	text-decoration: none !important;
	color: var(--bw-grey-700) !important;
	transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.header_3.ah-header #menu_header_3 > .menu-item:hover > a,
.header_3.ah-header #menu_header_3 > .menu-item > a:focus-visible,
.header_3.ah-header #menu_header_3 > .menu-item.sfHover > a {
	background: var(--bw-grey-100);
	color: var(--bw-black) !important;
}
.header_3.ah-header #menu_header_3 > .menu-item.current-menu-item > a,
.header_3.ah-header #menu_header_3 > .menu-item.current_page_item > a,
.header_3.ah-header #menu_header_3 > .menu-item.current-menu-ancestor > a {
	font-weight: var(--weight-semibold) !important;
	color: var(--bw-black) !important;
	background: var(--bw-grey-100);
}
.header_3.ah-header #menu_header_3 > li > a:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}
.ah-brand__name > span {
	letter-spacing: -0.01em;
}

/* Actions: Sign In as a quiet text button, Join Classes as the one ink button. */
.ah-nav-actions {
	gap: var(--space-2) !important;
	padding-left: var(--space-5) !important;
	border-left-color: var(--bw-grey-200) !important;
}
.ah-nav-signin {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--space-3);
	border-radius: var(--radius-sm);
	font-size: 14.5px !important;
	font-weight: var(--weight-medium);
	color: var(--bw-grey-700) !important;
	text-decoration: none !important;
}
.ah-nav-signin:hover {
	background: var(--bw-grey-100);
	color: var(--bw-black) !important;
}
.ah-nav-cta.ah-nav-cta {
	min-height: 40px;
	padding: 0 var(--space-4);
	border: 1px solid var(--bw-black);
	border-radius: var(--radius-control);
	background: var(--bw-black);
	color: var(--bw-white) !important;
	font-size: 14.5px;
	font-weight: var(--weight-semibold);
	box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ah-nav-cta.ah-nav-cta:hover {
	background: var(--bw-grey-800);
	border-color: var(--bw-grey-800);
	color: var(--bw-white) !important;
}
.ah-nav-cta:focus-visible,
.ah-nav-signin:focus-visible {
	border-radius: var(--radius-control) !important;
}

/* Dropdown (Atfal Corner): a white panel, soft shadow, three columns. */
.header_3 .sub-menu.ah-mega-menu {
	width: 720px;
	max-width: min(720px, 92vw);
	padding: var(--space-4) !important;
	padding-top: calc(var(--space-4) + 8px) !important;
	border: 1px solid var(--bw-grey-200) !important;
	border-radius: var(--radius-lg) !important;
	background: var(--bw-white) !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 56px -16px rgba(0, 0, 0, 0.22) !important;
}
.ah-mega {
	gap: var(--space-2) var(--space-4);
}
.ah-mega__col-title {
	padding: var(--space-2) var(--space-3) var(--space-2) !important;
	margin-bottom: var(--space-1) !important;
	border-bottom: 0 !important;
	font-size: 11px !important;
	font-weight: var(--weight-semibold) !important;
	letter-spacing: var(--tracking-label) !important;
	color: var(--bw-grey-500) !important;
}
.ah-mega__item {
	gap: var(--space-3) !important;
	padding: var(--space-2) var(--space-3) !important;
	border-radius: var(--radius-sm) !important;
}
.ah-mega__item:hover,
.ah-mega__item:focus-visible {
	background: var(--bw-grey-50) !important;
}
.ah-mega__item:hover .ah-mega__item-title,
.ah-mega__item:focus-visible .ah-mega__item-title {
	text-decoration: none !important;
}
.ah-mega__item i {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px !important;
	height: 30px;
	margin-top: 0 !important;
	border: 1px solid var(--bw-grey-200);
	border-radius: var(--radius-sm);
	background: var(--bw-white);
	color: var(--bw-black) !important;
	font-size: 0.8125rem !important;
	box-shadow: var(--shadow-xs);
	transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.ah-mega__item:hover i,
.ah-mega__item:focus-visible i {
	background: var(--bw-black);
	border-color: var(--bw-black);
	color: var(--bw-white) !important;
}
.ah-mega__item-title {
	font-size: 14px !important;
	font-weight: var(--weight-semibold) !important;
	color: var(--bw-black) !important;
}
.ah-mega__item-desc {
	margin-top: 2px !important;
	font-size: 12.5px !important;
	color: var(--bw-grey-600) !important;
}

/* Phone menu: the ink panel from the top (the theme centres it with an
   inline padding-top), full-width rows, sentence-case labels. */
.fullscreen_menu {
	background: var(--bw-black) !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 100vw;
	left: 0 !important;
	right: 0 !important;
	padding: 88px var(--gutter) var(--space-7) !important;
	overflow-y: auto;
}
.fullscreen_menu > li {
	display: block !important;
	width: 100% !important;
	max-width: 32rem;
	margin: 0 !important;
	padding: 0 !important;
}
.fullscreen_menu .menu-item > a > span,
.fullscreen_menu > .ah-menu-signin > a > span {
	text-transform: none !important;
	letter-spacing: -0.01em !important;
}
.fullscreen_menu > .ah-menu-signin {
	margin-bottom: var(--space-4) !important;
}
.fullscreen_menu > .ah-menu-signin > a {
	justify-content: center;
	min-height: 48px !important;
	border: 1px solid rgba(255, 255, 255, 0.24) !important;
	border-radius: var(--radius-control) !important;
	padding-left: 0 !important;
}
.fullscreen_menu > .ah-menu-signin + li {
	border-top: 0 !important;
}
/* The parent theme's hover/open marker is a brand-blue bar: never drawn. */
.fullscreen_menu a::before,
.fullscreen_menu a::after {
	display: none !important;
}
.fullscreen_menu .sub-menu {
	width: 100% !important;
	margin: 0 0 var(--space-3) !important;
	padding: 0 !important;
}
.fullscreen_menu .sub-menu > li {
	width: 100% !important;
	margin: 0 !important;
}
.fullscreen_menu .sub-menu .menu-item > a {
	justify-content: flex-start;
	text-align: left !important;
	line-height: 1.3;
}
.fullscreen_menu .cz_indicator {
	color: var(--bw-white) !important;
	font-size: 14px !important;
}
.fullscreen_menu > .cz > a,
.fullscreen_menu .menu-item > a {
	display: flex !important;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px !important;
	font-size: 17px !important;
	font-weight: var(--weight-medium) !important;
	letter-spacing: -0.01em !important;
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
	border-left: 0 !important;
	border-radius: 0;
	padding-left: var(--space-1) !important;
}
.fullscreen_menu .current-menu-item > a,
.fullscreen_menu .current_page_item > a {
	background: none !important;
	font-weight: var(--weight-bold) !important;
}
.fullscreen_menu .sub-menu .menu-item > a {
	min-height: 44px !important;
	font-size: 15px !important;
	font-weight: var(--weight-regular) !important;
	color: #d4d4d4 !important;
	padding-left: var(--space-5) !important;
}
i.icon_fullscreen_menu,
i.icon_mobile_fullscreen_menu {
	border-radius: var(--radius-control) !important;
}

/* ===========================================================================
   5. OTHER PUBLIC PAGES
   Department, About, Weekly Classes, Ijtima and page-builder pages keep
   their own layouts; here they take the same type and surfaces.
   =========================================================================== */
:is(.atfal-dept, .atfal-about, .atfal-classes, .atfal-ijtima) {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:is(.atfal-dept, .atfal-about, .atfal-classes, .atfal-ijtima) :is(h1, h2, h3) {
	font-family: var(--font-heading);
}
.atfal-dept .ad-hero__title,
.atfal-about .ab-hero__title,
.ac-hero__title,
.ai-hero__title,
.page_title h1,
.page_title .section_title {
	font-family: var(--font-heading) !important;
	font-weight: var(--weight-semibold) !important;
	letter-spacing: var(--tracking-display) !important;
	line-height: var(--leading-display) !important;
}
:is(.ad-plan__title, .ad-resources__title, .ab-section__title, .ac-section__title, .ai-section__title) {
	font-family: var(--font-heading) !important;
	font-weight: var(--weight-semibold) !important;
	letter-spacing: var(--tracking-heading) !important;
}
.page_content .wpb_wrapper :is(h1, h2):not([style*="font-family"]) {
	font-family: var(--font-heading);
	font-weight: var(--weight-semibold);
	letter-spacing: var(--tracking-heading);
}
/* Ink heroes on page templates. The Ijtima page is ink throughout: its
   section titles are drawn in the band's light ink (tokens.css). */
.ad-hero,
.ac-hero,
.ai-hero,
.atfal-ijtima,
.ai-section {
	background: var(--bw-black) !important;
}
.ad-hero__grid-pattern,
.ai-hero__grid-pattern,
.ai-hero__glow {
	display: none !important;
}

/* Text the parent theme fades with opacity: keep it at AA on the new ink. */
.ab-hero__quote cite {
	opacity: 1 !important;
	color: var(--bw-grey-600) !important;
}
.ai-sched__run-item--done {
	opacity: 0.62 !important;
}

/* Cards: white, hairline, soft shadow, lift on hover. */
.ad-card,
.ad-plan-item,
.ad-resource-card,
.ad-explore-card,
.ab-guidance-card,
.ab-aux-card,
.ac-hub-card,
.ac-doc-card,
.ac-guide {
	border: 1px solid var(--edge) !important;
	border-radius: var(--radius-card) !important;
	box-shadow: var(--shadow-xs) !important;
	transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
a.ad-resource-card:hover,
a.ad-explore-card:hover,
.ab-aux-card:hover,
a.ac-hub-card:hover,
a.ac-doc-card:hover {
	transform: translateY(-2px);
	border-color: var(--edge-strong) !important;
	box-shadow: var(--shadow-md) !important;
}

/* Artwork: rounded corners and a hairline; never tinted, dimmed or blurred. */
.ab-hero__portrait img,
.ac-doc-card__cover,
.ai-acc__image,
.page_content .cz_image .cz_image_in {
	border-radius: var(--radius-art) !important;
	overflow: hidden;
	filter: none !important;
}
.page_content .cz_image .js-tilt-glare {
	display: none !important;
}

/* Back to top. */
i.backtotop {
	border-radius: 50% !important;
	background: var(--bw-black) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	box-shadow: var(--shadow-md) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}
i.backtotop:hover {
	background: var(--bw-grey-800) !important;
}

/* ===========================================================================
   6. FOOTER
   =========================================================================== */
.af-footer {
	background: var(--bw-grey-900) !important;
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}
.af-footer__grid-pattern,
.af-map-card__grid {
	display: none !important;
}
.af-col__title {
	font-size: var(--text-label) !important;
	font-weight: var(--weight-semibold) !important;
	letter-spacing: var(--tracking-label) !important;
	text-transform: uppercase;
	color: var(--bw-on-dark-soft) !important;
}
.af-links a,
a.af-contact-row {
	min-height: 40px;
	padding-block: 0 !important;
	align-items: center;
	font-size: var(--text-sm);
	color: #e5e5e5 !important;
	transition: color var(--duration-fast) ease;
}
.af-links a:hover,
a.af-contact-row:hover {
	color: var(--bw-white) !important;
}
.af-links a i {
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.af-links a:hover i,
.af-links a:focus-visible i {
	opacity: 1;
	transform: none;
}
.af-brand__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	transition: background-color var(--duration-fast) ease;
}
.af-brand__social a:hover {
	background: rgba(255, 255, 255, 0.08);
}
.af-map-card {
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: var(--radius-card) !important;
	background: rgba(255, 255, 255, 0.03) !important;
	box-shadow: none !important;
}
.af-map-card__cta.af-map-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: var(--radius-control) !important;
	background: var(--bw-white) !important;
	color: var(--bw-black) !important;
	border: 0 !important;
}
.af-footer :is(a, button):focus-visible {
	outline: none;
	border-radius: var(--radius-sm);
	box-shadow: var(--focus-ring-on-dark) !important;
}
.af-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/* Phones: the two link lists side by side instead of one long column. */
@media (max-width: 640px) {
	.af-footer__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: var(--space-7) var(--space-5) !important;
	}
	.af-col--brand,
	.af-col--contact {
		grid-column: 1 / -1;
	}
}

/* ===========================================================================
   7. MOTION
   =========================================================================== */
html.ah-reveal-ready [data-ah-reveal] {
	transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.ah-reveal-ready [data-ah-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
	.ah-btn, .ai-btn, .ah-btn__arrow, .ah-icon-btn, .ah-initiatives__btn,
	.ad-card, .ad-resource-card, .ad-explore-card, .ab-aux-card, .ac-hub-card, .ac-doc-card,
	.ah-mega__item i, .af-links a i, [data-ah-reveal] {
		transition: none !important;
	}
	a.ad-resource-card:hover, a.ad-explore-card:hover, .ab-aux-card:hover,
	a.ac-hub-card:hover, a.ac-doc-card:hover, .ah-btn:active, .ai-btn:active,
	.ah-btn:hover .ah-btn__arrow, .ah-link-cta:hover .ah-btn__arrow {
		transform: none !important;
	}
	html.ah-reveal-ready [data-ah-reveal]:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}
}

/* Windows high contrast: controls and cards keep a visible system edge. */
@media (forced-colors: active) {
	.ah-icon-btn, .ah-initiatives__btn, .ah-nav-cta,
	.ad-card, .ad-plan-item, .ad-resource-card, .ad-explore-card, .ac-doc-card {
		border: 1px solid CanvasText !important;
	}
}
