/*
 * Approved VA Nexus Psych outline icons, 19 October 2026.
 * Shared controls only. Load after wg-main.css and the registry mask variables.
 * Geometry stays in the PHP allowlist; these rules only select its masks.
 */

/* Disjoint control families and explicit open states are grouped by owner. */
/* stylelint-disable no-descending-specificity */

/* Independent header drawings now share the approved registry. */
.vanp-site-header--core .vanp-crisis-ribbon__inner::before {
	-webkit-mask: var(--vanp-icon-support) center / contain no-repeat;
	mask: var(--vanp-icon-support) center / contain no-repeat;
}

.vanp-site-header--core .vanp-nav-search > .wp-block-navigation-item__content::before {
	-webkit-mask: var(--vanp-icon-search) center / contain no-repeat;
	mask: var(--vanp-icon-search) center / contain no-repeat;
}

.vanp-site-header--core .vanp-crisis-ribbon__button .wp-block-button__link::after {
	-webkit-mask: var(--vanp-icon-external-link) center / contain no-repeat;
	mask: var(--vanp-icon-external-link) center / contain no-repeat;
}

/* Keep the existing responsive buttons and their accessible labels. */
.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-open svg,
.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	background-color: currentcolor;
}

.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-open svg {
	-webkit-mask: var(--vanp-icon-menu) center / contain no-repeat;
	mask: var(--vanp-icon-menu) center / contain no-repeat;
}

.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-close svg {
	-webkit-mask: var(--vanp-icon-close) center / contain no-repeat;
	mask: var(--vanp-icon-close) center / contain no-repeat;
}

/* Only these two WordPress-owned control drawings are suppressed. */
.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-open svg > *,
.vanp-site-header--core .vanp-primary-navigation .wp-block-navigation__responsive-container-close svg > * {
	display: none;
}

/* The submenu span already owns its mask and the open-state rotation. */
.vanp-site-header--core .wp-block-navigation__submenu-icon {
	width: 13px;
	height: 13px;
	-webkit-mask: var(--vanp-icon-chevron-down) center / contain no-repeat;
	mask: var(--vanp-icon-chevron-down) center / contain no-repeat;
}

.vanp-site-header--core .wp-block-navigation__submenu-icon > svg {
	visibility: hidden;
}

/* Core Details uses a real minus while open; it is never a rotated close. */
.wp-block-details.vanp-icon-key.vanp-icon--plus > summary::after,
.wp-block-details.vanp-faq-detail > summary::after {
	-webkit-mask: var(--vanp-icon-plus) center / contain no-repeat;
	mask: var(--vanp-icon-plus) center / contain no-repeat;
	transform: none;
}

.wp-block-details.vanp-icon-key.vanp-icon--plus[open] > summary::after,
.wp-block-details.vanp-faq-detail[open] > summary::after {
	-webkit-mask: var(--vanp-icon-minus) center / contain no-repeat;
	mask: var(--vanp-icon-minus) center / contain no-repeat;
	transform: none;
}

/*
 * Legacy insertion-pattern fallbacks. Current hosted pages do not use these
 * check/star hosts. Exclude semantic hosts so approved context mappings win.
 * Preserve the existing placement and reserve the same inline/block space.
 */
.is-style-vanp-checklist:not(.vanp-icon-key) > li:not(.vanp-icon-key)::before,
.is-style-vanp-booking-summary > .wp-block-list:not(.vanp-icon-key) > li:not(.vanp-icon-key)::before,
.is-style-vanp-deliverables > .wp-block-group.alignwide > .wp-block-group.is-layout-grid:last-child > .wp-block-group:not(.vanp-icon-key)::before,
.is-style-vanp-service-fit > .wp-block-group > .wp-block-group.is-layout-grid > .wp-block-list:not(.vanp-icon-key) > li:not(.vanp-icon-key)::before,
.is-style-vanp-quick-facts > .wp-block-group > .wp-block-group.is-layout-grid > .wp-block-group:not(.vanp-icon-key)::before {
	content: "";
	background-color: currentcolor;
	-webkit-mask: var(--vanp-icon-check) center / contain no-repeat;
	mask: var(--vanp-icon-check) center / contain no-repeat;
}

/* These three old text glyphs did not establish their own square box. */
.is-style-vanp-booking-summary > .wp-block-list:not(.vanp-icon-key) > li:not(.vanp-icon-key)::before,
.is-style-vanp-service-fit > .wp-block-group > .wp-block-group.is-layout-grid > .wp-block-list:not(.vanp-icon-key) > li:not(.vanp-icon-key)::before,
.is-style-vanp-quick-facts > .wp-block-group > .wp-block-group.is-layout-grid > .wp-block-group:not(.vanp-icon-key)::before {
	width: 1.15em;
	height: 1.15em;
}

/* Current clinical callouts are semantic hosts, so they are unaffected. */
.is-style-vanp-clinical-callout:not(.vanp-icon-key)::before {
	content: "";
	background-color: currentcolor;
	-webkit-mask: var(--vanp-icon-question) center / contain no-repeat;
	mask: var(--vanp-icon-question) center / contain no-repeat;
}

.is-style-vanp-education-feature:not(.vanp-icon-key)::before {
	content: "";
	background-color: currentcolor;
	-webkit-mask: var(--vanp-icon-open-book) center / contain no-repeat;
	mask: var(--vanp-icon-open-book) center / contain no-repeat;
}

/*
 * The approved play asset includes its circle. Do not draw a second circle.
 * Planned placeholders are excluded, and no visibility/display is introduced.
 */
.vanp-video-companion:not(.vanp-video-companion--planned) .vanp-video-companion__play {
	border-color: transparent;
}

.vanp-video-companion:not(.vanp-video-companion--planned) .vanp-video-companion__play::after {
	content: "";
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	background-color: currentcolor;
	-webkit-mask: var(--vanp-icon-play) center / contain no-repeat;
	mask: var(--vanp-icon-play) center / contain no-repeat;
}
