/*
 * PCSM brand skin for Practical CSM Academy (design refresh 2026-11).
 * Brings the Academy in line with practicalcsm.com: square corners, logo palette,
 * Montserrat weights, navy/blue brand, gold primary CTA, dark brand hero band.
 * Loaded last by mu-plugins/pcsm-brand-skin.php; everything is scoped to body.pcsm-skin
 * so ?skin=off shows the old look for A/B. Styling only, no markup or PHP changes.
 * Palette: navy #003972, blue #1f6ba5, gold #eac356 (text #2d1b75), green #6cbe45,
 * orange #f5a623, red #e0503f, cool grey band #eef3f9, line #e2e8f0.
 */

/* LearnDash focus mode does not load Avada fonts: same Montserrat source Avada uses (latin, variable 100-900) */
@font-face {
	font-display: swap;
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens: remap the Academy design tokens to the PCSM palette */
body.pcsm-skin {
	--pcsm-academy-blue: #1f6ba5;
	--pcsm-academy-blue-dark: #003972;
	--pcsm-academy-blue-soft: #e8f1f8;
	--pcsm-academy-accent: #1f6ba5;
	--pcsm-academy-accent-soft: #e8f1f8;
	--pcsm-academy-sky-soft: #f3f7fb;
	--pcsm-academy-teal: #6cbe45;
	--pcsm-academy-teal-soft: #eef7e9;
	--pcsm-academy-amber: #f5a623;
	--pcsm-academy-amber-soft: #fef5e6;
	--pcsm-academy-ruby: #1f6ba5;
	--pcsm-academy-ruby-line: #1f6ba5;
	--pcsm-academy-ruby-soft: #e8f1f8;
	--pcsm-academy-green: #2f7d32;
	--pcsm-academy-green-soft: #eef7e9;
	--pcsm-academy-page-bg: #eef3f9;
	--pcsm-academy-text: #1f2933;
	--pcsm-academy-heading: #003972;
	--pcsm-academy-muted: #4f5b69;
	--pcsm-academy-label: #5f6b7a;
	--pcsm-academy-line: #e2e8f0;
	--pcsm-academy-soft: #f6f8fb;
	--pcsm-academy-radius: 0px;
	--pcsm-academy-shadow: 0 1px 2px rgba(0, 57, 114, .06);
	--pcsm-academy-shadow-hover: 0 10px 24px rgba(31, 107, 165, .14);
	--pcsm-skin-navy: #003972;
	--pcsm-skin-blue: #1f6ba5;
	--pcsm-skin-blue-2: #2f80c4;
	--pcsm-skin-gold: #eac356;
	--pcsm-skin-gold-hover: #eadbb2;
	--pcsm-skin-gold-text: #2d1b75;
	--pcsm-skin-green: #6cbe45;
	--pcsm-skin-orange: #f5a623;
	--pcsm-skin-red: #e0503f;
	--pcsm-skin-band: #eef3f9;
	--pcsm-skin-line: #e2e8f0;
}

/* 2. Page background: flat cool brand grey instead of the blue/teal wash */
html body.pcsm-skin:not(#pcsm-x) #main:is(:has(.pcsm-student-home), :has(.pcsm-logged-out-home), :has(.pcsma-cert-v3), :has(.pcsm-cpd-dashboard), :has(.pcsm-cpd-library), :has(.pcsm-cpd-form-page), :has(.pcsm-cpd-submission-page), :has(.pcsma-cpd-paths), :has(.pcsma-cpd-path-single), :has(.pcsma-cpd-item), :has(.pcsma-achievements), :has(.pcsm-welcome), :has(.pcsm-glossary), :has(.pcsm-team-shell), :has(.pcsm-team-cpd), :has(.pcsm-access-state), :has(.pcsm-account-hub), :has(.pcsma-linkedin-cert), :has(.pcsm-courses-wrapper), :has(.pcsm-courses-preview-wrapper), :has(.pcsma-cert-v2), :has(.pcsm-badges-wrapper), :has(.pcsm-user-activity-wrapper), :has(.pcsm-l5-evidence), :has(.pcsma-tests-review), :has(.pcsma-exam-a-review), :has(.pcsma-exam-b-review)) {
	background: var(--pcsm-skin-band) !important;
}

/* 3. Square corners everywhere (site rule), circles restored below */
body.pcsm-skin #main *,
body.pcsm-skin #main *::before,
body.pcsm-skin #main *::after,
body.pcsm-skin .fusion-header-wrapper *,
body.pcsm-skin .learndash-wrapper *,
body.pcsm-skin .ld-focus * {
	border-radius: 0 !important;
}
body.pcsm-skin :is(#main, .learndash-wrapper, .ld-focus) :is(img[class*="avatar"], .avatar, .ld-profile-avatar, .ld-profile-avatar img, .ld-status-icon, .ld-icon-arrow-left, .ld-icon-arrow-right, input[type="radio"], [class*="donut-chart"], [class*="__donut"] svg, [class*="avatar"], .pcsma-cert-v3-level__badge, .pcsma-cert-v3-level5__badge, [class*="__badge-img"], .pcsma-achievements__badge-media, .pcsma-achievements__cert-media, .pcsma-achievements__badge img, .pcsma-achievements__cert img, .pcsm-testi-person img, .pcsma-achievements__badge-image, .pcsma-achievements__cert-image, .pcsma-achievements__badge-image--placeholder, .pcsma-certification-loader__spinner, .pcsm-student-dashboard__health, .pcsm-student-dashboard__signal, .pcsma-option-icon),
body.pcsm-skin .pcsma-auth-menu-item__icon {
	border-radius: 50% !important;
}

/* 4. Typography: PCSM heading weights and navy */
body.pcsm-skin #main :is(h1, h2, h3, h4),
body.pcsm-skin .ld-focus :is(h1, h2, h3, h4) {
	font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
	letter-spacing: 0 !important;
}
body.pcsm-skin #main h1,
body.pcsm-skin .ld-focus h1 {
	font-weight: 800 !important;
	line-height: 1.12 !important;
}
body.pcsm-skin #main h2 {
	font-weight: 700 !important;
}
:where(body.pcsm-skin #main) :is(h2, h3, h4) {
	color: var(--pcsm-skin-navy);
}
body.pcsm-skin #main :is(h3, h4) {
	font-weight: 700 !important;
}

/* LearnDash focus mode used Noto Sans: bring it onto Montserrat */
body.pcsm-skin .learndash-wrapper,
body.pcsm-skin .learndash-wrapper :is(p, li, a, span, div, button, input, td, th, label),
body.pcsm-skin .ld-focus,
body.pcsm-skin .ld-focus :is(p, li, a, span, div, button, input, td, th, label) {
	font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

/* 5. Header: PCSM-style nav (sentence case, navy, tinted active block) + gold rule */
body.pcsm-skin .fusion-header {
	border-bottom: 3px solid var(--pcsm-skin-gold) !important;
}
body.pcsm-skin .fusion-main-menu > ul > li > a {
	color: var(--pcsm-skin-navy) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
body.pcsm-skin .fusion-main-menu > ul > li > a:hover,
body.pcsm-skin .fusion-main-menu > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a {
	background: #e8f1f8 !important;
	color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .fusion-main-menu > ul > li > a .fusion-megamenu-icon,
body.pcsm-skin .fusion-main-menu > ul > li > a i {
	color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .fusion-main-menu .sub-menu {
	border-top: 3px solid var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .fusion-main-menu .sub-menu a {
	color: var(--pcsm-skin-navy) !important;
	font-weight: 500 !important;
	text-transform: none !important;
}
body.pcsm-skin .fusion-main-menu .sub-menu li:hover > a,
body.pcsm-skin .fusion-main-menu .sub-menu .current-menu-item > a {
	background: #e8f1f8 !important;
}

/* 6. Hero: dark brand band (navy to blue), white type, gold rule */
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head) {
	--pcsm-skin-on-dark: 1;
	color: #fff !important;
	border-bottom: 0 !important;
	isolation: isolate !important;
	padding-bottom: 40px !important;
	padding-top: 36px !important;
	position: relative !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head)::after {
	background: linear-gradient(135deg, #003972 0%, #1f6ba5 100%) !important;
	bottom: 0 !important;
	content: "" !important;
	display: block !important;
	left: 50% !important;
	position: absolute !important;
	top: 0 !important;
	transform: translateX(-50%) !important;
	width: 100vw !important;
	z-index: -1 !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head)::before {
	display: none !important;
}
/* hero type */
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head) :is(h1, h2, p, .pcsma-achievements__intro, .pcsma-achievements__intro *) {
	color: #fff !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head) p {
	color: rgba(255, 255, 255, .88) !important;
}
/* white cards that sit inside the hero (login panel, stat tiles) keep dark text */
body.pcsm-skin :is(.pcsm-logged-out-home__hero, .pcsma-achievements__hero, .pcsm-student-home__hero, .pcsm-team-shell__hero, .pcsm-cpd-dashboard__hero, .pcsm-welcome__hero) :is([class*="__panel"], [class*="__stats"] > *, [class*="__card"], [class*="__metric"]) :is(h1, h2, h3, h4, strong, b) {
	color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin :is(.pcsm-logged-out-home__hero, .pcsma-achievements__hero, .pcsm-student-home__hero, .pcsm-team-shell__hero, .pcsm-cpd-dashboard__hero, .pcsm-welcome__hero) :is([class*="__panel"], [class*="__stats"] > *, [class*="__card"], [class*="__metric"]) :is(p, span, small, li) {
	color: var(--pcsm-academy-muted) !important;
}
body.pcsm-skin :is(.pcsm-logged-out-home__hero, .pcsma-achievements__hero, .pcsm-student-home__hero, .pcsm-team-shell__hero, .pcsm-cpd-dashboard__hero, .pcsm-welcome__hero) :is([class*="__panel"], [class*="__card"]) a:not([class*="button"]) {
	color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .pcsm-logged-out-home__panel {
	border-top-color: var(--pcsm-skin-gold) !important;
	box-shadow: 0 18px 40px rgba(0, 20, 50, .28) !important;
}

/* 7. Eyebrows: no dot, letter-spaced kicker (light blue on dark hero, brand blue elsewhere) */
body.pcsm-skin :is(.pcsm-academy-eyebrow, .pcsm-student-home__eyebrow, .pcsm-logged-out-home__eyebrow, .pcsma-achievements__intro > span, .pcsm-cpd-dashboard__eyebrow, .pcsm-cpd-library__eyebrow, .pcsm-cpd-form-page__eyebrow, .pcsm-cpd-submission-page__eyebrow, .pcsma-cpd-paths__eyebrow, .pcsma-cpd-path-single__eyebrow, .pcsma-cpd-item__eyebrow, .pcsm-welcome__eyebrow, .pcsm-glossary__eyebrow, .pcsm-team-shell__eyebrow, .pcsm-team-cpd__eyebrow, .pcsma-cert-v3__eyebrow, .pcsm-account-hub__eyebrow, .pcsma-linkedin-cert__eyebrow, .pcsm-courses-wrapper__eyebrow, .pcsm-courses-preview-wrapper__eyebrow, .pcsma-cert-v2__eyebrow, .pcsm-user-activity-eyebrow, .pcsm-l5-evidence__eyebrow, .pcsma-exam-gateway__eyebrow, .pcsma-cert-v3-level5__eyebrow) {
	color: var(--pcsm-skin-blue) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
}
body.pcsm-skin :is(.pcsm-academy-eyebrow, .pcsm-student-home__eyebrow, .pcsm-logged-out-home__eyebrow, .pcsma-achievements__intro > span, .pcsm-cpd-dashboard__eyebrow, .pcsm-cpd-library__eyebrow, .pcsm-cpd-form-page__eyebrow, .pcsm-cpd-submission-page__eyebrow, .pcsma-cpd-paths__eyebrow, .pcsma-cpd-path-single__eyebrow, .pcsma-cpd-item__eyebrow, .pcsm-welcome__eyebrow, .pcsm-glossary__eyebrow, .pcsm-team-shell__eyebrow, .pcsm-team-cpd__eyebrow, .pcsma-cert-v3__eyebrow, .pcsm-account-hub__eyebrow, .pcsma-linkedin-cert__eyebrow, .pcsm-courses-wrapper__eyebrow, .pcsm-courses-preview-wrapper__eyebrow, .pcsma-cert-v2__eyebrow, .pcsm-user-activity-eyebrow, .pcsm-l5-evidence__eyebrow, .pcsma-exam-gateway__eyebrow, .pcsma-cert-v3-level5__eyebrow)::before {
	display: none !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head) :is(.pcsm-academy-eyebrow, [class*="__eyebrow"], .pcsma-achievements__intro > span) {
	color: #9cc3e8 !important;
}

/* 8. Buttons. Primary = brand blue, square, flat. Hero primary = PCSM gold CTA. */
body.pcsm-skin :is(.pcsm-student-home__button, .pcsm-logged-out-home__button, .pcsma-cert-v3__button, .pcsm-cpd-dashboard__button, .pcsm-cpd-submission-page__button, .pcsma-cpd-path-card__button, .pcsma-cpd-path-single__button, .pcsma-cpd-item__button, .pcsma-achievements__linkedin, .pcsm-welcome__button, .pcsm-team-shell__button, .pcsm-team-cpd__button, .pcsm-account-button--primary, .pcsma-cert-v2__course-head a, .pcsma-cert-v2-module__start, .pcsm-courses-preview-wrapper .pcsm-topic-link, .pcsm-badges-wrapper .pcsm-dashboard-linkedin-cta, .pcsm-l5-evidence__actions a:first-child, .pcsm-section-action--primary, .pcsm-access-state__button, .pcsma-access-button, .gform_button, .pcsm-cpd-library button, .pcsma-cpd-paths button):not([class*="--secondary"]):not([class*="--quiet"]):not(.pcsma-access-button-secondary) {
	background: var(--pcsm-skin-blue) !important;
	border: 1px solid var(--pcsm-skin-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-weight: 700 !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}
body.pcsm-skin :is(.pcsm-student-home__button, .pcsm-logged-out-home__button, .pcsma-cert-v3__button, .pcsm-cpd-dashboard__button, .pcsm-cpd-submission-page__button, .pcsma-cpd-path-card__button, .pcsma-cpd-path-single__button, .pcsma-cpd-item__button, .pcsma-achievements__linkedin, .pcsm-welcome__button, .pcsm-team-shell__button, .pcsm-team-cpd__button, .pcsm-account-button--primary, .pcsma-cert-v2__course-head a, .pcsma-cert-v2-module__start, .pcsm-courses-preview-wrapper .pcsm-topic-link, .pcsm-badges-wrapper .pcsm-dashboard-linkedin-cta, .pcsm-l5-evidence__actions a:first-child, .pcsm-section-action--primary, .pcsm-access-state__button, .pcsma-access-button, .gform_button, .pcsm-cpd-library button, .pcsma-cpd-paths button):not([class*="--secondary"]):not([class*="--quiet"]):not(.pcsma-access-button-secondary):is(:hover, :focus) {
	background: var(--pcsm-skin-navy) !important;
	border-color: var(--pcsm-skin-navy) !important;
	box-shadow: none !important;
	color: #fff !important;
}
/* Secondary = white with blue keyline */
body.pcsm-skin :is([class*="__button--secondary"], [class*="__button--quiet"], .pcsm-section-action--back, .pcsm-section-action:not(.pcsm-section-action--primary), .pcsm-cpd-form-page__button, .pcsma-cpd-path-card__certificate, .pcsm-cpd-library__button, .pcsm-account-action, .pcsma-access-button-secondary, .pcsm-access-state__button--secondary, .pcsma-cpd-paths__back) {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-blue) !important;
	box-shadow: none !important;
	color: var(--pcsm-skin-blue) !important;
	font-weight: 700 !important;
}
body.pcsm-skin :is([class*="__button--secondary"], [class*="__button--quiet"], .pcsm-section-action--back, .pcsm-section-action:not(.pcsm-section-action--primary), .pcsm-cpd-form-page__button, .pcsma-cpd-path-card__certificate, .pcsm-cpd-library__button, .pcsm-account-action, .pcsma-access-button-secondary, .pcsm-access-state__button--secondary, .pcsma-cpd-paths__back):is(:hover, :focus) {
	background: #e8f1f8 !important;
	color: var(--pcsm-skin-navy) !important;
}
/* Inside the dark hero: first action = gold PCSM CTA, other actions = white outline */
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsma-cert-v2__header, .pcsm-l5-evidence__head, .pcsma-review-head) a:is([class*="button"], [class*="section-action"], .pcsma-achievements__linkedin):not([class*="--secondary"]):not([class*="--quiet"]):not(.pcsm-section-action--back):not(.pcsm-cpd-library__button):not(.pcsm-cpd-form-page__button):not(.pcsma-cpd-paths__back):not(.pcsma-cpd-path-card__certificate) {
	background: var(--pcsm-skin-gold) !important;
	border-color: var(--pcsm-skin-gold) !important;
	color: var(--pcsm-skin-gold-text) !important;
	font-weight: 800 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsma-cert-v2__header, .pcsm-l5-evidence__head, .pcsma-review-head) a:is([class*="button"], [class*="section-action"], .pcsma-achievements__linkedin):not([class*="--secondary"]):not([class*="--quiet"]):not(.pcsm-section-action--back):not(.pcsm-cpd-library__button):not(.pcsm-cpd-form-page__button):not(.pcsma-cpd-paths__back):not(.pcsma-cpd-path-card__certificate):is(:hover, :focus) {
	background: var(--pcsm-skin-gold-hover) !important;
	border-color: var(--pcsm-skin-gold-hover) !important;
	color: var(--pcsm-skin-gold-text) !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsma-cert-v2__header, .pcsm-l5-evidence__head, .pcsma-review-head) a:is([class*="--secondary"], [class*="--quiet"], .pcsm-section-action--back, .pcsm-cpd-library__button, .pcsm-cpd-form-page__button, .pcsma-cpd-paths__back) {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, .75) !important;
	color: #fff !important;
}
body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsma-cert-v2__header, .pcsm-l5-evidence__head, .pcsma-review-head) a:is([class*="--secondary"], [class*="--quiet"], .pcsm-section-action--back, .pcsm-cpd-library__button, .pcsm-cpd-form-page__button, .pcsma-cpd-paths__back):is(:hover, :focus) {
	background: rgba(255, 255, 255, .12) !important;
	color: #fff !important;
}

/* 9. Cards and panels: white, hairline border, 4px brand top accent, gentle hover lift */
body.pcsm-skin :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-logged-out-home__item, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level, .pcsma-cert-v3-module, .pcsma-cert-v3-level5, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__level, .pcsma-achievements__cert, .pcsma-achievements__badge, .pcsma-module-assets) {
	background-color: #fff !important;
	background-image: none !important;
	border-color: var(--pcsm-skin-line) !important;
	border-top-width: 4px !important;
	box-shadow: var(--pcsm-academy-shadow) !important;
}
body.pcsm-skin :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level5, .pcsma-module-assets) {
	border-top-color: var(--pcsm-skin-blue) !important;
}
/* inner items in a section: hairline only, no heavy cap */
body.pcsm-skin :is(.pcsm-logged-out-home__item) {
	border-top-width: 1px !important;
	box-shadow: none !important;
}
/* Logo-palette cycle on card rows (blue, green, orange, red), like PCSM .pcsm-card grids */
body.pcsm-skin :is(.pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__cert, .pcsma-achievements__level, .pcsm-welcome__card, .pcsm-logged-out-home__cards > *, .pcsm-student-home__grid > *):nth-child(4n+1) { border-top-color: var(--pcsm-skin-blue) !important; --pcsm-card-accent: var(--pcsm-skin-blue); --pcsm-metric-accent: var(--pcsm-skin-blue); }
body.pcsm-skin :is(.pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__cert, .pcsma-achievements__level, .pcsm-welcome__card, .pcsm-logged-out-home__cards > *, .pcsm-student-home__grid > *):nth-child(4n+2) { border-top-color: var(--pcsm-skin-green) !important; --pcsm-card-accent: var(--pcsm-skin-green); --pcsm-metric-accent: var(--pcsm-skin-green); }
body.pcsm-skin :is(.pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__cert, .pcsma-achievements__level, .pcsm-welcome__card, .pcsm-logged-out-home__cards > *, .pcsm-student-home__grid > *):nth-child(4n+3) { border-top-color: var(--pcsm-skin-orange) !important; --pcsm-card-accent: var(--pcsm-skin-orange); --pcsm-metric-accent: var(--pcsm-skin-orange); }
body.pcsm-skin :is(.pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__cert, .pcsma-achievements__level, .pcsm-welcome__card, .pcsm-logged-out-home__cards > *, .pcsm-student-home__grid > *):nth-child(4n) { border-top-color: var(--pcsm-skin-red) !important; --pcsm-card-accent: var(--pcsm-skin-red); --pcsm-metric-accent: var(--pcsm-skin-red); }
/* metric tiles: flat white, no pastel wash */
body.pcsm-skin :is(.pcsm-team-shell__metric, .pcsma-achievements__stats > div) {
	background: #fff !important;
}
body.pcsm-skin :is(.pcsm-team-shell__metric, .pcsma-achievements__stats > div) :is(strong, b, [class*="value"]) {
	color: var(--pcsm-skin-navy) !important;
	font-weight: 800 !important;
}
/* hover lift on clickable cards */
body.pcsm-skin :is(.pcsma-cpd-path-card, .pcsma-cert-v3-level, .pcsma-achievements__cert, .pcsm-welcome__card) {
	transition: box-shadow .18s ease, transform .18s ease !important;
}
body.pcsm-skin :is(.pcsma-cpd-path-card, .pcsma-cert-v3-level, .pcsma-achievements__cert, .pcsm-welcome__card):hover {
	box-shadow: var(--pcsm-academy-shadow-hover) !important;
	transform: translateY(-2px) !important;
}

/* 10. Tags, pills, status chips: square, PCSM .pcsm-tag look */
body.pcsm-skin :is(.pcsm-student-home__pill, .pcsm-student-home__status, .pcsm-cpd-form-page__tag, .pcsma-cpd-path-card__term, .pcsma-cpd-path-single__term, .pcsm-welcome__label, [class*="__badge"].is-pass, [class*="__badge"].is-fail, [class*="__badge"].is-missed, [class*="__badge"].is-right, [class*="__badge"][class*="is-priority"], [class*="__badge"].is-high, [class*="__badge"].is-medium, [class*="__badge"].is-low, .pcsma-cert-v3-module__status-note) {
	font-weight: 600 !important;
	letter-spacing: .02em !important;
}

/* 11. Tabs: square segmented control */
body.pcsm-skin :is(.pcsm-cpd-dashboard__tabs) {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	box-shadow: none !important;
	padding: 0 !important;
}
body.pcsm-skin .pcsm-cpd-dashboard__tab {
	color: var(--pcsm-skin-navy) !important;
	font-weight: 600 !important;
}
body.pcsm-skin .pcsm-cpd-dashboard__tab--active {
	background: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}

/* 12. Progress bars: brand blue, completed = green */
body.pcsm-skin :is(.pcsm-cpd-dashboard__progress, .pcsma-cpd-path-card__progress, .pcsma-cpd-path-single__progress, .pcsma-cert-v3-level__progress, .pcsma-cert-v3-level5__progress, .pcsm-student-home__progress) span {
	background: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin :is(.pcsma-cpd-path-card--completed .pcsma-cpd-path-card__progress, .pcsma-cpd-path-single__panel--completed .pcsma-cpd-path-single__progress, .pcsm-cpd-dashboard__path--completed .pcsm-cpd-dashboard__progress) span {
	background: var(--pcsm-skin-green) !important;
}
body.pcsm-skin :is(.pcsma-cpd-path-card--in-progress .pcsma-cpd-path-card__progress, .pcsma-cpd-path-single__panel--in-progress .pcsma-cpd-path-single__progress) span {
	background: var(--pcsm-skin-orange) !important;
}

/* 13. Forms: square inputs, PCSM grey border, blue focus */
body.pcsm-skin #main :is(input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="url"], input[type="password"], input[type="date"], select, textarea) {
	border-color: #d2d2d2 !important;
	box-shadow: none !important;
}
body.pcsm-skin #main :is(input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="url"], input[type="password"], input[type="date"], select, textarea):focus {
	border-color: var(--pcsm-skin-blue) !important;
	outline: 2px solid rgba(31, 107, 165, .18) !important;
	outline-offset: 0 !important;
}

/* 14. Links in content: brand blue */
body.pcsm-skin #main .pcsm-student-home__latest-cpd a,
body.pcsm-skin #main :is(.pcsm-student-home__panel, .pcsm-cpd-dashboard__panel, .pcsm-welcome__panel) a:not([class*="button"]) {
	color: var(--pcsm-skin-blue) !important;
}

/* 15. LearnDash (course, lesson, focus mode): brand colours */
body.pcsm-skin .learndash-wrapper :is(.ld-primary-background, .ld-button:not(.ld-button-transparent), .ld-expand-button.ld-primary-background),
body.pcsm-skin .ld-focus :is(.ld-primary-background, .ld-button:not(.ld-button-transparent)) {
	background-color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .learndash-wrapper :is(.ld-primary-color, .ld-primary-color-hover:hover),
body.pcsm-skin .ld-focus :is(.ld-primary-color) {
	color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .learndash-wrapper .ld-secondary-background,
body.pcsm-skin .ld-focus .ld-secondary-background {
	background-color: var(--pcsm-skin-green) !important;
}
body.pcsm-skin .learndash-wrapper .ld-secondary-color,
body.pcsm-skin .ld-focus .ld-secondary-color {
	color: #2f7d32 !important;
}
body.pcsm-skin .ld-focus .ld-focus-sidebar .ld-course-navigation-heading,
body.pcsm-skin .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger {
	background-color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .learndash-wrapper .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
	background: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin .learndash-wrapper .ld-item-list .ld-item-list-item,
body.pcsm-skin .learndash-wrapper .ld-table-list {
	border-color: var(--pcsm-skin-line) !important;
}
body.pcsm-skin .learndash-wrapper .ld-table-list .ld-table-list-header {
	background: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .ld-focus .ld-focus-header {
	border-bottom: 3px solid var(--pcsm-skin-gold) !important;
}
body.pcsm-skin .ld-focus .ld-focus-content h1 {
	color: var(--pcsm-skin-navy) !important;
}

/* 16. Footer copyright bar: PCSM tone */
body.pcsm-skin .fusion-footer-copyright-area {
	background: #f6f7f9 !important;
	border-top: 1px solid var(--pcsm-skin-line) !important;
}
body.pcsm-skin .fusion-copyright-notice,
body.pcsm-skin .fusion-copyright-notice a {
	color: #2b2d79 !important;
	font-size: 14px !important;
}

/* 17. Mobile */
@media (max-width: 800px) {
	body.pcsm-skin :is(.pcsm-student-home__hero, .pcsm-logged-out-home__hero, .pcsma-cert-v3__head, .pcsm-cpd-dashboard__hero, .pcsm-cpd-library__top, .pcsm-cpd-form-page__top, .pcsm-cpd-submission-page__hero, .pcsma-cpd-paths__head, .pcsma-cpd-path-single__top, .pcsma-achievements__hero, .pcsm-welcome__hero, .pcsm-glossary__hero, .pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsm-account-hub__intro, .pcsma-linkedin-cert__intro, .pcsm-courses-wrapper__hero, .pcsm-courses-preview-wrapper__hero, .pcsma-cert-v2__header, .pcsm-user-activity-head, .pcsm-l5-evidence__head, .pcsma-review-head) {
		padding-bottom: 28px !important;
		padding-top: 24px !important;
	}
	body.pcsm-skin #main h1 {
		font-size: 30px !important;
	}
}

/* 18. Team hub: impact callout on the brand gradient, tool tiles as white cards */
body.pcsm-skin :is(.pcsm-team-shell__impact-callout, .pcsm-team-shell__impact-summary) {
	background: linear-gradient(135deg, #003972 0%, #1f6ba5 100%) !important;
	border: 0 !important;
	border-left: 6px solid var(--pcsm-skin-gold) !important;
	box-shadow: none !important;
}
body.pcsm-skin :is(.pcsm-team-shell__impact-callout, .pcsm-team-shell__impact-summary) h2 {
	color: #fff !important;
}
body.pcsm-skin :is(.pcsm-team-shell__impact-callout, .pcsm-team-shell__impact-summary) > div > span {
	color: #9cc3e8 !important;
	letter-spacing: .12em !important;
}
body.pcsm-skin #main .pcsm-team-shell__impact-callout a.pcsm-team-shell__button {
	background: var(--pcsm-skin-gold) !important;
	border-color: var(--pcsm-skin-gold) !important;
	color: var(--pcsm-skin-gold-text) !important;
	font-weight: 800 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}
body.pcsm-skin #main .pcsm-team-shell__impact-callout a.pcsm-team-shell__button:is(:hover, :focus) {
	background: var(--pcsm-skin-gold-hover) !important;
	color: var(--pcsm-skin-gold-text) !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	border-top: 4px solid var(--pcsm-skin-blue) !important;
	box-shadow: var(--pcsm-academy-shadow) !important;
	transition: box-shadow .18s ease, transform .18s ease !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel--cpd {
	border-top-color: var(--pcsm-skin-green) !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel:hover {
	box-shadow: var(--pcsm-academy-shadow-hover) !important;
	transform: translateY(-2px) !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel strong {
	color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel em {
	background: var(--pcsm-skin-blue) !important;
	color: #fff !important;
	font-style: normal !important;
	font-weight: 700 !important;
}
body.pcsm-skin .pcsm-team-shell__nav-panel:hover em {
	background: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .pcsm-team-shell__summary-link {
	background: #fff !important;
	border-color: var(--pcsm-skin-line) !important;
}
body.pcsm-skin .pcsm-team-shell__summary-link:hover {
	background: #e8f1f8 !important;
	border-color: #b9d3ea !important;
}
body.pcsm-skin .pcsm-team-shell__summary-link strong {
	color: var(--pcsm-skin-navy) !important;
}

/* hero <button> actions (print / save PDF) match the gold hero CTA */
body.pcsm-skin #main :is(.pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsma-review-head, .pcsma-achievements__hero) button {
	background: var(--pcsm-skin-gold) !important;
	border: 1px solid var(--pcsm-skin-gold) !important;
	box-shadow: none !important;
	color: var(--pcsm-skin-gold-text) !important;
	font-weight: 800 !important;
}
body.pcsm-skin #main :is(.pcsm-team-shell__hero, .pcsm-team-cpd__hero, .pcsma-review-head, .pcsma-achievements__hero) button:is(:hover, :focus) {
	background: var(--pcsm-skin-gold-hover) !important;
}

/* Avada default buttons inside Academy pages (Download PDF etc.): brand blue, not slate */
body.pcsm-skin #main .fusion-button.button-flat:not(.pcsm-btn-secondary) {
	--button_gradient_top_color: #1f6ba5;
	--button_gradient_bottom_color: #1f6ba5;
	--button_gradient_top_color_hover: #003972;
	--button_gradient_bottom_color_hover: #003972;
	--button_accent_color: #fff;
	--button_accent_hover_color: #fff;
	background: var(--pcsm-skin-blue) !important;
	border-color: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}
body.pcsm-skin #main .fusion-button.button-flat:not(.pcsm-btn-secondary):is(:hover, :focus) {
	background: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin #main .fusion-button.button-flat:not(.pcsm-btn-secondary) .fusion-button-text {
	color: #fff !important;
}

/* Exam gateway (Final Exam A/B lesson) action */
html body.pcsm-skin:not(#pcsm-x) .ld-focus .pcsma-exam-gateway__button, html body.pcsm-skin:not(#pcsm-x) .pcsma-exam-gateway__button {
	background: var(--pcsm-skin-blue) !important;
	border-color: var(--pcsm-skin-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
}
html body.pcsm-skin:not(#pcsm-x) .pcsma-exam-gateway__button:is(:hover, :focus) {
	background: var(--pcsm-skin-navy) !important;
	border-color: var(--pcsm-skin-navy) !important;
}

/* Logged-out home: the three "what you get" cards carry the logo-palette caps */
body.pcsm-skin .pcsm-logged-out-home__below > * {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	border-top: 4px solid var(--pcsm-skin-blue) !important;
	box-shadow: var(--pcsm-academy-shadow) !important;
}
body.pcsm-skin .pcsm-logged-out-home__below > *:nth-child(2) { border-top-color: var(--pcsm-skin-green) !important; }
body.pcsm-skin .pcsm-logged-out-home__below > *:nth-child(3) { border-top-color: var(--pcsm-skin-orange) !important; }
body.pcsm-skin .pcsm-logged-out-home__below > *:nth-child(4) { border-top-color: var(--pcsm-skin-red) !important; }
body.pcsm-skin .pcsm-logged-out-home__below :is(h2, h3) {
	color: var(--pcsm-skin-navy) !important;
}

/* Certification module cards: navy titles */
body.pcsm-skin .pcsma-cert-v3-module :is(h2, h3, h4) {
	color: var(--pcsm-skin-navy) !important;
}

/* ===== Round 2 (Marek review 2026-11-09) ===== */
/* :not(#pcsm-x) adds ID-level weight so these beat LearnDash / component rules printed later in the page. */

/* R1. Square corners, stronger: lesson containers, video, modal, LD menu */
body.pcsm-skin:not(#pcsm-x) :is(.ld-focus, .learndash-wrapper, .pcsma-login-modal, #main, .pcsm-access-state, .pcsm-access-state-page) :is(div, section, article, aside, details, summary, header, footer, nav, ul, ol, li, a, button, input, select, textarea, span, iframe, video, img, table, figure, label, form, p, h2, h3):not(img[class*="avatar"]):not([class*="avatar"]):not(.ld-status-icon):not(.ld-icon):not([class*="donut"]):not(.pcsma-cert-v3-level__badge):not(.pcsma-cert-v3-level5__badge):not(.pcsma-achievements__badge-image):not(.pcsma-achievements__cert-image):not(.pcsma-auth-menu-item__icon):not(.pcsm-student-dashboard__health):not(.pcsm-student-dashboard__signal):not(.pcsma-option-icon):not(.pcsma-certification-loader__spinner):not(input[type="radio"]):not(input[type="checkbox"]):not(.pcsma-login-modal__close) {
	border-radius: 0 !important;
}
body.pcsm-skin:not(#pcsm-x) .pcsma-login-modal :is(.pcsma-login-modal__dialog, input, button:not(.pcsma-login-modal__close)),
body.pcsm-skin:not(#pcsm-x) .ld-focus :is(.ld-user-menu-items, .ld-user-menu-items a),
body.pcsm-skin:not(#pcsm-x) :is(.fluid-width-video-wrapper, .fluid-width-video-wrapper iframe, .video-shortcode, .video-shortcode iframe, .wp-video, iframe) {
	border-radius: 0 !important;
}

/* R2. Login modal: PCSM card with blue cap, square fields, brand button */
body.pcsm-skin .pcsma-login-modal__dialog {
	border: 1px solid var(--pcsm-skin-line) !important;
	border-top: 4px solid var(--pcsm-skin-blue) !important;
	box-shadow: 0 24px 60px rgba(0, 20, 50, .3) !important;
}
body.pcsm-skin .pcsma-login-modal__dialog :is(h2, h3) {
	color: var(--pcsm-skin-navy) !important;
	font-weight: 800 !important;
}
body.pcsm-skin:not(#pcsm-x) .pcsma-login-modal__form button[type="submit"],
body.pcsm-skin:not(#pcsm-x) .pcsma-login-modal__form button:not(.pcsma-login-modal__close) {
	background: var(--pcsm-skin-blue) !important;
	border: 1px solid var(--pcsm-skin-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
}
body.pcsm-skin:not(#pcsm-x) .pcsma-login-modal__form button:not(.pcsma-login-modal__close):is(:hover, :focus) {
	background: var(--pcsm-skin-navy) !important;
	border-color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin .pcsma-login-modal__form input {
	border-color: #d2d2d2 !important;
}
body.pcsm-skin .pcsma-login-modal__form input:focus {
	border-color: var(--pcsm-skin-blue) !important;
	outline: 2px solid rgba(31, 107, 165, .18) !important;
}
body.pcsm-skin .pcsma-login-modal :is(.pcsma-login-modal__hint a, .pcsma-login-modal__lost, .pcsma-login-modal__lost a) {
	color: var(--pcsm-skin-blue) !important;
}

/* R3. LearnDash focus mode: brand colours instead of the LD default #1675bf (set in LD settings; overridden here so the deploy stays file-only) */
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) :is(.ld-primary-background, .ld-button:not(.ld-button-transparent):not(.ld-button-reverse), .ld-expand-button .ld-icon, .ld-icon-arrow-down.ld-icon, .ld-focus-sidebar-trigger .ld-icon) {
	background-color: var(--pcsm-skin-blue) !important;
	border-color: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) .ld-button:not(.ld-button-transparent):not(.ld-button-reverse):is(:hover, :focus) {
	background-color: var(--pcsm-skin-navy) !important;
	opacity: 1 !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-course-navigation-heading .ld-focus-sidebar-trigger .ld-icon {
	background-color: transparent !important;
	border: 2px solid #fff !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) :is(.ld-primary-color, .ld-breadcrumbs a, .ld-breadcrumbs-segments a, .ld-button-transparent, .ld-button-transparent .ld-text, .ld-brand-logo a, .ld-content-action a.ld-button-transparent) {
	color: var(--pcsm-skin-blue) !important;
}
/* focus header "Menu": white dropdown, navy items, blue cap */
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-profile-avatar {
	background-color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-user-menu-items {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	border-top: 4px solid var(--pcsm-skin-blue) !important;
	box-shadow: 0 14px 34px rgba(0, 20, 50, .18) !important;
	padding: 0 !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-user-menu-items::before {
	display: none !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-user-menu-items a {
	background: #fff !important;
	border-bottom: 1px solid var(--pcsm-skin-line) !important;
	color: var(--pcsm-skin-navy) !important;
	font-weight: 600 !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-user-menu-items a:last-child {
	border-bottom: 0 !important;
}
body.pcsm-skin:not(#pcsm-x) .ld-focus .ld-user-menu-items a:is(:hover, :focus) {
	background: #e8f1f8 !important;
	color: var(--pcsm-skin-navy) !important;
}

/* R4. Brand colour caps on every section box, site-wide.
   Each box gets a 4px top bar; siblings cycle blue, green, orange, red (logo palette), so a page reads as
   colour-coded sections like PCSM. One mechanism, keyed to the existing panel/card classes. */
body.pcsm-skin:not(#pcsm-x) :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level5, .pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__level, .pcsma-achievements__cert, .pcsma-module-assets, .pcsma-exam-gateway, .pcsma-cpd-paths__filters, .pcsm-glossary__tools, .pcsm-access-state__card, .pmpro_card, .pcsm-logged-out-home__below > *, .pcsm-team-shell__nav-panel, [class*="-review__panel"], [class*="-review__revision"], [class*="-review__metric"], [class*="-review__module"], .pcsma-certification-system-notice, .pcsma-login-modal__dialog, .pcsma-renewal-options > li, .pcsma-linkedin-cert__card, .pcsma-linkedin-cert__panel, .pcsm-l5-evidence__field, .pcsm-cpd-content-item__panel) {
	background-color: #fff !important;
	border-left: 1px solid var(--pcsm-skin-line) !important;
	border-right: 1px solid var(--pcsm-skin-line) !important;
	border-bottom: 1px solid var(--pcsm-skin-line) !important;
	border-top: 4px solid var(--pcsm-skin-cap, var(--pcsm-skin-blue)) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level5, .pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__level, .pcsma-achievements__cert, .pcsma-module-assets, .pcsma-exam-gateway, .pcsma-cpd-paths__filters, .pcsm-glossary__tools, .pcsm-access-state__card, .pmpro_card, .pcsm-logged-out-home__below > *, .pcsm-team-shell__nav-panel, [class*="-review__panel"], [class*="-review__revision"], [class*="-review__metric"], [class*="-review__module"], .pcsma-certification-system-notice, .pcsma-login-modal__dialog, .pcsma-renewal-options > li, .pcsma-linkedin-cert__card, .pcsma-linkedin-cert__panel, .pcsm-l5-evidence__field, .pcsm-cpd-content-item__panel):nth-child(4n+2) { --pcsm-skin-cap: var(--pcsm-skin-green); }
body.pcsm-skin:not(#pcsm-x) :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level5, .pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__level, .pcsma-achievements__cert, .pcsma-module-assets, .pcsma-exam-gateway, .pcsma-cpd-paths__filters, .pcsm-glossary__tools, .pcsm-access-state__card, .pmpro_card, .pcsm-logged-out-home__below > *, .pcsm-team-shell__nav-panel, [class*="-review__panel"], [class*="-review__revision"], [class*="-review__metric"], [class*="-review__module"], .pcsma-certification-system-notice, .pcsma-login-modal__dialog, .pcsma-renewal-options > li, .pcsma-linkedin-cert__card, .pcsma-linkedin-cert__panel, .pcsm-l5-evidence__field, .pcsm-cpd-content-item__panel):nth-child(4n+3) { --pcsm-skin-cap: var(--pcsm-skin-orange); }
body.pcsm-skin:not(#pcsm-x) :is(.pcsm-student-home__panel, .pcsm-logged-out-home__panel, .pcsm-welcome__panel, .pcsm-welcome__card, .pcsm-cpd-dashboard__panel, .pcsm-cpd-library__panel, .pcsm-cpd-form-page__panel, .pcsma-cpd-path-single__panel, .pcsm-team-shell__panel, .pcsm-team-cpd__panel, .pcsm-account-panel, .pcsma-achievements__section, .pcsma-cert-v3__course, .pcsma-cert-v3-level5, .pcsma-cert-v3-level, .pcsma-cpd-path-card, .pcsm-team-shell__metric, .pcsma-achievements__stats > div, .pcsma-achievements__level, .pcsma-achievements__cert, .pcsma-module-assets, .pcsma-exam-gateway, .pcsma-cpd-paths__filters, .pcsm-glossary__tools, .pcsm-access-state__card, .pmpro_card, .pcsm-logged-out-home__below > *, .pcsm-team-shell__nav-panel, [class*="-review__panel"], [class*="-review__revision"], [class*="-review__metric"], [class*="-review__module"], .pcsma-certification-system-notice, .pcsma-login-modal__dialog, .pcsma-renewal-options > li, .pcsma-linkedin-cert__card, .pcsma-linkedin-cert__panel, .pcsm-l5-evidence__field, .pcsm-cpd-content-item__panel):nth-child(4n) { --pcsm-skin-cap: var(--pcsm-skin-red); }
/* boxes nested inside a capped box stay quiet (hairline only) so caps mark sections, not every tile */
body.pcsm-skin:not(#pcsm-x) :is(.pcsma-cert-v3__course, .pcsma-exam-gateway, .pcsm-team-shell__panel, .pcsm-cpd-dashboard__panel, .pcsm-student-home__panel) :is(.pcsma-cert-v3-module, .pcsma-exam-gateway__notice, .pcsma-exam-gateway__review, [class*="__metric"]:not(.pcsm-team-shell__metric), [class*="__summary-link"]), body.pcsm-skin:not(#pcsm-x) .pcsma-achievements__level .pcsma-achievements__badge {
	border-top: 1px solid var(--pcsm-skin-line) !important;
}

/* R5. Old blue/teal leftovers hard-coded in components (from the audit) */
body.pcsm-skin:not(#pcsm-x) #main :is(.pcsma-cert-v3-level strong, .pcsma-cert-v3-level__progress i, .pcsm-team-shell__progress span) {
	color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin:not(#pcsm-x) #main :is(.pcsma-cert-v3-level__progress i, .pcsm-team-shell__progress span) {
	background: var(--pcsm-skin-blue) !important;
}
html body.pcsm-skin:not(#pcsm-x) :is(.pcsma-cert-v3-module__go a, .pcsma-linkedin-cert__actions a, .sf-field-submit input, .pcsma-certification-system-notice__button, .pcsma-access-button:not(.pcsma-access-button-secondary), .pcsm-access-state__button--primary) {
	background: var(--pcsm-skin-blue) !important;
	border: 1px solid var(--pcsm-skin-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
}
html body.pcsm-skin:not(#pcsm-x) :is(.pcsma-cert-v3-module__go a, .pcsma-linkedin-cert__actions a, .sf-field-submit input, .pcsma-certification-system-notice__button, .pcsma-access-button:not(.pcsma-access-button-secondary), .pcsm-access-state__button--primary):is(:hover, :focus) {
	background: var(--pcsm-skin-navy) !important;
	border-color: var(--pcsm-skin-navy) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(#main, .ld-focus) .pcsma-certification-system-notice__button {
	background: var(--pcsm-skin-blue) !important;
	border-color: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}
html body.pcsm-skin:not(#pcsm-x) :is(.pcsma-linkedin-cert__field button, .pcsma-access-button-secondary, .pcsm-access-state__button--secondary) {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-blue) !important;
	color: var(--pcsm-skin-blue) !important;
}
/* plain text links in content: brand blue */
body.pcsm-skin:not(#pcsm-x) #main :is(.fusion-text p a, .pcsm-cpd-form-page__panel p a, .search-filter-reset, .pcsm-cpd-library h2 a, .pcsm-team-shell__details-link, .pcsm-team-shell__row-actions a, .pcsm-team-cpd__details-link, td strong a, .pmpro_card_action a, .pmpro_card_content p a:not([class*="button"])) {
	border-color: var(--pcsm-skin-blue) !important;
	color: var(--pcsm-skin-blue) !important;
}
/* eyebrows on access-state cards */
html body.pcsm-skin:not(#pcsm-x) .pcsm-access-state__eyebrow {
	color: var(--pcsm-skin-blue) !important;
}
/* gradient washes on access pages, filter bars, glossary tools: flat */
html body.pcsm-skin:not(#pcsm-x) :is(main.pcsm-access-state-page, main#main, main[class*="cpd-course-"], .pcsma-cpd-paths__filters, .pcsm-glossary__tools, .pcsm-access-state__card) {
	background-image: none !important;
}
body.pcsm-skin:not(#pcsm-x) :is(main.pcsm-access-state-page, main[class*="cpd-course-"]) {
	background-color: var(--pcsm-skin-band) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.pcsma-cpd-paths__filters, .pcsm-glossary__tools) {
	background-color: #fff !important;
	box-shadow: var(--pcsm-academy-shadow) !important;
}

/* R6. Tabs (CPD dashboard, team CPD, review pages): square, active = brand blue */
body.pcsm-skin:not(#pcsm-x) #main :is(.pcsm-cpd-dashboard__tab, .pcsm-team-cpd__tab, button[class*="-review__tab"]:not([class*="tab-panel"])) {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	box-shadow: none !important;
	color: var(--pcsm-skin-navy) !important;
	font-weight: 600 !important;
}
body.pcsm-skin:not(#pcsm-x) #main :is(.pcsm-cpd-dashboard__tab--active, .pcsm-team-cpd__tab.is-active, button[class*="-review__tab"].is-active, button[class*="-review__tab"][aria-selected="true"]) {
	background: var(--pcsm-skin-blue) !important;
	border-color: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}

/* R7. LearnDash alerts, status icons, info labels */
body.pcsm-skin:not(#pcsm-x) .learndash-wrapper .ld-alert {
	background: #fff !important;
	border: 1px solid var(--pcsm-skin-line) !important;
	border-left: 4px solid var(--pcsm-skin-blue) !important;
}
body.pcsm-skin:not(#pcsm-x) .learndash-wrapper .ld-alert.ld-alert-success {
	border-left-color: var(--pcsm-skin-green) !important;
}
body.pcsm-skin:not(#pcsm-x) .learndash-wrapper .ld-alert :is(.ld-alert-messages, .ld-alert-messages p, .ld-alert-content) {
	color: var(--pcsm-academy-text) !important;
}
body.pcsm-skin:not(#pcsm-x) .learndash-wrapper .ld-alert .ld-alert-icon {
	background-color: var(--pcsm-skin-blue) !important;
	color: #fff !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) :is(.ld-status-incomplete, .ld-status-in-progress) {
	border-color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) .ld-expand-button.ld-button-alternate:not(.ld-primary-background) :is(.ld-text, .screen-reader-text) {
	color: var(--pcsm-skin-blue) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) .ld-status-waiting {
	background: var(--pcsm-skin-band) !important;
}
body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) .ld-status-waiting span {
	color: var(--pcsm-skin-navy) !important;
}
/* topic resource table labels ("Type:") were LD tertiary orange on white */
body.pcsm-skin:not(#pcsm-x) .ld-focus-content td > span {
	color: var(--pcsm-academy-label) !important;
	font-weight: 600 !important;
}

/* R8. Nav: Avada highlight item (green text) to navy */
body.pcsm-skin .fusion-main-menu :is(.fusion-background-highlight, .fusion-background-highlight .menu-text) {
	color: var(--pcsm-skin-navy) !important;
}

/* R9. Round-3 audit fixes */
html body.pcsm-skin:not(#pcsm-x) :is(.learndash-wrapper, .ld-focus) .ld-expand-button.ld-primary-background :is(.ld-text, .ld-icon) {
	color: #fff !important;
}
html body.pcsm-skin:not(#pcsm-x) .pcsma-cpd-path-card--completed .pcsma-cpd-path-card__stat {
	border-top-color: var(--pcsm-skin-green) !important;
}
html body.pcsm-skin:not(#pcsm-x) .pcsma-login-modal__close {
	background: #e8f1f8 !important;
	color: var(--pcsm-skin-navy) !important;
}
html body.pcsm-skin:not(#pcsm-x) .fusion-main-menu :is(.fusion-background-highlight, .fusion-background-highlight > .menu-text, li > a.fusion-background-highlight .menu-text) {
	color: var(--pcsm-skin-navy) !important;
}

/* renewal option tick icons: palette green */
html body.pcsm-skin:not(#pcsm-x) .pcsma-option-icon {
	background: var(--pcsm-skin-green) !important;
}
