/*
Theme Name: Dar Alhikma
Theme URI: https://daralhikma.net/
Author: Alhikma Consulting
Description: Child block theme for Dar Alhikma Learning, a training platform operated by Alhikma Consulting. Carries the Alhikma design system in English and Arabic (right to left).
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dah
Tags: block-patterns, full-site-editing, rtl-language-support, accessibility-ready
*/

/*
 * Rules for this file
 * - Colours, fonts, sizes and radii come from theme.json custom properties (--wp--preset--*,
 *   --wp--custom--*). No hex values here; theme.json is generated from config.
 * - Logical properties only (margin-inline-start, not margin-left), so the same rules work
 *   right to left. Exceptions that cannot be logical go in rtl.css.
 * - Flat backgrounds only. No gradients, no shadows on content.
 */

/* ---------- Tokens used below ---------- */

:root {
	--dah-focus-colour: var(--wp--custom--focus--colour-light);
	--dah-tap: var(--wp--custom--tap-target);
}

/* ---------- Arabic: Cairo for headings and body ---------- */

:root:lang(ar) {
	--wp--preset--font-family--heading: var(--wp--preset--font-family--arabic);
	--wp--preset--font-family--body: var(--wp--preset--font-family--arabic);
}

:lang(ar) body,
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) h3,
:lang(ar) h4,
:lang(ar) h5,
:lang(ar) h6 {
	letter-spacing: normal;
}

/* Embedded English terms in Arabic text keep their order. See [dah_ltr] in functions.php. */
.dah-ltr {
	unicode-bidi: isolate;
	direction: ltr;
}

/* ---------- Accessibility ---------- */

/* Skip link added by WordPress for block themes. */
.skip-link.screen-reader-text:focus {
	inset-block-start: 8px;
	inset-inline-start: 8px;
	padding: 12px 16px;
	min-height: var(--dah-tap);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: underline;
	border-radius: var(--wp--custom--radius--button);
	z-index: 100000;
}

/* Visible focus ring on every interactive element. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--dah-focus-colour);
	outline-offset: var(--wp--custom--focus--offset);
	box-shadow: none;
}

/* On navy surfaces the ring switches to bright teal. */
.has-navy-background-color,
.has-navy-deep-background-color,
.dah-section--hero,
.dah-section--organisations-band,
.dah-footer {
	--dah-focus-colour: var(--wp--custom--focus--colour-dark);
}

/* Minimum 44 px tap targets for controls and stand-alone links. */
.wp-element-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"],
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"] {
	min-height: var(--dah-tap);
}

.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close,
.dah-menu a,
.dah-menu__toggle,
.dah-link-list a,
.dah-lang a,
.dah-account-link__link {
	display: inline-flex;
	align-items: center;
	min-height: var(--dah-tap);
	min-width: var(--dah-tap);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Links and buttons ---------- */

a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
}

/* Outline button: teal text and border on light surfaces, white on navy. */
.wp-block-button.is-style-dah-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--teal-active);
	border: 2px solid currentColor;
	padding-block: 10px;
}

.wp-block-button.is-style-dah-outline .wp-block-button__link:hover,
.wp-block-button.is-style-dah-outline .wp-block-button__link:active {
	background: var(--wp--preset--color--teal-active);
	border-color: var(--wp--preset--color--teal-active);
	color: var(--wp--preset--color--base);
}

.has-navy-background-color .wp-block-button.is-style-dah-outline .wp-block-button__link,
.has-navy-deep-background-color .wp-block-button.is-style-dah-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
}

/* Arrow button. The arrow is mirrored on right-to-left pages in rtl.css. */
.wp-block-button.is-style-dah-arrow .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	speak: never;
}

/* ---------- Layout helpers ---------- */

/* Readable line length for intro text, aligned to the start edge in both directions. */
.dah-measure > * {
	max-inline-size: 760px;
}

/* ---------- Eyebrow labels ---------- */

p.is-style-dah-eyebrow {
	margin-block-end: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	color: var(--wp--preset--color--teal-active);
}

/* Arabic has no case: Cairo semibold, no tracking. */
:lang(ar) p.is-style-dah-eyebrow {
	font-family: var(--wp--preset--font-family--arabic);
	font-size: var(--wp--preset--font-size--small);
	text-transform: none;
	letter-spacing: normal;
}

/* ---------- Sections ----------
 * Class names shared with scripts/w6-pages.py: dah-section dah-section--{pattern}, where pattern
 * is hero, programme-card-grid, organisations-band, how-it-works, cta, faq or text.
 * Pages built by the W6 script carry only these classes, so backgrounds and spacing come from
 * here; the theme patterns also carry the matching colour classes for the editor.
 * Sections alternate white, ivory and navy (03 section 2).
 */

.dah-section {
	padding-block: var(--wp--preset--spacing--70);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.dah-section--hero {
	padding-block: var(--wp--preset--spacing--80);
}

.dah-section--hero,
.dah-section--organisations-band {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
}

.dah-section--how-it-works,
.dah-section--cta {
	background-color: var(--wp--preset--color--ivory);
}

/* A section that is not full width (for example from the page script) reads as a band. */
.dah-section:not(.alignfull) {
	padding-inline: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
}

/* ---------- Navy surfaces ---------- */

:is(.has-navy-background-color, .has-navy-deep-background-color, .dah-section--hero, .dah-section--organisations-band) :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--base);
}

:is(.has-navy-background-color, .has-navy-deep-background-color, .dah-section--hero, .dah-section--organisations-band) a:not(.wp-element-button, .wp-block-button__link) {
	color: var(--wp--preset--color--teal-bright);
}

:is(.has-navy-background-color, .has-navy-deep-background-color, .dah-section--hero, .dah-section--organisations-band) p.is-style-dah-eyebrow {
	color: var(--wp--preset--color--teal-bright);
}

:is(.dah-section--hero, .dah-section--organisations-band) .wp-block-button.is-style-dah-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
}

/* ---------- Cards ---------- */

.dah-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-dah-card,
.dah-card,
.dah-programme-card {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--40);
}

/* ---------- Header ---------- */

.dah-header {
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.dah-header__bar {
	gap: var(--wp--preset--spacing--30);
}

.dah-header__tools {
	gap: var(--wp--preset--spacing--30);
}

/* D35: brand left, menu, then language and account button in the end corner. On narrower
   screens the menu drops to its own row and the language and account stay in the corner. */
.dah-header__bar > .dah-lockup,
.dah-header__bar > :first-child { order: 1; }
.dah-header__tools { order: 2; }
.dah-lockup__name, .dah-account-link__link, .dah-lang a { white-space: nowrap; }
.dah-header__actions {
	order: 3;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
	margin-inline-start: auto;
}

@media (min-width: 1440px) {
	.dah-header__bar { flex-wrap: nowrap !important; }
	.dah-header__tools { flex: 1 1 auto; justify-content: flex-end; }
}

@media (max-width: 1439px) {
	.dah-header__actions { order: 2; }
	.dah-header__tools { order: 3; flex-basis: 100%; justify-content: flex-start; }
}

.dah-lockup__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: var(--dah-tap);
	text-decoration: none;
	color: inherit;
}

.dah-lockup__emblem {
	display: block;
	height: 48px;
	width: auto;
	flex: none;
}

.dah-lockup__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dah-lockup__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--navy);
}

.dah-lockup__descriptor {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
}

.dah-lockup--dark .dah-lockup__name {
	color: var(--wp--preset--color--base);
}

.dah-lockup--dark .dah-lockup__descriptor {
	color: var(--wp--preset--color--base);
}

/* Menus (dah/menu, classic locations primary and footer). */
.dah-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dah-menu--primary a {
	font-weight: 500;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.dah-menu--primary a:hover,
.dah-menu--primary .current-menu-item > a,
.dah-menu--primary .current_page_item > a {
	color: var(--wp--preset--color--teal-active);
	text-decoration: underline;
}

.dah-menu .menu-item {
	position: relative;
}

/* Second level: dropdown on wide screens. */
.dah-menu--primary .sub-menu {
	display: none;
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 10;
	min-inline-size: 14rem;
	margin: 0;
	padding: 8px 16px;
	list-style: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--button);
}

.dah-menu--primary .menu-item:hover > .sub-menu,
.dah-menu--primary .menu-item:focus-within > .sub-menu {
	display: block;
}

.dah-menu__toggle {
	padding-inline: 16px;
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: var(--wp--custom--radius--button);
	background: transparent;
	color: var(--wp--preset--color--navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.dah-menu__toggle[hidden] {
	display: none;
}

@media (min-width: 782px) {
	.dah-menu__toggle {
		display: none;
	}
}

@media (max-width: 781px) {
	.dah-menu--primary.has-js .dah-menu__list {
		display: none;
	}

	.dah-menu--primary.has-js.is-open .dah-menu__list {
		display: flex;
		flex-direction: column;
		padding-block: 8px;
	}

	.dah-menu--primary .sub-menu {
		display: block;
		position: static;
		border: 0;
		padding-block: 0;
	}

	.dah-header__tools {
		inline-size: 100%;
	}
}

.dah-footer .dah-menu a {
	color: var(--wp--preset--color--teal-bright);
}

.dah-lang__list,
.dah-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dah-lang a {
	font-weight: 600;
	color: var(--wp--preset--color--teal-active);
}

.dah-account-link__link {
	padding-inline: 16px;
	border: 2px solid var(--wp--preset--color--teal-active);
	border-radius: var(--wp--custom--radius--button);
	font-weight: 600;
	color: var(--wp--preset--color--teal-active);
	text-decoration: none;
}

.dah-account-link__link:hover {
	background: var(--wp--preset--color--teal-active);
	color: var(--wp--preset--color--base);
}

/* D35: logged in, "My account" opens a small menu (My account, My invoices, My certificates, Log out). */
.dah-account-link {
	position: relative;
}

.dah-account-menu > summary {
	list-style: none;
	cursor: pointer;
	gap: 8px;
}

.dah-account-menu > summary::-webkit-details-marker {
	display: none;
}

.dah-account-menu > summary::after {
	content: "";
	inline-size: 8px;
	block-size: 8px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.dah-account-menu[open] > summary {
	background: var(--wp--preset--color--teal-active);
	color: var(--wp--preset--color--base);
}

.dah-account-menu__list {
	position: absolute;
	inset-block-start: calc(100% + 6px);
	inset-inline-end: 0;
	z-index: 20;
	min-inline-size: 14rem;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--button);
	box-shadow: 0 8px 24px rgba(14, 40, 65, .12);
}

.dah-account-menu__list a {
	display: flex;
	align-items: center;
	min-height: var(--dah-tap);
	padding-inline: 16px;
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	text-decoration: none;
}

.dah-account-menu__list a:hover,
.dah-account-menu__list a:focus-visible {
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--teal-active);
}

.dah-account-menu__logout {
	border-block-start: 1px solid var(--wp--preset--color--line);
	margin-block-start: 4px;
	padding-block-start: 4px;
}

@media (max-width: 599px) {
	.dah-lockup__name {
		font-size: var(--wp--preset--font-size--medium);
	}

	.dah-lockup__emblem {
		height: 40px;
	}
}

/* ---------- Footer ---------- */

/* QA-018: on pages shorter than the window, the area below the body shows the footer colour
   instead of a white strip. The body keeps its own background from theme.json. */
html {
	background-color: var(--wp--preset--color--navy-deep);
}

.dah-footer {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}

.dah-footer a {
	color: var(--wp--preset--color--teal-bright);
}

.dah-footer .dah-config-text {
	margin-block: 0;
}

.dah-footer__meta {
	border-block-start: 1px solid var(--wp--preset--color--navy);
	padding-block-start: var(--wp--preset--spacing--40);
}

/* ---------- Programme cards ---------- */

.dah-programme-cards__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dah-programme-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dah-programme-card > * {
	margin: 0;
}

.dah-programme-card__code {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--eyebrow--tracking);
	color: var(--wp--preset--color--teal-active);
}

.dah-programme-card__title {
	font-size: var(--wp--preset--font-size--large);
}

.dah-programme-card__title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.dah-programme-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--card);
}

.dah-programme-card:focus-within {
	outline: var(--wp--custom--focus--width) solid var(--dah-focus-colour);
	outline-offset: var(--wp--custom--focus--offset);
}

.dah-programme-card__title a:focus-visible {
	outline: none;
}

.dah-programme-card:hover {
	border-color: var(--wp--preset--color--teal-active);
}

.dah-programme-card__price {
	color: var(--wp--preset--color--ink);
}

.dah-programme-card__amount {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.dah-programme-card__vat {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* D35: folded catalogue text. Sits above the card's link overlay so it can be opened. */
.dah-programme-card__about {
	position: relative;
	z-index: 1;
	color: var(--wp--preset--color--ink);
}

.dah-programme-card__about summary {
	display: inline-flex;
	align-items: center;
	min-height: var(--dah-tap);
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.dah-programme-card__about p {
	margin: 4px 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.dah-programme-card__more {
	margin-block-start: auto;
	padding-block-start: 8px;
	font-weight: 600;
	color: var(--wp--preset--color--teal-active);
}

/* ---------- Learning paths (U1, D36) ---------- */

/* Badges on programme cards: teal outline, above the card's link overlay. */
.dah-path-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dah-path-badge {
	display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px;
	border: 1px solid var(--wp--preset--color--teal-active); border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small); font-weight: 600;
	color: var(--wp--preset--color--teal-active); text-decoration: none;
}
.dah-path-badge:hover { background: var(--wp--preset--color--teal-active); color: var(--wp--preset--color--base); }

.dah-paths__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--wp--preset--spacing--40); margin: 0; padding: 0; list-style: none; }
.dah-path-card { position: relative; display: flex; flex-direction: column; gap: 8px; border-block-start: 4px solid var(--wp--preset--color--teal); }
.dah-path-card > * { margin: 0; }
.dah-path-card__code { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: var(--wp--custom--eyebrow--tracking); color: var(--wp--preset--color--teal-active); }
.dah-path-card__title { font-size: var(--wp--preset--font-size--large); }
.dah-path-card__title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.dah-path-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--wp--custom--radius--card); }
.dah-path-card:focus-within { outline: var(--wp--custom--focus--width) solid var(--dah-focus-colour); outline-offset: var(--wp--custom--focus--offset); }
.dah-path-card:hover { border-color: var(--wp--preset--color--teal-active); }
.dah-path-card__totals, .dah-path-card__soon { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.dah-path-card__more { margin-block-start: auto !important; padding-block-start: 8px; font-weight: 600; color: var(--wp--preset--color--teal-active); }

.dah-path__hero { padding-block: var(--wp--preset--spacing--50); }
.dah-path__eyebrow { margin: 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: var(--wp--custom--eyebrow--tracking); color: var(--wp--preset--color--teal-active); text-transform: uppercase; }
.dah-path__hero h1 { margin: 8px 0; color: var(--wp--preset--color--navy); }
.dah-path__tagline { font-size: var(--wp--preset--font-size--large); margin: 0 0 8px; }
.dah-path__totals { color: var(--wp--preset--color--muted); margin: 0 0 16px; }
.dah-path__about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--40); }
.dah-path__about h2, .dah-path__steps-wrap > h2 { font-size: var(--wp--preset--font-size--x-large); }

.dah-path__bar { block-size: 8px; background: var(--wp--preset--color--line); border-radius: 999px; overflow: hidden; }
.dah-path__bar span { display: block; block-size: 100%; background: var(--wp--preset--color--teal); }
.dah-path__progress p { margin: 6px 0 16px; font-weight: 600; }

/* Timeline: the line sits on the start side, so it follows the reading direction. */
.dah-path__steps { list-style: none; margin: 0; padding: 0; }
.dah-path-step { position: relative; display: flex; gap: 16px; padding-block-end: var(--wp--preset--spacing--40); }
.dah-path-step::before { content: ""; position: absolute; inset-inline-start: 19px; inset-block: 40px 0; border-inline-start: 2px solid var(--wp--preset--color--line); }
.dah-path-step:last-child::before { display: none; }
.dah-path-step__num { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--base); font-weight: 600; }
.dah-path-step--optional .dah-path-step__num { background: var(--wp--preset--color--base); color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy); }
.dah-path-step--planned .dah-path-step__num { background: var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
.dah-path-step__body > * { margin: 0 0 4px; }
.dah-path-step__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: var(--wp--preset--color--teal-active); }
.dah-path-step__title { font-size: var(--wp--preset--font-size--large); }
.dah-path-step__title a { color: var(--wp--preset--color--navy); }
.dah-path-step--planned .dah-path-step__title { color: var(--wp--preset--color--muted); }
.dah-path-step__facts { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.dah-path-tag, .dah-path-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; font-weight: 600; }
.dah-path-tag--optional { color: var(--wp--preset--color--muted); }
.dah-path-chip[hidden], .dah-path__progress[hidden] { display: none !important; }
.dah-path-chip--planned, .dah-path-chip--not_enrolled { color: var(--wp--preset--color--muted); }
.dah-path-chip--completed { background: var(--wp--preset--color--teal-active); border-color: var(--wp--preset--color--teal-active); color: var(--wp--preset--color--base); }
.dah-path-chip--in_progress, .dah-path-chip--enrolled { color: var(--wp--preset--color--navy); }
.dah-path__team { margin-block: var(--wp--preset--spacing--40); font-weight: 600; }

.dah-path-next-wrap { margin-block-start: var(--wp--preset--spacing--50); display: grid; gap: 12px; }
.dah-path-next { padding: 16px 20px; border: 1px solid var(--wp--preset--color--line); border-inline-start: 4px solid var(--wp--preset--color--teal); border-radius: var(--wp--custom--radius--button); background: var(--wp--preset--color--ivory); }
.dah-path-next__part { margin: 0 0 8px; font-weight: 600; color: var(--wp--preset--color--navy); }
.dah-path-next ul { margin: 0; padding-inline-start: 20px; }

.dah-my-paths__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.dah-my-path h3 { margin-block-start: 0; }
.dah-my-path__note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* ---------- How-it-works steps ---------- */

/* QA-016: core gives paragraphs with a background a wide padding (p.has-background), which made
   ovals. The badge is a fixed 48 px circle. */
.dah-step__number,
p.dah-step__number.has-background {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	inline-size: 48px;
	min-inline-size: 48px;
	max-inline-size: 48px;
	block-size: 48px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1;
}

/* ---------- FAQ ---------- */

.dah-section--faq .wp-block-details {
	padding-block: 8px;
}

.dah-section--faq .wp-block-details summary {
	display: flex;
	align-items: center;
	min-height: var(--dah-tap);
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

.dah-section--faq .wp-block-details > :not(summary) {
	margin-block-start: 8px;
	color: var(--wp--preset--color--ink);
}

/* ---------- Other blocks ---------- */

.wp-block-quote {
	border-inline-start: 4px solid var(--wp--preset--color--teal);
	padding-inline-start: var(--wp--preset--spacing--40);
}

/* No gradients anywhere (brand rule). */
.has-background-gradient,
[class*="-gradient-background"] {
	background-image: none !important;
}
