/* components.css — cards, notices, page-headers, empty-states, buttons. */
.chn-pageheader { margin: 0 0 var(--chn-space-6); padding-bottom: var(--chn-space-5); border-bottom: 1px solid var(--chn-color-border); }
.chn-pageheader__eyebrow { font-size: 11px; letter-spacing: .26em; font-weight: 700; text-transform: uppercase; color: var(--chn-color-accent); margin-bottom: var(--chn-space-3); }
.chn-pageheader__title { font-family: var(--chn-font-serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.04; font-variation-settings: "opsz" 96, "wght" 600; letter-spacing: -.02em; margin: 0; }
.chn-pageheader__sub { margin-top: var(--chn-space-3); color: var(--chn-color-muted); max-width: 56ch; }

.chn-card { background: var(--chn-color-card); border: 1px solid var(--chn-color-border); border-radius: var(--chn-radius-md); padding: var(--chn-space-5); box-shadow: var(--chn-shadow-card); position: relative; }
.chn-card--accent::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--chn-color-accent); }

/* Brand-cohesive empty state — paper bg + navy border-left accent.
 * Phase 0 spec: serif title, mono small-caps eyebrow, lazy icon, CTA. */
.chn-empty,
.chn-empty-state {
	background: var(--chn-color-paper);
	border: 1px solid var(--chn-color-border);
	border-left: 3px solid var(--chn-color-primary);
	border-radius: var(--chn-radius-md);
	padding: var(--chn-space-7) var(--chn-space-6);
	text-align: left;
	max-width: 560px;
}
.chn-empty__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(11, 59, 148, .08);
	color: var(--chn-color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--chn-space-3);
}
.chn-empty__eyebrow {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--chn-color-accent);
	margin: 0 0 var(--chn-space-2);
}
.chn-empty__title {
	font-family: var(--chn-font-serif);
	font-size: 26px;
	margin: 0 0 var(--chn-space-2);
	color: var(--chn-color-text);
}
.chn-empty__body  {
	color: var(--chn-color-muted);
	margin: 0 0 var(--chn-space-4);
	font-size: var(--chn-font-size-md);
	line-height: var(--chn-line-height-normal);
}

/* Branded empty-state — centred flex column variant used by the WC archive
 * no-products hook (and any future BEM caller). The legacy `.chn-empty`
 * inline-card retains its own paper-bg + border-left styling above; this
 * variant is the standalone "Nothing here yet" presentation. */
.chn-empty-state:not(.chn-empty) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--chn-space-3);
	padding: 64px var(--chn-space-5);
	max-width: 560px;
	margin: var(--chn-space-6) auto;
	text-align: center;
	background: var(--chn-color-paper);
	border: 1px solid var(--chn-color-border);
	border-left: none;
	border-radius: var(--chn-radius-md);
}
.chn-empty-state__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(11, 59, 148, .08);
	color: var(--chn-color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 var(--chn-space-2);
}
.chn-empty-state__title {
	font-family: var(--chn-font-serif);
	font-size: 28px;
	line-height: 1.15;
	margin: 0;
	color: var(--chn-color-text);
}
.chn-empty-state__body {
	color: var(--chn-color-muted);
	margin: 0 0 var(--chn-space-3);
	font-size: var(--chn-font-size-md);
	line-height: var(--chn-line-height-normal);
	max-width: 44ch;
}

.chn-notice { background: var(--chn-color-card); border: 1px solid var(--chn-color-border); border-left: 3px solid var(--chn-color-primary); border-radius: var(--chn-radius-sm); padding: var(--chn-space-3) var(--chn-space-4); }
.chn-notice--error { border-left-color: var(--chn-color-accent); }

.chn-button { display: inline-flex; align-items: center; gap: var(--chn-space-2); font-family: var(--chn-font-sans); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 22px; min-height: 44px; box-sizing: border-box; border-radius: var(--chn-radius-sm); border: 1px solid var(--chn-color-primary); background: var(--chn-color-primary); color: #fff; text-decoration: none; transition: background .15s ease, transform .12s ease; cursor: pointer; }
.chn-button:hover { background: var(--chn-color-primary-700); transform: translateY(-1px); color: #fff; }
.chn-button--ghost { background: transparent; color: var(--chn-color-primary); }
.chn-button--ghost:hover { background: rgba(11, 59, 148, .06); color: var(--chn-color-primary); }
/* Ghost buttons inside an image hero (dark scrim) need a white outline +
 * white label so they remain readable against the photo. */
.chn-page-hero--image .chn-button--ghost,
.chn-page-hero--image .chn-page-hero__ctas .chn-button--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.chn-page-hero--image .chn-button--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ============================================================
   PAGE-ELEMENTS — breadcrumb / page-hero / sub-nav / cta-band /
   trust-band / share-row / archive-header / pagination / author
   / feature-unavailable / sidebar-callout
   ============================================================ */

/* Breadcrumb — Phase 0 redesign + Phase B4 Stage 0.5 full-bleed.
 * Paper-shade bg strip spans full viewport; content stays container-bound to
 * the SSOT 1280px gutter via the inner `.chn-breadcrumb.chn-container`. Strip
 * has zero vertical margin so it touches the header above and content below —
 * the 8px padding-block is the only vertical breathing room. On non-Elementor
 * pages the strip uses the 100vw + negative-margin trick to escape the
 * hello-elementor `.site-main` 1140px clamp. Mono small-caps 13px copy,
 * custom SVG chevron separator. On mobile the row scrolls horizontally
 * instead of wrapping so the visual hierarchy holds at narrow widths. */
.chn-breadcrumb-strip {
	background: var(--chn-color-paper-shade, var(--chn-color-paper-deep, #efe7d3));
	padding-block: 8px;
	margin-block: 0;
	width: 100%;
}
.chn-breadcrumb-strip > .chn-breadcrumb,
.chn-breadcrumb-strip > .chn-section__inner {
	padding-block: 0;
}
/* Escape parent .site-main 1140px clamp on non-Elementor pages so the strip
 * paints edge-to-edge while the inner container constrains text to 1280px. */
body:not(.elementor-page) .site-main > .chn-breadcrumb-strip {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}
.chn-breadcrumb {
	font-size: var(--chn-font-size-sm);
	color: var(--chn-color-muted);
	font-family: var(--chn-font-sans);
	letter-spacing: .04em;
}
.chn-breadcrumb ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.chn-breadcrumb ol::-webkit-scrollbar { display: none; }
.chn-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--chn-font-sans);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .12em;
	font-weight: 500;
	line-height: 1.15;
}
.chn-breadcrumb a {
	color: var(--chn-color-muted);
	text-decoration: none;
	transition: color .12s ease;
}
.chn-breadcrumb a:hover { color: var(--chn-color-primary); text-decoration: underline; text-decoration-color: var(--chn-color-accent); }
.chn-breadcrumb__sep { color: var(--chn-color-muted); margin-left: 2px; opacity: .7; }
/* WooCommerce breadcrumb variant — WC's template echoes the delimiter as a
 * direct child of <ol>, which is invalid HTML. We pass an empty delimiter
 * in the theme bridge and draw the chevron via CSS instead so the markup
 * stays semantic (<ol> only contains <li>). */
.chn-breadcrumb--wc ol li + li::before {
	content: "\203A"; /* › */
	color: var(--chn-color-muted);
	opacity: .7;
	margin-right: 6px;
	font-size: 14px;
	line-height: 1;
}
.chn-breadcrumb [aria-current="page"] {
	color: var(--chn-color-primary);
	font-weight: 600;
}
/* Reduce the breadcrumb strip's contribution to vertical noise when it
 * sits directly under a full-bleed hero — the strip then visually anchors
 * the page chrome instead of competing with the hero. */
.chn-page-hero + .chn-breadcrumb-strip { border-top: 1px solid var(--chn-color-border); }

/* Hero — Phase 0 full-bleed lock.
 * background ALWAYS fills 100vw; text + CTA stay container-bound via the
 * inner .chn-container. Vertical padding clamps so the hero stays tall on
 * desktop and breathable on mobile but never less than 40px each side. The
 * --chn-space-7 floor below the hero prevents the next section from
 * touching the CTA (one of the cohesion-sweep regressions).
 *
 * F-CRIT-009: the hero is `width: 100%` which depends on `<main class="site-main">`
 * not being clamped by hello-elementor's 1140px reset. layout.css ships the
 * unwind (`body.chn-page main.site-main { max-width: none }`) so this 100%
 * resolves to full-bleed across every CHN-rendered page-template page. */
.chn-page-hero {
	width: 100%;
	padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 96px);
	margin-bottom: var(--chn-space-7);
	position: relative;
	/* Belt-and-braces: keep the absolutely-positioned scrim from leaking
	   horizontal scroll on viewports that don't fully clip overflow. */
	overflow: hidden;
}
/* Per Kemar 2026-05-20: the breadcrumb strip must visually touch the hero
   above it. Zero the hero margin-bottom whenever a breadcrumb strip
   follows so the strip sits flush against the hero's bottom edge — the
   strip's own padding-block:8px is the only breathing room between hero
   and content below. */
.chn-page-hero:has(+ .chn-breadcrumb-strip) { margin-bottom: 0; }
.chn-page-hero--bg-paper   { background: var(--chn-color-paper); }
.chn-page-hero--bg-navy    { background: var(--chn-color-primary); color: #fff; }
.chn-page-hero--bg-navy .chn-page-hero__title, .chn-page-hero--bg-navy .chn-page-hero__eyebrow, .chn-page-hero--bg-navy .chn-page-hero__sub { color: inherit; }
/* F-TPL-031: image heroes no longer set background-image. The image is rendered
   as an absolutely-positioned <img> inside .chn-page-hero__media so it gains
   responsive srcset selection. The navy scrim lives on the media wrapper's
   ::before, layered above the image but below the content container. */
.chn-page-hero--bg-image   { color: #fff; }
@media (max-width: 560px) {
	.chn-page-hero { padding-block: clamp(40px, 9vw, 64px); }
}
/* Image layer */
.chn-page-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.chn-page-hero__img   { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Scrim: lighter at the top so the Caribbean imagery reads, deeper at the
   bottom where copy sits. Verified against WCAG AA: white serif clamp
   against rgba(11,59,148,.55) base over a mid-luminance image still passes
   ≥ 4.5:1 because the gradient deepens to navy toward the text baseline. */
/* Hero scrim — layered to keep title-heavy heroes (e.g. /want-a-custom-design/
   with a 13+-word title on a bright kitchen image) readable against busy
   backgrounds. Top layer is a vertical navy → dark-navy gradient (matches the
   home-hero scrim baseline at .55 → .65 — was .35 → .55 site-wide which left
   text-heavy heroes thin). Bottom layer is a horizontal navy fade on the
   text-anchor side: heaviest on the left for the default left-aligned heroes,
   tapering to transparent at the right so the photo still reads. Centred and
   right-aligned hero variants get their own anchor below. */
.chn-page-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,59,148,.42) 0%, rgba(11,59,148,.18) 55%, rgba(11,59,148,0) 100%), linear-gradient(180deg, rgba(11,59,148,.55) 0%, rgba(29,39,51,.65) 100%); }
.chn-page-hero--align-center .chn-page-hero__media::before { background: linear-gradient(180deg, rgba(11,59,148,.55) 0%, rgba(29,39,51,.65) 100%), radial-gradient(ellipse 60% 80% at center, rgba(11,59,148,.35), rgba(11,59,148,0) 70%); }
.chn-page-hero--align-right .chn-page-hero__media::before { background: linear-gradient(270deg, rgba(11,59,148,.42) 0%, rgba(11,59,148,.18) 55%, rgba(11,59,148,0) 100%), linear-gradient(180deg, rgba(11,59,148,.55) 0%, rgba(29,39,51,.65) 100%); }
.chn-page-hero__content { position: relative; z-index: 2; }
.chn-page-hero--bg-image .chn-container { position: relative; z-index: 2; }
/* Override base h1 + sub colors so the hero copy is legible on the image
   scrim. The base.css h1 rule otherwise paints titles in CHN dark ink. */
.chn-page-hero--bg-image .chn-page-hero__title,
.chn-page-hero--bg-image h1.chn-page-hero__title { color: #fff; }
.chn-page-hero--bg-image .chn-page-hero__sub      { color: rgba(255,255,255,.92); }
.chn-page-hero--bg-image .chn-page-hero__eyebrow  { color: var(--chn-color-accent-tint); }
.chn-page-hero--align-center { text-align: center; }
.chn-page-hero__eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: #a33f00; margin-bottom: var(--chn-space-3); }
.chn-page-hero__title { font-family: var(--chn-font-serif); font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "wght" 600; margin: 0 0 var(--chn-space-3); }
.chn-page-hero__sub { font-size: 17px; color: var(--chn-color-muted); max-width: 56ch; margin: 0 0 var(--chn-space-4); }

/* ------------------------------------------------------------------
   CHN SECTION WRAPPER — full-bleed background, boxed content.
   Apply .chn-section to any <section> that needs the modern
   "background paints edge-to-edge, content stays inside a 1280px
   gutter" pattern. Pair with a `--paper / --paper-shade / --surface-alt /
   --navy / --accent / --image` modifier for the background variant.
   Content goes inside `.chn-section__inner` which enforces the
   boxed width + horizontal padding regardless of parent clamp.
   ------------------------------------------------------------------ */
.chn-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding-block: var(--chn-space-7, 48px);
}
.chn-section--pt-xl   { padding-top: var(--chn-space-8, 64px); }
.chn-section--pb-xl   { padding-bottom: var(--chn-space-8, 64px); }
.chn-section--pt-none { padding-top: 0; }
.chn-section--pb-none { padding-bottom: 0; }
.chn-section__inner {
	position: relative;
	z-index: 2;
	max-width: var(--chn-container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--chn-container-pad, clamp(20px, 4vw, 48px));
	box-sizing: border-box;
}
.chn-section--paper       { background: var(--chn-color-paper, #f5efe4); }
.chn-section--paper-shade { background: var(--chn-color-paper-deep, #efe7d3); }
.chn-section--surface-alt { background: var(--chn-color-surface-alt, #f8f9fb); }
.chn-section--navy        { background: var(--chn-color-primary, #0b3b94); color: #fff; }
.chn-section--navy :where(h1, h2, h3, h4, p, a:not(.chn-button)) { color: #fff; }
.chn-section--navy a:not(.chn-button) { text-decoration: underline; }
.chn-section--accent      { background: var(--chn-color-accent, #f3802d); color: var(--chn-color-text, #1d2733); }
.chn-section--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.chn-section--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 59, 148, 0.45) 0%, rgba(11, 59, 148, 0.75) 100%);
	z-index: 1;
	pointer-events: none;
}
.chn-section--image :where(h1, h2, h3, h4, p, a:not(.chn-button)) { color: #fff; }
.chn-section--image .chn-section__inner { color: #fff; }
/* When the section already supplies its own scrim element (e.g. the home
   hero's .chn-home-hero__scrim), suppress the generic ::before so we don't
   stack two overlays. */
.chn-section--image.chn-home-hero::before { content: none; }

/* Escape any parent .site-main clamp that hello-elementor (or a future
   parent theme) ships. The viewport-relative 100vw + negative margin
   trick pulls the section all the way to the edges while .chn-section__inner
   keeps the content inside the 1280px gutter. Scoped to .chn-section,
   the partial-rendered .chn-page-hero, and .chn-cta-band so the same
   bg-full-bleed pattern applies whether the page uses Gutenberg blocks
   or the legacy PHP partials. */
body:not(.elementor-page) .site-main > .chn-section,
body:not(.elementor-page) .site-main > .chn-section[class*="--"],
body:not(.elementor-page) .site-main > .chn-page-hero,
body:not(.elementor-page) .site-main > .chn-cta-band {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.chn-sub-nav { padding: var(--chn-space-3) 0; border-bottom: 1px solid var(--chn-color-border); }
.chn-sub-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--chn-space-5); flex-wrap: wrap; }
.chn-sub-nav a { color: var(--chn-color-text); text-decoration: none; font-weight: 500; padding: var(--chn-space-2) 0; border-bottom: 2px solid transparent; }
.chn-sub-nav a:hover { color: var(--chn-color-primary); }
.chn-sub-nav [aria-current="page"] a { color: var(--chn-color-primary); border-bottom-color: var(--chn-color-primary); font-weight: 700; }

.chn-cta-band { padding: var(--chn-space-7) 0; }
.chn-cta-band--navy { background: var(--chn-color-primary); color: #fff; }
.chn-cta-band--paper { background: var(--chn-color-paper); }
.chn-cta-band--accent { background: var(--chn-color-accent); color: var(--chn-color-text); }
.chn-cta-band .chn-container { display: flex; align-items: center; justify-content: space-between; gap: var(--chn-space-5); flex-wrap: wrap; }
.chn-cta-band__title { font-family: var(--chn-font-serif); font-size: clamp(22px, 2.5vw, 32px); margin: 0 0 var(--chn-space-2); }
.chn-cta-band__sub { color: inherit; opacity: .85; margin: 0; max-width: 56ch; }
.chn-cta-band--navy .chn-button--primary { background: #fff; color: var(--chn-color-primary); border-color: #fff; }
.chn-cta-band--navy .chn-button--primary:hover { background: var(--chn-color-accent); color: #fff; border-color: var(--chn-color-accent); }
/* Phase B4 W2: ghost (secondary) CTA on the navy band — white outline +
   white label so the paired action stays legible against the navy field. */
.chn-cta-band--navy .chn-button--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.chn-cta-band--navy .chn-button--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.chn-cta-band--accent .chn-button--primary { background: var(--chn-color-text); color: var(--chn-color-accent); border-color: var(--chn-color-text); }
.chn-cta-band--accent .chn-button--primary:hover { background: var(--chn-color-primary); color: #fff; border-color: var(--chn-color-primary); }
/* Phase B4 W2 (bid): ghost (secondary) CTA on the accent band — dark text
   outline on the orange field so the paired action reads as a quieter
   counterpart to the dark-fill primary. Mirrors the navy ghost rule shape. */
.chn-cta-band--accent .chn-button--ghost { background: transparent; color: var(--chn-color-text); border-color: var(--chn-color-text); }
.chn-cta-band--accent .chn-button--ghost:hover { background: var(--chn-color-text); color: var(--chn-color-accent); border-color: var(--chn-color-text); }
body .chn-cta-band--accent .chn-cta-band__title,
body .chn-cta-band--accent h2.chn-cta-band__title { color: var(--chn-color-text); }
body .chn-cta-band--accent .chn-cta-band__sub { color: var(--chn-color-text); opacity: .85; }
/* Force white ink on titles + sub inside the navy CTA band. base.css's
   `h2 { color: var(--chn-color-text); }` is a root-level rule with
   specificity (0,0,1); we lift specificity to (0,0,3) by chaining
   `body .chn-cta-band--navy <element>` so it wins cleanly without
   !important. This replaces the per-template overrides that previously
   lived in membership.css / catalogue.css / marketing.css /
   provider-directory.css for the same bug. */
body .chn-cta-band--navy .chn-cta-band__title,
body .chn-cta-band--navy h2.chn-cta-band__title { color: #fff; }
body .chn-cta-band--navy .chn-cta-band__sub { color: rgba(255, 255, 255, .9); opacity: 1; }

.chn-trust-band { padding: var(--chn-space-5) 0; border-top: 1px solid var(--chn-color-border); border-bottom: 1px solid var(--chn-color-border); }
.chn-trust-band ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--chn-space-6); }
.chn-trust-band img { max-height: 40px; width: auto; opacity: .8; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.chn-trust-band img:hover { opacity: 1; filter: grayscale(0); }

.chn-share-row { display: flex; align-items: center; gap: var(--chn-space-3); padding: var(--chn-space-3) 0; flex-wrap: wrap; }
.chn-share-row__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--chn-color-muted); font-weight: 700; }
.chn-share-row ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--chn-space-2); flex-wrap: wrap; }
.chn-share-row__link { font-size: 12px; padding: 6px 12px; border: 1px solid var(--chn-color-border); border-radius: var(--chn-radius-sm); color: var(--chn-color-text); text-decoration: none; }
.chn-share-row__link:hover { background: var(--chn-color-primary); color: #fff; border-color: var(--chn-color-primary); }

.chn-archive-header { padding: var(--chn-space-5) 0 var(--chn-space-4); border-bottom: 1px solid var(--chn-color-border); margin-bottom: var(--chn-space-5); }
.chn-archive-header__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--chn-space-4); flex-wrap: wrap; }
.chn-archive-header__title { font-family: var(--chn-font-serif); font-size: clamp(28px, 3.5vw, 40px); margin: 0; }
.chn-archive-header__count { color: var(--chn-color-muted); font-size: 13px; margin: 0; }
.chn-archive-header__desc { color: var(--chn-color-muted); margin: var(--chn-space-2) 0 0; max-width: 56ch; }
.chn-archive-header__controls { margin-top: var(--chn-space-3); }

.chn-pagination { padding: var(--chn-space-5) 0; }
.chn-pagination .page-numbers { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--chn-space-2); justify-content: center; flex-wrap: wrap; }
.chn-pagination .page-numbers li a, .chn-pagination .page-numbers li span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 var(--chn-space-3); border: 1px solid var(--chn-color-border); border-radius: var(--chn-radius-sm); color: var(--chn-color-text); text-decoration: none; font-family: var(--chn-font-mono); font-size: 13px; }
.chn-pagination .page-numbers li a:hover, .chn-pagination .page-numbers li .current { background: var(--chn-color-primary); color: #fff; border-color: var(--chn-color-primary); }

.chn-author-bio { display: flex; gap: var(--chn-space-4); align-items: flex-start; padding: var(--chn-space-5); margin: var(--chn-space-6) 0; }
.chn-author-bio__avatar { border-radius: 50%; flex: 0 0 auto; }
.chn-author-bio__name { font-family: var(--chn-font-serif); font-size: 20px; margin: 0 0 var(--chn-space-2); }
.chn-author-bio__name a { color: var(--chn-color-text); text-decoration: none; }
.chn-author-bio__name a:hover { color: var(--chn-color-primary); }
.chn-author-bio__sub { color: var(--chn-color-muted); margin: 0; line-height: 1.55; }

.chn-feature-unavailable { padding: var(--chn-space-6); text-align: center; }
.chn-feature-unavailable__msg { font-family: var(--chn-font-serif); font-size: 18px; color: var(--chn-color-text); margin: 0 0 var(--chn-space-4); }

.chn-sidebar-callout { padding: var(--chn-space-5); border-radius: var(--chn-radius-md); border: 1px solid var(--chn-color-border); margin-bottom: var(--chn-space-5); }
.chn-sidebar-callout--paper { background: var(--chn-color-paper); }
.chn-sidebar-callout--navy  { background: var(--chn-color-primary); color: #fff; }
.chn-sidebar-callout--navy a.chn-button--primary { background: #fff; color: var(--chn-color-primary); border-color: #fff; }
.chn-sidebar-callout h3 { margin: 0 0 var(--chn-space-2); font-family: var(--chn-font-serif); font-size: 18px; }

@media (max-width: 600px) {
	.chn-cta-band .chn-container { flex-direction: column; align-items: flex-start; text-align: left; }
	.chn-author-bio { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   Marketplace messaging modal — Phase 0 shim.
   ============================================================ */
.chn-msg-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.chn-msg-modal[hidden] { display: none; }
.chn-msg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 59, 148, .35);
}
.chn-msg-modal__panel {
	position: relative;
	background: var(--chn-color-surface);
	border-radius: var(--chn-radius-md);
	padding: var(--chn-space-6);
	width: min(520px, 92vw);
	box-shadow: 0 24px 48px -16px rgba(11, 59, 148, .35);
	z-index: 1;
}
.chn-msg-modal__close {
	position: absolute;
	top: var(--chn-space-3);
	right: var(--chn-space-3);
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--chn-color-muted);
	padding: 4px;
}
.chn-msg-modal__close:hover { color: var(--chn-color-primary); }
.chn-msg-modal__title {
	font-family: var(--chn-font-serif);
	font-size: 26px;
	margin: 0 0 var(--chn-space-2);
	color: var(--chn-color-text);
}
.chn-msg-modal__sub {
	color: var(--chn-color-muted);
	margin: 0 0 var(--chn-space-4);
	font-size: 14px;
}
.chn-msg-modal__form label {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--chn-space-3);
	font-size: 13px;
	font-weight: 600;
	color: var(--chn-color-text);
}
.chn-msg-modal__form label span { margin-bottom: 4px; }
.chn-msg-modal__form input,
.chn-msg-modal__form textarea {
	width: 100%;
	padding: 9px 12px;
	font-family: var(--chn-font-sans);
	font-size: 14px;
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-sm);
	background: var(--chn-color-surface);
	color: var(--chn-color-text);
	min-height: 44px;
}
.chn-msg-modal__form textarea { min-height: 100px; resize: vertical; }
.chn-msg-modal__form input:focus,
.chn-msg-modal__form textarea:focus {
	outline: 2px solid rgba(11, 59, 148, .25);
	outline-offset: 0;
	border-color: var(--chn-color-primary);
}
.chn-msg-modal__actions {
	display: flex;
	gap: var(--chn-space-3);
	margin-top: var(--chn-space-4);
}
.chn-msg-modal__feedback {
	margin: var(--chn-space-3) 0 0;
	font-size: 13px;
	color: var(--chn-color-primary);
	min-height: 1em;
}

/* ============================================================
   Plan card — canonical public-listing component.

   The catalogue, homepage, architect storefronts and legacy plan
   shortcodes all render this same component. Keep visual rules here so a
   plan never changes shape simply because it appears on another page.
   Route styles may control grid width/columns, but must not restyle the
   card itself.
   ============================================================ */
.chn-plan-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--chn-space-4);
}
/* Public promotional/listing rails use the catalogue's desktop card scale.
   Auto-fit allows a full-width architect storefront to show four cards while
   the narrower catalogue results column naturally shows three. */
.chn-plan-grid.chn-plan-grid--catalogue-scale {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 280px));
	justify-content: center;
}
.chn-plan-card {
	background: var(--chn-color-surface);
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-md);
	overflow: hidden;
	padding: 0;
	display: flex;
	flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chn-plan-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--chn-shadow-card-hover);
	border-color: rgba(11, 59, 148, .18);
}
.chn-plan-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--chn-color-surface-alt);
	position: relative;
}
.chn-plan-card__media img,
.chn-plan-card__media .chn-plan-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.chn-plan-card:hover .chn-plan-card__media img { transform: scale(1.03); }

/* Design + Architect code pill — top-left, mono. Now renders BOTH the plan
 * design number AND the architect number so the catalogue card surfaces
 * provenance at a glance. Format: "D-043 / A-0001".
 *
 * High-contrast variant: solid navy background + #fff ink (was grey-on-blue
 * before F5 refinement; failed WCAG AA). Tabular numerals keep the codes
 * aligned across cards. */
.chn-plan-card__code {
	position: absolute;
	top: var(--chn-space-3);
	left: var(--chn-space-3);
	background: var(--chn-color-primary);
	color: #fff;
	font-family: var(--chn-font-mono);
	font-size: 11px;
	letter-spacing: .1em;
	padding: 5px 10px;
	border-radius: var(--chn-radius-sm);
	font-feature-settings: "tnum", "lnum";
	font-weight: 600;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
	box-shadow: 0 2px 6px -2px rgba(11, 30, 60, .35);
}
.chn-plan-card__code-part {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}
.chn-plan-card__code-prefix {
	color: rgba(255, 255, 255, .68);
	font-size: 9px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
}
.chn-plan-card__code-val { color: #fff; }
.chn-plan-card__code-sep {
	color: rgba(255, 255, 255, .42);
	font-weight: 400;
	margin: 0 1px;
}
.chn-plan-card__body {
	padding: var(--chn-space-3) var(--chn-space-4) var(--chn-space-4);
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
}
.chn-plan-card .chn-plan-card__title {
	font-family: var(--chn-font-serif);
	font-size: 18px;
	line-height: 1.2;
	margin: 0;
	font-variation-settings: "opsz" 24, "wght" 600;
	letter-spacing: -.01em;
}
.chn-plan-card .chn-plan-card__title a { color: var(--chn-color-text); text-decoration: none; }
.chn-plan-card .chn-plan-card__title a:hover { color: var(--chn-color-primary); }

/* 6-field spec strip — 4 numeric tiles + 1 style row. The grid keeps
 * widths uniform across cards so the rhythm reads down the catalogue.
 *
 * F5 refinement: each tile now leads with a Lucide icon (ruler / bed / bath
 * / car) so the metric reads at a glance, even when the user can't see the
 * BD/BA/GA letter glyphs. The full label is surfaced on hover via title=""
 * and announced to assistive tech via aria-label="" — see the matching
 * template-parts/archive/product-card-plan.php. */
.chn-plan-card__specs {
	list-style: none;
	padding: 0;
	margin: var(--chn-space-2) 0 0;
	display: grid;
	/* minmax(0, 1fr) instead of `1fr` so the area tile (which has the widest
	 * label content, "209 m²") can't bully neighbouring tiles into 0-width.
	 * Without the explicit `0` floor, the first column expands and the last
	 * tile clips outside the card box. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
}
/* Neutralize WooCommerce's universal clearfix pseudos which target ANY ul
 * descended from .woocommerce .products (assets/css/woocommerce.css ships
 * `.woocommerce .products ul::before,::after { content: " "; display: table; }`).
 * When the related-products carousel on a plan-product page renders this UL
 * inside .woocommerce .products, those pseudos occupy grid track slots — with
 * 4 real li + 2 pseudo items the 4-column grid wraps to 2 rows, dropping the
 * GA (garage) metric to a second line. !important is necessary because the WC
 * selector specificity is (0,3,1) and we cannot raise our specificity higher
 * without coupling to the WC ancestor chain. */
.chn-plan-card__specs::before,
.chn-plan-card__specs::after { content: none !important; display: none !important; }
.chn-plan-card__spec {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 6px 4px;
	background: var(--chn-color-surface-alt);
	border-radius: var(--chn-radius-sm);
	font-family: var(--chn-font-mono);
	font-feature-settings: "tnum", "lnum";
	font-size: 12px;
	color: var(--chn-color-text);
	min-height: 32px;
	min-width: 0; /* allow the grid track to shrink below content width */
	cursor: help;
	position: relative; /* anchor for the ::after CSS tooltip below */
	transition: background-color .15s ease, color .15s ease;
}
.chn-plan-card__spec:hover {
	background: var(--chn-color-paper, #f5ecd7);
	color: var(--chn-color-primary);
}
/* Per Kemar 2026-05-20: 'on plan grid views, hovering over the metrics
   don't show you the data you should see only shows ?'. The native
   browser tooltip from title= has a ~500ms delay and only the help
   cursor renders immediately, so the user perceived the cursor's '?'
   glyph as the only feedback. Render the descriptive aria-label as an
   immediate CSS tooltip on hover/focus, then suppress the native tooltip
   visual by relying on the CSS one. */
.chn-plan-card__spec[aria-label]::after {
	content: attr(aria-label);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: var(--chn-color-primary, #0b3b94);
	color: #fff;
	padding: 6px 10px;
	border-radius: var(--chn-radius-sm, 4px);
	font-family: var(--chn-font-sans, "Manrope", sans-serif);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s ease, transform .12s ease;
	z-index: 5;
	box-shadow: 0 4px 12px -4px rgba(11, 59, 148, .35);
}
.chn-plan-card__spec[aria-label]:hover::after,
.chn-plan-card__spec[aria-label]:focus-visible::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
/* Triangle pointer below the tooltip. */
.chn-plan-card__spec[aria-label]::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: var(--chn-color-primary, #0b3b94);
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s ease;
	z-index: 5;
}
.chn-plan-card__spec[aria-label]:hover::before,
.chn-plan-card__spec[aria-label]:focus-visible::before { opacity: 1; }
.chn-plan-card__spec-icon {
	width: 14px;
	height: 14px;
	color: var(--chn-color-primary);
	fill: none; /* Lucide icons ship with fill="none" + stroke="currentColor" — keep them stroke-only despite the base .chn-icon { fill: currentColor } rule */
	flex: 0 0 auto;
}
.chn-plan-card__spec:hover .chn-plan-card__spec-icon { color: var(--chn-color-primary-700, #082766); }
.chn-plan-card__spec-val {
	font-weight: 600;
	font-size: 13px;
	font-feature-settings: "tnum";
}
.chn-plan-card__spec-label {
	color: var(--chn-color-muted);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Architectural style row — small-caps mono with a palette icon so the
 * metric pattern carries through to the style line. */
.chn-plan-card__style {
	margin: var(--chn-space-2) 0 0;
	font-family: var(--chn-font-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--chn-color-muted);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: help;
}
.chn-plan-card__style-icon {
	width: 14px;
	height: 14px;
	color: var(--chn-color-primary);
	fill: none;
	flex: 0 0 auto;
}
.chn-plan-card__style-val { letter-spacing: .12em; }

/* Price — accent-coloured, mono tabular. */
.chn-plan-card__price {
	font-family: var(--chn-font-mono);
	font-size: 14px;
	color: var(--chn-color-primary);
	margin: 6px 0 0;
	font-feature-settings: "tnum";
	font-weight: 500;
}
.chn-plan-card__price .woocommerce-Price-amount { font-weight: 500; }

@media (max-width: 900px) {
	.chn-plan-grid,
	.chn-plan-grid.chn-plan-grid--catalogue-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.chn-plan-grid,
	.chn-plan-grid.chn-plan-grid--catalogue-scale { grid-template-columns: minmax(0, 1fr); gap: var(--chn-space-3); }
	.chn-plan-card .chn-plan-card__title { font-size: 17px; }
}

/* Header cart-pill sits on the navy chrome bar — its price must render white.
   Higher-specificity selectors here beat product-template overrides such as
   `body.chn-product--regular .woocommerce-Price-amount { color: var(--chn-color-primary); }`
   (specificity 0,2,1) without resorting to !important. */
body .chn-chrome-bar__cart-total .woocommerce-Price-amount.amount,
body .chn-chrome-bar__cart-total .woocommerce-Price-amount.amount > bdi {
	color: #fff;
}
body .chn-chrome-bar__cart-total .woocommerce-Price-amount.amount > .woocommerce-Price-currencySymbol {
	color: rgba(255, 255, 255, .75);
}

/* ============================================================
   F-CSS-016 — Chrome-bar currency switcher: flag/label spacing.

   The FOX (WOOCS) widget converts the <select> into a ddslick
   dropdown whose root is `.dd-container` with `.dd-selected`
   wrapping a floated `<img class="dd-selected-image">` and a
   `<label class="dd-selected-text">`. ddslick injects a default
   stylesheet that sets `max-width:64px` and `float:left` on the
   image, which inside the slim chrome bar over-paints the label
   ("JMD, JM $") with the country flag.

   This block scopes a fix to ONLY the chrome-bar switcher so
   product-page price widgets and any other WOOCS usage stay
   untouched. We also patch the legacy `.woocs_flag_view_item`
   markup variant (used when FOX renders without ddslick).
   ============================================================ */
.chn-chrome-bar__switcher .dd-container,
.chn-chrome-bar__switcher .woocs_flag_view_item,
.chn-chrome-bar__switcher .woocs-flag-currency-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.chn-chrome-bar__switcher .dd-select,
.chn-chrome-bar__switcher .dd-selected {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 22px 2px 6px;
	line-height: 1.2;
	overflow: visible;
}
.chn-chrome-bar__switcher .dd-selected {
	padding: 0;
}
.chn-chrome-bar__switcher .dd-selected-image,
.chn-chrome-bar__switcher .woocs_flag_view_item img,
.chn-chrome-bar__switcher .woocs-flag,
.chn-chrome-bar__switcher img.dd-option-image {
	width: 18px;
	height: 12px;
	max-width: 18px;
	max-height: 12px;
	margin: 0;            /* override ddslick default margin-right:5px */
	float: none;          /* override ddslick default float:left */
	flex-shrink: 0;
	position: static;     /* defensive: override any absolute positioning */
	vertical-align: middle;
	object-fit: cover;
}
.chn-chrome-bar__switcher .dd-selected-text,
.chn-chrome-bar__switcher .woocs_flag_view_item span {
	font-family: var(--chn-font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	letter-spacing: .02em;
	white-space: nowrap;
}
/* ddslick pointer (the small caret) — keep it clear of the label. */
.chn-chrome-bar__switcher .dd-pointer {
	right: 8px;
}
/* Option rows in the open dropdown: tidy the flag/label gap too so
   the menu mirrors the closed pill. */
.chn-chrome-bar__switcher .dd-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
}
.chn-chrome-bar__switcher .dd-option-image {
	width: 18px;
	height: 12px;
	max-width: 18px;
	max-height: 12px;
	margin: 0;
	float: none;
	flex-shrink: 0;
	object-fit: cover;
}
.chn-chrome-bar__switcher .dd-option-text {
	font-family: var(--chn-font-mono, ui-monospace, SFMono-Regular, monospace);
	font-size: 12px;
	line-height: 1.2;
}

/* ==================================================================
   F-CSS-102 — WpMarketplaceBuyerSellerChat (mpbs / "mp-best-suite") palette
   containment

   The plugin echoes an inline <style> in <head> with hard-coded #96588a
   (off-palette purple) and #999 across chat-window chrome, message
   bubbles, headings, panels, and control borders — each declaration
   uses !important. The plugin's stylesheet ships before chn-components,
   and the chn-components sheet loads after the inline <style>; matching
   the plugin's selectors with !important here wins cascade by source
   order without touching vendor files.

   Brand mapping:
   - admin/customer "strip" chrome (top bars, headings, control borders)
       -> --chn-color-primary (CHN navy)
   - sender (self) bubble bg -> --chn-color-primary
   - receiver (other) text + bubble accents -> --chn-color-text
   - receiver bubble bg -> --chn-color-surface-alt
   - timestamp greys -> --chn-color-muted
   ================================================================== */
.mpbs-active-users .mpbs-chat-menu .mpbs-panel-control,
.mpbs-active-users .mpbs-chat-menu,
.mpbs-chatbox-container .mpbs-chat-controls,
.mpbs-active-users .mpbs-chat-menu .mpbs-chatbox-container .mpbs-chat-controls,
.mpbs-chatbox-container .mpbs-start-chat-container,
.mpbs-chatbox-container .mpbs-thread-container,
.mpbs-chatbox-container .mpbs-input-area {
	border-color: var(--chn-color-primary) !important;
}
.mpbs-active-users .mpbs-chat-menu .mpbs-heading,
.mpbs-chatbox-container .mpbs-chatbox-top-bar,
#mpbs-chat-window-container .mpbs-chatbox-container .mpbs-chatbox-top-bar {
	background-color: var(--chn-color-primary) !important;
	border-bottom-color: var(--chn-color-primary) !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.self .mpbs-message {
	background-color: var(--chn-color-primary) !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.self .mpbs-message:before {
	border-color: var(--chn-color-primary) !important;
	border-right-color: transparent !important;
	border-bottom-color: transparent !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.other .mpbs-message {
	background-color: var(--chn-color-surface-alt) !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.other .mpbs-message:before {
	border-color: var(--chn-color-surface-alt) !important;
	border-left-color: transparent !important;
	border-bottom-color: transparent !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.other .mpbs-message p {
	color: var(--chn-color-text) !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.self .mpbs-message time,
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.other .mpbs-message time {
	color: var(--chn-color-muted) !important;
}
.mpbs-chatbox-container .mpbs-thread-container .mpbs-discussion li.self .mpbs-message time {
	color: rgba(255, 255, 255, .75) !important;
}

/* ============================================================
   Entry-animation infrastructure — Phase B4 Stage 0.3.

   Sections, block-sections, cards, and any element opted-in via
   `data-chn-animate` start hidden (opacity 0, translated 20px down)
   ONLY when JavaScript has signalled it is ready to run the observer
   (chn-entry-animations.js adds `chn-js-anim` to <html> early). This
   progressive-enhancement gate prevents 3 classes of regression:

     1. No-JS users / SEO crawlers / print stylesheet — they see the
        page immediately (opacity:1, no transform), no blank-page bug.
     2. Slow connections where JS doesn't reach IntersectionObserver
        before paint — content paints visible rather than getting stuck
        at the pre-animation state.
     3. Headless full-page screenshots for QA — sections below the
        initial viewport no longer require a scroll-pass to fade in.

   When `chn-js-anim` IS present, the observer adds `.is-visible` to
   the parent and `.is-visible-child` to up to five direct children on
   an 80ms stagger. `:where()` selectors keep specificity at 0 so
   per-page overrides win without `!important`. Reduced-motion users
   get immediate visibility with no transition.
   ============================================================ */
html.chn-js-anim :where(.chn-section, .chn-block-section, .chn-card, .chn-plan-card, [data-chn-animate]) {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: opacity, transform;
}
html.chn-js-anim :where(.chn-section, .chn-block-section, .chn-card, .chn-plan-card, [data-chn-animate]).is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	html.chn-js-anim :where(.chn-section, .chn-block-section, .chn-card, .chn-plan-card, [data-chn-animate]) {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ============================================================
   Phase B4 re-review (Wave R4) — root-level block safety net.
   Scope: when chn/section-heading or chn/step-tiles is placed
   as a direct child of <main class="chn-marketing--blocks"> (no
   chn-block-section wrap), give it the SSOT container gutter so
   the heading does not bleed flush to the viewport edge.

   Affected pages observed at audit time:
     /architect-registration/, /service-provider-registration/,
     /customer-registration/, /about-us/, /how-chn-works/, plus
     any future blocks.php-hosted page where the editor inserts
     chn/* blocks at top level.

   Token-only — no raw hex / px.
   ============================================================ */
main.chn-marketing--blocks > .chn-section-heading,
main.chn-marketing--blocks > .wp-block-chn-section-heading {
	max-width: var(--chn-container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--chn-container-pad, clamp(20px, 4vw, 48px));
	box-sizing: border-box;
	width: 100%;
}
main.chn-marketing--blocks > .chn-section-heading > *,
main.chn-marketing--blocks > .wp-block-chn-section-heading > * {
	max-width: 880px;
}
main.chn-marketing--blocks > .chn-step-tiles,
main.chn-marketing--blocks > .wp-block-chn-step-tiles {
	max-width: var(--chn-container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--chn-container-pad, clamp(20px, 4vw, 48px));
	box-sizing: border-box;
	width: 100%;
}
/* Per Kemar 2026-05-20: /about-us/ "BY THE NUMBERS" stats strip rendered
   edge-to-edge with 8 grid columns (only 4 stats existed; the other 4
   tracks collapsed to 0px because the .chn-stats-strip block uses
   `grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))` and an
   uncontained 1440px parent fit 8× 180px). Same pattern as section-
   heading + step-tiles above — when authored as a direct child of
   <main class="chn-marketing--blocks"> rather than nested inside a
   chn/block-section, the block has no container gutter. Add the SSOT
   1280px gutter so the grid resolves to a sensible 4-up at desktop. */
main.chn-marketing--blocks > .chn-stats-strip,
main.chn-marketing--blocks > .wp-block-chn-stats-strip {
	max-width: var(--chn-container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--chn-container-pad, clamp(20px, 4vw, 48px));
	box-sizing: border-box;
	width: 100%;
}

/* ============================================================
   Phase B4 re-review (Wave R4) — site-wide :focus-visible policy.
   The browser default `1px auto invert` outline is barely visible
   on CHN's white/paper surfaces and Elementor's reset clobbers
   it for buttons (outline-style:none). Replace with a high-
   contrast accent ring for keyboard users only — :focus-visible
   leaves pointer/touch focus untouched.

   Skip-to-content link keeps its own treatment (3px solid orange
   defined inline on the anchor); .chn-skip-link is excluded.

   :where() keeps specificity 0 so per-component focus styles
   (.chn-plan-card__spec[aria-label]:focus-visible) still win.
   ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--chn-color-accent, #f3802d);
	outline-offset: 2px;
	border-radius: 2px;
}
/* Headerbar items: keep the accent ring but pull offset to 1px so
   it does not extend beyond the dark top-bar background. */
.chn-topbar :where(a, button):focus-visible,
header .elementor-element :where(a, button):focus-visible {
	outline-offset: 1px;
}
/* Submenu items inside open dropdowns: ring inside the white panel. */
header .sub-menu :where(a, button):focus-visible,
header .e-n-menu-content :where(a, button):focus-visible {
	outline-offset: -2px;
}

/* Currency-aware design price filter shared by the public catalogue,
   Architect account and public Architect storefront. */
.chn-design-filters__price-filter {
	min-width: 0;
	margin: 0;
	border: 0;
	padding: 0;
}
.chn-design-filters__price-filter legend {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 7px;
	padding: 0;
	color: var(--chn-color-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.chn-design-filters__currency-tag {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	border: 1px solid rgba(11, 59, 148, .2);
	border-radius: 999px;
	background: rgba(11, 59, 148, .07);
	color: var(--chn-color-primary);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1;
}
.chn-design-filters__custom-price {
	margin-top: 8px;
	border: 1px solid var(--chn-color-border);
	border-radius: var(--chn-radius-sm);
	background: var(--chn-color-surface-alt);
}
.chn-design-filters__custom-price summary {
	min-height: 40px;
	box-sizing: border-box;
	padding: 11px 12px;
	cursor: pointer;
	color: var(--chn-color-primary);
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
}
.chn-design-filters__custom-price[open] summary {
	border-bottom: 1px solid var(--chn-color-border);
}
.chn-design-filters__custom-price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 12px;
}
.chn-design-filters__custom-price-grid label {
	min-width: 0;
	margin: 0 !important;
}
.chn-design-filters__money {
	position: relative;
	display: block;
	min-width: 0;
}
.chn-design-filters__money > b {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
	color: var(--chn-color-primary);
	font-family: var(--chn-font-mono);
	font-size: 11px;
	font-weight: 800;
	pointer-events: none;
}
.chn-design-filters__money > input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	padding-left: 48px !important;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 460px) {
	.chn-design-filters__custom-price-grid { grid-template-columns: minmax(0, 1fr); }
}
