/*
 * Monochrome-native layer for atfal.ca (public site only; THEME_BW_NOTES.md,
 * "Monochrome-native pass").
 *
 * The page stylesheets give each screen its layout. This file, loaded after
 * them on every public page (never on /portal/), gives the whole site one
 * black-and-white design language instead of a soft colour design drawn in
 * grey:
 *
 *   1. Artwork frame  - posters, photos and illustrations keep their colour,
 *                       inside a hard black frame (white on black bands).
 *   2. Surfaces       - square corners, 1.5px black edges, hard offset shadows.
 *   3. Buttons        - black fill or white fill with a black edge; both invert.
 *   4. Icons          - plain black glyphs, or a square black tile for emphasis.
 *   5. Headings       - a 3px rule above, a numbered uppercase label, Fraunces.
 *   6. Bands          - hard white / black inversion, no grey bands.
 *   7. Flag stripe    - under the header, hero/content divider, above the footer.
 *
 * Tokens only: every colour, edge and shadow comes from tokens.css (--bw-*,
 * --edge, --shadow-hard*). Inside a dark band tokens.css flips --edge and the
 * accent to white, so the same rules draw white frames and white shadows there.
 */

/* ===========================================================================
   1. ARTWORK FRAME
   One frame for every poster, photograph and illustration on the public site.
   The artwork itself is never tinted, dimmed, blurred or overlaid.
   =========================================================================== */
.bw-frame,
.ah-initiative__thumb,
.ah-about__visual,
.ab-hero__portrait img,
.ac-doc-card__cover,
.ai-acc__image,
.page_content .cz_image .cz_image_in {
	position: relative;
	border: 2px solid var(--edge) !important;
	border-radius: var(--radius-art) !important;
	box-shadow: var(--shadow-art) !important;
	background: var(--bw-white);
	overflow: hidden;
}
.bw-frame img,
.ah-initiative__thumb img,
.ah-about__visual img,
.page_content .cz_image .cz_image_in img {
	display: block;
	border-radius: 0 !important;
	filter: none !important;
	opacity: 1 !important;
}
/* No overlays on artwork: the page builder's tilt glare and the old red wash. */
.page_content .cz_image .js-tilt-glare,
.ah-about__visual::after {
	display: none !important;
}

/* Circular avatars (department secretaries) are the one round shape: a 2px
   black ring, no shadow, the photograph in its own colours. */
.ad-secretary-card__photo:not(.ad-secretary-card__photo--initials) {
	border: 2px solid var(--edge) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	filter: none !important;
}

/* Caption plate: a black strip with a white, uppercase, tracked label. */
.bw-frame__plate {
	display: block;
	padding: var(--space-2) var(--space-3);
	background: var(--bw-black);
	color: var(--bw-white);
	font-family: var(--font-body);
	font-size: var(--text-label);
	font-weight: var(--weight-bold);
	line-height: var(--leading-normal);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}
/* On a black band the plate keeps its white type and sits above a white
   rule, so it still reads as part of the frame. */
.ah-hero .bw-frame__plate {
	border-top: 2px solid var(--edge);
}

/* "Who We Are": the colour illustration stands alone on a plain white band,
   framed, with nothing coloured beside it. Empty frame = no artwork. */
.ah-about__visual {
	max-width: 420px;
	align-self: center;
}
.ah-about__visual:not(:has(img)) {
	display: none;
}

/* ===========================================================================
   2. SURFACES: cards
   White, 1.5px black edge, a hard 4px offset shadow that shrinks to 2px as
   the card is pressed. No blurred or layered shadows anywhere.
   =========================================================================== */
.ah-task-card,
.ah-resource-card,
.ah-board__pane,
.ah-quote,
.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,
.ah-media-card,
.ai-schedule,
.ai-accordion,
.af-map-card {
	background: var(--surface);
	border: var(--rule) solid var(--edge) !important;
	border-radius: var(--radius-card) !important;
	box-shadow: var(--shadow-hard) !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, color 0.12s ease-out;
}
/* Page-builder boxes around framed covers go flat: one strong frame (the
   artwork's) instead of a frame inside a card. Their stored soft shadow and
   rounded corners are removed. */
.page_content .cz_box_front_inner,
.page_content .cz_box_back_inner {
	box-shadow: none !important;
	border-radius: 0 !important;
	border: 0 !important;
}

/* Linked cards press in: they move toward their shadow and the shadow shrinks. */
a.ah-task-card:hover, a.ah-task-card:focus-visible,
a.ah-resource-card:hover, a.ah-resource-card:focus-visible,
a.ad-resource-card:hover, a.ad-resource-card:focus-visible,
a.ad-explore-card:hover, a.ad-explore-card:focus-visible,
.ab-aux-card:hover, .ab-aux-card:focus-within,
a.ac-hub-card:hover, a.ac-hub-card:focus-visible,
a.ac-doc-card:hover, a.ac-doc-card:focus-visible,
a.ah-media-card:hover, a.ah-media-card:focus-visible,
.af-map-card:hover, .af-map-card:focus-within {
	transform: translate(2px, 2px);
	box-shadow: var(--shadow-hard-pressed) !important;
}
a.ah-task-card:focus-visible,
a.ah-resource-card:focus-visible,
a.ad-resource-card:focus-visible,
a.ad-explore-card:focus-visible,
a.ac-hub-card:focus-visible,
a.ac-doc-card:focus-visible,
a.ah-media-card:focus-visible {
	outline: 2px solid var(--edge);
	outline-offset: 4px;
}

/* Cards on black bands: black, with a white edge and a white shadow (the
   tokens flip inside the band). */
.ah-media-card,
.ai-schedule,
.ai-accordion,
.af-map-card {
	background: var(--bw-black);
}

/* The featured task is still the one black card in its band. */
.ah-task-card.ah-task-card--primary {
	background: var(--bw-black);
	border-color: var(--bw-black) !important;
}

/* Quote card: a plain white panel, black edge, Fraunces. */
.ah-quote::before {
	color: var(--bw-black);
}
.ab-hero__quote {
	border-left: 0 !important;
	border-top: 3px solid var(--edge);
	padding: var(--space-4) 0 0 !important;
}

/* Inner panels, notes and highlights: off-white with a hairline, never a grey slab. */
.ad-plan__highlight,
.ad-plan__empty,
.ac-guide__note,
.ac-syllabus-banner {
	background: var(--bw-grey-50);
	border: 1px solid var(--edge);
	border-radius: var(--radius-card);
}
.ad-plan__group-head,
.ad-plan__group-label {
	border-top-color: var(--bw-black) !important;
}

/* ===========================================================================
   2b. SURFACES: chips, pills, badges, tags. Square, black edge, no grey wash.
   =========================================================================== */
.ah-task-card__badge,
.ah-initiatives__flag,
.ah-initiative__eyebrow,
.ah-initiative__draft,
.ah-initiative__thumb-hint,
.ad-hero__badge,
.ad-switcher__pill,
.ad-pill,
.ad-plan-item__due,
.ad-plan__group-target,
.ab-aux-card__badge,
.ab-role-pill,
.ac-hero__badge,
.ai-hero__badge,
.ai-sched__day-pill,
.ai-sched__day-tab,
.ai-sched__chip {
	border-radius: var(--radius-chip) !important;
}
/* Outlined chips on white. */
.ad-pill,
.ad-plan-item__due,
.ad-plan__group-target,
.ab-aux-card__badge,
.ab-role-pill {
	background: var(--bw-white) !important;
	border: 1px solid var(--edge) !important;
	color: var(--bw-black) !important;
}
/* A deadline that matters is inverted, not tinted. */
.ad-plan-item__due--urgent {
	background: var(--bw-black) !important;
	color: var(--bw-white) !important;
}
.ab-role-pill--static {
	border-style: dashed !important;
}
a.ad-pill:hover, a.ad-pill:focus-visible,
.ab-role-pill:not(.ab-role-pill--static):hover,
.ab-role-pill:not(.ab-role-pill--static):focus-visible {
	background: var(--bw-black) !important;
	color: var(--bw-white) !important;
}
/* Chips on black bands: an outline in white, the current one filled white. */
.ad-hero__badge,
.ai-hero__badge,
.ad-switcher__pill,
.ai-sched__day-pill,
.ai-sched__day-tab {
	background: transparent !important;
	border: 1px solid var(--edge) !important;
	color: var(--bw-white) !important;
}
.ad-switcher__pill:hover,
.ad-switcher__pill:focus-visible,
.ai-sched__day-tab:hover,
.ai-sched__day-tab:focus-visible {
	background: var(--bw-white) !important;
	color: var(--bw-black) !important;
}
.ad-switcher__pill.ad-switcher__pill--active,
.ai-sched__day-tab.ai-sched__day-tab--active {
	background: var(--bw-white) !important;
	color: var(--bw-black) !important;
	box-shadow: 3px 3px 0 var(--bw-grey-300);
}
.ad-switcher__pill i {
	opacity: 1;
}
.ah-initiative__thumb-hint {
	background: var(--bw-black);
	border: 1px solid var(--bw-white);
}

/* Plan number tags: black squares with white numerals. */
.ad-plan__group-num {
	min-width: 32px;
	min-height: 32px;
	padding: 0 var(--space-2);
	border-radius: 0 !important;
	background: var(--bw-black);
	color: var(--bw-white);
	font-size: var(--text-sm);
	font-weight: var(--weight-heavy);
	font-variant-numeric: tabular-nums;
}
.ad-plan__group-label {
	color: var(--bw-black) !important;
	letter-spacing: var(--tracking-label);
}

/* ===========================================================================
   3. BUTTONS
   Primary: black fill, white text. Secondary: white fill, 1.5px black edge.
   Both invert on hover. Square, 44px tall at least, black focus ring with a
   white gap (tokens.css --focus-ring; inverted in dark bands).
   =========================================================================== */
.ah-btn,
.ai-btn,
.ac-doc-card__cta,
.ah-nav-cta,
.af-map-card__cta {
	min-height: 44px;
	border-radius: var(--radius-control) !important;
	border: var(--rule) solid var(--color-accent) !important;
	box-shadow: none;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
/* Primary (and its relatives): the accent fills. */
.ah-btn.ah-btn--primary,
.ai-btn.ai-btn--primary,
.ac-doc-card .ac-doc-card__cta.ac-doc-card__cta {
	background: var(--color-accent) !important;
	color: var(--color-on-accent) !important;
}
.ah-btn.ah-btn--primary:hover,
.ah-btn.ah-btn--primary:focus-visible,
.ai-btn.ai-btn--primary:hover,
.ai-btn.ai-btn--primary:focus-visible,
.ac-doc-card:hover .ac-doc-card__cta.ac-doc-card__cta,
.ac-doc-card:focus-visible .ac-doc-card__cta.ac-doc-card__cta {
	background: var(--color-on-accent) !important;
	color: var(--color-accent) !important;
}
/* Secondary (glass, ghost and outline were three names for it): the page
   colour fills, the accent draws the edge and the text. */
.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,
.ah-nav-cta.ah-nav-cta,
.af-map-card__cta.af-map-card__cta {
	background: var(--color-on-accent) !important;
	color: var(--color-accent) !important;
}
.af-map-card__cta.af-map-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ah-btn.ah-btn--secondary:hover,
.ah-btn.ah-btn--secondary:focus-visible,
.ah-btn.ah-btn--glass:hover,
.ah-btn.ah-btn--glass:focus-visible,
.ah-btn.ah-btn--ghost:hover,
.ah-btn.ah-btn--ghost:focus-visible,
.ai-btn.ai-btn--glass:hover,
.ai-btn.ai-btn--glass:focus-visible,
.ai-btn.ai-btn--outline:hover,
.ai-btn.ai-btn--outline:focus-visible,
.ah-nav-cta.ah-nav-cta:hover,
.ah-nav-cta.ah-nav-cta:focus-visible,
.af-map-card__cta.af-map-card__cta:hover,
.af-map-card__cta.af-map-card__cta:focus-visible {
	background: var(--color-accent) !important;
	color: var(--color-on-accent) !important;
}
/* Tertiary is a text link: underline, no box. */
.ah-btn.ah-btn--tertiary {
	min-height: 44px;
	padding-inline: 0;
	border: 0 !important;
	border-bottom: var(--rule) solid var(--color-accent) !important;
	background: none !important;
	color: var(--color-accent) !important;
}
.ah-btn.ah-btn--tertiary:hover,
.ah-btn.ah-btn--tertiary:focus-visible {
	border-bottom-width: 3px !important;
}
.ah-btn:focus-visible,
.ai-btn:focus-visible,
.ah-nav-cta:focus-visible,
.af-map-card__cta:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring) !important;
}
/* The initiative's own button spans the column and stays 48px tall. */
.ah-initiative__cta {
	min-height: 48px;
}

/* Icon buttons: square, black or white, same invert. */
.ah-guidance__nav,
.atfal-home .ah-initiatives__btn,
.ab-guidance-card__tab {
	min-width: 44px;
	min-height: 44px;
	border-radius: var(--radius-control) !important;
	border: var(--rule) solid var(--color-accent) !important;
	background: var(--color-on-accent) !important;
	color: var(--color-accent) !important;
	box-shadow: none !important;
	transform: none !important;
}
.ah-guidance__nav:hover,
.ah-guidance__nav:focus-visible,
.atfal-home .ah-initiatives__btn:hover,
.atfal-home .ah-initiatives__btn:focus-visible,
.ab-guidance-card__tab:hover,
.ab-guidance-card__tab:focus-visible,
.ab-guidance-card__tab.ab-guidance-card__tab--active {
	background: var(--color-accent) !important;
	color: var(--color-on-accent) !important;
}
.ah-guidance__nav:focus-visible,
.atfal-home .ah-initiatives__btn:focus-visible,
.ab-guidance-card__tab:focus-visible {
	box-shadow: var(--focus-ring) !important;
}
i.backtotop {
	border-radius: 0 !important;
	background: var(--bw-black) !important;
	border: var(--rule) solid var(--bw-white) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}
i.backtotop:hover {
	background: var(--bw-white) !important;
	color: var(--bw-black) !important;
}

/* ===========================================================================
   4. ICONS
   One style site-wide: a plain black glyph, or (for emphasis) a square black
   tile with a white glyph. No round hairline chips, no grey washes.
   Inside black bands the tile is white with a black glyph.
   =========================================================================== */
/* Emphasis: square tiles. */
.atfal-home i.ah-task-card__icon,
.atfal-home i.ah-dept-card__icon,
.ah-media-card__play,
.atfal-dept i.ad-explore-card__icon,
.ac-hub-card__icon,
.ac-guide__icon,
.ai-accordion__icon {
	display: flex !important; /* Font Awesome's inline-block would push the glyph into a corner */
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
	border-radius: 0 !important;
	border: 0 !important;
	background: var(--color-accent) !important;
	color: var(--color-on-accent) !important;
	box-shadow: none !important;
}
/* The black task card's tile is white (the accent flips inside it). */
.ah-media-card--follow .ah-media-card__play {
	background: var(--color-accent) !important;
	color: var(--color-on-accent) !important;
}
/* Plain glyphs. */
.atfal-home i.ah-resource-card__icon,
.ah-about__facts i {
	width: auto !important;
	height: auto !important;
	justify-content: flex-start !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--bw-black) !important;
}
.atfal-home i.ah-resource-card__icon {
	font-size: 1.75rem !important;
	min-height: 44px;
}
.ah-about__facts i {
	inline-size: 24px !important;
	font-size: 1.125rem !important;
	justify-content: center !important;
}
.ad-plan-item__icon,
.ad-switcher__pill i {
	color: inherit;
}

/* ===========================================================================
   5. SECTION HEADINGS
   A 3px rule above the heading, then a numbered uppercase label, then the
   title in Fraunces. Replaces the thin left bar and the short underline.
   The number comes from a CSS counter, given empty alt text so screen
   readers announce only the heading.
   =========================================================================== */
.atfal-home,
.atfal-dept,
.atfal-about,
.atfal-classes,
.atfal-ijtima {
	counter-reset: bw-section;
}
.ah-section__title,
.ad-plan__title,
.ad-resources__title,
.ab-section__title,
.ac-section__title,
.ai-section__title {
	counter-increment: bw-section;
}
.atfal-home .ah-section__title,
.atfal-dept .ad-plan__title,
.atfal-dept .ad-resources__title,
.atfal-about .ab-section__title,
.atfal-classes .ac-section__title,
.atfal-ijtima .ai-section__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding: var(--space-3) 0 0 !important;
	border: 0 !important;
	border-top: 3px solid var(--edge) !important;
	text-align: left;
	font-family: var(--font-display);
	font-size: var(--text-section);
	font-weight: var(--weight-medium);
	font-style: normal;
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-display);
	color: var(--edge-ink);
}
.atfal-home .ah-section__title::before,
.atfal-dept .ad-plan__title::before,
.atfal-dept .ad-resources__title::before,
.atfal-about .ab-section__title::before,
.atfal-classes .ac-section__title::before,
.atfal-ijtima .ai-section__title::before {
	content: counter(bw-section, decimal-leading-zero) / "";
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-label);
	font-weight: var(--weight-bold);
	font-style: normal;
	line-height: var(--leading-normal);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}
.atfal-home .ah-section__title::after,
.atfal-dept .ad-resources__title::after,
.atfal-about .ab-section__title::after,
.atfal-classes .ac-section__title::after,
.atfal-ijtima .ai-section__title::after {
	display: none !important;
}
/* Intro paragraph under a heading lines up with the heading, not the old bar. */
.atfal-home .ah-departments .ah-section__title {
	margin-block-end: var(--space-3);
}
.ah-departments__intro {
	margin: 0 0 var(--space-6) !important;
}

/* Small uppercase tracked labels, one style. */
.ah-initiatives__meta,
.ah-initiatives__more-title,
.ah-task-card__cta,
.ah-resource-card__cta,
.ah-media-card__label,
.ah-dept-card__title,
.ah-quote cite,
.ad-hero__badge,
.ad-plan__group-label {
	font-size: var(--text-label) !important;
	font-weight: var(--weight-bold) !important;
	letter-spacing: var(--tracking-label) !important;
	text-transform: uppercase;
}

/* ===========================================================================
   5b. DISPLAY TYPE
   Fraunces for page titles and section titles at large sizes, tight
   tracking; the system UI stack for everything else.
   =========================================================================== */
.atfal-home .ah-hero__title,
.atfal-dept .ad-hero__title,
.ab-hero__quote,
.ac-hero__title,
.ai-hero__title,
.atfal-home .ah-cta__title,
.page_content .wpb_wrapper :is(h1, h2):not([style*="font-family"]),
.page_title h1,
.page_title .section_title {
	font-family: var(--font-display) !important;
	font-weight: var(--weight-medium) !important;
	font-style: normal;
	letter-spacing: var(--tracking-display) !important;
	line-height: var(--leading-display) !important;
}
.atfal-home .ah-hero__title,
.atfal-dept .ad-hero__title,
.ac-hero__title,
.ai-hero__title {
	font-size: var(--text-hero) !important;
}
.atfal-home .ah-cta__title {
	font-size: var(--text-section) !important;
}
.atfal-home .ah-initiatives__title {
	font-family: var(--font-display);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-display);
	font-size: var(--text-h2);
}

/* Meaningful grey text goes: body copy is black on white, white on black. */
.atfal-home,
.atfal-dept,
.atfal-about,
.atfal-classes {
	color: var(--bw-black);
}
.ah-task-card p,
.ah-resource-card__desc,
.ah-departments__intro,
.ah-quote cite,
.ah-guidance__count,
.ah-about__facts li,
.ah-cta__body,
.ad-hero__desc,
.ad-plan__updated,
.ab-aux-card p,
.ac-hub-card p {
	color: inherit !important;
}
.ah-hero__quote,
.ah-hero__quote-attr,
.ah-initiatives__meta,
.ah-initiatives__count,
.ah-initiative__text,
.ah-initiative__dua,
.ah-initiative__subtitle,
.ah-initiative__attribution,
.ah-initiative__hadith cite,
.ah-media-card__label,
.ad-hero__desc,
.ah-task-card.ah-task-card--primary p {
	color: var(--bw-white) !important;
}

/* ===========================================================================
   6. BANDS
   Hard inversion: white, black, and one off-white. No grey bands, no
   gradients, no grid patterns, no glows.
   =========================================================================== */
.ah-hero,
.ad-hero,
.ac-hero,
.ai-hero,
.atfal-ijtima,
.ai-section,
.af-footer {
	background: var(--bw-black) !important;
}
.ah-hero__grid-pattern,
.ad-hero__grid-pattern,
.ai-hero__grid-pattern,
.ah-hero__glow,
.ai-hero__glow,
.ah-departments__glow,
.af-footer__grid-pattern {
	display: none !important;
}

/* Homepage sequence: hero (black) · leaderboard (white) · quick access
   (off-white) · resources (white) · departments (black) · guidance
   (off-white) · who we are (white) · media (black) · closing (white) ·
   footer (black). */
.ah-board,
.ah-resources,
.ah-about,
.ah-cta {
	background: var(--bw-white) !important;
}
.ah-tasks,
.ah-guidance {
	background: var(--bw-grey-50) !important;
}
.ah-cta {
	border-top: 0 !important;
}

/* Our Departments on a black band: white tiles, white type. */
.ah-departments {
	background: var(--bw-black) !important;
	color: var(--bw-white);
}
.ah-departments .ah-departments__intro,
.ah-departments .ah-dept-card__title,
.ah-departments .ah-dept-card__arrow,
.ah-departments .ah-section__title {
	color: var(--bw-white) !important;
}
.atfal-home .ah-dept-card {
	min-height: 44px;
	border: var(--rule) solid transparent;
	border-radius: 0;
	transition: border-color 0.12s ease;
}
.atfal-home .ah-dept-card:hover,
.atfal-home .ah-dept-card:focus-visible {
	background: transparent !important;
	border-color: var(--bw-white);
	box-shadow: none !important;
}
.atfal-home .ah-dept-card.ah-dept-card:hover .ah-dept-card__icon,
.atfal-home .ah-dept-card.ah-dept-card:focus-visible .ah-dept-card__icon {
	background: var(--bw-black) !important;
	color: var(--bw-white) !important;
	outline: var(--rule) solid var(--bw-white);
	transform: none;
}

/* Media band: the labels and titles are white on black. */
.ah-media .ah-section__title {
	color: var(--bw-white) !important;
}

/* Homepage hero: a pure black field, a large type lockup, the stripe below.
   No photograph behind the text, no scrim, no glow. */
.ah-hero__bg,
.ah-hero__bg-overlay {
	display: none !important;
}
.ah-hero__quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--text-lead) !important;
	line-height: var(--leading-snug);
	max-width: 34ch;
}
.ah-hero__quote-attr {
	font-family: var(--font-body);
	font-style: normal;
	font-size: var(--text-label) !important;
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	padding-top: var(--space-3);
}

/* The initiatives carousel sits in the black hero without a glass card: the
   framed poster and the text sit straight on the band, under a white rule. */
.atfal-home .ah-initiatives {
	background: transparent;
	border: 0;
	border-top: 3px solid var(--edge);
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	padding-top: var(--space-3);
	overflow: visible;
}
.atfal-home .ah-initiatives__head,
.atfal-home .ah-initiative__body,
.atfal-home .ah-initiatives__more {
	padding-inline: 0;
}
.atfal-home .ah-initiative__body {
	padding-bottom: 0;
}
.atfal-home .ah-initiative__thumb {
	display: flex;
	flex-direction: column;
	height: auto;
	inline-size: calc(100% - 6px); /* room for the frame's 6px offset shadow inside the column */
}
.atfal-home .ah-initiative__thumb img {
	height: 200px;
	transform: none !important;
}
.atfal-home .ah-initiative__thumb .ah-initiative__thumb-hint {
	bottom: calc(var(--space-3) + 2.25rem);
}
.atfal-home .ah-initiative__hadith {
	border-left: 0 !important;
	border-top: 1px solid var(--edge);
	padding: var(--space-3) 0 0 !important;
}
@media (max-width: 900px) {
	.atfal-home .ah-initiative__thumb img { height: 240px; }
}
@media (max-width: 640px) {
	.atfal-home .ah-initiative__thumb img { height: 180px; }
}

/* Leaderboard: rows square; the leader inverted instead of washed grey. */
.ah-board__row {
	border-radius: 0 !important;
}
.ah-board__row--1 {
	background: var(--bw-black) !important;
	color: var(--bw-white) !important;
}
.ah-board__row--1 * {
	color: inherit !important;
}

/* Department pages: black hero, a large name, the department icon at scale
   in a white square; plan items use the card style. */
.ad-hero__watermark {
	display: flex !important;
	align-items: center;
	justify-content: center;
	top: var(--space-8);
	right: max(var(--space-5), calc((100% - var(--container-max)) / 2 + var(--space-5)));
	width: 176px;
	height: 176px;
	font-size: 88px !important;
	color: var(--bw-black) !important;
	background: var(--bw-white);
	transform: none !important;
	z-index: 1;
}
.ad-hero__inner {
	padding-block: var(--space-8) var(--space-7);
}
.atfal-dept .ad-hero__title,
.atfal-dept .ad-hero__desc {
	max-width: calc(100% - 176px - var(--space-6));
}
@media (max-width: 1100px) {
	.ad-hero__watermark { width: 128px !important; height: 128px; font-size: 64px !important; right: var(--space-5); }
	.atfal-dept .ad-hero__title, .atfal-dept .ad-hero__desc { max-width: calc(100% - 128px - var(--space-5)); }
}
@media (max-width: 768px) {
	.ad-hero__watermark { display: none !important; }
	.atfal-dept .ad-hero__title, .atfal-dept .ad-hero__desc { max-width: none; }
}
.ad-switcher__scroll {
	-webkit-mask-image: none;
	mask-image: none;
}
.ad-secretary-card__photo--initials {
	background: var(--bw-black) !important;
	color: var(--bw-white) !important;
	border: 0 !important;
}
.ad-plan-item {
	padding: var(--space-4);
}

/* About timeline: square black markers on a black line. */
.ab-timeline::before {
	background: var(--bw-black) !important;
}
.ab-timeline__marker {
	border-radius: 0 !important;
	box-shadow: none !important;
	background: var(--bw-black) !important;
}
.ab-guidance-section,
.ab-establishment-section {
	background: var(--bw-white) !important;
}

/* Ijtima live schedule: square markers and a black-and-white progress bar. */
.ai-sched__dot,
.ai-sched__run-marker,
.ai-hero__badge-dot {
	border-radius: 0 !important;
	box-shadow: none !important;
}
.ai-sched__progress-track,
.ai-sched__progress-fill {
	border-radius: 0 !important;
}
.ai-sched__now-card,
.ai-sched__context-card {
	border-radius: 0 !important;
	border-color: var(--edge) !important;
	background: transparent !important;
}

/* Header and footer chrome. */
.header_3 .sub-menu.ah-mega-menu {
	border-radius: 0 !important;
	border: var(--rule) solid var(--bw-black) !important;
	box-shadow: var(--shadow-hard) !important;
}
.ah-mega__item {
	border-radius: 0 !important;
}
.header_3.ah-header.onSticky {
	box-shadow: 0 var(--rule) 0 var(--bw-black) !important;
}

/* Tap targets: every control at least 44px in both directions. */
.ad-switcher__pill,
a.ad-pill,
.ai-sched__day-tab,
.af-brand__logo {
	min-height: 44px;
	display: inline-flex !important;
	align-items: center;
}
/* Footer rows keep their own flex layout; the 44px comes from the row, not
   from extra padding, so the list rhythm stays the same. */
.af-links a,
a.af-contact-row {
	min-height: 44px;
	padding-block: 0 !important;
	align-items: center;
}
.af-brand__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
.ai-sched__day-tab {
	justify-content: center;
	min-width: 44px;
}

/* The map card's decorative grid is the parent's "soft SaaS" texture: gone. */
.af-map-card__grid {
	display: none !important;
}

/* ===========================================================================
   7. FLAG STRIPE (--bw-stripe)
   At most three per page: under the header, between the hero and the
   content, and above the footer.
   =========================================================================== */
#site_header::after,
.af-footer::before,
.ah-hero::after,
.ad-hero::after,
.ac-hero::after,
.ai-hero::after {
	content: "";
	display: block;
	inline-size: auto;
	block-size: var(--stripe-h);
	background: var(--bw-stripe);
	visibility: visible; /* the parent theme's clearfix hides #site_header::after */
	overflow: visible;
}
.ac-hero,
.ai-hero {
	position: relative;
}
.ac-hero__inner {
	padding-block-end: calc(var(--space-8) + var(--stripe-h));
}
.ah-hero::after,
.ad-hero::after,
.ac-hero::after,
.ai-hero::after {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
}
.ah-hero__inner,
.ad-hero__inner {
	padding-block-end: calc(var(--space-8) + var(--stripe-h));
}
/* A white-on-white stripe would vanish: the header's stripe sits on a black
   rule so its white bars stay crisp. */
#site_header::after {
	border-top: var(--rule) solid var(--bw-black);
}
/* The fixed sticky clone of the header is not followed by another stripe. */
.onSticky::after {
	content: none;
}

/* ===========================================================================
   Motion: nothing moves for people who ask for less motion.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ah-task-card, .ah-resource-card, .ad-resource-card, .ad-explore-card,
	.ab-aux-card, .ac-hub-card, .ac-doc-card, .ah-media-card, .af-map-card,
	.ah-btn, .ai-btn, .ah-dept-card {
		transition: none !important;
	}
	a.ah-task-card:hover, a.ah-resource-card:hover, a.ad-resource-card:hover,
	a.ad-explore-card:hover, a.ac-hub-card:hover, a.ac-doc-card:hover,
	a.ah-media-card:hover, .ab-aux-card:hover, .af-map-card:hover {
		transform: none !important;
	}
}

/* Windows high contrast: frames and cards keep a visible system edge. */
@media (forced-colors: active) {
	.bw-frame, .ah-initiative__thumb, .ah-about__visual,
	.ah-task-card, .ah-resource-card, .ad-card, .ad-plan-item, .ad-resource-card,
	.ad-explore-card, .ac-doc-card, .ah-media-card, .ah-quote {
		border-color: CanvasText !important;
	}
}
