/**
 * BlackRaven — decoration on top of theme.json.
 * Values measured from the reference screenshots (2x retina, halved to CSS px).
 * Textures are pure CSS (no image assets).
 */

:root {
	/* 1px light dot every 10px, over page and panels. */
	--br-dots: radial-gradient(circle at 0.5px 0.5px, rgba(255, 255, 255, 0.045) 0.6px, transparent 1px) 0 0 / 10px 10px;
	/* Light spot centred at the top of the viewport. */
	--br-spot: radial-gradient(
		ellipse 600px 650px at 50% 0,
		#636468 0%,
		#5a5b5f 18.5%,
		#4e4f52 44%,
		#424346 63%,
		#343538 83%,
		#2a2b2e 115%,
		#27282b 135%
	);
	/* Panels are a translucent dark layer, so the spot shows through. */
	--br-panel: rgba(0, 0, 0, 0.21);
	--br-glow: rgba(255, 144, 0, 0.55);
}

html {
	overflow-y: scroll;
}

body {
	margin: 0;
	background: var(--br-dots), var(--br-spot), var(--wp--preset--color--base);
	background-attachment: fixed;
}

/* ---------- Layout ---------- */

.br-wrapper {
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size, 1040px);
	margin: 0 auto;
	padding: 13px 5px 40px;
}

.br-wrapper > *,
.br-wrapper > * + * {
	margin-block-start: 0;
}

.br-panel,
.wp-block-group.is-style-panel {
	position: relative;
	box-sizing: border-box;
	margin: 0 5px;
	padding: 20px;
	background: var(--br-panel);
}

/* 30px gap with a 10px diagonal hatch between header and content. */
.br-content {
	margin-top: 30px;
}

.br-content::before {
	content: "";
	position: absolute;
	top: -20px;
	right: 0;
	left: 0;
	height: 10px;
	background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 2.83px);
}

/* Plain 12px gap before the footer. */
.br-footer {
	margin-top: 12px;
}

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

.br-header-image {
	margin-bottom: 12px;
	text-align: center;
}

.br-header-image a {
	display: inline-block;
}

.br-header-image__img {
	display: block;
	max-width: 100%;
	height: auto;
}

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

.br-slider {
	margin-bottom: 12px;
}

.br-slider__viewport {
	position: relative;
}

/* Scroll-snap row: swipeable on its own, header-slider.js scrolls it on a timer. */
.br-slider__track {
	display: flex;
	aspect-ratio: var(--br-slider-ratio, 3 / 1);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.br-slider__track::-webkit-scrollbar {
	display: none;
}

.br-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.br-slider__slide a {
	display: block;
	height: 100%;
}

/* The track clips outside outlines: draw the ring inside. */
.br-slider__slide a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: -3px;
}

.br-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The header image is a wide logo strip: cropping would cut the name, so it fits whole instead. */
.br-slider__img--logo {
	object-fit: contain;
}

.br-slider__arrow,
.br-slider__pause,
.br-slider__dot {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.br-slider__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	font-size: 34px;
	line-height: 1;
	transform: translateY(-50%);
}

.br-slider__arrow span {
	margin-top: -4px;
}

.br-slider__arrow--prev {
	left: 10px;
}

.br-slider__arrow--next {
	right: 10px;
}

.br-slider__arrow:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-dark);
}

.br-slider__arrow:focus-visible,
.br-slider__pause:focus-visible,
.br-slider__dot:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #000;
}

/* Progress: fills over the 10 seconds a slide stays; its animation ending moves to the next slide. */
.br-slider__progress {
	height: 3px;
	margin-top: 6px;
	overflow: hidden;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.35);
}

.br-slider__bar {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
}

.br-slider__bar.is-timing {
	animation: br-slider-progress 10s linear forwards;
}

.br-slider.is-paused .br-slider__bar {
	animation-play-state: paused;
}

@keyframes br-slider-progress {
	to {
		transform: scaleX(1);
	}
}

.br-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}

.br-slider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 24px targets (WCAG 2.5.8) around smaller marks. */
.br-slider__dot,
.br-slider__pause {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.br-slider__dot::before {
	content: "";
	width: 10px;
	height: 10px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 50%;
}

.br-slider__dot:hover::before {
	border-color: var(--wp--preset--color--accent);
}

.br-slider__dot[aria-current="true"]::before {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
}

/* Pause icon (two bars); play triangle once stopped. */
.br-slider__pause::before {
	content: "";
	width: 8px;
	height: 10px;
	box-sizing: border-box;
	border-right: 3px solid currentColor;
	border-left: 3px solid currentColor;
}

.br-slider.is-stopped .br-slider__pause::before {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 6px solid transparent;
	border-right: 0;
	border-bottom: 6px solid transparent;
	border-left: 10px solid currentColor;
}

.br-slider__pause:hover {
	color: var(--wp--preset--color--accent);
}

@media (forced-colors: active) {
	.br-slider__arrow {
		border-color: ButtonText;
	}

	.br-slider__dot[aria-current="true"]::before {
		background: Highlight;
	}

	.br-slider__bar {
		background: Highlight;
	}
}

.br-menubar {
	box-sizing: border-box;
	min-height: 52px;
	padding: 4px 4px 5px;
	gap: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.45);
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.06);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.br-menu,
.br-menu .wp-block-navigation__container {
	gap: 0;
}

/* Classic menu rendered by blackraven/nav-menu: reset the list, flex row, hover dropdowns. */
.br-nav-menu .wp-block-navigation__container,
.br-nav-menu .wp-block-navigation__submenu-container {
	margin: 0;
	padding: 0;
	list-style: none;
}

.br-nav-menu .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
}

/* Same typography theme.json gives core/navigation. */
.br-nav-menu {
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
	text-transform: uppercase;
}

.br-nav-menu .wp-block-navigation__submenu-container {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 180px;
	visibility: hidden;
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.br-nav-menu .wp-block-navigation__submenu-container {
		transition: opacity 0.15s;
	}
}

.br-nav-menu .menu-item-has-children:hover > .wp-block-navigation__submenu-container,
.br-nav-menu .menu-item-has-children:focus-within > .wp-block-navigation__submenu-container {
	visibility: visible;
	opacity: 1;
}

/* Tab shadows: amber glow, dark rim, top highlight, gold fill (transparent until hover), drop shadow.
   Hover only changes the colours, so the list interpolates and the gold fades in over the gradient. */
.br-menu .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
	background: linear-gradient(180deg, #4f5153 0%, #46484a 45%, #393b3d 100%);
	box-shadow:
		inset 0 0 12px rgba(173, 112, 17, 0),
		inset 0 0 8px rgba(0, 0, 0, 0),
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 0 0 999px rgba(255, 235, 158, 0),
		0 1px 1px rgba(0, 0, 0, 0.9);
}

/* Hover (and keyboard focus): the production site's gold tab with dark text. */
.br-menu .wp-block-navigation__container > .wp-block-navigation-item:hover,
.br-menu .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-item__content:focus-visible) {
	box-shadow:
		inset 0 0 12px rgba(173, 112, 17, 0.8),
		inset 0 0 8px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 0 0 999px var(--wp--preset--color--accent),
		0 1px 1px rgba(0, 0, 0, 0.9);
}

.br-menu .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.br-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--accent-dark);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
	outline-color: var(--wp--preset--color--accent-dark);
}

/* Fade in on enter only, label rising into place (production: 300ms ease-in-out, fadeInY). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.br-menu .wp-block-navigation__container > .wp-block-navigation-item:hover {
		transition: box-shadow 0.3s ease-in-out;
	}

	.br-menu .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
		transition: color 0.3s ease-in-out;
		animation: br-menu-fade-in-y 0.3s both;
	}
}

@keyframes br-menu-fade-in-y {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.br-menu .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item {
	border-left: 1px solid rgba(0, 0, 0, 0.35);
}

.br-menu .wp-block-navigation__container > .wp-block-navigation-item:first-child {
	border-radius: 2px 0 0 2px;
}

.br-menu .wp-block-navigation__container > .wp-block-navigation-item:last-child {
	border-radius: 0 2px 2px 0;
}

/* White, not the contrast grey: 7:1 on the lightest part of the tab gradient (WCAG 1.4.6); 44px tall (2.5.5). */
.br-menu .wp-block-navigation-item__content {
	display: block;
	padding: 0 15px;
	color: #fff;
	line-height: 44px;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.br-menu .wp-block-navigation-item__content:hover,
.br-menu .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--accent-light);
}

/* Ring inside the tab: neighbouring tabs would cover an outer one (WCAG 2.4.13). */
.br-menu .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -4px;
}

/* Active tab: cream text with orange glow and a gold bar on top. */
.br-menu .current-menu-item > .wp-block-navigation-item__content,
.br-menu .current-menu-ancestor > .wp-block-navigation-item__content,
.br-menu .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--accent-light);
	text-shadow: 0 0 6px var(--br-glow), 0 0 1px rgba(255, 200, 120, 0.6);
}

.br-menu .wp-block-navigation__container > .current-menu-item::before,
.br-menu .wp-block-navigation__container > .current-menu-ancestor::before,
.br-menu .wp-block-navigation__container > .wp-block-navigation-item:has(> [aria-current="page"])::before {
	content: "";
	position: absolute;
	top: -3px;
	right: 0;
	left: 0;
	height: 2px;
	background: #fff2c1;
	box-shadow: 0 0 4px var(--br-glow), 0 1px 0 rgba(255, 235, 158, 0.35);
}

.br-menu .wp-block-navigation__submenu-container {
	border: 1px solid #000 !important;
	background: #2b2c2e !important;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.br-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	line-height: 32px;
}

.br-menu .wp-block-navigation__responsive-container.is-menu-open {
	background: #2b2c2e;
	color: var(--wp--preset--color--contrast);
}

/* Header widgets (right side of the menubar). */
.br-header-widgets {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding-right: 6px;
	color: var(--wp--preset--color--muted);
}

.br-header-widgets .br-widget__title {
	display: none;
}

/* Visually hidden but kept as the search input's label for screen readers (display: none would remove it). */
.br-header-widgets .wp-block-search__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.br-header-widgets ul {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.br-header-widgets .wp-block-search__input {
	/* 180, not 200: room for the 44px language switcher targets on one menubar row. */
	width: 180px;
}

/* Polylang language switcher: 7:1 text, 44px targets, dark dropdown so the accent focus ring shows. */
.br-header-widgets .pll-switcher {
	--pll-dropdown-background-color: var(--wp--preset--color--panel-dark);
	--pll-dropdown-text-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.br-header-widgets .pll-switcher a,
.br-header-widgets .pll-switcher .pll-submenu-toggle {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--contrast);
}

.br-header-widgets .pll-switcher li a {
	justify-content: flex-start;
	padding: 0 12px;
}

.br-header-widgets .pll-switcher a:hover,
.br-header-widgets .pll-switcher a:focus-visible {
	--pll-dropdown-text-color: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--accent-light);
}

.br-header-widgets .pll-switcher a:focus-visible,
.br-header-widgets .pll-switcher .pll-submenu-toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -2px;
}

.br-header-widgets .pll-switcher-inner .pll-submenu-toggle svg {
	width: 12px;
	height: 12px;
}

/* ---------- Form fields ---------- */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select {
	box-sizing: border-box;
	padding: 4px 8px;
	border: 1px solid rgba(0, 0, 0, 0.6);
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.06);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
}

/* ---------- Search form ---------- */

/*
 * Core Search block (header widget, search results, 404), styled like the menubar tabs.
 * WCAG 2.2 AAA: text ≥ 7:1, field edge ≥ 3:1 on the panels, 44px targets (2.5.5),
 * 2px focus ring at ≥ 3:1 (2.4.13), no fixed heights so text spacing can grow (1.4.12).
 */
.wp-block-search {
	--br-search-h: 44px;
	--br-field-border: #a0a3a6;
	margin: 0;
}

.wp-block-search .wp-block-search__label:not(.screen-reader-text) {
	display: block;
	margin: 0 0 8px;
	color: var(--wp--preset--color--accent-light);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
	line-height: 22px;
	text-transform: uppercase;
}

.wp-block-search .wp-block-search__inside-wrapper {
	gap: 6px;
	max-width: 560px;
	padding: 0;
	border: 0;
}

.wp-block-search .wp-block-search__input {
	min-width: 0;
	min-height: var(--br-search-h);
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--br-field-border);
	border-radius: 2px;
	background: var(--wp--preset--color--panel-dark);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
	line-height: 22px;
}

.wp-block-search .wp-block-search__input::placeholder {
	color: #b5b9bc;
	opacity: 1;
}

.wp-block-search .wp-block-search__button {
	box-sizing: border-box;
	flex-shrink: 0;
	min-width: var(--br-search-h);
	min-height: var(--br-search-h);
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.6);
	border-radius: 2px;
	background: linear-gradient(180deg, #46484a 0%, #3c3e40 45%, #2f3133 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 1px rgba(0, 0, 0, 0.9);
	color: var(--wp--preset--color--accent-light);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
	line-height: 22px;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
	text-transform: uppercase;
	cursor: pointer;
}

/* Same glow as the active menu tab. */
.wp-block-search .wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:focus-visible {
	background: linear-gradient(180deg, #4b4d4f 0%, #404244 45%, #333537 100%);
	color: #fff;
	text-shadow: 0 0 6px var(--br-glow), 0 0 1px rgba(255, 200, 120, 0.6);
}

.wp-block-search .wp-block-search__input:focus,
.wp-block-search .wp-block-search__button:focus-visible,
.br-consent-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.wp-block-search .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-search .wp-block-search__input,
	.wp-block-search .wp-block-search__button {
		transition: border-color 0.15s, color 0.15s, text-shadow 0.15s;
	}
}

/* High-contrast modes drop backgrounds and shadows: keep the button's edge visible. */
@media (forced-colors: active) {
	.wp-block-search .wp-block-search__button {
		border-color: ButtonText;
	}
}

/* ---------- Posts ---------- */

.br-content .wp-block-post-template,
.br-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.br-item {
	margin: 0;
}

.br-item > * {
	margin-block: 0;
}

.br-item + .br-item {
	margin-top: 44px;
}

/*
 * Post lists (home, archives, search): every post is its own panel, 12px apart like content and footer.
 * The outer content box goes transparent; titles and pagination get panels too.
 */
.br-content--list {
	padding: 0;
	background: none;
}

/* Full panel width, like header/footer (the constrained layout would cap children at the contentSize text width). */
.br-content--list > * {
	max-width: none !important;
	margin-inline: 0 !important;
}

.br-content--list > :not(.br-items),
.br-content--list .br-items .wp-block-post,
.br-content--list .br-pagination,
.br-content--list .wp-block-query-no-results {
	box-sizing: border-box;
	padding: 20px;
	background: var(--br-panel);
}

.br-content--list > :not(.br-items) + *,
.br-content--list .br-items .wp-block-post + .wp-block-post,
.br-content--list .br-pagination {
	margin-top: 12px !important;
}

.br-content--list > .br-page-title {
	margin-bottom: 0;
}

/* Single post: Previous / Next as buttons on one row. */
.br-postnav-row {
	margin-top: 30px !important;
	padding-top: 20px;
	gap: 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.br-postnav a {
	display: inline-block;
	max-width: 420px;
	overflow: hidden;
	padding: 0 10px;
	border-radius: 2px;
	background: rgba(255, 235, 158, 0.1);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 16px;
	line-height: 25px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.br-postnav a:hover,
.br-postnav a:focus-visible {
	background: rgba(255, 235, 158, 0.18);
	color: var(--wp--preset--color--accent-light);
}

/* Arrows drawn inside the button (core renders its own arrow outside the link). */
.post-navigation-link-previous.br-postnav a::before {
	content: "« ";
}

.post-navigation-link-next.br-postnav a::after {
	content: " »";
}

.br-item .wp-block-post-title {
	padding-top: 1px;
}

.br-item .wp-block-post-title,
.br-item .wp-block-post-title a,
.br-content h1 {
	color: var(--wp--preset--color--accent-light);
	text-shadow: 0 0 10px var(--br-glow);
}

.br-item .wp-block-post-title a:hover {
	color: #fff;
}

/* Product/gallery banner (featured image) between title and content. */
.br-item > .wp-block-post-featured-image {
	margin-block: 15px 22px;
}

/*
 * Global H1 spacing: exactly 15px below every H1. The next element's top margin is removed so the gap
 * doesn't grow (block gap, meta line, downloads…). List-page titles are panels: they keep the 12px panel gap.
 */
.wp-site-blocks h1:not(.br-page-title) {
	margin-bottom: 15px !important;
}

.wp-site-blocks h1:not(.br-page-title) + * {
	margin-top: 0 !important;
}

/* Post titles in lists are H2 (one H1 per page) but keep the H1 look. */
.br-items .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 44px;
	margin-bottom: 15px !important;
}

.br-items .wp-block-post-title + * {
	margin-top: 0 !important;
}

/* Visually hidden, still read by search engines and screen readers (home page H1). */
.br-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Yoast breadcrumbs: small uppercase line above the content, like the post meta. */
.br-breadcrumbs {
	margin: 0 0 15px;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--abel);
	font-size: var(--wp--preset--font-size--small);
	line-height: 18px;
	text-transform: uppercase;
}

/* Crumbs in a flex row: Yoast's leftover spaces collapse, the separator below sets the spacing. */
.br-breadcrumbs > span {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
}

/* Separator drawn in CSS (Yoast's own separator is disabled). Change it here. */
.br-breadcrumbs {
	--br-crumb-sep: "›";
}

.br-breadcrumbs > span > span + span::before {
	content: var(--br-crumb-sep);
	margin: 0 8px;
	color: var(--wp--preset--color--accent);
	opacity: 0.6;
	font-size: 1.2em;
	line-height: 1;
}

.br-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.br-breadcrumbs a:hover,
.br-breadcrumbs a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.br-breadcrumbs .breadcrumb_last {
	color: var(--wp--preset--color--contrast);
}

/* On list pages the breadcrumb is its own panel; no extra gap below it. */
.br-content--list > .br-breadcrumbs {
	margin-bottom: 0;
}

.br-meta {
	gap: 0 0.3em !important;
	margin: 0 0 13px !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 18px;
	text-transform: uppercase;
}

.br-meta > * {
	margin: 0 !important;
}

.br-meta a {
	color: var(--wp--preset--color--accent);
}

.br-meta .wp-block-post-date::after {
	content: ".";
}

.br-item__content > * {
	margin-block: 0 22px;
}

.br-item__content > *:last-child {
	margin-bottom: 0;
}

.br-item__content ul,
.br-item__content ol {
	padding-left: 28px;
}

/* Articles sit inside the post-template <ul>; keep top-level bullets. */
.br-item__content > ul {
	list-style-type: disc;
}

.br-item__content iframe {
	max-width: 100%;
}

.br-readmore {
	display: inline-block;
	margin-top: 22px !important;
	padding: 0 7px;
	border-radius: 2px;
	background: rgba(255, 235, 158, 0.1);
	color: var(--wp--preset--color--accent);
	font-size: 16px;
	line-height: 25px;
}

.br-readmore:hover {
	background: rgba(255, 235, 158, 0.18);
	color: var(--wp--preset--color--accent-light);
}

/* Pagination: 25px boxes, 5px apart, centred. */
.br-pagination {
	gap: 5px !important;
	margin-top: 22px !important;
}

.br-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 5px;
}

.br-pagination a,
.br-pagination .page-numbers {
	box-sizing: border-box;
	display: inline-block;
	min-width: 25px;
	height: 25px;
	margin: 0 !important;
	padding: 0 7px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--accent);
	font-size: 16px;
	line-height: 25px;
	text-align: center;
}

.br-pagination a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--accent-light);
}

.br-pagination .page-numbers.current {
	background: var(--wp--preset--gradient--accent-glow);
	box-shadow: inset 0 0 6px rgba(173, 112, 17, 0.5);
	color: var(--wp--preset--color--accent-dark);
}

.br-pagination .page-numbers.dots {
	background: none;
}

.br-page-title {
	margin: 0 0 22px;
	font-size: var(--wp--preset--font-size--x-large);
}

mark {
	background: none;
	color: var(--wp--preset--color--accent);
	text-shadow: 0 0 6px rgba(255, 144, 0, 0.5);
}

/* ---------- Gallery / Product grid ---------- */

/* Core image lightbox ("Galleria (collegata)" and core galleries): 44px controls with a visible ring (WCAG 2.5.5, 2.4.13). */
.wp-lightbox-container button.lightbox-trigger,
.wp-lightbox-overlay .wp-lightbox-close-button {
	min-width: 44px;
	min-height: 44px;
}

.wp-lightbox-container button.lightbox-trigger:focus-visible,
.wp-lightbox-overlay .wp-lightbox-close-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #000;
}

/* Keep every thumbnail the same size; core stretches an incomplete last row. */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
}

.br-content .wp-block-heading + .wp-block-query {
	margin-top: 15px;
}

.br-card {
	position: relative;
	padding: 10px;
	background: rgba(0, 0, 0, 0.15);
}

/* The title link covers the whole card: one big target (WCAG 2.5.5), the image link stays out of the tab order. */
.br-product-card__title a::after,
.br-gallery-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.br-product-card__title a:focus-visible,
.br-gallery-card__title a:focus-visible {
	outline: none;
}

.br-card:has(.br-product-card__title a:focus-visible),
.br-card:has(.br-gallery-card__title a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.br-card:has(.br-product-card__title a:hover) .br-product-card__title a,
.br-card:has(.br-gallery-card__title a:hover) .br-gallery-card__title a {
	color: #fff;
}

.br-card .wp-block-post-title {
	margin-top: 10px;
}

/* ---------- Download ---------- */

.br-download {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-block: 10px;
}

.br-download-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 44px tall: AAA target size (WCAG 2.5.5). */
.br-download__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 2px;
	background: var(--wp--preset--gradient--accent-glow);
	box-shadow: inset 0 0 6px rgba(173, 112, 17, 0.5);
	color: var(--wp--preset--color--accent-dark);
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
}

.br-download__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.br-download__button:hover,
.br-download__button:focus-visible {
	color: #000;
	box-shadow: inset 0 0 6px rgba(173, 112, 17, 0.5), 0 0 6px var(--br-glow);
}

.br-download__button.is-disabled {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	color: var(--wp--preset--color--contrast);
}

.br-download__title {
	color: var(--wp--preset--color--contrast);
}

/* Contrast grey, not muted: small text needs 7:1 (WCAG 1.4.6); muted gave about 3:1. */
.br-download__meta {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
}

/* ---------- Small thumbnails in text (Storia) ---------- */

/* Row of 200×150 thumbnails, centred (a core Gallery block with class br-thumb-row). */
.wp-block-gallery.br-thumb-row {
	justify-content: center;
}

.wp-block-gallery.br-thumb-row.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 200px;
	width: 200px;
}

.wp-block-gallery.br-thumb-row img,
.wp-block-image.br-thumb img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Thumbnail floated beside the text (core Image block, align left/right, class br-thumb). */
.wp-block-image.br-thumb {
	width: 200px;
	margin-top: 5px;
}

/* Rows, videos and headings start below any floated thumbnail. */
.wp-block-post-content > .wp-block-gallery,
.wp-block-post-content > .wp-block-embed,
.wp-block-post-content > .br-youtube,
.wp-block-post-content > .wp-block-heading {
	clear: both;
}

/* ---------- Product list ---------- */

.br-product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Outside post content (404 template): keep the layout's gap above the grid. */
.br-content > .br-product-list {
	margin-top: var(--wp--style--block-gap);
}

.br-product-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.25);
}

.br-product-card__image.is-empty {
	background:
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 2.83px),
		rgba(0, 0, 0, 0.25);
}

.br-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.br-product-card__title {
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--large);
}

.br-product-card__title a {
	color: var(--wp--preset--color--accent-light);
}

.br-product-card__title a:hover {
	color: #fff;
}

/* ---------- Gallery list (same cards as the product list, 4:3 images) ---------- */

.br-gallery-list__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.br-gallery-list__title {
	margin: 30px 0 15px;
}

.br-gallery-list > .br-gallery-list__title:first-child {
	margin-top: 0;
}

.br-gallery-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.25);
}

.br-gallery-card__image.is-empty {
	background:
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 2.83px),
		rgba(0, 0, 0, 0.25);
}

.br-gallery-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.br-gallery-card__title {
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--large);
}

.br-gallery-card__title a {
	color: var(--wp--preset--color--accent-light);
}

.br-gallery-card__title a:hover {
	color: #fff;
}

/* ---------- YouTube embed (thumbnail + play button, player on click) ---------- */

.br-youtube {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	margin-inline: 0;
	overflow: hidden;
	background: #000;
}

.br-youtube__link,
.br-youtube__player {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.br-youtube__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s;
}

.br-youtube__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 0;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.br-youtube__play-bg {
	fill: #f03;
	transition: fill 0.15s;
}

.br-youtube__link:hover .br-youtube__play-bg,
.br-youtube__link:focus-visible .br-youtube__play-bg {
	fill: #d00028;
}

.br-youtube__link:hover .br-youtube__image {
	opacity: 0.85;
}

/* The figure clips overflow, so the play link's ring is drawn inside it: accent ring plus a dark inner
   ring, visible over any thumbnail (WCAG 2.4.13). */
.br-youtube__link:focus-visible {
	outline: none;
}

.br-youtube__link:focus-visible::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 4px solid var(--wp--preset--color--accent);
	box-shadow: inset 0 0 0 2px #000;
	pointer-events: none;
}

/* Overlays laid out like the YouTube player: header top-left, share bottom-left, "Watch on" bottom-right. */
.br-youtube {
	--br-yt-font: "YouTube Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.br-youtube__header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px 48px;
	/* Solid enough behind the text for 7:1 even over a white thumbnail (WCAG 1.4.6). */
	background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0));
	color: #fff;
	font-family: var(--br-yt-font);
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.br-youtube__avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
}

.br-youtube__heading {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Two lines before the ellipsis (the full title is in the link name). */
.br-youtube__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.br-youtube__author {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

/* Share, bottom-left. */
.br-youtube__share {
	position: absolute;
	bottom: 18px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	/* Same backdrop as "Watch on": the icon keeps its contrast over any thumbnail (WCAG 1.4.11). */
	background: rgba(23, 23, 23, 0.8);
	cursor: pointer;
	transition: background 0.15s;
}

.br-youtube__share[hidden] {
	display: none;
}

.br-youtube__share:hover,
.br-youtube__share:focus-visible {
	background: rgba(0, 0, 0, 0.95);
}

.br-youtube__share[data-state="copied"]::after {
	content: attr(data-copied);
	position: absolute;
	bottom: 100%;
	left: 0;
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(23, 23, 23, 0.9);
	color: #fff;
	font: 13px var(--br-yt-font);
	white-space: nowrap;
}

/* "Watch on YouTube", bottom-right box. */
.br-youtube__watch {
	position: absolute;
	right: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(23, 23, 23, 0.8);
	color: #fff;
	font-family: var(--br-yt-font);
	font-size: 17px;
	line-height: 1;
	transition: background 0.15s;
}

.br-youtube__watch:hover,
.br-youtube__watch:focus-visible {
	background: rgba(0, 0, 0, 0.95);
	color: #fff;
}

.br-youtube__logo {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.04em;
}

/* Consent notice over the whole facade (video clicked without Statistics consent). */
.br-youtube__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-family: var(--br-yt-font);
	text-align: center;
}

.br-youtube__consent[hidden] {
	display: none;
}

.br-youtube__consent p {
	max-width: 32em;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.br-youtube__settings {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 18px;
	background: #fff;
	color: #0f0f0f;
	font: 500 15px var(--br-yt-font);
	cursor: pointer;
}

.br-youtube__settings:hover {
	background: #d9d9d9;
}

.br-youtube__consent a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #fff;
	font-size: 14px;
	text-decoration: underline;
}

/* Accent ring with a dark gap, so it shows over any thumbnail (WCAG 2.4.13). */
.br-youtube__share:focus-visible,
.br-youtube__watch:focus-visible,
.br-youtube__settings:focus-visible,
.br-youtube__consent a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #000;
}

/* Transitions on hover / focus only where motion is welcome. */
@media (prefers-reduced-motion: reduce) {
	.br-youtube__image,
	.br-youtube__play-bg,
	.br-youtube__share,
	.br-youtube__watch {
		transition: none;
	}
}

/* High-contrast modes drop the backdrops: keep the controls' edges and the focus ring visible. */
@media (forced-colors: active) {
	.br-youtube__share,
	.br-youtube__watch,
	.br-youtube__settings {
		border: 1px solid ButtonText;
	}

	.br-youtube__link:focus-visible::after {
		border-color: Highlight;
	}
}

@media (max-width: 600px) {
	.br-youtube__consent { gap: 8px; padding: 10px; }
	.br-youtube__consent p { font-size: 14px; }
	.br-youtube__header { padding: 8px 10px 32px; gap: 8px; }
	.br-youtube__avatar { flex-basis: 32px; width: 32px; height: 32px; }
	.br-youtube__title { font-size: 15px; }
	.br-youtube__author { display: none; }
	/* 44px targets stay (WCAG 2.5.5). */
	.br-youtube__share { bottom: 8px; left: 8px; width: 44px; height: 44px; }
	.br-youtube__watch { right: 8px; bottom: 8px; padding: 7px 11px; font-size: 13px; }
	.br-youtube__logo { font-size: 15px; }
}

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

.br-footer {
	min-height: 53px;
	padding-top: 18px;
	padding-bottom: 18px;
}

/* Glowing gold line under the footer. */
.br-footer::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 2px;
	background: #e7e3af;
	box-shadow: 0 0 4px 1px rgba(255, 144, 0, 0.35);
}

.br-social {
	display: flex;
	align-items: center;
	gap: 4px;
	/* Pull the first icon back to the panel edge (44px target around a ~18px icon). */
	margin: 0 0 0 -13px;
	padding: 0;
	list-style: none;
}

/* 44px targets around the small icons (WCAG 2.5.5). */
.br-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--icon);
	transition: color 0.15s;
}

.br-social a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -2px;
}

.br-social svg {
	width: auto;
	height: 17.5px;
}

.br-social a:hover,
.br-social a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.br-totop {
	position: relative;
	box-sizing: border-box;
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.02);
}

.br-totop::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 5px;
	width: 6px;
	height: 6px;
	border-top: 2px solid #4f5052;
	border-left: 2px solid #4f5052;
	transform: rotate(45deg);
}

.br-totop:hover::after {
	border-color: var(--wp--preset--color--accent);
}

/* Right-hand group: legal links, cookie link and credit, one shared text style. */
.br-footer__meta {
	gap: 4px 16px;
	margin-left: auto;
}

.br-footer-menu a,
.br-consent-link,
.br-credit {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--abel);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

.br-footer-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.br-footer-menu a:hover,
.br-footer-menu .current-menu-item > a {
	color: var(--wp--preset--color--accent);
}

.br-footer-menu a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.br-credit {
	margin: 0;
}

.br-credit a {
	color: inherit;
	text-decoration: none;
}

.br-credit a:hover,
.br-credit a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.br-credit a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ---------- Cookie consent ---------- */

/* Footer link that reopens the BlackRaven Cookie Consent banner (the plugin's script shows it). */
.br-consent-link:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Editor ---------- */

.br-editor-placeholder {
	padding: 6px 10px;
	border: 1px dashed var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: 12px;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.br-panel {
		padding: 15px;
	}

	/* Footer: icons and "back to top" on the first row, text links below. */
	.br-footer {
		flex-wrap: wrap !important;
		row-gap: 8px;
	}

	.br-footer .br-footer__meta {
		flex-basis: 100%;
		order: 1;
		justify-content: flex-start;
		margin-left: 0;
	}

	.br-footer .br-totop {
		margin-left: auto;
	}

	.br-menubar {
		flex-wrap: wrap !important;
	}

	/* Main menu collapses behind the "Menu" button (shown by nav-menu.js). */
	.br-nav-menu.has-toggle {
		flex-basis: 100%;
	}

	.br-nav-menu.has-toggle:not(.is-open) .wp-block-navigation__container {
		display: none;
	}

	.br-nav-menu.has-toggle .wp-block-navigation__container {
		flex-direction: column;
		margin-top: 4px;
	}

	.br-menu.has-toggle .wp-block-navigation__container > .wp-block-navigation-item,
	.br-menu.has-toggle .wp-block-navigation__container > .wp-block-navigation-item:first-child,
	.br-menu.has-toggle .wp-block-navigation__container > .wp-block-navigation-item:last-child {
		border-radius: 0;
	}

	.br-menu.has-toggle .wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item {
		border-top: 1px solid rgba(0, 0, 0, 0.35);
		border-left: 0;
	}

	/* No hover on touch: submenus are listed open, indented under their parent. */
	.br-nav-menu.has-toggle .wp-block-navigation__submenu-container {
		position: static;
		min-width: 0;
		visibility: visible;
		opacity: 1;
		box-shadow: none;
	}

	.br-nav-menu.has-toggle .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		padding-left: 30px;
		line-height: 44px;
	}
}

.br-nav-menu__toggle {
	display: none;
}

@media (max-width: 767px) {
	.br-nav-menu__toggle:not([hidden]) {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 0 15px;
		border: 0;
		border-radius: 2px;
		background: linear-gradient(180deg, #4f5153 0%, #46484a 45%, #393b3d 100%);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 1px rgba(0, 0, 0, 0.9);
		color: #fff;
		font: inherit;
		text-transform: inherit;
		text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
		cursor: pointer;
	}

	.br-nav-menu__toggle:hover,
	.br-nav-menu__toggle:focus-visible,
	.br-nav-menu.is-open .br-nav-menu__toggle {
		color: var(--wp--preset--color--accent-light);
	}

	.br-nav-menu__toggle:focus-visible {
		outline: 2px solid var(--wp--preset--color--accent);
		outline-offset: -4px;
	}

	/* Three bars, drawn with currentColor so they follow the text colour. */
	.br-nav-menu__icon,
	.br-nav-menu__icon::before,
	.br-nav-menu__icon::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
	}

	.br-nav-menu__icon {
		position: relative;
	}

	.br-nav-menu__icon::before,
	.br-nav-menu__icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.br-nav-menu__icon::before {
		top: -6px;
	}

	.br-nav-menu__icon::after {
		top: 6px;
	}

	/* Search and language switcher wrap instead of overflowing at 320px (WCAG 1.4.10). */
	.br-header-widgets {
		flex-wrap: wrap;
		flex-shrink: 1;
		min-width: 0;
		max-width: 100%;
		margin-left: 0;
	}

	.br-header-widgets .wp-block-search__input {
		width: auto;
		min-width: 0;
		flex: 1 1 120px;
	}
}
