/*
Theme Name: Blubit Immersive
Theme URI: https://getblubit.in/
Author: Blubit
Description: A bold, scroll-driven WooCommerce theme in the style of the Immersive Story product template: giant type, off-white and near-black sections that change as you scroll, and one highlight colour. The home page is built from the store's own products, categories and reviews. Includes shipment tracking (NimbusPost) and works together with the Blubit Product Templates plugin.
Version: 1.9.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blubit-immersive
Tags: e-commerce, one-column, custom-logo, custom-menu, footer-widgets, featured-images, translation-ready
*/

/*
 * Contents
 *   1. Tokens and base
 *   2. Shared pieces: eyebrow, headings, buttons, forms, reveal
 *   3. Header
 *   4. Page head and content
 *   5. Posts: lists, single, comments
 *   6. Footer
 *   7. Small screens and reduced motion
 *
 * WooCommerce pages: assets/css/woocommerce.css. Home page: assets/css/home.css.
 *
 * The highlight colour comes from Appearance > Customize > Blubit Immersive.
 * The other colours can be changed in Appearance > Customize > Additional CSS:
 *
 *   body { --bi-ink: #101820; --bi-paper: #f2f0e7; }
 */

/*
 * Blubit Display: the theme's own typeface for highlighted words. Capitals
 * only (lowercase letters show as capitals). It is drawn by tools/makefont.py.
 */
@font-face {
	font-family: "Blubit Display";
	src: url("assets/fonts/blubit-display.ttf?v=2") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- 1. Tokens and base ---------- */

body {
	--bi-ink: #161a14;
	--bi-paper: #fafaf8;
	--bi-accent: #d6f53c;
	--bi-on-accent: #161a14;
	--bi-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--bi-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
	--bi-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--bi-line: rgba(128, 128, 128, 0.35);
	--bi-pad: clamp(20px, 5vw, 80px);
	--bi-header-h: 64px;

	/* Current tone: swapped by theme.js as sections scroll past. */
	--bi-bg: var(--bi-paper);
	--bi-fg: var(--bi-ink);

	margin: 0;
	background-color: var(--bi-bg);
	color: var(--bi-fg);
	font-family: var(--bi-sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
	transition: background-color 0.8s var(--bi-ease), color 0.8s var(--bi-ease);
}

body[data-bi-tone="dark"] {
	--bi-bg: var(--bi-ink);
	--bi-fg: var(--bi-paper);
}

.bi-site,
.bi-site *,
.bi-site *::before,
.bi-site *::after {
	box-sizing: border-box;
}

.bi-site img {
	max-width: 100%;
	height: auto;
}

.bi-site a {
	color: inherit;
}

.bi-site :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bi-skip:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	border-radius: 10px;
	background: var(--bi-accent);
	color: var(--bi-on-accent);
	font-weight: 700;
	text-decoration: none;
}

.bi-main {
	display: block;
	min-height: 60vh;
	padding-top: var(--bi-header-h);
}

.bi-main--home {
	padding-top: 0;
}

.bi-wrap {
	padding: 0 var(--bi-pad) clamp(64px, 10vh, 140px);
}

.bi-wrap--narrow {
	max-width: calc(860px + var(--bi-pad) * 2);
	margin: 0 auto;
}

/*
 * Product pages drawn by the Blubit Product Templates plugin use the same
 * light background as the rest of the site.
 */
body .bpt-im {
	--bpt-paper: var(--bi-paper);
}

/* ---------- 2. Shared pieces ---------- */

.bi-eyebrow {
	margin: 0 0 1.4em;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bi-eyebrow a {
	text-decoration: none;
}

.bi-h2 {
	margin: 0 0 clamp(28px, 5vh, 64px);
	color: inherit;
	font-family: var(--bi-sans);
	font-size: clamp(2.25rem, 6vw, 5.75rem);
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

/* The second voice: a word in the serif face, as in the product template. */
.bi-h2 em,
.bi-pagehead__title em {
	font-family: var(--bi-serif);
	font-style: normal;
	font-weight: var(--bi-hl-weight, 400);
	letter-spacing: var(--bi-hl-spacing, -0.01em);
}

.bi-sechead {
	margin: 0 0 clamp(24px, 4vh, 48px);
}

.bi-sechead .bi-h2 {
	margin-bottom: 0;
}

.bi-sechead--row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
	justify-content: space-between;
}

/* Buttons. The fill slides up from the bottom on hover. */
.bi-btn,
.bi-site .wp-block-button__link,
.bi-site input[type="submit"],
.bi-site button[type="submit"]:not(.bi-search__go):not(.bi-searchpanel__go) {
	display: inline-flex;
	gap: 0.7em;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(var(--bi-fg), var(--bi-fg)) no-repeat 50% 100% / 100% 0, var(--bi-accent);
	box-shadow: none;
	color: var(--bi-on-accent);
	font-family: var(--bi-sans);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-size 0.5s var(--bi-ease), color 0.3s, transform 0.4s var(--bi-ease);
}

.bi-btn:hover,
.bi-btn:focus-visible,
.bi-site .wp-block-button__link:hover,
.bi-site input[type="submit"]:hover,
.bi-site button[type="submit"]:not(.bi-search__go):not(.bi-searchpanel__go):hover {
	background-size: 100% 100%, auto;
	color: var(--bi-bg);
}

.bi-btn--ghost {
	border: 1px solid currentColor;
	background: linear-gradient(var(--bi-fg), var(--bi-fg)) no-repeat 50% 100% / 100% 0;
	color: inherit;
}

.bi-btn--ghost:hover,
.bi-btn--ghost:focus-visible {
	background-size: 100% 100%;
	color: var(--bi-bg);
}

.bi-arrow {
	flex: none;
	transition: transform 0.4s var(--bi-ease);
}

.bi-btn:hover .bi-arrow,
a:hover > .bi-arrow {
	transform: translate(3px, -3px);
}

.bi-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 32px 0 0;
}

/* Forms. */
.bi-site input[type="text"],
.bi-site input[type="email"],
.bi-site input[type="url"],
.bi-site input[type="tel"],
.bi-site input[type="number"],
.bi-site input[type="password"],
.bi-site input[type="search"],
.bi-site select,
.bi-site textarea {
	width: 100%;
	max-width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--bi-line);
	border-radius: 12px;
	background-color: transparent;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

.bi-site textarea {
	min-height: 140px;
}

.bi-site input:focus,
.bi-site select:focus,
.bi-site textarea:focus {
	border-color: currentColor;
	outline: 0;
}

.bi-site label {
	font-weight: 600;
}

.bi-search {
	display: flex;
	gap: 8px;
	align-items: stretch;
	max-width: 520px;
}

.bi-search__go {
	flex: none;
	width: 52px;
	min-height: 52px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--bi-accent);
	color: var(--bi-on-accent);
	font-size: 1.25rem;
	cursor: pointer;
}

.bi-searchbar {
	margin: 0 0 clamp(28px, 5vh, 56px);
}

/* Reveal on scroll (only once theme.js is running). */
.bi-js [data-bi-reveal] {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	transition: opacity 0.9s var(--bi-ease), transform 0.9s var(--bi-ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}

.bi-js [data-bi-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* Headings split into words that rise into place. */
.bi-js .bi-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

.bi-js .bi-w > span {
	display: inline-block;
	transform: translate3d(0, 110%, 0);
	transition: transform 1s var(--bi-ease);
	transition-delay: calc(var(--w, 0) * 60ms);
}

.bi-js .is-in .bi-w > span,
.bi-js .bi-w.is-in > span {
	transform: none;
}

/* ---------- 3. Header ---------- */

.bi-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 60;
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	height: var(--bi-header-h);
	padding: 0 clamp(16px, 2.4vw, 36px);
	color: var(--bi-fg);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: transform 0.5s var(--bi-ease), background-color 0.4s, color 0.8s var(--bi-ease);
}

/* Once the page has scrolled the bar gets a backing so it stays readable. */
.bi-header.is-solid {
	border-bottom: 1px solid var(--bi-line);
	background-color: var(--bi-bg);
}

@supports (color: color-mix(in srgb, red, blue)) {
	.bi-header.is-solid {
		background-color: color-mix(in srgb, var(--bi-bg) 84%, transparent);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
}

/* Tucked away while scrolling down, back when scrolling up. */
.bi-header.is-hidden {
	transform: translate3d(0, calc(-100% - var(--wp-admin--admin-bar--height, 0px) - 2px), 0);
}

.bi-header a,
.bi-footer a {
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	text-decoration: none;
	transition: background-size 0.4s var(--bi-ease);
}

.bi-header a:hover,
.bi-header a:focus-visible,
.bi-header .current-menu-item > a,
.bi-footer a:hover,
.bi-footer a:focus-visible {
	background-size: 100% 1px;
}

.bi-brand,
.bi-footer .bi-footer__brand {
	display: inline-flex;
	align-items: center;
	background: none;
}

/* The logo. A transparent logo is drawn as a shape filled with the text colour. */
.bi-logo--shape {
	display: block;
	height: 30px;
	aspect-ratio: var(--bi-logo-ar, 3);
	background-color: currentColor;
	-webkit-mask: var(--bi-logo) no-repeat 0 50% / contain;
	mask: var(--bi-logo) no-repeat 0 50% / contain;
}

.bi-logo--img {
	display: block;
	width: auto;
	max-width: 40vw;
	height: 30px;
	object-fit: contain;
	object-position: 0 50%;
}

/* The logo as text. Size, typeface, weight and case come from the Customizer. */
.bi-logo--text {
	font-size: var(--bi-logo-size, 24px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: none;
	white-space: nowrap;
}

.bi-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(16px, 2.2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bi-menu li {
	margin: 0;
	padding: 0;
}

.bi-menu a {
	display: inline-block;
	padding: 4px 0;
}

.bi-nav {
	display: flex;
	gap: clamp(16px, 2.2vw, 36px);
	align-items: center;
}

.bi-tools {
	display: flex;
	gap: clamp(12px, 1.6vw, 24px);
	align-items: center;
	white-space: nowrap;
}

.bi-tool {
	display: inline-flex;
	align-items: center;
	padding: 4px 0;
}

.bi-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75em;
	height: 1.75em;
	margin-left: 0.6em;
	padding: 0 0.4em;
	border-radius: 99px;
	background: var(--bi-accent);
	color: var(--bi-on-accent);
	letter-spacing: 0;
}

.bi-tool__icon,
.bi-menu-toggle__label {
	display: none;
}

/* The menu button: three bars that turn into a cross. Narrow screens only. */
.bi-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 0 0 -8px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.bi-menu-toggle__bars,
.bi-menu-toggle__bars::before,
.bi-menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.35s var(--bi-ease), background-color 0.2s;
}

.bi-menu-toggle__bars {
	position: relative;
}

.bi-menu-toggle__bars::before,
.bi-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.bi-menu-toggle__bars::before {
	transform: translateY(-7px);
}

.bi-menu-toggle__bars::after {
	transform: translateY(7px);
}

.bi-header.is-open .bi-menu-toggle__bars {
	background-color: transparent;
}

.bi-header.is-open .bi-menu-toggle__bars::before {
	transform: rotate(45deg);
}

.bi-header.is-open .bi-menu-toggle__bars::after {
	transform: rotate(-45deg);
}

/* Full-screen search. */
.bi-searchpanel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 80;
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + clamp(72px, 12vh, 140px)) var(--bi-pad) clamp(32px, 6vh, 64px);
	overflow-y: auto;
	background-color: var(--bi-bg);
	color: var(--bi-fg);
	opacity: 0;
	transition: opacity 0.35s;
}

.bi-searchpanel[hidden] {
	display: none;
}

.bi-searchpanel.is-open {
	opacity: 1;
}

.bi-searchpanel__close {
	position: absolute;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 14px);
	right: clamp(16px, 2.4vw, 36px);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--bi-line);
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, transform 0.4s var(--bi-ease);
}

.bi-searchpanel__close:hover {
	background: var(--bi-fg);
	color: var(--bi-bg);
	transform: rotate(90deg);
}

.bi-searchpanel__form .bi-eyebrow {
	display: block;
	opacity: 0.6;
}

.bi-searchpanel__row {
	display: flex;
	gap: 16px;
	align-items: center;
	border-bottom: 2px solid currentColor;
}

.bi-site input.bi-searchpanel__field {
	flex: 1;
	min-width: 0;
	min-height: 0;
	padding: 0 0 0.12em;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: clamp(2rem, 6.4vw, 6rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.bi-site input.bi-searchpanel__field::placeholder {
	color: inherit;
	opacity: 0.25;
}

.bi-site input.bi-searchpanel__field::-webkit-search-cancel-button {
	display: none;
}

.bi-site .bi-searchpanel__go {
	flex: none;
	width: clamp(48px, 5vw, 72px);
	min-height: 0;
	height: clamp(48px, 5vw, 72px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bi-accent);
	color: var(--bi-on-accent);
	font-size: 1.5rem;
	cursor: pointer;
}

.bi-searchpanel__results {
	margin-top: clamp(24px, 5vh, 56px);
}

.bi-sr__note {
	margin: 0;
	font-size: 1.125rem;
	opacity: 0.7;
}

.bi-sr__group + .bi-sr__group {
	margin-top: clamp(28px, 5vh, 56px);
}

.bi-sr__title {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

.bi-sr__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 4vw, 64px);
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bi-line);
	list-style: none;
}

.bi-sr__item {
	margin: 0;
	border-bottom: 1px solid var(--bi-line);
}

.bi-sr__link {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	text-decoration: none;
	transition: padding 0.4s var(--bi-ease);
}

.bi-sr__link--text {
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 18px 0;
}

.bi-sr__link:hover,
.bi-sr__link:focus-visible {
	padding-left: 12px;
}

.bi-sr__img {
	display: block;
	width: 72px;
	height: 72px;
	border: 1px solid var(--bi-line);
	border-radius: 12px;
	background: rgba(128, 128, 128, 0.14);
	object-fit: cover;
}

.bi-sr__name {
	display: block;
	font-size: clamp(1rem, 1.4vw, 1.375rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.bi-sr__price {
	display: block;
	margin-top: 4px;
	font-size: 0.9375rem;
}

.bi-sr__price del {
	opacity: 0.5;
}

.bi-sr__price ins {
	background: none;
	font-weight: 700;
	text-decoration: none;
}

.bi-sr__more {
	margin: clamp(24px, 4vh, 44px) 0 0;
}

body.bi-search-open {
	overflow: hidden;
}

/* ---------- 4. Page head and content ---------- */

.bi-pagehead {
	padding: clamp(40px, 9vh, 120px) var(--bi-pad) clamp(28px, 5vh, 64px);
}

.bi-pagehead__title {
	max-width: 18ch;
	margin: 0;
	color: inherit;
	font-size: clamp(2.75rem, 9vw, 9rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.bi-pagehead__text {
	max-width: 60ch;
	margin: clamp(16px, 3vh, 32px) 0 0;
	font-size: 1.125rem;
	opacity: 0.8;
}

.bi-pagehead__text p {
	margin: 0 0 0.6em;
}

/*
 * Pages built with Elementor bring their own layout: no heading band, no
 * margins. The cart, checkout and account pages are the exception: there
 * Elementor only wraps a WooCommerce shortcode.
 */
.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page > .bi-pagehead {
	display: none;
}

.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page > .bi-content {
	padding: 0;
}

.bi-content {
	font-size: 1.0625rem;
}

/* Contain floated blocks inside the content (WooCommerce's account pages use them). */
.bi-content::after {
	content: "";
	display: table;
	clear: both;
}

.bi-content > * {
	max-width: 100%;
}

.bi-content h1,
.bi-content h2,
.bi-content h3,
.bi-content h4 {
	margin: 1.6em 0 0.5em;
	color: inherit;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.bi-content h2 {
	font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.bi-content h3 {
	font-size: clamp(1.375rem, 2.2vw, 2rem);
}

.bi-content h4 {
	font-size: 1.25rem;
}

.bi-content > :first-child {
	margin-top: 0;
}

.bi-content p,
.bi-content ul,
.bi-content ol {
	margin: 0 0 1.2em;
}

.bi-content a:not(.bi-btn):not(.button):not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bi-content blockquote {
	margin: 2em 0;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--bi-accent);
	font-family: var(--bi-serif);
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	line-height: 1.2;
}

.bi-content table {
	width: 100%;
	border-collapse: collapse;
}

.bi-content th,
.bi-content td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid var(--bi-line);
	background: none;
	text-align: left;
	vertical-align: top;
}

.bi-content img,
.bi-content figure {
	border-radius: 12px;
}

.bi-content .alignwide {
	width: 100%;
	max-width: none;
}

.bi-empty {
	font-size: 1.25rem;
}

/* Page numbers. */
.bi-pages {
	margin: clamp(32px, 6vh, 64px) 0 0;
}

.bi-pages ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.bi-pages ul.page-numbers li {
	margin: 0;
	padding: 0;
	border: 0;
}

.bi-pages .page-numbers a,
.bi-pages .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--bi-line);
	border-radius: 12px;
	background: none;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.bi-pages .page-numbers a:hover,
.bi-pages .page-numbers span.current {
	border-color: var(--bi-accent);
	background: var(--bi-accent);
	color: var(--bi-on-accent);
}

/* 404. */
.bi-404 {
	position: relative;
	overflow: hidden;
	overflow: clip;
}

.bi-404__code {
	position: absolute;
	top: 0;
	right: -0.04em;
	z-index: -1;
	margin: 0;
	font-size: clamp(12rem, 46vw, 46rem);
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.06em;
	opacity: 0.06;
	pointer-events: none;
}

/* ---------- 5. Posts ---------- */

.bi-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px);
}

.bi-post-card__link {
	display: block;
	text-decoration: none;
}

.bi-post-card__img {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid rgba(128, 128, 128, 0.22);
	border-radius: 16px;
	background: rgba(128, 128, 128, 0.14);
}

.bi-post-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--bi-ease);
}

.bi-post-card__link:hover .bi-post-card__img img {
	transform: scale(1.06);
}

.bi-post-card__meta {
	display: block;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

.bi-post-card__title {
	display: block;
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(1.25rem, 2vw, 1.875rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.bi-post-card__text {
	display: block;
	margin-top: 10px;
	opacity: 0.75;
}

.bi-post-card__price {
	display: block;
	margin-top: 8px;
}

.bi-post-card__price del {
	opacity: 0.5;
}

.bi-post-card__price ins {
	background: none;
	font-weight: 700;
	text-decoration: none;
}

/* Search results: four across, with square pictures like the shop. */
.bi-posts--search {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bi-posts--search .bi-post-card__img {
	aspect-ratio: 1;
}

.bi-single__img {
	margin: 0 0 clamp(32px, 6vh, 72px);
	overflow: hidden;
	border-radius: 20px;
}

.bi-single__img img {
	display: block;
	width: 100%;
}

.bi-postnav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	margin: clamp(32px, 6vh, 64px) 0;
	padding: 24px 0;
	border-top: 1px solid var(--bi-line);
	border-bottom: 1px solid var(--bi-line);
	font-weight: 700;
}

.bi-postnav a {
	text-decoration: none;
}

.bi-comments__title,
.bi-site .comment-reply-title {
	display: block;
	margin: 0 0 24px;
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.bi-comment-list,
.bi-comment-list ol.children {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.bi-comment-list ol.children {
	margin: 20px 0 0 clamp(20px, 4vw, 60px);
}

.bi-comment-list li {
	padding: 24px 0;
	border-top: 1px solid var(--bi-line);
}

.bi-comment-list .avatar {
	float: left;
	margin: 0 16px 8px 0;
	border-radius: 50%;
}

.bi-comment-list .comment-metadata {
	font-size: 0.8125rem;
	opacity: 0.65;
}

.bi-site .comment-form p {
	margin: 0 0 16px;
}

/* ---------- 6. Footer ---------- */

.bi-footer {
	padding: clamp(56px, 9vh, 120px) var(--bi-pad) clamp(20px, 3vh, 40px);
	background-color: var(--bi-ink);
	color: var(--bi-paper);
}

.bi-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 4vw, 64px);
}

.bi-footer__about {
	flex: 2 1 320px;
	max-width: 460px;
	margin-right: auto;
}

.bi-footer__col {
	flex: 1 1 160px;
	max-width: 280px;
}

.bi-footer .bi-logo--shape,
.bi-footer .bi-logo--img {
	height: 44px;
}

.bi-footer .bi-logo--text {
	font-size: calc(var(--bi-logo-size, 24px) * 1.4);
}

.bi-footer__text {
	margin: 20px 0 0;
	opacity: 0.8;
}

.bi-footer__col .bi-eyebrow,
.bi-widget__title {
	margin: 0 0 18px;
	color: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

.bi-footer__col .bi-menu,
.bi-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-weight: 600;
	list-style: none;
}

.bi-footer__col p {
	margin: 0 0 12px;
	opacity: 0.8;
}

.bi-widget + .bi-widget {
	margin-top: 28px;
}

/* The site's own footer widgets (logo and text, link lists, payment icons...). */
.bi-footer__cols--widgets .bi-footer__col {
	flex: 1 1 170px;
	max-width: none;
}

.bi-footer__cols--widgets .bi-footer__col:first-child {
	flex: 1.7 1 280px;
	max-width: 440px;
	margin-right: auto;
}

.bi-footer__col--widgets :where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 18px;
	color: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}

.bi-footer__col--widgets figure,
.bi-footer__col--widgets .wp-block-image {
	margin: 0 0 18px;
}

.bi-footer__col--widgets img {
	display: block;
	max-width: 100%;
	height: auto;
}

.bi-footer__col--widgets .wp-block-group > :last-child {
	margin-bottom: 0;
}

/* Social profile links. */
.bi-socials,
.bi-footer .ct-social-box {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.bi-footer .bi-social,
.bi-footer .ct-social-box a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--bi-line);
	border-radius: 50%;
	background: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.bi-footer .ct-social-box a svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.bi-footer .bi-social:hover,
.bi-footer .bi-social:focus-visible,
.bi-footer .ct-social-box a:hover {
	border-color: var(--bi-accent);
	background: var(--bi-accent);
	color: var(--bi-on-accent);
}

.bi-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	justify-content: space-between;
	margin-top: clamp(40px, 7vh, 88px);
	padding-top: 24px;
	border-top: 1px solid var(--bi-line);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bi-footer__legal p {
	margin: 0;
	opacity: 0.6;
}

/* ---------- 7. Small screens and reduced motion ---------- */

@media (max-width: 900px) {
	/* Header on a narrow screen: menu button, logo, then icons for search, account and cart. */
	.bi-mhead-icons .bi-header {
		gap: 6px;
		justify-content: flex-start;
	}

	.bi-mhead-icons .bi-menu-toggle {
		display: inline-flex;
	}

	.bi-mhead-icons .bi-brand {
		margin-right: auto;
	}

	.bi-mhead-icons .bi-header .bi-logo--shape,
	.bi-mhead-icons .bi-header .bi-logo--img {
		height: 26px;
	}

	.bi-header .bi-logo--text {
		font-size: min(var(--bi-logo-size, 24px), 26px);
	}

	.bi-mhead-icons .bi-tools {
		gap: 0;
		margin-right: -8px;
	}

	.bi-mhead-icons .bi-tool {
		position: relative;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.bi-mhead-icons .bi-header .bi-tool {
		background: none;
	}

	.bi-mhead-icons .bi-tool__icon {
		display: block;
	}

	.bi-mhead-icons .bi-tool__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.bi-mhead-icons .bi-cart-count {
		position: absolute;
		top: 2px;
		right: 0;
		min-width: 17px;
		height: 17px;
		margin: 0;
		padding: 0 4px;
		font-size: 0.625rem;
	}

	/* The menu: a full-height sheet under the header, one large row per link. */
	.bi-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		gap: 0;
		align-items: stretch;
		height: calc(100vh - var(--bi-header-h) - var(--wp-admin--admin-bar--height, 0px));
		height: calc(100dvh - var(--bi-header-h) - var(--wp-admin--admin-bar--height, 0px));
		padding: 8px clamp(16px, 2.4vw, 36px) 32px;
		overflow-y: auto;
		border-top: 1px solid var(--bi-line);
		background-color: var(--bi-bg);
	}

	.bi-header.is-open .bi-nav {
		display: flex;
	}

	.bi-nav .bi-menu {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		font-size: 1.375rem;
		letter-spacing: -0.01em;
	}

	.bi-nav .bi-menu li {
		border-bottom: 1px solid var(--bi-line);
	}

	.bi-nav .bi-menu a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 2px;
		background: none;
	}

	.bi-nav .bi-menu > li > a::after {
		content: "\2192";
		font-weight: 400;
		opacity: 0.45;
	}

	.bi-nav .bi-menu .sub-menu {
		margin: 0;
		padding: 0 0 8px 16px;
		font-size: 1rem;
		list-style: none;
	}

	.bi-nav .bi-menu .sub-menu li {
		border: 0;
	}

	.bi-nav .bi-menu .sub-menu a {
		padding: 10px 2px;
	}

	.bi-nav .current-menu-item > a {
		text-decoration: underline;
		text-decoration-color: var(--bi-accent);
		text-decoration-thickness: 3px;
		text-underline-offset: 6px;
	}

	.bi-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bi-sr__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.bi-footer__about {
		flex-basis: 100%;
		max-width: none;
	}

	.bi-footer__col {
		flex-basis: 40%;
	}
}

/* Footer on a phone: each link group folds under its heading (theme.js adds the classes). */
@media (max-width: 700px) {
	.bi-mfoot-fold .bi-footer__cols {
		gap: 0;
	}

	.bi-mfoot-fold .bi-footer__cols .bi-footer__col,
	.bi-mfoot-fold .bi-footer__cols--widgets .bi-footer__col,
	.bi-mfoot-fold .bi-footer__cols--widgets .bi-footer__col:first-child {
		flex: 0 0 100%;
		max-width: none;
		margin-right: 0;
	}

	.bi-mfoot-fold .bi-footer__about,
	.bi-mfoot-fold .bi-footer__cols--widgets .bi-footer__col:first-child {
		margin-bottom: 28px;
	}

	.bi-mfoot-fold .bi-acc {
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}

	.bi-mfoot-fold .bi-acc:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	}

	.bi-mfoot-fold .bi-footer .bi-acc .bi-acc__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 18px 0;
		font-size: 0.8125rem;
		opacity: 1;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.bi-mfoot-fold .bi-acc__head::after {
		content: "+";
		font-size: 1.25rem;
		font-weight: 400;
		line-height: 1;
		letter-spacing: 0;
	}

	.bi-mfoot-fold .bi-acc.is-open .bi-acc__head::after {
		content: "\2212";
	}

	.bi-mfoot-fold .bi-acc__panel {
		display: none;
		padding: 0 0 20px;
	}

	.bi-mfoot-fold .bi-acc.is-open .bi-acc__panel {
		display: block;
	}
}

/* Header on a narrow screen, logo in the middle: the menu button stays left, the icons right. */
@media (max-width: 900px) {
	.bi-mhead-center .bi-header .bi-brand {
		position: absolute;
		top: 50%;
		left: 50%;
		margin: 0;
		transform: translate(-50%, -50%);
	}

	.bi-mhead-center .bi-header .bi-tools {
		margin-left: auto;
	}

	.bi-mhead-center .bi-header .bi-logo--shape {
		-webkit-mask-position: 50% 50%;
		mask-position: 50% 50%;
	}
}

/* On a very narrow phone the account icon gives way, so the logo keeps its room. */
@media (max-width: 380px) {
	.bi-mhead-center .bi-header .bi-tool--account {
		display: none;
	}
}

/* Header on a narrow screen, "words" style: Search and Cart as words and a Menu button. */
@media (max-width: 900px) {
	.bi-mhead-text .bi-menu-toggle {
		display: inline-block;
		order: 3;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0.6em 1.1em;
		border: 1px solid currentColor;
		border-radius: 99px;
		font: inherit;
		letter-spacing: inherit;
		text-transform: inherit;
	}

	.bi-mhead-text .bi-menu-toggle__bars {
		display: none;
	}

	.bi-mhead-text .bi-menu-toggle__label {
		display: inline;
	}
}

@media (max-width: 560px) {
	.bi-mhead-text .bi-tool--account {
		display: none;
	}

	.bi-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	body,
	.bi-header,
	.bi-site * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.bi-js [data-bi-reveal],
	.bi-js .bi-w > span {
		opacity: 1;
		transform: none;
	}
}

/* The word mark standing in for the logo picture in the footer's own widgets. */
.bi-footer .bi-footer__mark {
	margin: 0 0 18px;
	opacity: 1;
}

/* ---------- Shop panel under the header (opens from the shop link, desktop only) ---------- */

.bi-mega {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bi-header-h));
	right: 0;
	left: 0;
	z-index: 59;
	max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--bi-header-h));
	overflow-y: auto;
	border-top: 1px solid var(--bi-line);
	border-bottom: 1px solid var(--bi-line);
	background-color: var(--bi-bg);
	color: var(--bi-fg);
	box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, -10px, 0);
	transition: opacity 0.3s, transform 0.45s var(--bi-ease), visibility 0s 0.3s;
}

.bi-mega[hidden] {
	display: none;
}

.bi-mega.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.3s, transform 0.45s var(--bi-ease);
}

.bi-mega__in {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 88px);
	max-width: 1500px;
	margin: 0 auto;
	padding: clamp(24px, 4vh, 44px) clamp(16px, 2.4vw, 36px) clamp(28px, 5vh, 52px);
}

.bi-mega .bi-eyebrow {
	margin: 0 0 16px;
	opacity: 0.6;
}

.bi-mega__links,
.bi-mega__grid,
.bi-mega__row {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bi-mega__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 2px;
	border-bottom: 1px solid var(--bi-line);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	transition: padding 0.4s var(--bi-ease), color 0.3s;
}

.bi-mega__links a::after {
	content: "\2192";
	font-weight: 400;
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s, transform 0.4s var(--bi-ease);
}

.bi-mega__links a:hover,
.bi-mega__links a:focus-visible {
	padding-left: 10px;
}

.bi-mega__links a:hover::after,
.bi-mega__links a:focus-visible::after {
	opacity: 1;
	transform: none;
}

.bi-mega__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 230px));
	gap: clamp(12px, 1.4vw, 22px);
}

.bi-mega__tile {
	display: block;
	text-decoration: none;
}

.bi-mega__pic {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 18px;
	background: rgba(128, 128, 128, 0.14);
}

.bi-mega__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.7s var(--bi-ease);
}

.bi-mega__tile:hover .bi-mega__pic img,
.bi-mega__tile:focus-visible .bi-mega__pic img {
	scale: 1.07;
}

.bi-mega__name {
	display: block;
	margin-top: 12px;
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.bi-mega__tile:hover .bi-mega__name {
	text-decoration: underline;
	text-decoration-color: var(--bi-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.bi-mega__meta {
	display: block;
	margin-top: 4px;
	font-size: 0.75rem;
	opacity: 0.6;
}

.bi-mega .bi-mega__more {
	margin-top: clamp(20px, 3vh, 32px);
}

.bi-mega__row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px clamp(12px, 1.4vw, 22px);
}

.bi-mega__item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px;
	border: 1px solid var(--bi-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 0.3s, background-color 0.3s;
}

.bi-mega__item:hover,
.bi-mega__item:focus-visible {
	border-color: currentColor;
	background-color: rgba(128, 128, 128, 0.1);
}

.bi-mega__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(128, 128, 128, 0.14);
}

.bi-mega__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bi-mega__itemtext {
	min-width: 0;
}

.bi-mega__itemname {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
}

.bi-mega__price {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
}

.bi-mega__price del {
	margin-right: 4px;
	opacity: 0.5;
}

.bi-mega__price ins {
	background: none;
	text-decoration: none;
}

/* The shop link shows a small marker that it opens a panel. */
.bi-nav .bi-menu a.has-mega::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s;
}

.bi-nav .bi-menu a.has-mega[aria-expanded="true"]::after {
	transform: translateY(3px) rotate(225deg);
}

/* The copy of the panel inside the menu is for phones only. */
.bi-nav .bi-mega__in {
	display: none;
}

@media (max-width: 900px) {
	.bi-mega {
		display: none;
	}

	/* In the phone menu the shop link opens the panel in place: a plus that turns into a minus. */
	.bi-nav .bi-menu > li > a.has-mega::after,
	.bi-nav .bi-menu > li > a.has-mega[aria-expanded="true"]::after {
		content: "+";
		width: auto;
		height: auto;
		margin: 0;
		border: 0;
		font-size: 1.5rem;
		font-weight: 400;
		line-height: 1;
		opacity: 0.7;
		transform: none;
	}

	.bi-nav .bi-menu > li > a.has-mega[aria-expanded="true"]::after {
		content: "\2212";
	}

	.bi-nav .bi-menu > li.is-expanded > .bi-mega__in {
		display: flex;
		flex-direction: column;
		gap: 22px;
		max-width: none;
		margin: 0;
		padding: 2px 0 24px;
		font-size: 1rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}

	.bi-nav .bi-mega__main {
		order: 1;
	}

	.bi-nav .bi-mega__side {
		order: 2;
	}

	.bi-nav .bi-menu .bi-mega__in li {
		border: 0;
	}

	.bi-nav .bi-menu .bi-mega__in a {
		display: block;
		padding: 0;
	}

	.bi-nav .bi-mega__in .bi-eyebrow {
		margin-bottom: 12px;
	}

	.bi-nav .bi-mega__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
	}

	.bi-nav .bi-mega__name {
		margin-top: 8px;
		font-size: 0.875rem;
	}

	.bi-nav .bi-mega__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	/* The menu spreads its rows left and right; these cards keep picture and words together on the left. */
	.bi-nav .bi-menu .bi-mega__in a.bi-mega__item {
		display: flex;
		justify-content: flex-start;
		padding: 8px;
	}

	.bi-nav .bi-mega__itemtext {
		flex: 1 1 auto;
		text-align: left;
	}

	.bi-nav .bi-mega__in .bi-mega__more {
		margin-top: 24px;
	}

	.bi-nav .bi-menu .bi-mega__links a {
		display: flex;
		padding: 12px 2px;
		border-bottom: 1px solid var(--bi-line);
		font-size: 1rem;
	}
}

/* ---------- Page titles: centred, in the background, blurred while the content scrolls over them ---------- */

/*
 * Pages, the blog, posts and the shop share one opening: the title (and its
 * description) sits centred and stays put, the content slides up over it, and
 * theme.js blurs and fades the title as the page scrolls (--bi-back, 0 to 1).
 */
.bi-main > .bi-pagehead,
.bi-page > .bi-pagehead {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bi-header-h));
	z-index: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 3.5vh, 40px) var(--bi-pad) clamp(18px, 3vh, 32px);
	text-align: center;
	filter: blur(calc(var(--bi-back, 0) * 9px));
	opacity: calc(1 - var(--bi-back, 0) * 0.6);
}

.bi-main > .bi-pagehead .bi-pagehead__title,
.bi-page > .bi-pagehead .bi-pagehead__title {
	max-width: 22ch;
	font-size: clamp(2rem, 5vw, 4.5rem);
	line-height: 0.95;
}

.bi-main > .bi-pagehead .bi-pagehead__text,
.bi-page > .bi-pagehead .bi-pagehead__text {
	max-width: 62ch;
	margin: 12px auto 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.bi-main > .bi-pagehead .bi-eyebrow,
.bi-page > .bi-pagehead .bi-eyebrow {
	margin-bottom: 10px;
}

/* Whatever follows the title passes over it. */
.bi-main > .bi-pagehead ~ *,
.bi-page > .bi-pagehead ~ * {
	position: relative;
	z-index: 1;
}

/* The content is a solid sheet, so the title never shows through the words. */
.bi-page > .bi-content {
	background: var(--bi-bg);
}

.bi-page > .bi-content:not(:first-child) {
	border-radius: 24px 24px 0 0;
}

/* Blog and search lists: solid cards, like the products. */
.bi-main > .bi-wrap > .bi-posts .bi-post-card {
	padding: 10px 10px 18px;
	border: 1px solid var(--bi-line);
	border-radius: 24px;
	background: var(--bi-bg);
	box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.35);
}

/*
 * Pages built with Elementor that open with their own breadcrumb-and-title
 * block: the theme's title is shown in its place, so those pages open the
 * same way as the rest of the site.
 */
/* Shown as well on Elementor pages that do not open with a heading of their own (policy pages, for example). */
.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page:has(.elementor > :first-child .bi-crumbs) > .bi-pagehead,
.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page:not(:has(.elementor > :first-child .elementor-widget-heading)) > .bi-pagehead {
	display: flex;
}

.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page > .bi-content .elementor > :first-child:has(.bi-crumbs) {
	display: none;
}

/* The block after it was pulled up to overlap that title band: let it start where the content starts. */
.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page > .bi-content .elementor > :first-child:has(.bi-crumbs) + * {
	margin-top: 0 !important;
}

.elementor-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bi-page > .bi-content {
	border-radius: 0;
}

/* ---------- Buttons placed with Elementor: the same look as the theme's own buttons ---------- */

/*
 * Elementor falls back to its own grey when a page's button has no colour of
 * its own. These rules give every Elementor button the theme's button: the
 * highlight colour, dark words in capitals, and the fill that rises on hover.
 */
.bi-theme .bi-site .elementor-button,
.bi-theme .bi-site .elementor-button:visited {
	display: inline-flex;
	gap: 0.7em;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	/* Elementor sets its own corners and the content styles underline links: both are overruled here. */
	border-radius: 12px !important;
	background: linear-gradient(var(--bi-fg), var(--bi-fg)) no-repeat 50% 100% / 100% 0, var(--bi-accent);
	box-shadow: none;
	color: var(--bi-on-accent);
	fill: var(--bi-on-accent);
	font-family: var(--bi-sans);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-size 0.5s var(--bi-ease), color 0.3s;
}

.bi-theme .bi-site .elementor-button:hover,
.bi-theme .bi-site .elementor-button:focus-visible {
	background-size: 100% 100%, auto;
	color: var(--bi-bg);
	fill: var(--bi-bg);
}

.bi-theme .bi-site .elementor-button .elementor-button-content-wrapper {
	display: inline-flex;
	gap: 0.7em;
	align-items: center;
}

.bi-theme .bi-site .elementor-button,
.bi-theme .bi-site .elementor-button .elementor-button-text {
	text-decoration: none !important;
}

.bi-theme .bi-site .elementor-button .elementor-button-text {
	color: inherit;
}

