/* =========================================================================
   BDEX theme
   Design tokens (colours, type scale, spacing, widths) live in theme.json.
   This file holds the block styles, header and footer behaviour, and the
   responsive rules. It loads on the front end and inside the editor.
   ========================================================================= */

/* Base -------------------------------------------------------------------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

::selection {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

/* Card titles that sit straight under a page's h1 are h2s, so headings run in
   order for screen readers, but they keep the lighter h3 look of the cards. */
h2.bdex-card-title {
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Header, main and footer sit flush; each section brings its own padding. */
body .wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* A page that ends in a full-width section runs straight into the footer. */
.wp-block-post-content:has(> .alignfull:last-child) {
	padding-bottom: 0 !important;
}

/* Links inside running text are underlined, so they are not told apart by
   colour alone. Standalone links use the Text link paragraph style. */
.wp-block-post-content :where(p, li, td, dd, figcaption, blockquote) a:where(:not(.wp-element-button)) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.wp-block-post-content :where(.is-style-text-link, .is-style-link-tile, .is-style-pills, .is-style-tags, .is-style-links, .is-style-badges, .is-style-jumps, .is-style-product-links, .wp-block-post-template) a {
	text-decoration: none;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font-size: 0.875rem;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 0 0 6px 0;
	text-decoration: none;
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* The frosted background sits on a pseudo-element: a backdrop-filter on the
   header itself would trap the mobile menu's fixed overlay inside the bar. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(244, 245, 246, 0.9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-header__bar > .wp-block-navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.site-header .site-header__actions {
	margin-left: auto;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--slate);
	white-space: nowrap;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--orange);
}

.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--charcoal);
	font-weight: 700;
}

.site-header__signin {
	margin: 0;
	font-size: 0.90625rem;
	font-weight: 600;
	white-space: nowrap;
}

.site-header__signin a {
	color: var(--wp--preset--color--charcoal);
}

.site-header__cta .wp-block-button__link {
	padding: 11px 19px;
	font-size: 0.90625rem;
	border-radius: 5px;
	white-space: nowrap;
}

/* Items meant only for the mobile menu (Sign in, Talk to an expert). */
.site-header .nav-mobile-only {
	display: none !important;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .nav-mobile-only {
	display: flex !important;
}

/* The menu collapses at 1000px rather than core's 600px. */
@media (max-width: 1000px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.site-header__bar > .wp-block-navigation {
		flex: 0 0 auto;
		order: 3;
	}

	.site-header__signin {
		display: none;
	}
}

@media (max-width: 620px) {
	.site-header .wp-block-buttons.site-header__cta {
		display: none;
	}
}

.site-header .wp-block-navigation__responsive-container-open {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	color: var(--wp--preset--color--charcoal);
}

.site-header .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.site-header .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 19px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
	padding: 20px clamp(1.25rem, 4.5vw, 2.5rem) 28px;
}

.site-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
	align-items: stretch;
}

.site-header .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	align-items: stretch;
}

.site-header .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid #edeef0;
}

.site-header .is-menu-open .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 15px 0 !important;
	font-size: 1rem;
	color: var(--wp--preset--color--charcoal);
}

.site-header .is-menu-open .nav-cta {
	border-bottom: 0;
	margin-top: 10px;
}

.site-header .is-menu-open .nav-cta > .wp-block-navigation-item__content {
	padding: 15px !important;
	text-align: center;
	font-weight: 700;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--orange);
	border-radius: 6px;
}

/* Dropdown menus ------------------------------------------------------------
   The header menu is the core Navigation block. A submenu opens on hover, or
   from the keyboard with its arrow button. The class on a top-level submenu
   picks its panel: "nav-mega" sets its child submenus side by side as titled
   columns (add "nav-group--aside" to one for a dividing rule), "nav-grid"
   puts its links in two columns, and any other submenu is a single list. A
   link with the class "nav-menu-footer" becomes the panel's footer bar. */

.site-header {
	/* From a top-level menu item's bottom edge to the header's bottom edge. */
	--bdex-nav-drop: 27px;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .current-menu-item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-1 * var(--bdex-nav-drop));
	height: 2px;
	background: var(--wp--preset--color--blue);
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	box-sizing: border-box;
	top: calc(100% + var(--bdex-nav-drop) + 6px);
	left: -20px;
	width: 340px;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 24px 50px -24px rgba(65, 65, 67, 0.35);
}

/* An invisible bridge over the gap keeps the panel open on the way down. */
.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: calc(var(--bdex-nav-drop) + 8px);
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 11px 14px;
	border-radius: 8px;
	white-space: normal;
	color: var(--wp--preset--color--charcoal);
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--charcoal);
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	display: block;
	font-size: 0.90625rem;
	font-weight: 700;
	line-height: 1.35;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__description {
	display: block;
	margin-top: 2px;
	font-size: 0.78125rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wp--preset--color--slate);
}

/* Mega panel: child submenus become columns with a small title. */
.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .nav-mega > .wp-block-navigation__submenu-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 8px;
	left: -140px;
	width: 720px;
	padding: 18px 16px 0;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mega .nav-group {
	display: block;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mega .nav-group > .wp-block-navigation-item__content {
	padding: 0 12px 8px;
	background: none;
	pointer-events: none;
}

.site-header .wp-block-navigation .nav-group > .wp-block-navigation-item__content .wp-block-navigation-item__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gray);
}

.site-header .wp-block-navigation .nav-group > .wp-block-navigation-submenu__toggle {
	display: none;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mega .nav-group > .wp-block-navigation__submenu-container {
	position: static;
	visibility: inherit;
	opacity: 1;
	width: auto;
	height: auto;
	min-width: 0;
	overflow: visible;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.site-header .wp-block-navigation .nav-mega .nav-group > .wp-block-navigation__submenu-container::before {
	display: none;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-mega .nav-group--aside {
	padding-left: 8px;
	border-left: 1px solid #edeef0;
}

/* Two-column panel. */
.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .nav-grid > .wp-block-navigation__submenu-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px;
	left: -120px;
	width: 560px;
	padding: 12px 12px 0;
}

/* Footer bar across the bottom of a panel. */
.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-menu-footer {
	display: block;
	grid-column: 1 / -1;
	margin: 12px -16px 0;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-grid .nav-menu-footer {
	margin: 10px -12px 0;
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-menu-footer > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 14px 26px;
	border-top: 1px solid var(--wp--preset--color--line);
	border-radius: 0 0 12px 12px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--blue);
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-menu-footer > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--orange);
}

.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-menu-footer > .wp-block-navigation-item__content::after {
	content: "\2192";
	font-weight: 700;
}

.site-header .wp-block-navigation .nav-menu-footer .wp-block-navigation-item__label {
	font-size: 0.84375rem;
}

/* Mobile menu: each group opens and closes with its own +/- button, added
   by assets/js/menu.js (core's arrow button stays hidden there). */
.site-header .bdex-subtoggle {
	display: none;
}

.site-header .wp-block-navigation .is-menu-open .wp-block-navigation__container > .has-child {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.site-header .wp-block-navigation .is-menu-open .bdex-subtoggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 -10px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--blue);
	cursor: pointer;
}

.site-header .wp-block-navigation .is-menu-open .bdex-subtoggle::before {
	content: "+";
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1;
}

.site-header .wp-block-navigation .is-menu-open .bdex-subtoggle[aria-expanded="true"]::before {
	content: "\2212";
}

.site-header .wp-block-navigation .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	grid-column: 1 / -1;
	gap: 0;
	min-width: 0;
	padding: 0 0 12px;
}

.site-header .wp-block-navigation.has-mobile-groups .is-menu-open .wp-block-navigation__container > .has-child:not(.is-open) > .wp-block-navigation__submenu-container {
	display: none;
}

.site-header .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	border-bottom: 0;
}

.site-header .wp-block-navigation .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 0 10px 12px !important;
	border-left: 2px solid var(--wp--preset--color--line);
	font-size: 0.9375rem;
	font-weight: 600;
	white-space: normal;
	color: var(--wp--preset--color--slate);
}

.site-header .wp-block-navigation .is-menu-open .wp-block-navigation-item__description,
.site-header .wp-block-navigation .is-menu-open .nav-group > .wp-block-navigation-item__content {
	display: none;
}

.site-header .wp-block-navigation .is-menu-open .nav-group > .wp-block-navigation__submenu-container {
	display: flex;
	gap: 0;
	min-width: 0;
	padding: 0;
}

/* Footer ------------------------------------------------------------------ */

.site-footer .wp-block-group.has-charcoal-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--mist);
}

.site-footer .wp-block-group.has-charcoal-background-color a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--white);
}

.site-footer .is-style-label {
	color: var(--wp--preset--color--silver);
}

/* The logo (patterns/footer-logo.php) is shorter than a line of text, so as
   an inline image it would sit at the foot of a taller line. */
.site-footer .site-footer__logo img {
	display: block;
}

/* Brand column a little wider than the four link columns. */
.site-footer .site-footer__columns {
	grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.site-footer .site-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.site-footer .site-footer__columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

.site-footer .site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .site-footer__legal-links > li {
	margin: 0;
}

.site-footer .wp-block-group.has-charcoal-background-color .site-footer__legal a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--silver);
}

/* Group styles ---------------------------------------------------------- */

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-muted,
.wp-block-group.is-style-card-bullet {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

.wp-block-group.is-style-card {
	background-color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-card-muted,
.wp-block-group.is-style-card-bullet {
	background-color: var(--wp--preset--color--surface);
}

.wp-block-group.is-style-card-bullet {
	padding-left: calc(clamp(1.25rem, 2.2vw, 1.75rem) + 21px);
}

/* The dot sits beside the card's first line, whatever its padding. */
.wp-block-group.is-style-card-bullet > :first-child {
	position: relative;
}

.wp-block-group.is-style-card-bullet > :first-child::before {
	content: "";
	position: absolute;
	left: -21px;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
}

/* A group with the class bdex-card-foot sits at the bottom of its card, so
   footers line up across a row of cards of different lengths. */
.wp-block-group:has(> .bdex-card-foot) {
	display: flex;
	flex-direction: column;
}

.wp-block-group > .bdex-card-foot {
	margin-top: auto !important;
}

/* A card that is the only block in a column fills the column's height, so
   cards side by side line up at the bottom. */
.wp-block-column > .wp-block-group:only-child:is(.is-style-card, .is-style-card-muted, .is-style-card-elevated) {
	height: 100%;
}

.wp-block-group.is-style-card-elevated {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: clamp(1.25rem, 2.6vw, 2.125rem);
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-group.is-style-panel-dark {
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--mist);
	border-radius: 12px;
	padding: clamp(1.125rem, 2.4vw, 1.75rem);
}

.wp-block-group.is-style-panel-dark :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-panel-dark .is-style-label {
	color: var(--wp--preset--color--silver);
}

/* Tiles: a grid whose cells are separated by hairlines. */
.wp-block-group.is-style-tiles,
.wp-block-group.is-style-tiles-dark {
	gap: 1px !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--wp--preset--color--line);
}

.wp-block-group.is-style-tiles > *,
.wp-block-group.is-style-tiles-dark > * {
	margin: 0 !important;
	padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.1vw, 1.625rem);
	background-color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-tiles-dark {
	border-color: var(--wp--preset--color--line-dark);
	background-color: var(--wp--preset--color--line-dark);
}

.wp-block-group.is-style-tiles-dark > * {
	background-color: var(--wp--preset--color--charcoal-light);
	color: var(--wp--preset--color--mist);
}

.wp-block-group.is-style-tiles-dark :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-topline {
	border-top: 2px solid var(--wp--preset--color--blue);
	padding-top: 1.25rem;
}

.wp-block-group.is-style-aside {
	border-left: 3px solid var(--wp--preset--color--orange);
	padding: 0.25rem 0 0.25rem 1.125rem;
}

/* Note: a gray box with a blue rule, for an example or aside inside a card. */
.wp-block-group.is-style-note {
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-left: 3px solid var(--wp--preset--color--blue);
	border-radius: 6px;
	background-color: var(--wp--preset--color--surface);
}

/* Linked card: the first link inside (usually the heading's) covers the
   whole card, so the card is one click target. */
.wp-block-group.is-style-card-link {
	position: relative;
	padding: 24px 26px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background-color: var(--wp--preset--color--white);
	transition: border-color 0.15s ease;
}

.wp-block-group.is-style-card-link:hover,
.wp-block-group.is-style-card-link:focus-within {
	border-color: var(--wp--preset--color--blue);
}

.wp-block-group.is-style-card-link :where(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.wp-block-group.is-style-card-link :where(h2, h3, h4) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Logo grid: logos centred in white cells separated by hairlines. */
.wp-block-group.is-style-logo-grid {
	gap: 1px !important;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background-color: var(--wp--preset--color--line);
}

.wp-block-group.is-style-logo-grid > * {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 88px;
	margin: 0 !important;
	padding: 18px 22px;
	background-color: var(--wp--preset--color--white);
}

.wp-block-group.is-style-logo-grid > .wp-block-image img {
	max-width: 78%;
	opacity: 0.65;
}

/* Timeline: rows joined by a vertical rule under each row's badge. */
.wp-block-group.is-style-timeline > * {
	position: relative;
	margin-block: 0 !important;
	padding-bottom: 1.375rem;
}

.wp-block-group.is-style-timeline > :last-child {
	padding-bottom: 0;
}

.wp-block-group.is-style-timeline > :not(:last-child)::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 32px;
	bottom: 0;
	width: 2px;
	background: var(--wp--preset--color--line);
}

/* Steps: each child is a step, joined by a downward arrow drawn in CSS so
   screen readers do not announce stray arrow characters. */
.wp-block-group.is-style-steps > * {
	position: relative;
	margin-block: 0 !important;
}

.wp-block-group.is-style-steps > * + * {
	margin-block-start: 2.375rem !important;
}

.wp-block-group.is-style-steps > * + *::before {
	content: "\2193";
	position: absolute;
	left: 50%;
	top: -1.875rem;
	transform: translateX(-50%);
	font-size: 1rem;
	line-height: 1;
	color: #b5b9bd;
}

/* Dark sections: headings and plain links switch to light colours. */
.wp-block-group.has-charcoal-background-color :where(h1, h2, h3, h4, h5, h6),
.wp-block-group.has-blue-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

.wp-block-group.has-charcoal-background-color a:where(:not(.wp-element-button)),
.wp-block-group.has-blue-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--white);
}

/* ...but a light card inside a dark section keeps dark headings and links. */
:is(.has-charcoal-background-color, .has-blue-background-color) .wp-block-group:is(.is-style-card, .is-style-card-muted, .is-style-card-elevated, .is-style-card-bullet, .has-white-background-color) :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--charcoal);
}

:is(.has-charcoal-background-color, .has-blue-background-color) .wp-block-group:is(.is-style-card, .is-style-card-muted, .is-style-card-elevated, .is-style-card-bullet, .has-white-background-color) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--blue);
}

/* Paragraph styles ------------------------------------------------------ */

p.is-style-eyebrow,
:is(p, h2, h3, h4).is-style-label,
p.is-style-live {
	font-weight: 700;
	text-transform: uppercase;
	font-stretch: 87.5%;
	line-height: 1.5;
}

p.is-style-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--blue);
}

:is(p, h2, h3, h4).is-style-label {
	font-size: 0.71875rem;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--gray);
}

p.is-style-label-ruled {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 0.71875rem;
	font-weight: 700;
	font-stretch: 87.5%;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-align: center;
	text-transform: uppercase;
	color: var(--wp--preset--color--gray);
}

p.is-style-label-ruled::before,
p.is-style-label-ruled::after {
	content: "";
	flex: 1 1 0;
	height: 1px;
	background: var(--wp--preset--color--line-strong);
}

p.is-style-stat {
	font-size: var(--wp--preset--font-size--stat);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--wp--preset--color--charcoal);
}

p.is-style-callout {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 3px solid var(--wp--preset--color--blue);
	border-radius: 6px;
	padding: 18px 20px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

p.is-style-badge {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border-radius: 4px;
	background-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

p.is-style-avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 3.25em;
	height: 3.25em;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

p.is-style-live {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.71875rem;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--blue);
}

p.is-style-live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: bdex-blink 1.6s ease-in-out infinite;
}

p.is-style-text-link {
	font-weight: 700;
}

p.is-style-link-tile {
	margin: 0;
	font-size: 0.90625rem;
	font-weight: 700;
}

p.is-style-link-tile a {
	display: block;
	box-sizing: border-box;
	height: 100%;
	padding: 15px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
}

p.is-style-link-tile a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

/* List styles ----------------------------------------------------------- */

ul.is-style-pills,
ul.is-style-tags,
ul.is-style-badges,
ul.is-style-chips,
ul.is-style-inline,
ul.is-style-links {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

ul.is-style-pills,
ul.is-style-tags,
ul.is-style-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.is-style-pills > li,
ul.is-style-tags > li,
ul.is-style-badges > li,
ul.is-style-chips > li {
	margin: 0;
	line-height: 1.3;
	border: 1px solid var(--wp--preset--color--line);
}

ul.is-style-pills > li {
	padding: 7px 14px;
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

ul.is-style-tags > li {
	padding: 7px 11px;
	border-radius: 5px;
	background: var(--wp--preset--color--surface);
	font-size: 0.84375rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
}

ul.is-style-badges > li {
	padding: 8px 13px;
	border-color: var(--wp--preset--color--line-strong);
	border-radius: 4px;
	background: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--blue);
}

ul.is-style-chips {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

ul.is-style-chips > li {
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

ul.is-style-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-stretch: 87.5%;
	color: var(--wp--preset--color--gray);
}

ul.is-style-inline > li {
	margin: 0;
	display: flex;
	align-items: center;
}

ul.is-style-inline > li + li::before {
	content: "";
	width: 1px;
	height: 11px;
	margin: 0 11px;
	background: #d3d6d9;
}

ul.is-style-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

ul.is-style-links > li {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

/* Jump links, product links and white pills: rows of rounded links or tags. */
ul.is-style-jumps,
ul.is-style-product-links,
ul.is-style-pills-white,
ul.is-style-features,
ul.is-style-divided {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

ul.is-style-jumps,
ul.is-style-product-links,
ul.is-style-pills-white {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.is-style-jumps > li,
ul.is-style-product-links > li,
ul.is-style-pills-white > li {
	margin: 0;
	line-height: 1.3;
}

ul.is-style-jumps a {
	display: inline-block;
	padding: 8px 15px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 18px;
	background: var(--wp--preset--color--white);
	font-size: 0.84375rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

ul.is-style-jumps a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

ul.is-style-product-links a {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid #cfe2f2;
	border-radius: 16px;
	background: #eef5fb;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

ul.is-style-product-links a:hover {
	border-color: var(--wp--preset--color--blue);
}

/* On a dark panel the same links turn dark. */
:is(.is-style-panel-dark, .has-charcoal-background-color) ul.is-style-product-links a {
	border-color: #626266;
	background: #4f4f52;
	color: var(--wp--preset--color--white);
}

:is(.is-style-panel-dark, .has-charcoal-background-color) ul.is-style-product-links a:hover {
	border-color: #8fc0e4;
}

ul.is-style-pills-white > li {
	padding: 7px 13px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
}

/* Feature list: a blue dot, a bold first line, then the detail. */
ul.is-style-features {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

ul.is-style-features > li {
	position: relative;
	margin: 0;
	padding-left: 21px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--wp--preset--color--slate);
}

ul.is-style-features > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
}

ul.is-style-features > li strong:first-child {
	display: block;
	margin-bottom: 3px;
	font-size: 0.96875rem;
	color: var(--wp--preset--color--charcoal);
}

/* Divided list: short bold lines separated by hairlines. */
ul.is-style-divided > li {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.90625rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wp--preset--color--charcoal);
}

ul.is-style-divided > li:first-child {
	padding-top: 0;
	border-top: 0;
}

/* Images ------------------------------------------------------------------ */

.wp-block-image.is-style-logo {
	margin: 0;
}

.wp-block-image.is-style-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 32px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.6;
}

.is-style-inverted img {
	filter: brightness(0) invert(1);
}

/* A row of logos beside its label (Logo strip, Logo box) keeps to the right
   of the label and wraps within its own space. It drops below the label
   only when less than 560px is left beside it. */
.is-layout-flex > .wp-block-group:has(> .wp-block-image.is-style-logo) {
	flex: 1 1 560px;
}

/* Buttons ----------------------------------------------------------------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
	border: 1px solid var(--wp--preset--color--line-strong);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
	border-color: var(--wp--preset--color--blue);
}

.wp-block-button.is-style-dark > .wp-block-button__link {
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-dark > .wp-block-button__link:hover,
.wp-block-button.is-style-dark > .wp-block-button__link:focus {
	background-color: #2c2c2e;
}

.wp-block-button.is-style-text > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--blue);
	padding-left: 4px;
	padding-right: 4px;
}

.wp-block-button.is-style-text > .wp-block-button__link:hover,
.wp-block-button.is-style-text > .wp-block-button__link:focus {
	background-color: transparent;
	color: var(--wp--preset--color--orange);
}

/* On phones, buttons in page content stack full width. */
@media (max-width: 620px) {
	.wp-block-post-content .wp-block-buttons > .wp-block-button {
		flex: 1 1 100%;
	}

	.wp-block-post-content .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* Columns ----------------------------------------------------------------- */

/* Two-column sections stack below 1100px, where side-by-side text gets
   too narrow, instead of core's 782px. */
@media (max-width: 1100px) {
	.wp-block-columns.is-style-split {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-style-split > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Responsive grids (classes added in inc/render-filters.php) ------------- */

@media (max-width: 1040px) {
	.bdex-cols-4,
	.bdex-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 760px) {
	.bdex-cols-2 {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

@media (max-width: 620px) {
	.bdex-cols-4,
	.bdex-cols-3 {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Logo grids keep more logos to a row than other grids. */
@media (max-width: 1040px) {
	.wp-block-group.is-style-logo-grid.bdex-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.wp-block-group.is-style-logo-grid.bdex-cols-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	.wp-block-group.is-style-logo-grid:is(.bdex-cols-4, .bdex-cols-5) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Jumps to a section on a page stop below the sticky header. */
.wp-block-post-content [id] {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 76px);
}

/* "On this page" links beside a long page (Data Schema) stay in view below
   the sticky header; once the columns stack they scroll with the page. */
.bdex-toc {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px);
}

.bdex-toc a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.bdex-toc a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--blue);
}

@media (max-width: 1100px) {
	.bdex-toc {
		position: static;
	}
}

/* Tables ------------------------------------------------------------------ */

.wp-block-table.is-style-data {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
}

.wp-block-table.is-style-data table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	/* Core's columns let words break anywhere, which would let the table
	   squeeze a column until its heading splits mid-word. */
	word-break: normal;
}

.wp-block-table.is-style-data thead {
	border: 0;
}

.wp-block-table.is-style-data th {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	font-size: 0.71875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: left;
	text-transform: uppercase;
	font-stretch: 87.5%;
	color: var(--wp--preset--color--gray);
}

.wp-block-table.is-style-data td {
	padding: 18px;
	border: 0;
	border-bottom: 1px solid #edeef0;
	font-size: 0.90625rem;
	line-height: 1.5;
	vertical-align: top;
}

.wp-block-table.is-style-data tr:last-child td {
	border-bottom: 0;
}

/* Row labels stay on one line; the other columns wrap instead. */
.wp-block-table.is-style-data td:first-child {
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-table.is-style-data tbody tr:hover {
	background: #fafbfb;
}

/* Field names, such as the columns of a data feed. */
.wp-block-table.is-style-data td code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.84375rem;
	font-weight: 600;
	color: var(--wp--preset--color--blue);
}

/* A column aligned right in the editor (figures) keeps that in the header. */
.wp-block-table.is-style-data :is(th, td).has-text-align-right {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* A data table inside a card with a title bar: the card draws the frame. */
.wp-block-group.is-style-card:has(> .wp-block-table.is-style-data) {
	overflow: hidden;
}

.wp-block-group.is-style-card > .wp-block-table.is-style-data {
	border: 0;
	border-radius: 0;
}

/* On phones such a table shows each row as a short stack, field name first,
   instead of a narrow table to scroll sideways. Its header row stays for
   screen readers. */
@media (max-width: 760px) {
	.wp-block-group.is-style-card > .wp-block-table.is-style-data table {
		min-width: 0;
	}

	.wp-block-group.is-style-card > .wp-block-table.is-style-data thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.wp-block-group.is-style-card > .wp-block-table.is-style-data :is(tbody, tr, td) {
		display: block;
	}

	.wp-block-group.is-style-card > .wp-block-table.is-style-data tr {
		padding: 12px 18px;
		border-bottom: 1px solid #edeef0;
	}

	.wp-block-group.is-style-card > .wp-block-table.is-style-data tr:last-child {
		border-bottom: 0;
	}

	.wp-block-group.is-style-card > .wp-block-table.is-style-data td {
		padding: 2px 0;
		border: 0;
		text-align: left;
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

.wp-block-table.is-style-key-value {
	margin: 0;
}

.wp-block-table.is-style-key-value table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.is-style-key-value td {
	padding: 5px 0;
	border: 0;
	font-size: 0.78125rem;
	color: var(--wp--preset--color--silver);
}

.wp-block-table.is-style-key-value td:last-child {
	text-align: right;
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.wp-block-table.is-style-key-value tr:last-child td {
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line-dark);
}

.wp-block-table.is-style-key-value tr:last-child td:last-child {
	font-weight: 700;
	color: var(--wp--preset--color--yellow);
}

/* Rows: labels and figures on rows split by hairlines, for a light card
   (Key / value is the dark panel's version). */
.wp-block-table.is-style-rows {
	margin: 0;
}

.wp-block-table.is-style-rows table {
	width: 100%;
	border-collapse: collapse;
	word-break: normal;
}

.wp-block-table.is-style-rows td {
	padding: 9px 0;
	border: 0;
	border-top: 1px solid #edeef0;
	font-size: 0.90625rem;
	font-weight: 600;
	line-height: 1.45;
	vertical-align: baseline;
}

.wp-block-table.is-style-rows td:last-child {
	padding-left: 16px;
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--charcoal);
}

/* FAQ ------------------------------------------------------------------- */

.wp-block-details.is-style-faq {
	margin-block: 0 !important;
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-details.is-style-faq:first-child,
:not(.wp-block-details.is-style-faq) + .wp-block-details.is-style-faq {
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-details.is-style-faq > summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	list-style: none;
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-details.is-style-faq > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq > summary::after {
	content: "+";
	flex: none;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--blue);
}

.wp-block-details.is-style-faq[open] > summary::after {
	content: "\2212";
}

.wp-block-details.is-style-faq > summary:hover {
	color: var(--wp--preset--color--blue);
}

.wp-block-details.is-style-faq > :not(summary) {
	max-width: 680px;
	margin-top: 12px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* Code ------------------------------------------------------------------ */

/* Code inside a sentence uses the same typeface as code blocks. */
:where(p, li) > code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
}

.wp-block-code.is-style-on-dark {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e4e6e8;
	white-space: pre-wrap;
}

/* Signal connector block ---------------------------------------------- */

.wp-block-bdex-signal {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 196px;
}

.wp-block-bdex-signal__line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: linear-gradient(90deg, var(--wp--preset--color--line), var(--wp--preset--color--blue));
}

.wp-block-bdex-signal__dot {
	position: absolute;
	top: calc(50% - 3px);
	left: 2%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	animation: bdex-flow 2.4s linear infinite;
}

.wp-block-bdex-signal__dot.is-alt {
	background: var(--wp--preset--color--brand-orange);
	animation-delay: 1.2s;
}

.wp-block-bdex-signal__ring {
	position: absolute;
	width: 42px;
	height: 42px;
	border: 1px solid var(--wp--preset--color--blue);
	border-radius: 50%;
	animation: bdex-ring 2.6s ease-out infinite;
}

.wp-block-bdex-signal__core {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	background: var(--wp--preset--color--blue);
	box-shadow: 0 0 0 6px rgba(24, 115, 184, 0.1);
}

.wp-block-bdex-signal__core i {
	display: block;
	width: 20px;
	height: 3px;
	border-radius: 1px;
	background: var(--wp--preset--color--white);
}

/* Identity resolution diagram: identifiers -> connector -> resolved panel.
   When its card is too narrow for three columns it stacks, with the
   connector running downwards. */
.wp-block-group:has(> .bdex-resolve) {
	container-type: inline-size;
}

.bdex-resolve {
	align-items: center !important;
}

@container (max-width: 430px) {
	.bdex-resolve {
		flex-direction: column;
		gap: 0 !important;
	}

	.bdex-resolve > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.bdex-resolve .wp-block-bdex-signal {
		height: 72px;
	}

	.bdex-resolve .wp-block-bdex-signal__line {
		left: 50%;
		right: auto;
		top: 0;
		bottom: 0;
		width: 1px;
		height: auto;
		background: linear-gradient(180deg, var(--wp--preset--color--line), var(--wp--preset--color--blue));
	}

	.bdex-resolve .wp-block-bdex-signal__dot {
		left: calc(50% - 3px);
		animation-name: bdex-flow-down;
	}

	.bdex-resolve .wp-block-bdex-signal__core,
	.bdex-resolve .wp-block-bdex-signal__ring {
		transform: scale(0.8);
	}
}

@keyframes bdex-flow {
	0% { left: 2%; opacity: 0; }
	14% { opacity: 1; }
	86% { opacity: 1; }
	100% { left: 98%; opacity: 0; }
}

@keyframes bdex-flow-down {
	0% { top: 2%; opacity: 0; }
	14% { opacity: 1; }
	86% { opacity: 1; }
	100% { top: 98%; opacity: 0; }
}

@keyframes bdex-ring {
	0% { transform: scale(0.6); opacity: 0.45; }
	100% { transform: scale(2.1); opacity: 0; }
}

@keyframes bdex-blink {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

/* The ring's pulse when the visitor has asked for less motion (see Motion,
   below): it fades in and out without growing. */
@keyframes bdex-fade {
	0%, 100% { opacity: 0.1; }
	50% { opacity: 0.45; }
}

/* Meter block ------------------------------------------------------------ */

.wp-block-bdex-meter__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-bdex-meter__value {
	color: var(--wp--preset--color--gray);
	white-space: nowrap;
}

.wp-block-bdex-meter__track {
	position: relative;
	height: 12px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--wp--preset--color--line);
}

.wp-block-bdex-meter__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 6px;
}

/* On a dark panel. */
:is(.is-style-panel-dark, .has-charcoal-background-color) .wp-block-bdex-meter__head {
	color: var(--wp--preset--color--white);
}

:is(.is-style-panel-dark, .has-charcoal-background-color) .wp-block-bdex-meter__value {
	color: var(--wp--preset--color--silver);
}

:is(.is-style-panel-dark, .has-charcoal-background-color) .wp-block-bdex-meter__track {
	background: rgba(255, 255, 255, 0.12);
}

/* Blog -------------------------------------------------------------------- */

.wp-block-post-template.is-style-cards > li {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-post-template.is-style-cards > li:hover {
	border-color: var(--wp--preset--color--blue);
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-post-template.is-style-cards > li > .wp-block-post-featured-image {
	margin: 0;
}

.wp-block-post-template.is-style-cards .wp-block-post-title a {
	color: var(--wp--preset--color--charcoal);
}

.wp-block-post-template.is-style-cards .wp-block-post-title a:hover {
	color: var(--wp--preset--color--blue);
}

.wp-block-post-template.is-style-cards .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.bdex-thumb-placeholder {
	position: relative;
	margin: 0;
	background:
		radial-gradient(circle at 22% 28%, rgba(24, 115, 184, 0.14), transparent 55%),
		radial-gradient(circle at 80% 78%, rgba(243, 123, 33, 0.1), transparent 50%),
		linear-gradient(135deg, #e9f1f8, var(--wp--preset--color--surface));
}

.bdex-thumb-placeholder::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	border-radius: 5px;
	transform: translate(-50%, -50%);
	background: var(--wp--preset--color--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Crect x='2' y='4' width='20' height='4' rx='1'/%3E%3Crect x='2' y='10' width='20' height='4' rx='1'/%3E%3Crect x='2' y='16' width='20' height='4' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / 24px no-repeat;
	box-shadow: 0 0 0 7px rgba(24, 115, 184, 0.1);
}

.wp-block-post-terms.is-style-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-post-terms.is-style-pills .wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms.is-style-pills a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--slate);
}

.wp-block-post-terms.is-style-pills a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

.wp-block-post-terms.is-style-label {
	font-size: 0.71875rem;
	font-weight: 700;
	font-stretch: 87.5%;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.wp-block-post-terms.is-style-label a {
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

.wp-block-query-pagination {
	gap: 8px;
	font-weight: 600;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.wp-block-query-pagination .page-numbers.dots {
	border: 0;
	background: none;
}

.wp-block-query-pagination a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

/* Search, Latest Posts and Categories: used in the blog sidebar
   (parts/sidebar.html), and styled the same anywhere they are placed. */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: 4px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--blue);
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

.wp-block-search__button-inside .wp-block-search__input {
	min-width: 0;
	padding: 6px 10px;
	border: 0;
	background: transparent;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-search__button-inside .wp-block-search__input:focus-visible {
	outline: none;
}

.wp-block-search__button-inside .wp-block-search__button.has-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 4px;
}

.wp-block-search__button.has-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.wp-block-latest-posts.wp-block-latest-posts__list {
	margin: 0;
	padding: 0;
}

.wp-block-latest-posts__list > li {
	margin: 0;
	padding: 0.875rem 0;
	border-top: 1px solid var(--wp--preset--color--line-strong);
}

.wp-block-latest-posts__list > li:first-child {
	padding-top: 0.25rem;
	border-top: 0;
}

.wp-block-latest-posts__list > li:last-child {
	padding-bottom: 0;
}

.wp-block-latest-posts__post-title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--charcoal);
}

.wp-block-latest-posts__post-title:hover {
	color: var(--wp--preset--color--blue);
}

.wp-block-latest-posts__list .wp-block-latest-posts__post-date {
	margin-top: 0.25rem;
	font-size: 0.78125rem;
	font-weight: 600;
	color: var(--wp--preset--color--gray);
}

.wp-block-categories select {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background-color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--charcoal);
}

/* Article body: readable measure and rhythm for long posts. */
.bdex-article {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #4b4e51;
}

.bdex-article > :where(h1) {
	margin-top: 2em;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
	line-height: 1.15;
}

.bdex-article > :where(h2) {
	margin-top: 2.2em;
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
	line-height: 1.2;
}

.bdex-article > :where(h3) {
	margin-top: 1.8em;
	font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
}

.bdex-article > :where(h4, h5, h6) {
	margin-top: 1.6em;
}

.bdex-article :where(blockquote) {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.375rem;
	border-left: 3px solid var(--wp--preset--color--blue);
	font-size: 1.125rem;
	color: var(--wp--preset--color--charcoal);
}

.bdex-article :where(blockquote) p:last-child {
	margin-bottom: 0;
}

.bdex-article :where(img) {
	border-radius: 8px;
}

.bdex-article :where(iframe) {
	max-width: 100%;
}

.bdex-article > p > iframe[src*="youtube"],
.bdex-article > iframe[src*="youtube"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.bdex-article :where(ul, ol) {
	padding-left: 1.4em;
}

.bdex-article :where(li) + li {
	margin-top: 0.4em;
}

.bdex-article :where(table) {
	font-size: 0.9375rem;
}

.bdex-article :where(hr) {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 2.5rem 0;
}

/* Jumps from a table of contents (in a post, or the embedded privacy policy)
   stop below the sticky header instead of underneath it. */
.bdex-article :where([id]) {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5.5rem);
}

/* A post's featured image never stretches past its natural size. */
.bdex-post-image img {
	width: auto;
	max-width: 100%;
	margin-inline: auto;
}

/* Classic-editor alignment classes used by older posts. */
.bdex-article .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.bdex-article .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.bdex-article .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.bdex-article .wp-caption {
	max-width: 100%;
}

.bdex-article .wp-caption-text,
.bdex-article figcaption {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--gray);
}

@media (max-width: 620px) {
	.bdex-article .alignleft,
	.bdex-article .alignright {
		float: none;
		margin: 1em 0;
	}
}

/* Find your path (patterns/find-your-path.php, assets/js/path.js) -------- */

.bdex-path__prompt {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
}

.bdex-path__prompt strong {
	color: var(--wp--preset--color--blue);
}

.bdex-path__option {
	box-sizing: border-box;
	height: 100%;
	padding: 13px 14px;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background-color: var(--wp--preset--color--surface);
	transition: border-color 0.15s ease;
}

.bdex-path.is-ready .bdex-path__option {
	cursor: pointer;
}

.bdex-path.is-ready .bdex-path__option:hover {
	border-color: #9cc3e3;
}

.bdex-path:not(.is-ready) .bdex-path__option.is-default,
.bdex-path .bdex-path__option.is-selected {
	border-color: var(--wp--preset--color--blue);
	background-color: #eef5fb;
}

.bdex-path__label {
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--wp--preset--color--charcoal);
}

.bdex-path:not(.is-ready) .is-default > .bdex-path__label,
.bdex-path .is-selected > .bdex-path__label {
	color: var(--wp--preset--color--blue);
}

.bdex-path__sub {
	font-size: 0.78125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--slate);
}

/* What each answer adds to the recommendation is read by the script; it
   shows in the editor (as a dashed box) but not on the site. */
.bdex-path__data {
	display: none;
}

.bdex-path__data.block-editor-block-list__block {
	display: block;
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background-color: var(--wp--preset--color--white);
	font-size: 0.78125rem;
}

.bdex-path__data.block-editor-block-list__block::before {
	content: "Recommendation when chosen (hidden on the site)";
	display: block;
	margin-bottom: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gray);
}

.bdex-path__result .bdex-path__size {
	color: #e4e6e8;
}

/* Side by side, the recommendation fills its column: it starts level with
   the heading and ends level with the last question. Spare height goes above
   "How you'd get started", which keeps that and the buttons at the foot.
   Not in the editor, where the hidden answers show and the column is taller. */
@media (min-width: 1101px) {
	.bdex-path__result:not(.block-editor-block-list__block) {
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.bdex-path__result:not(.block-editor-block-list__block) > .bdex-path__picks {
		margin-bottom: auto;
	}
}

@media (max-width: 620px) {
	.bdex-path__options {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Forms (Forminator, set to its "None" design so these rules style it) ---- */

.forminator-ui.forminator-custom-form {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--charcoal);
}

.forminator-ui.forminator-custom-form[data-grid="open"] .forminator-row:not(:last-child),
.forminator-ui.forminator-custom-form[data-grid="open"] .forminator-col:not(:last-child) {
	margin-bottom: 18px;
}

@media (min-width: 783px) {
	.forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid="open"] .forminator-row:not(:last-child) {
		margin-bottom: 18px;
	}

	.forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid="open"] .forminator-col:not(:last-child) {
		margin-bottom: 0;
	}

	.forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid="open"] .forminator-row {
		margin-right: -7px;
		margin-left: -7px;
	}

	.forminator-ui.forminator-custom-form:not(.forminator-size--small)[data-grid="open"] .forminator-col {
		padding: 0 7px;
	}
}

.forminator-ui .forminator-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.84375rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
}

.forminator-ui .forminator-required {
	color: var(--wp--preset--color--orange);
}

.forminator-ui :is(.forminator-input, .forminator-textarea, select) {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 13px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background-color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--charcoal);
}

.forminator-ui .forminator-textarea {
	min-height: var(--forminator-textarea-min-height, 120px);
	resize: vertical;
}

.forminator-ui :is(.forminator-input, .forminator-textarea)::placeholder {
	color: #9ba0a4;
}

.forminator-ui :is(.forminator-input, .forminator-textarea, select):focus {
	border-color: var(--wp--preset--color--blue);
}

.forminator-ui :is(.forminator-input, .forminator-textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

/* Choice questions show their answers as chips: one can be picked from radio
   buttons, any number from checkboxes. */
.forminator-ui :is(.forminator-field-radio, .forminator-field-checkbox) .forminator-field {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* The question and its note (which Forminator wraps in a div) take a line
   each above the chips. */
.forminator-ui :is(.forminator-field-radio, .forminator-field-checkbox) .forminator-field > :is(.forminator-label, div) {
	flex: 1 1 100%;
	margin-bottom: 0;
}

.forminator-ui .forminator-radio,
.forminator-ui .forminator-field-checkbox .forminator-checkbox {
	position: relative;
	cursor: pointer;
}

.forminator-ui .forminator-radio input,
.forminator-ui .forminator-field-checkbox .forminator-checkbox input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.forminator-ui .forminator-radio-bullet,
.forminator-ui .forminator-field-checkbox .forminator-checkbox-box {
	display: none;
}

.forminator-ui .forminator-radio-label,
.forminator-ui .forminator-field-checkbox .forminator-checkbox-label {
	display: inline-block;
	padding: 9px 15px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 18px;
	background-color: var(--wp--preset--color--white);
	font-size: 0.84375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--slate);
}

.forminator-ui .forminator-radio:hover .forminator-radio-label,
.forminator-ui .forminator-field-checkbox .forminator-checkbox:hover .forminator-checkbox-label {
	border-color: var(--wp--preset--color--blue);
}

.forminator-ui .forminator-radio input:checked ~ .forminator-radio-label,
.forminator-ui .forminator-field-checkbox .forminator-checkbox input:checked ~ .forminator-checkbox-label {
	border-color: var(--wp--preset--color--blue);
	background-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.forminator-ui .forminator-radio input:focus-visible ~ .forminator-radio-label,
.forminator-ui .forminator-field-checkbox .forminator-checkbox input:focus-visible ~ .forminator-checkbox-label {
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

/* A field's note, such as "Choose all that apply." */
.forminator-ui .forminator-description {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--gray);
}

.forminator-ui .forminator-button-submit {
	box-sizing: border-box;
	width: 100%;
	margin-top: 4px;
	padding: 15px 20px;
	border: 0;
	border-radius: 6px;
	background-color: var(--wp--preset--color--orange);
	font: inherit;
	font-size: 0.96875rem;
	font-weight: 700;
	color: var(--wp--preset--color--white);
	cursor: pointer;
}

.forminator-ui .forminator-button-submit:hover,
.forminator-ui .forminator-button-submit:focus {
	background-color: var(--wp--preset--color--orange-dark);
}

.forminator-ui .forminator-button-submit:disabled {
	opacity: 0.7;
	cursor: progress;
}

.forminator-ui .forminator-error-message {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #b3261e;
}

.forminator-ui .forminator-has_error :is(.forminator-input, .forminator-textarea, select) {
	border-color: #b3261e;
}

.forminator-ui .forminator-hidden,
.forminator-ui .forminator-response-message[aria-hidden="true"],
.forminator-ui .forminator-response-message:empty {
	display: none;
}

.forminator-ui .forminator-response-message.forminator-error {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-left: 3px solid #b3261e;
	border-radius: 6px;
	background-color: #fdf1f0;
	font-size: 0.875rem;
}

/* After sending, the form is replaced by this message. */
.forminator-ui .forminator-response-message.forminator-success {
	padding: 30px 0;
	text-align: center;
}

.forminator-ui .forminator-response-message.forminator-success::before {
	content: "\2713";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 18px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--blue);
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--wp--preset--color--white);
}

.forminator-ui .forminator-response-message.forminator-success :is(h2, h3) {
	margin: 0 0 10px;
	font-size: var(--wp--preset--font-size--xx-large);
}

.forminator-ui .forminator-response-message.forminator-success p {
	max-width: 400px;
	margin: 0 auto;
	color: var(--wp--preset--color--slate);
}

.forminator-ui .forminator-response-message.forminator-success p + p {
	margin-top: 22px;
}

/* "Submit another request" reloads the page with a fresh form. */
.forminator-ui .forminator-response-message.forminator-success a {
	display: inline-block;
	padding: 12px 20px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	background-color: var(--wp--preset--color--white);
	font-size: 0.90625rem;
	font-weight: 700;
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.forminator-ui .forminator-response-message.forminator-success a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

/* Embedded policy --------------------------------------------------------- */

/* Termageddon writes the privacy policy into the page after it loads. Until
   then the page is short and the footer sits in view, so the arriving text
   pushed it down: a large layout shift on phones. Holding a screen's height
   while it loads keeps the footer out of view until the text is in. */
.policy_embed_div[aria-busy="true"] {
	min-height: 100vh;
}

/* Cookie banner ----------------------------------------------------------- */

/* The Cookie Notice plugin's bar, in the site's type and buttons. The
   plugin's own stylesheet sets a system font at 13px and pill buttons; its
   "button class" setting is wp-element-button, so Accept already looks like
   the site's main button and Decline only needs the outline look. */
#cookie-notice {
	border-top: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 -16px 40px -28px rgba(65, 65, 67, 0.45);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* The bar's text starts at the left edge of the site's wide column, where the
   header's logo starts: the root padding, or the margin either side of the
   1140px column once the window is wider than that. Padding percentages are of
   the full-width bar. The right side keeps at least 3.5rem for the close
   button, which sits at the bar's own right edge. */
#cookie-notice .cookie-notice-container {
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
	padding-right: max(3.5rem, calc((100% - var(--wp--style--global--wide-size)) / 2));
}

/* Only while it shows: the plugin hides the bar with display: none. The
   buttons go to the column's right edge, like the header's button. */
#cookie-notice:not(.cookie-notice-hidden) .cookie-notice-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

#cookie-notice .cn-text-container {
	flex: 0 1 46rem;
	margin: 0;
	text-align: left;
}

#cookie-notice .cn-text-container a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#cookie-notice .cn-buttons-container {
	display: flex;
	flex: 0 0 auto;
	gap: 0.625rem;
}

#cookie-notice .cn-button.wp-element-button {
	margin: 0;
	padding: 0.6875rem 1.375rem;
	font-size: var(--wp--preset--font-size--small);
	white-space: nowrap;
}

#cookie-notice #cn-refuse-cookie {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
	border-color: var(--wp--preset--color--line-strong);
}

#cookie-notice #cn-refuse-cookie:hover,
#cookie-notice #cn-refuse-cookie:focus {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
	border-color: var(--wp--preset--color--blue);
}

/* The close button declines, like Decline. The plugin draws it 15px square
   at half opacity, too small to tap and too faint to find, so it gets a
   36px target and the site's gray in full, with the cross centred in it. */
#cookie-notice .cn-close-icon {
	right: 0.5rem;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: -1.125rem;
	opacity: 1;
}

#cookie-notice .cn-close-icon::before,
#cookie-notice .cn-close-icon::after {
	top: calc(50% - 7.5px);
	left: calc(50% - 1px);
	background-color: var(--wp--preset--color--gray);
}

/* Phones: the text runs full width under the close button, and the two
   buttons share the row below it. */
@media (max-width: 620px) {
	#cookie-notice .cookie-notice-container {
		padding: 1rem var(--wp--style--root--padding-right) 1.125rem var(--wp--style--root--padding-left);
	}

	#cookie-notice .cn-text-container {
		flex-basis: 100%;
		padding-right: 2rem;
	}

	#cookie-notice .cn-buttons-container {
		flex: 1 1 100%;
	}

	#cookie-notice .cn-button.wp-element-button {
		flex: 1 1 0;
	}

	#cookie-notice .cn-close-icon {
		top: 0.5rem;
		margin-top: 0;
	}
}

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	/* The identity diagram on Home keeps a gentle pulse, but nothing travels
	   or grows: the ring around the hub and the LIVE dot fade in and out, and
	   the two dots rest on the line, one either side of the hub. */
	p.is-style-live::before {
		animation: bdex-blink 1.6s ease-in-out infinite !important;
	}

	.wp-block-bdex-signal__ring {
		scale: 1.5;
		animation: bdex-fade 2.6s ease-in-out infinite !important;
	}

	.wp-block-bdex-signal__dot {
		left: 84%;
	}

	.wp-block-bdex-signal__dot.is-alt {
		left: 8%;
	}

	/* Stacked diagram: the line runs downwards. */
	@container (max-width: 430px) {
		.bdex-resolve .wp-block-bdex-signal__dot {
			left: calc(50% - 3px);
			top: 84%;
		}

		.bdex-resolve .wp-block-bdex-signal__dot.is-alt {
			top: 8%;
		}
	}
}
