/* WealthBuzz Resources — base layout styles (guide masthead and sidebar, hub, category pages, cards).
   Copied from the WealthBuzz theme's v2.css (sections "Detailed Guide" and "Resources Hub and cluster pages") so the
   Resources plugin renders the same under ANY host theme or a minimal shell theme (static-site integration,
   docs/resources/RESOURCES-DEVELOPER-HANDOFF.md). When the WealthBuzz theme is active it loads the same rules; the
   duplicates are harmless. Primitives at the end use :where() (zero specificity) so a host theme always wins. */

/* ================================================================ Detailed Guide (Resources) */

.wb-resource { max-width: var(--wb-wide, 1240px); padding-inline: var(--wb-gutter); }

/* Masthead: navy band across the full width (background extended with the clip trick, so no 100vw overflow). */
.wb-resource__masthead {
	position: relative;
	color: var(--wb-white);
	background: var(--wb-navy);
	box-shadow: 0 0 0 100vmax var(--wb-navy);
	clip-path: inset(0 -100vmax);
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.wb-resource__masthead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 30%, rgba(2, 152, 142, 0.35) 0%, transparent 60%), radial-gradient(40% 80% at 10% 100%, rgba(201, 168, 106, 0.18) 0%, transparent 70%); pointer-events: none; }
.wb-resource__masthead-inner { position: relative; display: grid; gap: 2rem; align-items: center; padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1024px) {
	.wb-resource__masthead-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 520px; }
}
.wb-resource__masthead-art { display: none; }
@media (min-width: 782px) { .wb-resource__masthead-art { display: block; max-width: 30rem; justify-self: end; } }
.wb-resource__masthead-art svg { width: 100%; height: auto; display: block; }
.wb-resource__masthead .wb-breadcrumb ol { margin: 0 0 2rem; color: rgba(255, 255, 255, 0.75); }
.wb-resource__masthead .wb-breadcrumb a, .wb-resource__masthead .wb-breadcrumb li + li::before { color: rgba(255, 255, 255, 0.85); }
.wb-resource__masthead .wb-breadcrumb [aria-current] { color: var(--wb-white); }
.wb-hero--resource { padding: 0; margin: 0; border: 0; background: none; min-height: 0; display: block; overflow: visible; }
.wb-hero--resource::before, .wb-hero--resource::after { display: none; }
.wb-hero--resource .wb-hero__eyebrow { color: var(--wb-gold); margin-bottom: 1rem; }
.wb-resource .wb-hero--resource .wb-hero__title { color: var(--wb-white); font-family: var(--wb-serif); font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.04; margin-bottom: 1.25rem; }
.wb-resource .wb-hero--resource .wb-hero__deck { color: rgba(255, 255, 255, 0.94); font-family: var(--wb-serif); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.85rem); line-height: 1.25; max-width: 32ch; }
.wb-hero--resource .wb-hero__signature { position: relative; padding-top: 1.25rem; margin-bottom: 2rem; }
.wb-hero--resource .wb-hero__signature::before { content: ""; position: absolute; top: 0; left: 0; width: 3.5rem; height: 3px; background: var(--wb-gold); }
.wb-hero--resource .wb-hero__signature strong { font-family: var(--wb-serif); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); color: var(--wb-gold); }
.wb-hero--resource .wb-hero__byline { display: flex; align-items: center; gap: 0.85rem; color: var(--wb-white); }
.wb-avatar::before { content: attr(data-initials); }
.wb-avatar { display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: var(--wb-gold); color: var(--wb-navy); font-weight: 800; letter-spacing: 0.04em; }
.wb-hero--resource .wb-hero__meta, .wb-hero--resource .wb-hero__dates { color: rgba(255, 255, 255, 0.78); padding-inline-start: 3.85rem; }

/* Two columns with a sticky sidebar (desktop); one column with the sidebar after the article (tablet, phone). */
.wb-resource__layout { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 1024px) {
	.wb-resource__layout--aside { grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); }
	.wb-resource__aside-inner { height: 100%; align-content: start; }
	/* Only the contents list sticks (the whole sidebar is taller than a screen); it releases at the end of the article. */
	.wb-aside-toc { position: sticky; top: calc(var(--wb-header-height) + 2rem); }
	.admin-bar .wb-aside-toc { top: calc(var(--wb-header-height) + 2rem + 32px); }
}
.wb-resource__aside-inner { display: grid; gap: 1.25rem; }
.wb-aside-card { margin: 0; padding: 1.35rem 1.4rem; border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); background: var(--wb-white); box-shadow: var(--wb-shadow-sm); }
.wb-aside-card > * { margin-block: 0; }
.wb-aside-card > * + * { margin-top: 0.75rem; }
.wb-resource .wb-aside-card__title { font-family: var(--wb-serif); font-size: 1.25rem; color: var(--wb-navy); }
.wb-aside-card--cta { background: linear-gradient(160deg, #EAF4F2 0%, var(--wb-cool-light) 100%); border-color: #CFE5E1; }
.wb-aside-card--cta .wb-actions { flex-direction: column; align-items: stretch; }
.wb-aside-card__icon { color: var(--wb-teal-strong); }
.wb-aside-card__icon .wb-icon--art { width: 2.25rem; height: 2.25rem; }
.wb-aside-toc ol { list-style: none; padding: 0; margin: 0.75rem 0 0; counter-reset: wb-atoc; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.wb-aside-toc li { counter-increment: wb-atoc; margin: 0; max-width: none; }
.wb-aside-toc a { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.25rem; padding: 0.35rem 0.5rem; border-radius: 8px; color: var(--wb-ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.4; }
.wb-aside-toc a::before { content: counter(wb-atoc); color: var(--wb-teal-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.wb-aside-toc a:hover { background: var(--wb-cool-light); }
.wb-aside-toc a[aria-current] { background: var(--wb-cool-light); color: var(--wb-navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--wb-teal); }
.wb-aside-quote { background: linear-gradient(160deg, #FBF6EC 0%, var(--wb-warm-light) 100%); border-color: #EBDDC0; }
.wb-aside-quote blockquote { margin: 0; padding: 0; border: 0; background: none; position: relative; }
.wb-aside-quote blockquote::before { content: "\201C"; display: block; font-family: var(--wb-serif); font-size: 3.5rem; line-height: 0.8; color: var(--wb-gold); }
.wb-aside-quote blockquote p { font-family: var(--wb-serif); font-size: 1.2rem; line-height: 1.4; color: var(--wb-navy); margin: 0.5rem 0 0; }
.wb-aside-quote figcaption { font-weight: 700; color: var(--wb-teal-strong); }
.wb-aside-quote figcaption::before { content: "— "; }
.wb-aside-service .wb-link-heading { font-size: 1.05rem; }
.wb-aside-service .wb-card-icon { display: none; }
.wb-aside-share ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wb-aside-share a { display: inline-flex; align-items: center; min-height: var(--wb-tap); padding: 0 0.9rem; border: 1px solid var(--wb-line); border-radius: 999px; text-decoration: none; font-weight: 600; }

/* Article body */
.wb-resource__body { min-width: 0; }
.wb-resource__body > * + * { margin-top: 2.25rem; }
.wb-resource__body p, .wb-resource__body li { font-size: 1.0625rem; line-height: 1.75; }
.wb-resource .wb-quick-takeaway {
	position: relative; padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); padding-inline-start: clamp(1.5rem, 4rem + 2vw, 6.25rem);
	border: 1px solid #CFE5E1; border-inline-start: 0; border-radius: var(--wb-radius-xl);
	background: linear-gradient(160deg, #EAF4F2 0%, var(--wb-cool-light) 100%);
}
.wb-resource .wb-quick-takeaway::before {
	content: ""; position: absolute; left: clamp(1.25rem, 1rem + 1vw, 1.75rem); top: 1.75rem; width: 3.25rem; height: 3.25rem; border-radius: 50%;
	background: var(--wb-navy) center / 1.6rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 22h10M12 26h8M16 4a8 8 0 0 0-5 14.2c.7.6 1 1.4 1 2.3V22h8v-1.5c0-.9.3-1.7 1-2.3A8 8 0 0 0 16 4z'/%3E%3C/svg%3E");
}
@media (max-width: 599.98px) { .wb-resource .wb-quick-takeaway { padding-inline-start: 1.5rem; padding-top: 5.25rem; } }
.wb-resource .wb-quick-takeaway h2, .wb-resource .wb-toc h2 { font-family: var(--wb-serif); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.wb-resource .wb-quick-takeaway p:last-child strong { display: block; padding-inline-start: 1rem; border-inline-start: 3px solid var(--wb-gold); font-family: var(--wb-serif); font-weight: 700; font-size: 1.3rem; color: var(--wb-navy); }

.wb-resource .wb-toc { padding: clamp(1.25rem, 1rem + 1vw, 2rem); border: 1px solid var(--wb-line); border-radius: var(--wb-radius-xl); background: #FAFBFB; }
.wb-resource .wb-toc ol { list-style: none; padding: 0; counter-reset: wb-toc; columns: 2 16rem; column-gap: 2.5rem; margin-top: 1rem; }
.wb-resource .wb-toc li { counter-increment: wb-toc; display: flex; gap: 0.75rem; align-items: baseline; margin: 0 0 0.6rem; }
.wb-resource .wb-toc li::before { content: counter(wb-toc); flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--wb-cool-light); border: 1px solid #CFE5E1; color: var(--wb-navy); font-size: 0.8125rem; font-weight: 700; transform: translateY(0.1em); }
.wb-resource .wb-toc a { color: var(--wb-ink); text-decoration: none; }
.wb-resource .wb-toc a:hover { color: var(--wb-teal-strong); text-decoration: underline; }

.wb-resource .wb-section { padding-top: 2.5rem; border-top: 1px solid var(--wb-line); }
.wb-resource .wb-section__title { font-family: var(--wb-serif); font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.4rem); align-items: center; gap: 1rem; }
.wb-resource .wb-section__number { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--wb-navy); color: var(--wb-white); font-size: 1.15rem; font-family: var(--wb-serif); box-shadow: 0 0 0 5px rgba(2, 152, 142, 0.18); }
.wb-resource .wb-section > h3 { font-family: var(--wb-serif); color: var(--wb-navy); }

.wb-resource .wb-callout { border-radius: var(--wb-radius-lg); padding: 1.5rem 1.75rem; }
.wb-resource .wb-callout--worth-remembering { position: relative; background: linear-gradient(160deg, #FBF6EC 0%, var(--wb-warm-light) 100%); border-inline-start: 4px solid var(--wb-gold); }
.wb-resource .wb-callout--worth-remembering .wb-callout__body p { font-family: var(--wb-serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--wb-navy); }
.wb-resource .wb-callout--explains { background: linear-gradient(160deg, #EAF4F2 0%, var(--wb-cool-light) 100%); border-inline-start: 4px solid var(--wb-teal); }
.wb-resource .wb-callout__label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wb-teal-strong); }
.wb-resource .wb-callout--worth-remembering .wb-callout__label { color: #8a6a2c; }
.wb-resource .wb-example { border-radius: var(--wb-radius-lg); box-shadow: var(--wb-shadow-sm); }
.wb-resource .wb-comparison__item { border-radius: var(--wb-radius-lg); border: 1px solid #CFE5E1; }
.wb-resource .wb-process li { border-radius: 12px; background: var(--wb-white); box-shadow: var(--wb-shadow-sm); border-color: #CFE5E1; }
.wb-resource .wb-key-takeaway { border-radius: var(--wb-radius-xl); background: radial-gradient(120% 140% at 100% 0%, #154a9a 0%, var(--wb-navy) 55%); }
.wb-resource .wb-cta { border-radius: var(--wb-radius-xl); background: linear-gradient(160deg, #FBF6EC, var(--wb-warm-light)); border: 1px solid #EBDDC0; }
.wb-resource .wb-cta h2, .wb-resource .wb-faq > h2, .wb-resource .wb-section h2 { font-family: var(--wb-serif); }
.wb-resource .wb-faq__question { font-family: var(--wb-serif); color: var(--wb-navy); }

/* The theme's single-wb_resource template wraps the article in .wb-main; start the masthead flush with the header. */
.wb-main:has(> .wp-block-wb-resource-article, > .wb-resource) { padding-top: 0; margin-top: 0; }


/* ================================================================ Resources Hub and cluster pages
   (plugin includes/hub.php). Navy masthead shared with the Detailed Guide; card system shared by every listing. */

/* Hub hero: navy masthead with a prominent search. */
.wb-hero--hub { background: var(--wb-navy); color: var(--wb-white); }
.wb-hero--hub::before { border-color: var(--wb-teal); opacity: 0.18; }
.wb-hero--hub::after { border-color: var(--wb-gold); opacity: 0.45; }
.wb-hero--hub h1 { color: var(--wb-white); }
.wb-hero--hub .wb-eyebrow { color: var(--wb-gold); }
.wb-hero--hub .wb-hero__lead { color: rgba(255, 255, 255, 0.9); }
.wb-hero--hub .wb-hero__art .wb-art__svg { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25)); }
.wb-hub-search { display: flex; align-items: center; gap: 0.5rem; max-width: 40rem; margin-top: 2rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: 999px; background: var(--wb-white); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.wb-hub-search__icon { color: var(--wb-teal-strong); display: grid; place-items: center; }
.wb-hub-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--wb-ink); }
.wb-hub-search input:focus { outline: none; }
.wb-hub-search:focus-within { box-shadow: 0 0 0 3px var(--wb-gold), 0 16px 40px rgba(0, 0, 0, 0.18); }
.wb-hub-search .wb-btn { border-radius: 999px; min-height: 48px; padding-inline: 1.5rem; }
@media (max-width: 599.98px) {
	.wb-hub-search { flex-wrap: wrap; border-radius: 18px; padding: 0.5rem; }
	.wb-hub-search__icon { display: none; }
	.wb-hub-search input { flex-basis: 100%; padding-inline: 0.5rem; }
	.wb-hub-search .wb-btn { flex: 1; }
}

/* Sections */
.wb-hub > .wb-container > * + * { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.wb-hub-section__head { max-width: 46rem; margin-bottom: 1.5rem; }
.wb-hub-section__head > * { margin: 0; }
.wb-hub-section__head > * + * { margin-top: 0.6rem; color: var(--wb-muted); }
.wb-hub-section__head h2::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 1rem; border-radius: 2px; background: var(--wb-gold); }
.wb-hub-section h2, .wb-cluster h2 { font-family: var(--wb-serif); color: var(--wb-navy); }

/* Resource cards */
.wb-rgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.wb-rcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wb-line); border-radius: 18px; background: var(--wb-white); box-shadow: var(--wb-shadow-sm); transition: box-shadow var(--wb-duration) var(--wb-easing), transform var(--wb-duration) var(--wb-easing); }
.wb-rcard:has(a:hover) { box-shadow: var(--wb-shadow-lg); transform: translateY(-2px); }
.wb-rcard:has(a:focus-visible) { outline: 3px solid var(--wb-focus-ring); outline-offset: 3px; }
.wb-rcard__art { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, #EAF4F2, #F7FBFA); display: grid; place-items: center; }
.wb-rcard__art svg { width: 78%; height: auto; display: block; transition: transform 400ms var(--wb-easing); }
.wb-rcard:has(a:hover) .wb-rcard__art svg { transform: scale(1.04); }
.wb-rcard__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.wb-rcard__body > * { margin: 0; }
.wb-rcard__area { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wb-teal-strong); }
.wb-rcard__title { font-family: var(--wb-serif); font-size: 1.25rem; line-height: 1.25; }
.wb-rcard__title a { color: var(--wb-navy); text-decoration: none; }
.wb-rcard__title a::after { content: ""; position: absolute; inset: 0; }
.wb-rcard__title a:focus-visible { outline: none; }
.wb-rcard__summary { color: var(--wb-muted); font-size: 0.98rem; line-height: 1.55; }
.wb-rcard__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; margin-top: auto !important; padding-top: 0.5rem; font-size: 0.875rem; color: var(--wb-muted); }
.wb-rcard__format { font-weight: 700; color: var(--wb-navy); }
.wb-rcard__flag { align-self: flex-start; }
/* Feature (Start Here / pillar): image beside text on wide screens. */
.wb-hub-feature .wb-rcard--feature { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 782px) {
	.wb-hub-feature .wb-rcard--feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.wb-rcard--feature .wb-rcard__art { aspect-ratio: auto; min-height: 100%; }
	.wb-rcard--feature .wb-rcard__body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); justify-content: center; }
	.wb-rcard--feature .wb-rcard__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
	.wb-rcard--feature .wb-rcard__summary { font-size: 1.0625rem; }
}
.wb-rcard--feature .wb-rcard__art { background: linear-gradient(160deg, #0D3370, #154a9a); }
.wb-hub-feature + .wb-rgrid { margin-top: 1.25rem; }

/* Cluster tiles (Browse sections) */
.wb-ctiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.wb-ctile { position: relative; display: flex; align-items: flex-start; gap: 1rem; margin: 0; padding: 1.25rem; border: 1px solid var(--wb-line); border-radius: 16px; background: linear-gradient(160deg, #F7FBFA, #fff); transition: box-shadow var(--wb-duration) var(--wb-easing), border-color var(--wb-duration) var(--wb-easing); }
.wb-ctile:has(a:hover) { box-shadow: var(--wb-shadow); border-color: var(--wb-teal); }
.wb-ctile:has(a:focus-visible) { outline: 3px solid var(--wb-focus-ring); outline-offset: 3px; }
.wb-ctile__art { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 14px; background: var(--wb-cool-light); color: var(--wb-teal-strong); }
.wb-ctile__art svg { width: 1.75rem; height: 1.75rem; }
.wb-ctile__body { display: grid; gap: 0.3rem; min-width: 0; }
.wb-ctile__link { font-family: var(--wb-serif); font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--wb-navy); text-decoration: none; }
.wb-ctile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wb-ctile__link:focus-visible { outline: none; }
.wb-ctile__intro { color: var(--wb-muted); font-size: 0.95rem; }
.wb-ctile__count { font-size: 0.875rem; font-weight: 600; color: var(--wb-teal-strong); }
.wb-ctile .wb-flag { justify-self: start; }

/* Library: facets, status, empty state, pager */
.wb-hub-section--library { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: 24px; background: var(--wb-cool-light); }
.wb-facets { display: grid; gap: 0.85rem; margin-bottom: 1.5rem; }
.wb-facet { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.wb-facet__label { margin: 0; min-width: 11rem; font-size: 0.875rem; font-weight: 700; color: var(--wb-navy); }
.wb-facet__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wb-facet__chips li { margin: 0; }
.wb-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid #CFE5E1; border-radius: 999px; background: var(--wb-white); color: var(--wb-navy); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.wb-chip:hover { border-color: var(--wb-teal); color: var(--wb-teal-strong); }
.wb-chip.is-active { background: var(--wb-teal-strong); border-color: var(--wb-teal-strong); color: var(--wb-white); }
.wb-hub-status { margin: 0 0 1rem; color: var(--wb-muted); }
.wb-hub-empty { padding: 1.5rem; border-radius: 16px; background: var(--wb-white); border: 1px dashed var(--wb-line); }
.wb-hub-empty > * { margin: 0; }
.wb-hub-empty > * + * { margin-top: 0.75rem; }
.wb-pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.wb-pager a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--wb-line); background: var(--wb-white); font-weight: 700; text-decoration: none; color: var(--wb-navy); }
.wb-pager a[aria-current] { background: var(--wb-navy); color: var(--wb-white); border-color: var(--wb-navy); }

/* Cluster page */
.wb-main .wb-cluster { max-width: none; padding: 0; color: var(--wb-ink); }
.wb-cluster__masthead { color: var(--wb-white); background: var(--wb-navy); position: relative; overflow: hidden; }
.wb-cluster__masthead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 30%, rgba(2, 152, 142, 0.35) 0%, transparent 60%); pointer-events: none; }
.wb-cluster__masthead-inner { position: relative; display: grid; gap: 2rem; align-items: center; width: min(100% - 2 * var(--wb-gutter), var(--wb-wide)); margin-inline: auto; padding-block: 1.5rem clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1024px) { .wb-cluster__masthead-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); min-height: 420px; } }
.wb-cluster__masthead .wb-breadcrumb ol { margin: 0 0 2rem; color: rgba(255, 255, 255, 0.75); }
.wb-cluster__masthead .wb-breadcrumb a, .wb-cluster__masthead .wb-breadcrumb li + li::before { color: rgba(255, 255, 255, 0.85); }
.wb-cluster__masthead .wb-eyebrow { color: var(--wb-gold); }
.wb-cluster .wb-cluster__title { margin: 0.25rem 0 1rem; font-family: var(--wb-serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.06; color: var(--wb-white); }
.wb-cluster__intro { max-width: 40rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); }
.wb-cluster__art { display: none; }
@media (min-width: 782px) { .wb-cluster__art { display: block; max-width: 24rem; justify-self: end; } }
.wb-cluster__art svg { width: 100%; height: auto; display: block; }
.wb-cluster__body { width: min(100% - 2 * var(--wb-gutter), var(--wb-wide)); margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto var(--wb-section-space); display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.wb-cluster__fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: 20px; background: linear-gradient(135deg, var(--wb-cool-light), #fff); border: 1px solid #DCEAE7; }
.wb-cluster__fit h2 { margin: 0.25rem 0 0; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.wb-cluster__fit .wb-eyebrow { margin: 0; }
.wb-cluster__back { margin: 0; }
/* Readiness checklist (review mode) on a light surface. */
.wb-cluster-readiness { margin: 0; color: #4A3A16; background: #FBF6EC; border-color: var(--wb-gold); }
.wb-cluster-readiness summary { color: #6B5320; }

/* Review-mode header stays on one row: a top-level "Not public" flag becomes a gold dot (text kept for screen readers),
   and the P0 pills on gated buttons show only on very wide screens. Public headers never carry either. */
@media (min-width: 1024px) {
	.wb-nav__link > .wb-flag { position: relative; width: 0.6rem; height: 0.6rem; padding: 0; margin-inline-start: 0.3rem; border-radius: 50%; background: var(--wb-gold); border: 0; overflow: hidden; color: transparent; font-size: 0; align-self: flex-start; margin-top: 0.6rem; }
}
@media (min-width: 1024px) and (max-width: 1599.98px) { .wb-nav__actions .wb-btn__gate { display: none; } }


/* ---------------------------------------------------------------- Standalone primitives (zero specificity) */
:where(.wb-resource, .wb-cluster, .wb-hub, .wb-hero--hub) :where(.wb-container) { width: min(100% - 2 * var(--wb-gutter, 1rem), var(--wb-wide, 1240px)); margin-inline: auto; }
:where(.wb-hero--hub) { color: #fff; background: radial-gradient(60% 120% at 85% 30%, rgba(2, 152, 142, 0.35) 0%, transparent 60%), var(--wb-navy, #0D3370); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); }
:where(.wb-hero--hub) :where(h1) { color: #fff; font-family: var(--wb-serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.1; margin: 0.5rem 0 1rem; }
:where(.wb-eyebrow) { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wb-gold, #C9A86A); }
:where(.wb-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.25rem; border-radius: 10px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
:where(.wb-btn--primary) { background: var(--wb-teal-strong, #027A72); color: #fff; }
:where(.wb-btn--secondary) { background: #fff; color: var(--wb-navy, #0D3370); border-color: var(--wb-navy, #0D3370); }
:where(.wb-chip) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--wb-line, #D9DED9); background: #fff; color: var(--wb-navy, #0D3370); text-decoration: none; font-size: 0.92rem; }
:where(.wb-chip.is-active) { background: var(--wb-navy, #0D3370); color: #fff; border-color: var(--wb-navy, #0D3370); }
:where(.wb-flag) { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #FBF3E2; color: #8D6A22; font-size: 0.75rem; font-weight: 700; }
:where(.wb-link) { color: var(--wb-teal-strong, #027A72); font-weight: 700; }
:where(.wb-breadcrumb) :where(ol) { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 1.5rem; font-size: 0.875rem; }
:where(.wb-breadcrumb) :where(li + li)::before { content: "›"; margin-inline-end: 0.35rem; opacity: 0.7; }
:where(.wb-review-panel) { padding: 1rem 1.25rem; border-radius: 14px; border: 2px dashed #C9B37E; background: #FFFCF6; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Host themes or static sites may not set border-box globally; Resources layouts assume it (scoped, zero specificity). */
:where(.wb-resource, .wb-hub, .wb-cluster, .wb-hero--hub, .wb-hub-v2) :where(*, *::before, *::after) { box-sizing: border-box; }
:where(.wb-resource, .wb-cluster, .wb-hub) :where(img, svg) { max-width: 100%; }
