/**
 * bdecent global styles: canvas, primitives (buttons, chips, cards), header, footer.
 * Tokens come from theme.json (--wp--preset--*, --wp--custom--*).
 * Breakpoints (docs/responsive.md §1): desktop ≥ 1280 (as drawn), tablet 768–1279, mobile < 768 — written as
 * max-width 1279 / 767 queries; 1023 where a layout needs a step inside the tablet range (split sections stack < 1024),
 * 1179 for the mobile header (§4.1).
 */

:root {
	--bd-ink: var(--wp--preset--color--ink);
	--bd-haze: var(--wp--preset--color--haze);
	--bd-sun: var(--wp--preset--color--sunshade);
	--bd-body: var(--wp--preset--color--text-body);
	--bd-meta: var(--wp--preset--color--text-meta);
	--bd-disabled: var(--wp--preset--color--text-disabled);
	--bd-hairline: var(--wp--preset--color--hairline);
	--bd-quiet: var(--wp--preset--color--surface-quiet);
	--bd-r-sm: var(--wp--custom--radius--small);
	--bd-r-card: var(--wp--custom--radius--card);
	--bd-r-pill: var(--wp--custom--radius--pill);
	--bd-ease: var(--wp--custom--ease--out-soft);
	--bd-hover: var(--wp--custom--duration--hover);
	--bd-gutter: var(--wp--preset--spacing--gutter);
	--bd-section: var(--wp--preset--spacing--section);
	--bd-header-h: var(--wp--custom--header--height);
	--bd-card-bg: var(--wp--preset--gradient--card-lift);
	--bd-card-border: 1px solid var(--bd-hairline);
	--bd-card-shadow: var(--wp--preset--shadow--card);
}

/* Responsive tiers (docs/responsive.md §1–2). theme.json holds the desktop values (as drawn); tablet and mobile step
   the presets here, so everything written with a preset or a --bd-* token follows:
   - side padding (gutter, .bd-wrap) 80 / 40 / 20;
   - vertical section padding: blocks write calc(<1440 value> * var(--bd-s)) → 76 / 82 / 96 become 56 / 61 / 71 on
     tablet and 46 / 49 / 58 on mobile; the section presets 76 / 82 → 56 / 60 → 46 / 50;
   - type: H1 62/1.04 → 48/1.06 → 36/1.1, H2 36/1.15 → 30/1.2 → 26/1.22, H2 small 28 → 26 → 22, H3 26 → 22 → 20,
     H3 card 20 → 20 → 19, lead 21 → 19 → 17, body 16.5 → 16 → 16, card body 14 → 14 → 14.5, meta 13.5 → 13 → 13,
     kicker 11.5 throughout. --bd-lh-h1 / --bd-lh-h2 carry the heading line heights for block CSS. */
:root { --bd-s: 1; --bd-lh-h1: 1.04; --bd-lh-h2: 1.15; }
@media (max-width: 1279px) {
	:root {
		--bd-s: .74;
		--bd-lh-h1: 1.06;
		--bd-lh-h2: 1.2;
		--wp--preset--spacing--gutter: 40px;
		--wp--preset--spacing--section: 56px;
		--wp--preset--spacing--section-first: 60px;
		--wp--preset--font-size--display: 48px;
		--wp--preset--font-size--section: 30px;
		--wp--preset--font-size--section-small: 26px;
		--wp--preset--font-size--subsection: 22px;
		--wp--preset--font-size--lead: 19px;
		--wp--preset--font-size--body: 16px;
		--wp--preset--font-size--meta: 13px;
	}
}
@media (max-width: 767px) {
	:root {
		--bd-s: .6;
		--bd-lh-h1: 1.1;
		--bd-lh-h2: 1.22;
		--wp--preset--spacing--gutter: 20px;
		--wp--preset--spacing--section: 46px;
		--wp--preset--spacing--section-first: 50px;
		--wp--preset--font-size--display: 36px;
		--wp--preset--font-size--section: 26px;
		--wp--preset--font-size--section-small: 22px;
		--wp--preset--font-size--subsection: 20px;
		--wp--preset--font-size--card-title: 19px;
		--wp--preset--font-size--lead: 17px;
		--wp--preset--font-size--card: 14.5px;
	}
}

html { scroll-padding-top: 76px; } /* compact header (60px) + 16px */
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Text wraps pretty, H1/H2 balanced (§2); heading line heights follow the tier. */
* { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
h1 { line-height: var(--bd-lh-h1); }
h2 { line-height: var(--bd-lh-h2); }
img { max-width: 100%; height: auto; }

/* Canvas: four soft glows (REQUIREMENTS §3), reference root values. */
.wp-site-blocks {
	background:
		radial-gradient(1100px 620px at 10% 0%, rgba(163,0,190,.36), transparent 58%),
		radial-gradient(900px 520px at 92% 4%, rgba(250,154,66,.20), transparent 60%),
		radial-gradient(1000px 700px at 78% 42%, rgba(163,0,190,.16), transparent 62%),
		radial-gradient(900px 640px at 6% 72%, rgba(250,154,66,.12), transparent 60%),
		var(--bd-ink);
	min-height: 100vh;
	padding-top: 0;
}
/* Mobile (responsive §1): the glows at 60 % of their size, same positions and colours. */
@media (max-width: 767px) {
	.wp-site-blocks {
		background:
			radial-gradient(660px 372px at 10% 0%, rgba(163,0,190,.36), transparent 58%),
			radial-gradient(540px 312px at 92% 4%, rgba(250,154,66,.20), transparent 60%),
			radial-gradient(600px 420px at 78% 42%, rgba(163,0,190,.16), transparent 62%),
			radial-gradient(540px 384px at 6% 72%, rgba(250,154,66,.12), transparent 60%),
			var(--bd-ink);
	}
}
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Content wrapper: 1440 design width, gutter padding (80 / 40 / 20, see the tiers above). */
.bd-wrap { box-sizing: border-box; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--bd-gutter); }

/* Visually hidden. */
.screen-reader-text, .bd-sr { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 16px; top: 16px; z-index: 1000; background: var(--bd-sun); color: var(--bd-ink); padding: 12px 20px; border-radius: var(--bd-r-pill); font-weight: 700; }

/* Focus ring (spec §9.2). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--bd-sun);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Buttons ---------- */
.bd-btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	box-sizing: border-box;
	font: 700 15px/1.2 var(--wp--preset--font-family--montserrat);
	padding: 16px 30px;
	border-radius: var(--bd-r-pill);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, opacity 180ms ease-out;
	white-space: nowrap;
}
.bd-btn--primary, .wp-block-button__link { background: var(--bd-sun); color: var(--bd-ink); border: 0; }
.bd-btn--primary:hover, .wp-block-button__link:hover { background: #fbb06c; color: var(--bd-ink); }
.bd-btn--secondary,
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent; color: #fff;
	border: 1.5px solid rgba(255,255,255,.4);
	padding: 14.5px 28.5px;
}
.bd-btn--secondary:hover,
.wp-block-button.is-style-secondary .wp-block-button__link:hover { border-color: var(--bd-haze); background: rgba(247,248,249,.06); color: #fff; }
.bd-btn--link,
.wp-block-button.is-style-link .wp-block-button__link {
	background: none; border: 0; padding: 0; color: var(--bd-sun);
	text-decoration: underline; text-underline-offset: 4px;
}
.bd-btn--link:hover { color: var(--bd-haze); }
.bd-btn--small { font-size: 13.5px; padding: 11px 22px; }
.bd-btn--secondary.bd-btn--small { padding: 9.5px 20.5px; }
.bd-btn--block { display: flex; width: 100%; }
/* "Upcoming" (demo structure 2026-10-22): a hinted button without a link — dashed outline .32, muted text .68, label
   "… · upcoming", sizes as the buttons it stands in for (s 13px, m 13.5px, l 15px). The chip "Upcoming" next to an
   announced plugin: dashed outline .5, uppercase 11px, ink .82. */
.bd-upcoming { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; border: 1.5px dashed rgba(247,248,249,.32); border-radius: var(--bd-r-pill); color: rgba(247,248,249,.68); font: 700 13.5px/1.2 var(--wp--preset--font-family--montserrat); padding: 8.5px 18.5px; white-space: nowrap; cursor: default; }
.bd-upcoming--s { font-size: 13px; padding: 8.5px 17.5px; }
.bd-upcoming--l { font-size: 15px; padding: 14.5px 28.5px; }
.bd-upcoming-chip { display: inline-flex; align-items: center; flex: none; border: 1.5px dashed rgba(247,248,249,.5); border-radius: var(--bd-r-pill); padding: 3px 10px; font: 700 11px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .06em; text-transform: uppercase; color: rgba(247,248,249,.82); white-space: nowrap; cursor: default; }
.bd-upcoming-chip--m { font-size: 12px; padding: 6px 14px; }
@media (max-width: 767px) { .bd-upcoming { white-space: normal; text-align: center; } }
/* Text link (page grammar): 700 14px Sunshade, 44px hit target from its own height (responsive §3: arrow links get
   padding, not margins, so the tap area stays 44px). */
.bd-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 14px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-sun); transition: color 180ms ease-out; }
.bd-textlink:hover { color: var(--bd-haze); }
/* Button row (responsive §3 "Buttons"): a pair side by side; on mobile stacked at full width, the primary on top.
   Single buttons in running text stay as wide as their content. Core buttons blocks (editor content) do the same. */
.bd-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
@media (max-width: 767px) {
	.bd-btn-row, .wp-block-buttons:has(> .wp-block-button + .wp-block-button) { flex-direction: column; align-items: stretch; }
	.bd-btn-row > .bd-btn, .wp-block-buttons:has(> .wp-block-button + .wp-block-button) > .wp-block-button { width: 100%; }
	.wp-block-buttons:has(> .wp-block-button + .wp-block-button) .wp-block-button__link { width: 100%; }
	.bd-btn-row > .bd-btn--primary, .wp-block-buttons > .wp-block-button:not(.is-style-secondary, .is-style-link) { order: -1; }
}

/* ---------- Chips and badges ---------- */
.bd-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--wp--preset--font-family--montserrat); border: 1.5px solid rgba(247,248,249,.2); border-radius: var(--bd-r-pill); padding: 6px 14px; color: var(--bd-haze); }
.bd-chip--platform { border-width: 1px; border-color: rgba(255,255,255,.28); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.bd-badge-new { display: inline-block; background: var(--bd-sun); color: var(--bd-ink); border-radius: var(--bd-r-sm); padding: 2.5px 7px; font: 700 10px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .05em; text-transform: uppercase; }
.bd-badge-needs { display: inline-block; border: 1px solid rgba(250,154,66,.7); color: var(--bd-sun); border-radius: var(--bd-r-pill); padding: 2.5px 10px; font: 600 10.5px/1.3 var(--wp--preset--font-family--montserrat); }
.bd-kicker { font: 600 11.5px/1.3 var(--wp--preset--font-family--montserrat); letter-spacing: .07em; text-transform: uppercase; color: var(--bd-sun); }
/* Swipe row (responsive §3 "Chips/Filter-Reihen", like the section bar): chip and filter rows never wrap — one line,
   swiped sideways, the right edge fades (36px); the end padding lets the last chip scroll out of the fade.
   .bd-swipe--bleed: for rows straight in the page column — the row runs out to the right screen edge (gutter). */
.bd-swipe {
	display: flex; flex-wrap: nowrap; gap: 8px; box-sizing: border-box; min-width: 0; padding-inline-end: 36px;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.bd-swipe::-webkit-scrollbar { display: none; }
.bd-swipe > * { flex: none; white-space: nowrap; scroll-snap-align: start; }
.bd-swipe--bleed { margin-inline-end: calc(-1 * var(--bd-gutter)); padding-inline-end: calc(var(--bd-gutter) + 16px); }

/* ---------- Card look: hairline + lift ---------- */
.bd-card,
.wp-block-group.is-style-card {
	background: var(--bd-card-bg);
	border: var(--bd-card-border);
	box-shadow: var(--bd-card-shadow);
	border-radius: var(--bd-r-card);
}
.bd-quiet { background: var(--bd-quiet); border-radius: var(--bd-r-card); }
/* Quiet info blocks on mobile (responsive §3): 20px padding. Card radius stays 24 on every tier. */
@media (max-width: 767px) { .bd-quiet { padding: 20px; } }
/* Hover lift (page grammar): −3px, 220ms, soft ease. */
.bd-lift { transition: transform var(--bd-hover) var(--bd-ease), border-color var(--bd-hover) ease-out, box-shadow var(--bd-hover) ease-out; }
.bd-lift:hover, .bd-lift:focus-visible { transform: translateY(-3px); }

/* Logo tile: white, 4px radius, logo contained (partner logos on the dark canvas). Size set by the component. */
.bd-logo-tile { display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: #fff; border-radius: var(--bd-r-sm); overflow: hidden; }
.bd-logo-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Section primitives ---------- */
.bd-section { padding-block: var(--bd-section); }
.bd-h2 { font: 700 var(--wp--preset--font-size--section)/var(--bd-lh-h2) var(--wp--preset--font-family--montserrat); letter-spacing: -.02em; margin: 0; color: #fff; }
.bd-h2--small { /* GLOBAL-CHANGES §3: every section H2 is 36/1.15 */ }
.bd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.bd-section-head__sub { margin: 0; font: 600 13.5px/1.5 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
/* Tablet and mobile (responsive §3): H2 and subline stacked, the subline 8px under the H2, left-aligned. */
@media (max-width: 1279px) {
	.bd-section-head { flex-direction: column; align-items: flex-start; row-gap: 8px; }
	.bd-section-head__sub { text-align: left; }
}

/* ---------- Header ---------- */
/* Sticky + compact (handoff 2026-10, header.js). The template-part wrapper sticks: .bd-header itself can't, it is the
   wrapper's only child. Backdrop and shadow sit on ::before and the wrapper is never transformed — a transform or
   backdrop-filter on an ancestor would trap the fixed mobile menu sheet inside the header box.
   Navigation (Navigation template 2a/3a, handoff 2026-10-20): blocks bdecent/nav-menu (buttons, panels, mobile sheet),
   bdecent/header-actions (Support, account, cart, Try a demo) and bdecent/section-bar (product, solution and Design
   Studio pages). The navigation is always visible (pinned, responsive spec §4.1): scrolled, the bar compacts to 60px
   and stays. While a product hero stage is pinned under it (.is-stage; the stage sticks at --bd-stage-top) only the
   section bar gives way: it slides up behind the bar and takes no clicks, the backdrop shrinks to the bar. Keyboard
   focus in the section bar brings it back (header.js). */
:root { --bd-stage-top: 60px; } /* compact header bar = sticky top of a pinned product stage (the admin bar comes on top) */
.wp-block-template-part:has(> .bd-header), .bd-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-block-template-part:has(> .bd-header), .admin-bar .bd-header-part { top: var(--wp-admin--admin-bar--height, 32px); }
html.has-modal-open { overflow: hidden; }
/* --bd-secbar: height of the section bar on pages that have one (e.g. for full-viewport heroes). */
html:has(.bd-secbar) { --bd-secbar: 49px; scroll-padding-top: 125px; } /* compact header 60 + section bar 49 + 16 */
.bd-header { --bd-hbar: var(--bd-header-h); position: relative; isolation: isolate; }
.bd-header > .bd-header__bar, .bd-header > .bd-secbar { margin-block: 0; } /* no flow gap between bar and section bar */
.bd-header.is-compact { --bd-hbar: 60px; }
.bd-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,1,52,0); box-shadow: none; transition: background-color 220ms ease-out, box-shadow 220ms ease-out; pointer-events: none; }
.bd-header.is-compact::before, .bd-header.has-panel::before { background: rgba(5,1,52,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.7); }
.bd-header.has-sheet::before { background: var(--bd-ink); box-shadow: none; }
.bd-header > .bd-secbar { transition: transform 320ms var(--bd-ease), opacity 220ms ease-out; }
.bd-header-part.is-stage { pointer-events: none; }
.bd-header-part.is-stage .bd-header__bar { pointer-events: auto; }
.bd-header-part.is-stage .bd-header::before { bottom: var(--bd-secbar-h, 0px); }
.bd-header-part.is-stage .bd-header > .bd-secbar { transform: translateY(-100%); opacity: 0; }
/* The hairline under the bar runs inside the gutter (reference), so it is a content-box background, not a border.
   The bar is the containing block of the mega panels (between the gutters, top edge on its bottom line). */
.bd-header__bar { --bd-bar-line: rgba(255,255,255,.12); position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: var(--bd-header-h); background: linear-gradient(var(--bd-bar-line), var(--bd-bar-line)) bottom / 100% 1px no-repeat content-box; transition: height 220ms ease-out, --bd-bar-line 220ms ease-out; }
.bd-header.is-compact .bd-header__bar { height: 60px; --bd-bar-line: transparent; }
.bd-header__left { display: flex; align-items: center; gap: 40px; min-width: 0; }
.bd-logo { display: block; width: 55px; height: 30px; color: var(--bd-haze); flex: none; }
.bd-logo svg { display: block; width: 100%; height: 100%; }
@media (max-width: 1279px) { .bd-header__left { gap: 24px; } }
/* Mobile and tablet (3a; < 1180, while the six main items don't fit in one row — responsive spec §4.1): 60px bar,
   logo left (48px hit area), then account, cart and the menu button, 48px each without gaps (all three in nav-menu;
   header-actions is hidden, Support and Demo sit at the bottom of the menu sheet). */
@media (max-width: 1179px) {
	:root { --bd-header-h: 60px; }
	html:has(.bd-secbar) { --bd-secbar: 47px; }
	.bd-header { --bd-hbar: 60px; }
	.bd-header__bar { height: 60px; gap: 0; }
	.bd-header__left { display: contents; }
	.bd-header__bar .bd-logo { margin: 0 auto 0 -8px; padding: 9px 8px; box-sizing: content-box; }
}

/* ---------- Footer ---------- */
.bd-footer { background: var(--wp--preset--color--ink-deep); border-top: 1px solid rgba(247,248,249,.14); padding-block: 60px 34px; color: rgba(255,255,255,.75); }
.bd-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.14); }
.bd-footer__brand img { height: 38px; width: auto; display: block; }
.bd-footer__tagline { font: 600 13.5px/1.6 var(--wp--preset--font-family--montserrat); color: rgba(255,255,255,.75); margin: 16px 0 0; max-width: 280px; }
.bd-footer__title { font: 700 13.5px/1.2 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); margin: 0 0 14px; }
.bd-footer .wp-block-navigation { font: 600 13.5px/1.2 var(--wp--preset--font-family--montserrat); }
.bd-footer .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 9px; }
.bd-footer .wp-block-navigation-item__content { color: rgba(255,255,255,.75); padding-block: 2px; }
.bd-footer .wp-block-navigation-item__content:hover { color: #fff; }
.bd-footer__bottom { display: flex; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font: 600 13px/1.5 var(--wp--preset--font-family--montserrat); color: rgba(255,255,255,.75); }
.bd-footer__bottom p { margin: 0; color: inherit; font: inherit; }
/* Tablet (responsive §4.11): the logo column at full width on top, the three link columns below. */
@media (max-width: 1279px) {
	.bd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
	.bd-footer__brand { grid-column: 1 / -1; }
}
/* Mobile: logo on top, then Products | Support in two columns with Legal right under Products (Support spans both
   rows); the copyright row stacked, left-aligned. */
@media (max-width: 767px) {
	.bd-footer { padding-block: 44px 28px; }
	.bd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand brand" "products support" "legal support"; gap: 28px 20px; }
	.bd-footer__brand { grid-area: brand; }
	.bd-footer__col--products { grid-area: products; }
	.bd-footer__col--support { grid-area: support; }
	.bd-footer__col--legal { grid-area: legal; }
	.bd-footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Generic page content (non-plugin templates) ---------- */
.bd-main { min-height: 50vh; }
.bd-page-head { padding-block: var(--wp--preset--spacing--section-first) 24px; }
.bd-prose { max-width: 720px; }
.bd-prose :where(p, li) { font-size: var(--wp--preset--font-size--body); line-height: 1.62; }

/* Tap targets on tablet and mobile (responsive §3, §6): buttons keep their size but are at least 44px high. */
@media (max-width: 1279px) {
	.bd-btn { min-height: 44px; }
}

/* Reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* No automatic block gap inside the frame and on plugin pages: sections own their spacing (reference values). */
.bd-main--plugin .wp-block-post-content > *,
.bd-header .is-layout-flow > *, .bd-footer .is-layout-flow > *,
.wp-site-blocks > .wp-block-template-part { margin-block: 0; }
.bd-footer__grid > *, .bd-footer__bottom > * { margin-block: 0; }
/* Baseline for text inside blocks: no browser default margins (blocks set their own spacing). */
:where(.bd-main--plugin, .bd-header, .bd-footer) :where(p, h1, h2, h3, h4, ul, ol, figure) { margin: 0; }
/* Body text color for editor content (zero specificity, so block classes win). */
:where(.wp-block-post-content, .bd-prose) :where(p, li) { color: var(--bd-body); }
/* Footer: headings keep their gap (the flow reset above is more specific), link rows 9px apart as in the reference. */
.bd-footer .bd-footer__col > .bd-footer__title { margin: 0 0 14px; }
.bd-footer .wp-block-navigation, .bd-footer .wp-block-navigation .wp-block-navigation__container { gap: 9px; row-gap: 9px; }
.bd-footer .wp-block-navigation-item__content { padding: 0; line-height: 1.2; }
/* Tablet and mobile (responsive §6: tap targets ≥ 44px): every footer link is a 44px row; the rows replace the 9px
   gaps and the heading margin (the first link's text keeps about the desktop distance to the heading). */
@media (max-width: 1279px) {
	.bd-footer .wp-block-navigation, .bd-footer .wp-block-navigation .wp-block-navigation__container { gap: 0; row-gap: 0; }
	.bd-footer .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }
	.bd-footer .bd-footer__col > .bd-footer__title { margin: 0; }
}

/* ---------- Form controls on the dark canvas (WooCommerce product, cart, checkout, account; search) ---------- */
:where(input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], select, textarea) {
	box-sizing: border-box;
	background-color: rgba(247,248,249,.06);
	color: var(--bd-haze);
	border: 1.5px solid rgba(247,248,249,.24);
	border-radius: var(--bd-r-sm);
	padding: 10px 14px;
	font: 600 15px/1.4 var(--wp--preset--font-family--montserrat);
	min-height: 44px;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--bd-sun); box-shadow: 0 0 0 3px rgba(250,154,66,.25); }
:where(input, textarea)::placeholder { color: var(--bd-disabled); opacity: 1; }
select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f7f8f9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
/* The option list is drawn by the OS: give it an opaque dark background so the text stays readable. */
select option, select optgroup { background-color: #0d0845; color: var(--bd-haze); }

/* ---------- WooCommerce (section owned by the shop work; WooCommerce's own templates, e.g. the shop archive, keep a padded main) ---------- */
.wp-site-blocks > main:not(.bd-main), .wp-site-blocks > .woocommerce, .wp-site-blocks > div > main:not(.bd-main) { box-sizing: border-box; max-width: 1440px; margin-inline: auto; padding: 24px var(--bd-gutter) calc(76px * var(--bd-s)); }
/* Notices on any page (Template Commerce): success green, info violet, error pink — WooCommerce's block banners and
   classic notices. Views and product pages are styled by bdecent-core's shop blocks (product-purchase, shop-page). */
:root :is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-memberships-member-discount-message) {
	display: flex; align-items: center; gap: 14px; box-sizing: border-box; margin: 0 0 28px; padding: 14px 18px !important; list-style: none;
	border: 1px solid rgba(192,132,252,.55); border-radius: var(--bd-r-sm); background: rgba(163,0,190,.18); color: var(--bd-haze);
	font: 600 14px/1.5 var(--wp--preset--font-family--montserrat);
}
:root :is(.wc-block-components-notice-banner.is-success, .woocommerce-message) { border-color: rgba(40,167,68,.55); background: rgba(40,167,68,.16); }
:root :is(.wc-block-components-notice-banner.is-error, .woocommerce-error) { border-color: rgba(255,117,143,.6); background: rgba(219,10,96,.16); }
:root :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }
:root .woocommerce-error { flex-direction: column; align-items: flex-start; gap: 4px; }
:root .woocommerce-error li { margin: 0; }
:root .wc-block-components-notice-banner > svg { display: none; }
:root .wc-block-components-notice-banner.is-success > svg { display: block; width: 18px; height: 18px; padding: 0; background: none; fill: #5ed17a; }
:root .wc-block-components-notice-banner > .wc-block-components-notice-banner__content { flex: 1; }
:root :is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info, .woocommerce-error) a { color: var(--bd-sun) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
:root :is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info) .wc-forward { float: right; margin: 0 0 0 20px; padding: 0 !important; border: 0; background: none !important; opacity: 1; font: 700 13.5px/1.5 var(--wp--preset--font-family--montserrat); }
/* The notice link ("View cart", "Continue shopping"): WooCommerce's block notice CSS (loaded after this file) colours it
   #2f2f2f !important at .7 — unreadable on the dark banner. Sunshade at full opacity; below 1024px on its own line
   with a 44px tap target (responsive spec §6), the negative bottom margin keeps the banner's padding. */
:root .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward { color: var(--bd-sun) !important; opacity: 1; }
:root .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover { color: var(--bd-haze) !important; }
@media (max-width: 1023px) {
	:root :is(.wc-block-components-notice-banner > .wc-block-components-notice-banner__content, .woocommerce-message, .woocommerce-info) .wc-forward { float: none !important; display: flex !important; align-items: center; width: fit-content; min-height: 44px; margin: 2px 0 -10px !important; }
}
:root .woocommerce-notices-wrapper:empty { display: none; }
:root :is(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: none; } /* focused by script for screen readers, not interactive */

/* The hidden attribute always wins over component display rules (tabs, filters, badges toggle it from JS). */
[hidden] { display: none !important; }

/* Long-form content (stories, later posts): prose typography on the dark canvas. */
.bd-prose :where(h2) { font: 700 var(--wp--preset--font-size--subsection)/1.25 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); margin: 48px 0 16px; }
.bd-prose :where(h3) { font: 700 20px/1.3 var(--wp--preset--font-family--montserrat); color: var(--bd-haze); margin: 32px 0 12px; }
.bd-prose :where(p) { margin: 0 0 18px; }
.bd-prose :where(.wp-block-gallery, .wp-block-image) { margin: 32px 0; }
.bd-prose :where(.wp-block-gallery img, .wp-block-image img) { border-radius: var(--bd-r-sm); }
.bd-main--story .bd-prose .wp-block-post-content { max-width: 820px; }
.bd-main--story .bd-prose .wp-block-post-content > h2 { margin: 48px 0 14px; }
.bd-main--story .bd-prose .wp-block-post-content > h2:first-child { margin-top: 0; }
.bd-main--story .bd-prose .wp-block-post-content > p { margin: 0 0 18px; }
.bd-main--story .bd-prose .wp-block-post-content > .wp-block-gallery { margin: 32px 0; }
.bd-main--story .bd-story-head :where(p, h1, dl, dd, figure, blockquote) { margin-block-end: 0; }
.bd-main--story .bd-prose .wp-block-post-content, .bd-main--story .bd-prose .wp-block-post-content > * { margin-left: 0 !important; margin-right: 0 !important; }
.bd-main--story .bd-wrap.bd-prose { max-width: 1440px; }

/* Filter pill (partner countries, story filters): 44px hit target, orange when pressed. */
.bd-pill { cursor: pointer; font: 600 13px/1.2 var(--wp--preset--font-family--montserrat); border-radius: var(--bd-r-pill); min-height: 44px; padding: 0 18px; background: none; color: var(--bd-body); border: 1.5px solid rgba(247,248,249,.24); transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out; }
.bd-pill:hover { border-color: rgba(247,248,249,.5); color: var(--bd-haze); }
.bd-pill[aria-pressed="true"] { background: var(--bd-sun); color: var(--bd-ink); border-color: var(--bd-sun); }

/* Breadcrumb (partner profile, story detail). */
.bd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 600 13px/1.4 var(--wp--preset--font-family--montserrat); color: var(--bd-meta); }
.bd-crumbs a { color: var(--bd-body); }
/* Tap area 44px high (responsive spec §6) without changing the look: the link is 44px high and gives the extra height
   back with negative margins (−13px), so the row keeps its 18px line and the text its place. */
.bd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -13px; }
.bd-crumbs a:hover { color: var(--bd-sun); }

/* Stories archive (Template Stories): list section 20 / 96 below the hero. */
.bd-main--stories .bd-stories-wrap { padding-block: calc(20px * var(--bd-s)) calc(96px * var(--bd-s)); }
