/**
 * Homepage — the approved DuSunnah design system.
 *
 * This file implements the approved homepage board
 * (scratchpad/design/Main.dc.html, with Mobile.dc.html as the narrow
 * counterpart). The board is the source of truth: every token, size, weight,
 * tracking and spacing value below is lifted from it rather than reinterpreted.
 *
 * It replaces the earlier "Quiet Scholarly" homepage stylesheet (Spectral /
 * IBM Plex Sans / gold #7C6129), which was a superseded direction.
 *
 * Everything is scoped under .dus-home so the templates that have not been
 * rebuilt yet keep the existing site styles and are never left half-designed.
 * Two elements carry the scope: the masthead wrapper in header.php and the
 * page wrapper in front-page.php.
 *
 * Placeholder convention: .dus-ph renders in the muted grey the board uses for
 * values that do not exist yet ([00:00], [Scholar name]). It is a design state,
 * not filler — nothing is invented to fill a gap. Prayer times in particular
 * stay placeholders until the masjid's own timetable is connected.
 */

/* ============================================================ TOKENS */

.dus-home {
	/*
	 * TERRACOTTA - the principal functional accent. It identifies interaction:
	 * primary buttons, Play/Pause, waveform progress, active controls, links
	 * and selected states. Nothing below displaces it.
	 */
	--acc: #a8501a;
	--acc-d: #7a3410;

	/*
	 * HERITAGE SECONDARIES, inherited from the historic charcoal-and-gold
	 * DuSunnah identity. These extend the system; they replace nothing, and in
	 * particular they are never page backgrounds.
	 *
	 *   --gold      heritage / scholarship / ornament. Used RARELY: ornamental
	 *               glyphs, seals, fine editorial rules, quotation details,
	 *               Arabic decorative marks. Never ordinary buttons,
	 *               navigation, filters or audio controls.
	 *
	 * Proportion is deliberate: terracotta dominant, gold rare. They are not
	 * equal brand colours.
	 */
	--gold: #c79a19;
	--gold-d: #a87b10;

	--ink: #111111;
	--body: #5c5c5c;
	--muted: #6e6e6e;

	--bg: #ffffff;
	--band: #f6f6f6;
	--chip: #f1f1f1;
	--img: #ececec;
	--line: #e4e4e4;

	--r: 16px;

	--wrap: 1280px;
	--gut: 48px;

	/*
	 * TYPE. The native San Francisco system font (SF Pro on Apple) carries the
	 * interface and all editorial Latin text; no Apple font files are bundled -
	 * delivery is via the platform. On Windows this resolves to Segoe UI, on
	 * Android to Roboto, via system-ui, with a generic sans fallback. Amiri (with
	 * Scheherazade New as fallback) carries Qur'anic and Arabic setting. EB
	 * Garamond (--ft-serif) is the complementary editorial serif, used selectively
	 * for editorial moments (article titles and scholarly body headings), never for
	 * interface, navigation, controls or metadata. It is a web font, loaded only on
	 * the surfaces that use it. Named here so the whole system draws its faces from
	 * one place rather than repeating the stacks per component.
	 */
	--ft-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
	--ft-arabic: "Amiri", "Scheherazade New", serif;
	--ft-serif: "EB Garamond", Georgia, serif;

	/*
	 * RADII. --r is the card / panel radius; --r-ctl the smaller control radius
	 * shared by buttons, inputs, pills and notices across the system.
	 */
	--r-ctl: 3px;

	/*
	 * SEMANTIC STATE. Positive (success) and negative (error) feedback, defined
	 * once so every form and notice speaks in the same voice. Terracotta stays
	 * the interaction accent; these are reserved for validation and outcome and
	 * are never decorative.
	 */
	--ok: #2e7d4f;
	--ok-ink: #1c4e31;
	--ok-bg: rgba(46, 125, 79, .08);
	--err: #b3261e;
	--err-ink: #8a1c16;
	--err-bg: rgba(179, 38, 30, .07);

	font-family: var(--ft-sans);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.5;
	/* Native controls (checkboxes, radios) adopt the brand terracotta site-wide. */
	accent-color: var(--acc);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * A branded text selection - a quiet terracotta wash instead of the browser
 * default blue - so the accent is felt even in the smallest interaction.
 * Scoped to the renovated surfaces that carry the token system.
 */
.dus-home ::selection,
.dus-home::selection {
	background: rgba(168, 80, 26, .16);
	color: var(--ink);
}
.dus-home ::-moz-selection,
.dus-home::-moz-selection {
	background: rgba(168, 80, 26, .16);
	color: var(--ink);
}

/*
 * The front page draws its own full-bleed bands, so the theme's main wrapper
 * must not add a gutter or a max-width of its own.
 */
body.home #main-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

.dus-home h1,
.dus-home h2,
.dus-home h3,
.dus-home h4,
.dus-home p,
.dus-home figure {
	margin: 0;
}

.dus-home ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dus-home a {
	color: inherit;
	text-decoration: none;
}

.dus-home a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The board has no focus state, so a visible one is added for keyboard use. */
.dus-home a:focus-visible,
.dus-home button:focus-visible,
.dus-home input:focus-visible,
.dus-home select:focus-visible {
	outline: 2px solid var(--acc);
	outline-offset: 3px;
	border-radius: 4px;
}

.dus-home img {
	max-width: 100%;
	display: block;
}

/* ============================================================ PRIMITIVES */

.dus-wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

/* Display / source Arabic. Mushaf text uses Scheherazade New elsewhere. */
.dus-ar {
	font-family: "Amiri", serif;
}

.dus-num {
	font-variant-numeric: tabular-nums;
}

.dus-ph {
	color: var(--muted);
}

/*
 * Inside the terracotta panels a placeholder keeps the panel's own white:
 * the muted grey is a 1.9:1 contrast on #a8501a and is effectively unreadable.
 * The board sets these strings in white for the same reason.
 */
.dus-appeal__panel .dus-ph,
.dus-panel .dus-ph {
	color: inherit;
}

.dus-meta {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
}

.dus-ex {
	font-size: 16px;
	line-height: 1.7;
	color: var(--body);
}

.dus-im {
	background: var(--img);
	border-radius: var(--r);
	overflow: hidden;
	position: relative;
}

.dus-im img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dus-subj {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--acc-d);
}

.dus-kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.dus-colh {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ink);
}

.dus-h2 {
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.12;
}

.dus-h3 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.024em;
	line-height: 1.3;
}

.dus-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: #2F2F2F;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.dus-cta:hover {
	background: #444444;
	color: #fff;
	text-decoration: none;
}

/* Keep the Donate label white on the charcoal fill: .dus-home a sets
   color:inherit (0,1,1) which otherwise darkens it on the home page. */
.dus-home a.dus-cta {
	color: #fff;
}

.dus-lnk {
	font-size: 15px;
	font-weight: 600;
	color: var(--acc);
}

.dus-lnk--sm {
	font-size: 14px;
}

/*
 * The calligraphy ground shared by the audio panel and the appeal banner:
 * one system, full width, cover, centred, at a restrained opacity.
 */
.dus-calli {
	position: absolute;
	inset: 0;
	background: url(../assets/images/calligraphy.svg) center / cover no-repeat;
	opacity: .10;
	pointer-events: none;
}

/* ============================================================ MASTHEAD */

.dus-mast {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.dus-mast__inner {
	display: flex;
	align-items: center;
	height: 104px;
}

.dus-brand {
	display: flex;
	align-items: center;
	gap: 13px;
	flex-shrink: 0;
	margin-right: 44px;
}

.dus-brand:hover {
	text-decoration: none;
}

.dus-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: #2F2F2F;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 23px;
	line-height: 1;
	color: #fff;
}

/* Logo artwork inside the circle: square asset, optical centring + breathing
   room baked into the PNG; scales with the circle (desktop 44px / mobile 38px),
   proportions preserved, crisp on high-DPI (480px source). */
.dus-brand__mark-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dus-brand__name {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.038em;
	white-space: nowrap;
}

.dus-nav {
	margin-right: auto;
	min-width: 0;
}

.dus-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
}

.dus-nav a {
	font-size: 15.5px;
	font-weight: 500;
	color: var(--body);
	white-space: nowrap;
}

.dus-nav .current-menu-item > a,
.dus-nav .current_page_item > a,
.dus-nav .menu-item-has-children:focus-within > a,
.dus-nav a:hover {
	color: var(--ink);
	font-weight: 600;
}

/* Donate inside the nav panel belongs to the narrow layout only. */
.dus-nav__donate {
	display: none;
}

/*
 * Disclosure chevron beside each parent link (desktop and the mobile accordion),
 * injected by home.js. Small and borderless so the link + chevron read as one
 * navigation item, not two buttons. Colour, focus ring and chevron rotation
 * reuse the shared .dus-nav__disclosure / .dus-nav__chev rules.
 */
.dus-nav__subtoggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	line-height: 0;
	cursor: pointer;
}

.dus-mast__prayer {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-right: 24px;
	flex-shrink: 0;
}

.dus-mast__readout {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dus-next {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.dus-next__time {
	color: var(--acc-d);
	margin-left: 6px;
}

.dus-mast__aside {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.dus-mast__rule {
	width: 1px;
	height: 38px;
	background: var(--line);
}

.dus-iconbtn {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--body);
}

/* The masthead search is an icon until opened. */
.dus-mastsearch {
	display: none;
	border-top: 1px solid var(--line);
}

.dus-mast.is-searching .dus-mastsearch {
	display: block;
}

.dus-mastsearch__inner {
	padding: 18px 0;
}

/* The toggle exists only for the narrow layout. */
.dus-mast__toggle {
	display: none;
}

/* ============================================================ FEATURED */

.dus-feature {
	background: var(--band);
}

.dus-feature__inner {
	padding-top: 60px;
	padding-bottom: 72px;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0 72px;
	align-items: center;
}

.dus-feature__media {
	background: #fff;
	border-radius: var(--r);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: block;
}

.dus-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dus-feature__title {
	font-size: 52px;
	font-weight: 700;
	letter-spacing: -.038em;
	line-height: 1.08;
	margin-top: 18px;
}

.dus-feature__stand {
	font-size: 17px;
	margin-top: 22px;
	max-width: 52ch;
}

.dus-feature__meta {
	margin-top: 24px;
}

.dus-feature__byline {
	color: var(--body);
	font-weight: 600;
}

.dus-feature__more {
	display: inline-block;
	margin-top: 24px;
}

/* ============================================================ DISCOVERY */

.dus-discover {
	border-bottom: 1px solid var(--line);
}

.dus-discover__inner {
	padding-top: 36px;
	padding-bottom: 36px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.dus-srch {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 56px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--band);
	flex-grow: 1;
	min-width: 0;
}

.dus-srch svg {
	flex-shrink: 0;
}

.dus-srch input {
	flex-grow: 1;
	min-width: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15.5px;
	color: var(--ink);
	padding: 0;
}

.dus-srch input::placeholder {
	color: var(--muted);
	opacity: 1;
}

/*
 * WCAG 2.2 SC 2.4.7 Focus Visible.
 *
 * The outline below is removed, so the WRAPPER carries the indicator - the same
 * arrangement .dus-arch__field and .dus-aud__field already use, so no new visual
 * language is introduced.
 *
 * Only the ring is set here, not border-color: this component has no border at
 * rest (background + border-radius only), so border-color would compute and
 * paint nothing. box-shadow is painted outside the box, so it costs no reflow
 * and the resting state is untouched.
 *
 * The ring is SOLID rather than a tint. A 10% wash was tried first and measured
 * 1.154:1 against the surround - present in the computed style but not a usable
 * indicator. .dus-arch__field can afford a wash because a solid border carries
 * the signal there; this component has no border, so the ring does the work.
 */
.dus-srch input:focus {
	outline: none;
}

.dus-srch:focus-within {
	box-shadow: 0 0 0 2px var(--acc);
}

.dus-srch button {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	color: var(--acc);
	font-size: 15px;
	font-weight: 600;
	flex-shrink: 0;
}

.dus-sel {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 56px;
	padding: 0 6px 0 24px;
	border-radius: 999px;
	background: var(--band);
	color: var(--body);
	font-size: 15px;
	flex-shrink: 0;
}

.dus-sel select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	padding: 0;
	cursor: pointer;
}

/* Same correction, same reasoning, for the select control. */
.dus-sel select:focus {
	outline: none;
}

.dus-sel:focus-within {
	box-shadow: 0 0 0 2px var(--acc);
}

.dus-sel__chev {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	pointer-events: none;
}

/* ============================================================ SECTIONS */

.dus-sec {
	padding-top: 80px;
}

.dus-sec--tight {
	padding-top: 88px;
}

.dus-sec__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 64px;
}

.dus-sec__intro {
	margin-top: 18px;
	max-width: 52ch;
}

.dus-sec__more {
	white-space: nowrap;
	padding-bottom: 8px;
}

/* The board repeats the section link under the list on the narrow layout. */
.dus-sec__more--mobile {
	display: none;
}

/* ============================================================ FILTERS */

.dus-fils {
	display: flex;
	gap: 10px;
	margin-top: 36px;
}

.dus-fil {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px 0 6px;
	border-radius: 999px;
	background: var(--chip);
	color: var(--body);
	font-size: 14.5px;
	font-weight: 500;
	white-space: nowrap;
}

.dus-fil:hover {
	text-decoration: none;
	color: var(--ink);
}

.dus-fil.is-on {
	background: var(--acc);
	color: #fff;
	font-weight: 600;
}

.dus-fil.is-on:hover {
	color: #fff;
}

.dus-fic {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dus-fil.is-on .dus-fic {
	background: rgba(255, 255, 255, .24);
}

/* ============================================================ ARTICLES */

.dus-arts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 40px;
	margin-top: 44px;
}

.dus-card__media {
	display: block;
	aspect-ratio: 16 / 10;
}

.dus-card__subj {
	display: block;
	margin-top: 22px;
}

.dus-card__title {
	margin-top: 11px;
}

.dus-card__ex {
	margin-top: 12px;
}

.dus-card__meta {
	margin-top: 16px;
}

/* ============================================================ AUDIO */

.dus-audio {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0 64px;
	margin-top: 40px;
	align-items: start;
}

.dus-panel {
	background: var(--acc);
	border-radius: var(--r);
	position: relative;
	overflow: hidden;
}

.dus-panel__body {
	position: relative;
	padding: 32px 34px 30px;
}

.dus-panel__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}

.dus-panel__title {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.032em;
	line-height: 1.22;
	color: #fff;
	margin-top: 14px;
}

.dus-panel__title a {
	color: #fff;
}

.dus-panel__meta {
	font-size: 14.5px;
	color: rgba(255, 255, 255, .92);
	margin-top: 10px;
}

.dus-panel__player {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.dus-play {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.dus-play:hover {
	text-decoration: none;
}

.dus-panel__bar {
	flex-grow: 1;
	min-width: 0;
}

.dus-bar {
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .38);
}

.dus-bar span {
	display: block;
	height: 3px;
	border-radius: 2px;
	background: #fff;
}

.dus-panel__times {
	display: flex;
	justify-content: space-between;
	margin-top: 9px;
	font-size: 13px;
	color: rgba(255, 255, 255, .92);
}

.dus-index__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
}

.dus-lesson {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto auto;
	gap: 0 24px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.dus-lesson:last-of-type {
	border-bottom: 1px solid var(--line);
}

.dus-lesson__n {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
}

.dus-lesson__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.dus-lesson__by {
	margin-top: 4px;
}

.dus-lesson__part {
	white-space: nowrap;
}

.dus-lesson__dur {
	min-width: 56px;
	text-align: right;
}

.dus-index__more {
	display: inline-block;
	margin-top: 18px;
}

/* ============================================================ VIDEO */

.dus-videos {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 0 64px;
	margin-top: 40px;
}

.dus-vfeat__media {
	display: block;
	aspect-ratio: 16 / 9;
}

.dus-dur {
	position: absolute;
	right: 16px;
	bottom: 16px;
	background: rgba(17, 17, 17, .84);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
}

.dus-vfeat__subj {
	display: block;
	margin-top: 22px;
}

.dus-vfeat__title {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.24;
	margin-top: 11px;
}

.dus-vfeat__meta {
	margin-top: 14px;
}

.dus-vrow {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr) auto;
	gap: 0 20px;
	align-items: center;
	padding: 20px 0;
	border-top: 1px solid var(--line);
}

.dus-vrow:first-child {
	border-top: 0;
	padding-top: 0;
}

.dus-vrow:last-child {
	border-bottom: 1px solid var(--line);
}

.dus-vrow__media {
	display: block;
	aspect-ratio: 16 / 9;
}

.dus-vrow__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.dus-vrow__meta {
	margin-top: 6px;
}

.dus-vrow__dur {
	min-width: 52px;
	text-align: right;
}

/* ============================================================ AT THE MASJID */

.dus-masjid {
	background: var(--band);
	margin-top: 88px;
}

.dus-masjid__inner {
	padding-top: 76px;
	padding-bottom: 76px;
}

.dus-masjid__cols {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 0 64px;
	margin-top: 44px;
}

.dus-prayers__head {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
	padding: 18px 0 10px;
}

.dus-prow {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
	padding: 13px 0;
	border-top: 1px solid var(--line);
	font-size: 16px;
}

.dus-prow__name {
	font-weight: 600;
}

.dus-prow__v {
	text-align: right;
}

.dus-prayers__note {
	margin-top: 16px;
}

.dus-events {
	padding-top: 18px;
}

.dus-erow {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	gap: 0 16px;
	padding: 15px 0;
	border-top: 1px solid var(--line);
}

.dus-erow:last-child {
	border-bottom: 1px solid var(--line);
}

.dus-erow__name {
	font-size: 16px;
	font-weight: 600;
}

.dus-visit__addr {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	margin-top: 18px;
}

.dus-visit__note {
	margin-top: 12px;
}

.dus-col__more {
	display: inline-block;
	margin-top: 18px;
}

/* ============================================================ APPEAL */

.dus-appeal {
	padding-top: 88px;
	padding-bottom: 88px;
}

.dus-appeal__panel {
	background: var(--acc);
	border-radius: var(--r);
	position: relative;
	overflow: hidden;
}

.dus-appeal__body {
	position: relative;
	padding: 58px 56px 60px;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 0 64px;
	align-items: end;
}

.dus-appeal__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}

.dus-appeal__title {
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.12;
	color: #fff;
	margin-top: 18px;
	max-width: 18ch;
}

.dus-appeal__text {
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .92);
	margin-top: 16px;
	max-width: 52ch;
}

.dus-appeal__figs {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.dus-appeal__raised {
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -.035em;
	color: #fff;
	line-height: 1;
}

.dus-appeal__target {
	font-size: 14px;
	color: rgba(255, 255, 255, .92);
}

.dus-appeal__bar {
	margin-top: 20px;
}

.dus-appeal__stats {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .92);
}

.dus-appeal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 30px;
	border-radius: 999px;
	background: #fff;
	color: var(--acc-d);
	font-size: 15px;
	font-weight: 600;
	margin-top: 26px;
}

.dus-appeal__cta:hover {
	text-decoration: none;
	background: #f6f0ec;
	color: var(--acc-d);
}

/* ============================================================ TABLET */

@media (max-width: 1199px) {

	.dus-home {
		--gut: 32px;
	}

	.dus-brand {
		margin-right: 28px;
	}

	.dus-nav ul {
		gap: 18px;
	}

	.dus-mast__prayer,
	.dus-mast__aside {
		gap: 16px;
	}

	.dus-feature__inner {
		gap: 0 44px;
	}

	.dus-feature__title {
		font-size: 42px;
	}

	.dus-audio,
	.dus-videos,
	.dus-masjid__cols {
		gap: 0 40px;
	}
}

/*
 * WHERE THE MASTHEAD STOPS FITTING ON ONE ROW.
 *
 * Measured, not chosen: in the inline layout the navigation's right edge is
 * fixed at 640px while the prayer readout tracks the viewport, so the clearance
 * between them is exactly (viewport - 1097). It crosses zero at 1097px - +3px
 * at 1100, -1px at 1096, -73px at 1024 - which is why the navigation used to
 * paint over "Next Prayer" all the way down to the old 1023 boundary.
 *
 * So the already-approved wrapped row simply starts earlier, at 1099 instead of
 * 1023. Nothing here is new: these are the same seven rules, moved out of the
 * 1023 block unchanged. The rest of that block is homepage layout, which has
 * its own reasons for breaking at 1023 and stays there.
 *
 * This block must sit after the 1199 one: that sets .dus-nav ul { gap: 18px }
 * for the inline bar, and the wrapped row's 22px has to win below 1100.
 */
@media (max-width: 1099px) {

	/*
	 * The navigation and the prayer readout stop sharing the bar: each takes a
	 * full-width row beneath it, as the narrow board shows.
	 */
	.dus-mast__inner {
		flex-wrap: wrap;
		height: auto;
	}

	.dus-brand {
		order: 1;
		height: 78px;
		margin-right: 0;
	}

	.dus-mast__aside {
		order: 2;
		height: 78px;
		margin-left: auto;
	}

	.dus-mast__prayer {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		height: 58px;
		border-top: 1px solid var(--line);
		margin-right: 0;
		justify-content: space-between;
	}

	.dus-mast__readout {
		flex-direction: row;
		align-items: baseline;
		gap: 10px;
	}

	.dus-nav {
		order: 4;
		flex: 0 0 100%;
		width: 100%;
		border-top: 1px solid var(--line);
		padding: 14px 0;
		margin-right: 0;
	}

	.dus-nav ul {
		gap: 22px;
		flex-wrap: wrap;
	}
}

@media (max-width: 1023px) {

	.dus-h2 {
		font-size: 34px;
	}

	.dus-feature__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px 0;
		padding-top: 40px;
		padding-bottom: 52px;
	}

	.dus-feature__media {
		aspect-ratio: 3 / 2;
	}

	.dus-feature__title {
		font-size: 38px;
	}

	.dus-arts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.dus-audio,
	.dus-videos {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px 0;
	}

	.dus-masjid__cols {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 44px 40px;
	}

	.dus-visit {
		grid-column: 1 / -1;
	}

	.dus-appeal__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px 0;
		padding: 44px 40px 46px;
	}

	.dus-appeal__title {
		font-size: 34px;
		max-width: none;
	}
}

/* ============================================================ MOBILE */

@media (max-width: 767px) {

	.dus-home {
		--gut: 20px;
	}

	.dus-meta {
		font-size: 13.5px;
	}

	.dus-h2 {
		font-size: 30px;
		line-height: 1.14;
	}

	.dus-h3 {
		font-size: 21px;
	}

	/* ---- masthead: a 70px brand bar, then a 58px prayer strip ---- */

	.dus-brand {
		height: 70px;
		gap: 11px;
	}

	.dus-brand__mark {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}

	.dus-brand__name {
		font-size: 19px;
	}

	.dus-mast__aside {
		height: 70px;
		gap: 2px;
	}

	/* Donate and the divider leave the bar; search and the toggle remain. */
	.dus-mast__aside .dus-cta,
	.dus-mast__rule {
		display: none;
	}

	.dus-mast__toggle {
		display: inline-flex;
	}

	.dus-mast__prayer {
		height: 58px;
	}

	.dus-next__time {
		margin-left: 5px;
	}

	/* The navigation becomes a disclosure panel. */
	.dus-nav {
		display: none;
	}

	.dus-mast.is-open .dus-nav {
		display: block;
	}

	.dus-mast.is-open .dus-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.dus-mast.is-open .dus-nav a {
		display: block;
		padding: 12px 0;
		font-size: 17px;
	}

	.dus-mast.is-open .dus-nav__donate {
		display: inline-flex;
		margin: 14px 0 4px;
	}

	/* ---- featured ---- */

	.dus-feature__inner {
		padding-top: 24px;
		padding-bottom: 38px;
		gap: 0;
	}

	.dus-feature__media {
		aspect-ratio: 3 / 2;
		margin-bottom: 22px;
	}

	.dus-feature__title {
		font-size: 33px;
		line-height: 1.14;
		margin-top: 12px;
	}

	.dus-feature__stand {
		font-size: 16px;
		margin-top: 14px;
	}

	.dus-feature__meta {
		margin-top: 16px;
	}

	.dus-feature__more {
		margin-top: 6px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	/* ---- discovery ---- */

	.dus-discover__inner {
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.dus-srch {
		height: 54px;
		padding: 0 20px;
		gap: 12px;
		font-size: 15px;
	}

	/* The subject select is a desktop refinement; search leads on mobile. */
	.dus-sel {
		display: none;
	}

	/* ---- sections ---- */

	.dus-sec {
		padding-top: 44px;
	}

	.dus-sec--tight {
		padding-top: 52px;
	}

	.dus-sec__head {
		display: block;
	}

	.dus-sec__intro {
		margin-top: 14px;
	}

	/* The section link moves under the list. */
	.dus-sec__head .dus-sec__more {
		display: none;
	}

	.dus-sec__more--mobile {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-top: 18px;
	}

	.dus-fils {
		margin-top: 22px;
		gap: 9px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}

	.dus-fils::-webkit-scrollbar {
		display: none;
	}

	.dus-fil {
		padding: 0 16px 0 6px;
		gap: 9px;
		font-size: 14px;
	}

	/* ---- articles ---- */

	.dus-arts {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px 0;
		margin-top: 32px;
	}

	.dus-card__subj {
		margin-top: 18px;
	}

	.dus-card__title {
		margin-top: 10px;
	}

	.dus-card__ex {
		margin-top: 10px;
	}

	.dus-card__meta {
		margin-top: 12px;
	}

	/* ---- audio ---- */

	.dus-audio {
		margin-top: 24px;
		gap: 26px 0;
	}

	.dus-panel__body {
		padding: 26px 24px;
	}

	.dus-panel__title {
		font-size: 23px;
		margin-top: 13px;
	}

	.dus-play {
		width: 48px;
		height: 48px;
	}

	/* The part label folds under the title; number and duration stay in line. */
	.dus-lesson {
		grid-template-columns: 28px minmax(0, 1fr) auto;
		gap: 0 14px;
		padding: 15px 0;
	}

	.dus-lesson__title {
		font-size: 16px;
	}

	.dus-lesson__part {
		grid-column: 2;
		grid-row: 2;
		margin-top: 3px;
		text-align: left;
	}

	.dus-lesson__dur {
		grid-column: 3;
		grid-row: 1;
		min-width: 48px;
	}

	.dus-lesson__by {
		display: none;
	}

	/* ---- video ---- */

	.dus-videos {
		margin-top: 24px;
		gap: 26px 0;
	}

	.dus-vfeat__title {
		font-size: 23px;
		line-height: 1.26;
		margin-top: 10px;
	}

	.dus-vfeat__meta {
		margin-top: 12px;
	}

	.dus-vrow {
		grid-template-columns: 128px minmax(0, 1fr) auto;
		gap: 0 14px;
	}

	.dus-vrow__title {
		font-size: 16px;
	}

	.dus-vrow__meta {
		margin-top: 5px;
	}

	.dus-vrow__dur {
		min-width: 46px;
	}

	/* ---- at the masjid ---- */

	.dus-masjid {
		margin-top: 52px;
	}

	.dus-masjid__inner {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.dus-masjid__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px 0;
		margin-top: 30px;
	}

	.dus-prayers__head,
	.dus-prow {
		gap: 0 12px;
	}

	.dus-erow {
		grid-template-columns: 108px minmax(0, 1fr);
		gap: 0 14px;
		padding: 14px 0;
	}

	.dus-col__more {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}

	/* ---- appeal ---- */

	.dus-appeal {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.dus-appeal__body {
		padding: 30px 24px 32px;
		gap: 22px 0;
	}

	.dus-appeal__title {
		font-size: 28px;
		line-height: 1.16;
		margin-top: 14px;
	}

	.dus-appeal__text {
		font-size: 16px;
	}

	.dus-appeal__raised {
		font-size: 32px;
	}

	.dus-appeal__figs {
		gap: 9px;
	}

	.dus-appeal__bar {
		margin-top: 16px;
	}

	.dus-appeal__stats {
		margin-top: 9px;
		font-size: 13px;
	}

	.dus-appeal__cta {
		display: flex;
		margin-top: 24px;
	}
}

/* ============================================================ NAVIGATION DISCLOSURE */

/*
 * Grouped navigation for the masthead.
 *
 * Added as an isolated section: nothing above this comment is altered. The
 * disclosure parents are real <button> elements emitted server-side, so they
 * are styled to match .dus-nav a exactly rather than being given a control
 * appearance of their own - the bar must look unchanged when nothing is open.
 *
 * No shadow, no arrow, no card. The panel is the masthead's own cream surface
 * with the existing hairline, so it reads as part of the bar.
 */

.dus-nav__disclosure {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15px;
	color: var(--body);
	cursor: pointer;
	transition: color .15s;
}

.dus-nav__disclosure:hover,
.dus-nav__disclosure[aria-expanded="true"],
.dus-nav__subtoggle[aria-expanded="true"] {
	color: var(--ink);
}

.dus-nav__disclosure:focus-visible,
.dus-nav__subtoggle:focus-visible {
	outline: 2px solid var(--acc);
	outline-offset: 3px;
	border-radius: 4px;
}

/* The chevron is a plain rotated mark, sized to sit optically on the baseline. */
.dus-nav__chev {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .18s;
}

.dus-nav__disclosure[aria-expanded="true"] .dus-nav__chev,
.dus-nav__subtoggle[aria-expanded="true"] .dus-nav__chev {
	transform: translateY(1px) rotate(225deg);
}

/* Ancestor treatment reuses the existing current-link language. */
.dus-nav .current-menu-ancestor > .dus-nav__disclosure,
.dus-nav .current-menu-parent > .dus-nav__disclosure {
	color: var(--ink);
	font-weight: 600;
}

/*
 * The editorial half is DESKTOP ONLY, and hidden by default rather than by a
 * narrow-width rule: it is emitted into the markup at every width, so anything
 * short of an explicit default would drop a block of prose into the mobile
 * accordion. The desktop block below turns it on.
 */
.dus-nav__mega {
	display: none;
}

/* ---- desktop: the split panel ---- */

@media (min-width: 768px) {

	/*
	 * ONE PANEL, TWO ELEMENTS.
	 *
	 * .dus-nav__mega draws the whole panel box and carries the editorial half;
	 * the core-rendered .sub-menu is laid over its right column. They are
	 * siblings because core's walker writes the list straight into the parent
	 * <li> and gives no hook to wrap the pair - see the note in functions.php.
	 *
	 * Every offset below is derived from the four custom properties on the
	 * parent, so the two halves cannot drift apart and a breakpoint only has to
	 * restate the properties. --mega-split is where the painted seam falls;
	 * the list is placed one --mega-gap to the right of it.
	 */
	.dus-nav .menu-item-has-children {
		position: relative;

		--mega-w: 420px;
		--mega-split: 208px;
		--mega-pad: 24px;
		--mega-gap: 20px;
		--mega-edge: -18px;
		--mega-h: 250px;
		/*
		 * HOW FAR THE PANEL DROPS, measured from the trigger's own box.
		 *
		 * The trigger stays the positioned ancestor - it is what anchors the
		 * panel horizontally to its own parent - so the panel cannot simply be
		 * told to sit at the masthead's bottom. Instead the offset carries the
		 * distance from the trigger box down to the masthead rule, plus a 4px
		 * gap so the panel's own border never doubles up with that rule.
		 *
		 * On this row the navigation has wrapped to its own full-width line and
		 * the trigger ends 15px above the rule: 15 + 4 = 19.
		 */
		--mega-drop: 19px;
	}

	/*
	 * Absolute so the chevron adds NO layout width: it floats ~5px past the label
	 * (padding-left), into the space between items, so the bar stays as narrow as
	 * it was before the chevrons - which restores the breathing room before the
	 * prayer block. The hit / focus target stays large via padding, and the tab
	 * order is unchanged (the button still follows the link in the DOM). Vertical
	 * centring is on the button; the chevron keeps its own rotation transform.
	 */
	.dus-nav__subtoggle {
		position: absolute;
		left: 100%;
		top: 50%;
		transform: translateY(-50%);
		padding: 9px 10px 9px 6px;
	}

	.dus-nav__subtoggle .dus-nav__chev {
		width: 6px;
		height: 6px;
	}

	.dus-nav__mega,
	.dus-nav .sub-menu {
		position: absolute;
		/* One offset for both halves, so they can never separate vertically. */
		top: calc(100% + var(--mega-drop));
		z-index: 70;
		/*
		 * visibility + opacity rather than display, so the no-JS :focus-within
		 * fallback can reveal the panel without a layout jump. The lift is the
		 * reference's entrance, kept small.
		 */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .26s ease,
		            transform .32s cubic-bezier(.16, 1, .3, 1),
		            visibility .26s;
	}

	.dus-nav__mega {
		display: block;
		left: var(--mega-edge);
		width: var(--mega-w);
		min-height: var(--mega-h);
		margin: 0;
		padding: 28px var(--mega-pad);
		/* The prose stops at the seam; the list occupies the reserved side. */
		padding-right: calc(var(--mega-w) - var(--mega-split) + var(--mega-gap));
		border: 1px solid var(--line);
		border-radius: 4px;
		box-shadow: 0 22px 54px rgba(17, 17, 17, .13);
		overflow: hidden;
		/*
		 * The split is PAINTED, not built from two boxes: a hard-stop gradient
		 * with a hairline at the seam - warm paper on the editorial side, the
		 * masthead's own cream on the navigation side. No colour wash, and no
		 * second element to keep in sync.
		 */
		background:
			linear-gradient(90deg,
				#f7f1e4 0 var(--mega-split),
				var(--line) var(--mega-split) calc(var(--mega-split) + 1px),
				#fcf9f3 calc(var(--mega-split) + 1px));
	}

	.dus-nav .sub-menu {
		/*
		 * Restrained dropdown anchored under its parent and hanging just below
		 * the masthead so it reads as part of the header (the Engine model,
		 * translated to our language). Out of flow (absolute, from the shared
		 * rule above), so it overlays page content and never moves it. The
		 * entrance (fade + 10px slide) is also inherited from that rule.
		 */
		display: block;
		/* Small 3px tuck keeps the panel reading as part of the masthead
		   (connected, not a detached floating card) while clearing the label row. */
		top: calc(100% + 3px);
		left: 0;
		min-width: 190px;
		width: max-content;
		max-width: 290px;
		margin: 0;
		padding: 6px 0;
		list-style: none;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 4px;
		box-shadow: 0 6px 20px rgba(17, 17, 17, .07);
	}

	/* Right-anchor the last parent's panel so it cannot overrun the viewport. */
	.dus-nav ul > .menu-item-has-children:last-child > .sub-menu {
		left: auto;
		right: 0;
	}

	/*
	 * Invisible hover bridge across the 3px gap, present only while hovering, so
	 * pointer travel into the panel never drops the hover. Keyboard needs none:
	 * focus moves straight into the links.
	 */
	.dus-nav .menu-item-has-children:hover::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		width: 220px;
		max-width: 70vw;
		height: 7px;
	}

	.dus-nav .sub-menu a {
		display: block;
		padding: 8px 18px;
		font-size: 14.5px;
		font-weight: 500;
		line-height: 1.35;
		color: var(--body);
		white-space: nowrap;
	}

	.dus-nav .sub-menu a:hover,
	.dus-nav .sub-menu a:focus-visible {
		color: var(--ink);
		background: #f6f2ea;
		text-decoration: none;
	}

	.dus-nav .sub-menu .current-menu-item > a {
		color: var(--ink);
		font-weight: 600;
	}

	/*
	 * Editorial half. The hierarchy is carried by scale, weight and letter
	 * spacing rather than a second typeface: this theme loads Inter, Rubik and
	 * the Arabic faces only, and adding a display serif here would change font
	 * loading on surfaces whose rendering is frozen.
	 */
	.dus-nav__mega-eyebrow {
		margin: 0 0 10px;
		font-size: 10.5px;
		font-weight: 600;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--gold-d);
	}

	.dus-nav__mega-title {
		margin: 0 0 10px;
		font-size: 23px;
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: -.022em;
		color: var(--ink);
	}

	.dus-nav__mega-blurb {
		margin: 0 0 16px;
		font-size: 13.5px;
		line-height: 1.6;
		color: var(--body);
	}

	.dus-nav__mega-cta {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		font-size: 13px;
		font-weight: 600;
		letter-spacing: .01em;
		color: var(--acc);
	}

	.dus-nav__mega-cta:hover {
		color: var(--acc-d);
		text-decoration: none;
	}

	.dus-nav__mega-arrow {
		transition: transform .18s;
	}

	.dus-nav__mega-cta:hover .dus-nav__mega-arrow {
		transform: translateX(3px);
	}

	/*
	 * The existing rosette, reused. Sized and coloured here rather than left to
	 * ornaments.css, which is only enqueued on article surfaces - the mark has
	 * to hold on every template. Heritage gold, never the interaction accent.
	 */
	.dus-nav__mega-orn {
		position: absolute;
		left: calc(var(--mega-split) - 46px);
		top: 26px;
		width: 24px;
		height: 24px;
		color: var(--gold);
		opacity: .55;
	}

	/*
	 * Open: the chevron toggle sets .is-expanded (click / Enter). .is-open is the
	 * marked-disclosure controller's class, kept for those items.
	 */
	.dus-nav .menu-item-has-children.is-open > .dus-nav__mega,
	.dus-nav .menu-item-has-children.is-open > .sub-menu,
	.dus-nav .menu-item-has-children.is-expanded > .dus-nav__mega,
	.dus-nav .menu-item-has-children.is-expanded > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/*
	 * Pointer affordance: hovering the item still reveals the panel. Keyboard
	 * does NOT auto-reveal on focus - the children are hidden (so out of the tab
	 * order) until the chevron is activated, which is what makes the link and the
	 * disclosure two distinct, predictable controls.
	 */
	.dus-nav .menu-item-has-children:hover > .dus-nav__mega,
	.dus-nav .menu-item-has-children:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

/*
 * Wider panel once there is room for it.
 *
 * This boundary is about AVAILABLE WIDTH, not about whether the bar is inline,
 * so it stays at 1024 while the masthead transition moved to 1100. Between 1024
 * and 1099 the panel is 500px wide inside the wrapped row, which is verified to
 * stay within the viewport there.
 */
@media (min-width: 1024px) {

	.dus-nav .menu-item-has-children {
		--mega-w: 500px;
		--mega-split: 258px;
		--mega-pad: 28px;
		--mega-gap: 22px;
		--mega-h: 262px;
	}
}

/*
 * INLINE-LAYOUT ONLY. Both rules below depend on the bar being on one row, so
 * they are keyed to the masthead transition at 1100 rather than to panel width.
 *
 * --mega-drop: inline, the trigger sits mid-bar and ends 38px above the
 * masthead rule (38 + 4 = 42). In the wrapped row it ends 15px above it, and
 * the 19px set further up applies instead - either way the panel lands exactly
 * 4px below the masthead.
 *
 * dus-mega-end: right-edge anchoring exists because a 560px panel hung from
 * Support's LEFT edge overruns the viewport on a narrow inline bar. In the
 * wrapped row the triggers sit far to the left, where hanging from the right
 * would push the panel off the opposite edge - so it must not apply there.
 */
@media (min-width: 1100px) {

	.dus-nav .menu-item-has-children {
		--mega-drop: 42px;
	}

	.dus-nav .dus-mega-end > .dus-nav__mega {
		left: auto;
		right: var(--mega-edge);
	}

	.dus-nav .dus-mega-end > .sub-menu {
		left: auto;
		right: calc(var(--mega-edge) + var(--mega-pad));
	}
}

@media (min-width: 1200px) {

	.dus-nav .menu-item-has-children {
		--mega-w: 560px;
		--mega-split: 296px;
		--mega-pad: 32px;
		--mega-gap: 24px;
		--mega-h: 284px;
	}
}

/* The entrance is an enhancement; the panel must still open without it. */
@media (prefers-reduced-motion: reduce) {

	.dus-nav__mega,
	.dus-nav .sub-menu,
	.dus-nav .menu-item-has-children.is-open > .dus-nav__mega,
	.dus-nav .menu-item-has-children.is-open > .sub-menu {
		transform: none;
		transition: none;
	}
}

/* ---- mobile accordion ---- */

@media (max-width: 767px) {

	.dus-mast.is-open .dus-nav .dus-nav__disclosure {
		justify-content: space-between;
		width: 100%;
		padding: 11px 0;
		font-size: 17px;
		color: var(--ink);
	}

	.dus-mast.is-open .dus-nav .dus-nav__chev {
		width: 8px;
		height: 8px;
	}

	/*
	 * Accordion. Each parent with children carries an injected chevron toggle
	 * (.dus-nav__subtoggle, added by home.js). The parent link keeps its own
	 * destination; the toggle expands the children beneath it. Collapsed by
	 * default, animated with max-height, one section open at a time.
	 */
	.dus-mast.is-open .dus-nav .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.dus-mast.is-open .dus-nav .menu-item-has-children > a {
		flex: 1 1 auto;
	}

	/* Chevron toggle (colour, focus ring, chev size + rotation reuse the shared
	   .dus-nav__disclosure / .dus-nav__chev rules). */
	.dus-mast.is-open .dus-nav .dus-nav__subtoggle {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		min-height: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: var(--body);
		cursor: pointer;
	}

	.dus-mast.is-open .dus-nav .sub-menu {
		flex: 0 0 100%;
		/* Reset the masthead's .dus-nav ul flex row so children stack. */
		display: block;
		margin: 0;
		padding: 0 0 0 16px;
		list-style: none;
		/* Collapsed; opened by .is-expanded on the parent (animated). */
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}

	.dus-mast.is-open .dus-nav .menu-item-has-children.is-expanded > .sub-menu {
		max-height: 600px;
	}

	.dus-mast.is-open .dus-nav .sub-menu a {
		display: block;
		padding: 9px 0;
		font-size: 15.5px;
		color: var(--body);
	}

	/*
	 * NO NO-JS FALLBACK IS POSSIBLE HERE, and none is claimed.
	 *
	 * The frozen masthead sets .dus-nav { display: none } at this width and
	 * reveals it only through .dus-mast.is-open, which only script adds. Any
	 * rule for expanded submenus would therefore sit inside a panel that never
	 * appears. The mobile navigation is script-dependent exactly as it was
	 * before this section existed; resolving that belongs to the masthead, not
	 * to the disclosure work.
	 */
}
