/* ==========================================================================
   Afroterra — component layer
   Tokens come from theme.json (--wp--preset--* / --wp--custom--*).
   Rules: sharp corners, hairlines are the only divider, oxblood at most
   once per page as a ground, no lift / no shadow on hover, 14px type floor.
   ========================================================================== */

:root {
	--at-ease: var(--wp--custom--motion--ease);
	--at-dur: var(--wp--custom--motion--duration);
	--at-dur-fast: var(--wp--custom--motion--duration-fast);
	--at-line: 1px solid var(--wp--preset--color--hair);
}

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

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Safety net: nothing may make the page scroll sideways. `clip` (not hidden) keeps sticky elements working. */
.wp-site-blocks { overflow-x: clip; }

img { height: auto; }

:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- One gap between page sections ----------
   Every full section block (Afroterra and the old Afrotunda ones) gets the same space above AND below — now 0: sections touch (user's choice, 2026-11-17).
   Margins collapse, so two sections always sit exactly one gap apart, whatever their order.
   Change the size in theme.json → settings.custom.section-gap. A margin set on a block in the editor still wins. */
:is(.wp-block-post-content, .is-root-container) > :is(
	.wp-block-afroterra-banner, .wp-block-afroterra-simple-banner, .wp-block-afroterra-page-heading,
	.wp-block-afroterra-image-text, .wp-block-afroterra-foldouts, .wp-block-afroterra-form-image,
	.wp-block-afroterra-media-wide, .wp-block-afroterra-bento, .wp-block-afroterra-photo-reel,
	.wp-block-afroterra-makers, .wp-block-afroterra-product-grid, .wp-block-afroterra-journal-slider,
	.wp-block-afroterra-logo-strip, .wp-block-afroterra-faq, .wp-block-afroterra-events,
	.afb.alignfull
) {
	margin-block: var(--wp--custom--section-gap, 0px);
}
:is(.wp-block-post-content, .is-root-container) > :is([class*="wp-block-afroterra-"], .afb):first-child { margin-block-start: 0; }
:is(.wp-block-post-content, .is-root-container) > :is([class*="wp-block-afroterra-"], .afb):last-child { margin-block-end: 0; }
/* Inset cards (Image + text → Inset card) float on the page colour: one even band of air above and below them, even though sections touch. */
:is(.wp-block-post-content, .is-root-container) > .wp-block-afroterra-image-text.at-imgtext--card { margin-block: var(--wp--preset--spacing--60); }

/* ---------- Old blocks' extra backgrounds: Background section, Essay (both .lb-section) and Lookbook ----------
   Canvas and Warm tint on sections come from the old plugin's CSS; these add Stone, White, Ink and Oxblood.
   On the dark ones the old blocks' colour tokens flip to light, and .at-on-dark (also on the block) handles core blocks. */
:is(.lb-section, .lb-lookbook).lb-tone-alt { background: var(--wp--preset--color--canvas-2); }
:is(.lb-section, .lb-lookbook).lb-tone-stone { background: var(--wp--preset--color--stone); }
:is(.lb-section, .lb-lookbook).lb-tone-white { background: var(--wp--preset--color--white); }
:is(.lb-section, .lb-lookbook).lb-tone-ink { background: var(--wp--preset--color--ink); }
:is(.lb-section, .lb-lookbook).lb-tone-oxblood { background: var(--wp--preset--color--oxblood); }
:is(.lb-section, .lb-lookbook):is(.lb-tone-ink, .lb-tone-oxblood) {
	--ed-text-title: var(--wp--preset--color--white);
	--ed-text-body: rgba(255, 255, 255, .84);
	--ed-text-meta: rgba(255, 255, 255, .66);
	--ed-line: rgba(255, 255, 255, .18);
	--ed-line-strong: rgba(255, 255, 255, .32);
	--ed-accent: var(--wp--preset--color--amber);
	color: rgba(255, 255, 255, .84);
}
/* Lookbook band: the colour runs edge to edge of the screen, with air above and below the photos. */
.lb-lookbook[class*="lb-tone-"] {
	padding-block: var(--wp--preset--spacing--60);
	box-shadow: 0 0 0 100vmax var(--at-lookbook-band);
	clip-path: inset(0 -100vmax);
}
.lb-lookbook.lb-tone-alt { --at-lookbook-band: var(--wp--preset--color--canvas-2); }
.lb-lookbook.lb-tone-stone { --at-lookbook-band: var(--wp--preset--color--stone); }
.lb-lookbook.lb-tone-white { --at-lookbook-band: var(--wp--preset--color--white); }
.lb-lookbook.lb-tone-ink { --at-lookbook-band: var(--wp--preset--color--ink); }
.lb-lookbook.lb-tone-oxblood { --at-lookbook-band: var(--wp--preset--color--oxblood); }

/* Short pages (an empty cart, a login form) still fill the screen: the footer
   sits at the bottom of the window instead of floating halfway up it. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > main { flex: 1 0 auto; }
body.admin-bar .wp-site-blocks { min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part:has(.at-header) {
	position: sticky;
	/* Pull the sticky edge up by the announcement's height so the announcement
	   scrolls away and only the logo bar stays pinned. --at-announce-h is
	   measured by assets/js/header.js (0 until then, i.e. everything sticks). */
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--at-announce-h, 0px));
	z-index: 40;
}
.at-header { border-bottom: var(--at-line); }
.at-header__bar { min-height: var(--wp--custom--header-height); gap: var(--wp--preset--spacing--40); }
.at-header__tools { gap: 4px; align-items: center; }
.at-header .wp-block-site-logo img { display: block; }

/* Header tools: search, account, bag. The three blocks ship three unrelated
   icons (different weights, different boxes), so each is redrawn here from one
   set — 1.5px line, round joins — in an identical 40px target. */
.at-header__tools {
	--at-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
	--at-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.75'/%3E%3Cpath d='M4.5 20.25c.6-3.6 3.6-5.75 7.5-5.75s6.9 2.15 7.5 5.75'/%3E%3C/svg%3E");
	--at-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.25 8.25h13.5l.9 12H4.35z'/%3E%3Cpath d='M8.75 8.25V7a3.25 3.25 0 0 1 6.5 0v1.25'/%3E%3C/svg%3E");
}
.at-header__tools .wp-block-search__inside-wrapper { border: 0; padding: 0; align-items: center; }
.at-header__tools .wp-block-search__button,
.at-header__tools .wc-block-customer-account__link,
.at-header__tools .wc-block-mini-cart__button {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-width: 0; margin: 0; padding: 0;
	background: none; border: 0; border-radius: 0;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: color var(--at-dur-fast) var(--at-ease);
}
.at-header__tools .wp-block-search__button:hover,
.at-header__tools .wc-block-customer-account__link:hover,
.at-header__tools .wc-block-mini-cart__button:hover { background: none; color: var(--wp--preset--color--oxblood); opacity: 1; }
.at-header__tools :is(.wp-block-search__button, .wc-block-customer-account__link, .wc-block-mini-cart__button):focus-visible {
	outline: 1px solid var(--wp--preset--color--ink); outline-offset: -4px;
}
.at-header__tools :is(.wp-block-search__button, .wc-block-customer-account__link, .wc-block-mini-cart__button) svg { display: none; }
/* Signed in, Woo adds the Gravatar beside the icon; the outline icon alone stands for the account. */
.at-header__tools .wc-block-customer-account__avatar { display: none; }
.at-header__tools :is(.wp-block-search__button, .wc-block-customer-account__link, .wc-block-mini-cart__button)::before {
	content: ""; width: 22px; height: 22px; flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: var(--at-icon) center / contain no-repeat;
	mask: var(--at-icon) center / contain no-repeat;
}
.at-header__tools .wp-block-search__button { --at-icon: var(--at-icon-search); }
.at-header__tools .wc-block-customer-account__link { --at-icon: var(--at-icon-user); }
.at-header__tools .wc-block-mini-cart__button { --at-icon: var(--at-icon-bag); }
.at-header__tools .wc-block-customer-account__visual,
.at-header__tools .wc-block-mini-cart__quantity-badge { display: contents; }
.at-header__tools .wp-block-woocommerce-customer-account,
.at-header__tools .wc-block-mini-cart { display: flex; margin: 0; }
/* How many pieces are in the bag: a small oxblood count on the icon's shoulder. */
.at-header__tools .wc-block-mini-cart__badge {
	position: absolute; top: 3px; right: 1px; left: auto; transform: none;
	min-width: 16px; height: 16px; padding: 0 4px; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--oxblood); color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--label); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0;
}
.at-header__tools .wc-block-mini-cart__badge { background: var(--wp--preset--color--oxblood) !important; color: var(--wp--preset--color--white) !important; }
.at-header__tools .wc-block-mini-cart__badge[hidden],
.at-header__tools .wc-block-mini-cart__badge:empty { display: none; }
.at-header__tools .wc-block-mini-cart__amount { display: none; }
.at-header__tools .at-lang { margin-right: 8px; }
/* The search field opens to the left of its icon, over the bar. */
.at-header__tools .wp-block-search__input {
	min-height: 40px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--wp--custom--color--hair-strong);
	background: transparent;
}
@media (max-width: 599px) {
	/* The footer carries the language switch on small screens. */
	.at-header__tools .at-lang { display: none; }
	.at-header__tools :is(.wp-block-search__button, .wc-block-customer-account__link, .wc-block-mini-cart__button) { width: 36px; }
}
.at-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--canvas);
	border: var(--at-line);
	padding: var(--wp--preset--spacing--20) 0;
	min-width: 220px;
}

/* Transparent header over a hero: sits above the first block, inverts to white ink. */
.at-header.is-style-transparent,
.at-header--transparent {
	position: absolute;
	inset-inline: 0;
	background: transparent !important;
	border-bottom-color: rgba(255, 255, 255, .25);
	color: var(--wp--preset--color--white);
}
.at-header--transparent :where(a, .wp-block-navigation-item__content, button) { color: var(--wp--preset--color--white) !important; }
.wp-site-blocks > header.wp-block-template-part:has(.at-header--transparent) { position: relative; height: 0; z-index: 40; }

/* Announcement bar */
.at-announce {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	text-align: center;
}
.at-announce a { color: inherit; }

/* ---------- Footer ---------- */
.at-footer { border-top: var(--at-line); }
.at-footer .wp-block-navigation { --navigation-layout-gap: 10px; text-transform: none; letter-spacing: 0; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: var(--wp--preset--font-size--small); }
.at-footer__base { border-top: var(--at-line); }
.at-footer__meta { align-items: center; }
.at-footer__meta p { margin: 0; }
/* Tighter link lists in the footer. */
.at-footer .wp-block-list.is-style-plain li { line-height: 1.45; }
.at-footer .wp-block-list.is-style-plain li + li { margin-top: 6px; }
/* Omnisend draws its form with 32px of inner padding (20 + 12); pull it out so its title
   lines up with the column headings and its text with the column edge. */
.at-footer .at-newsletter { max-width: none; }
.at-footer .at-newsletter__embed { margin: -32px -32px 0; }
@media (max-width: 781px) {
	.at-footer .wp-block-columns { gap: var(--wp--preset--spacing--50); }
}
/* Tablet: brand text on its own row; the link columns and the newsletter stay side by side below it. */
@media (min-width: 782px) and (max-width: 1199px) {
	.at-footer > .wp-block-columns { flex-wrap: wrap !important; row-gap: var(--wp--preset--spacing--60); }
	.at-footer > .wp-block-columns > .wp-block-column:first-child { flex-basis: 100% !important; }
	.at-footer > .wp-block-columns > .wp-block-column:first-child > p:last-child { max-width: 420px; }
}

/* ---------- Type vocabulary ---------- */
.is-style-eyebrow,
.at-eyebrow {
	font-family: var(--wp--preset--font-family--label) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label) !important;
	line-height: normal !important;
	color: var(--wp--preset--color--meta);
}
.is-style-lead { font-size: var(--wp--preset--font-size--lead); }
:where(.is-style-band, .is-style-ink, .has-oxblood-background-color, .has-ink-background-color) .is-style-eyebrow { color: var(--wp--preset--color--amber); letter-spacing: var(--wp--custom--tracking--label-wide) !important; }

/* Reading measure: bare prose inside wide sections still reads at 620px. */
.wp-block-group.alignwide > p:not([class*="has-text-align"]),
.wp-block-group.alignfull > p:not([class*="has-text-align"]) { max-width: var(--wp--style--global--content-size); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background var(--at-dur-fast) var(--at-ease), color var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease); }
.wp-block-button.is-style-line .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink); border-color: var(--wp--custom--color--hair-strong);
}
.wp-block-button.is-style-line .wp-block-button__link:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--canvas); }
.wp-block-button.is-style-on-image .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.wp-block-button.is-style-on-image .wp-block-button__link:hover { background: var(--wp--preset--color--oxblood); border-color: var(--wp--preset--color--oxblood); color: var(--wp--preset--color--white); }
.wp-block-button.is-style-text .wp-block-button__link {
	background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; color: var(--wp--preset--color--ink);
}
.wp-block-button.is-style-text .wp-block-button__link:hover { color: var(--wp--preset--color--oxblood); background: none; }

/* Outline button (core "Outline" style): the outlined Afrotunda button. */
.wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):not(.has-background) {
	border: 1px solid var(--wp--preset--color--oxblood); background: transparent; color: var(--wp--preset--color--oxblood); padding: 15px 34px;
}
.wp-block-buttons > .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):not(.has-background):hover { background: var(--wp--preset--color--oxblood); color: var(--wp--preset--color--white); }

/* Dark grounds drawn by Afroterra blocks (Banner, Image + text, Page heading). */
.at-on-dark { color: rgba(255, 255, 255, .84); }
.at-on-dark :is(h1, h2, h3, h4, h5, h6):not([class*="-color"]), .at-on-dark a:not(.wp-block-button__link):not([class*="-color"]) { color: var(--wp--preset--color--white); } /* beats the editor's .editor-styles-wrapper h2 */
.at-on-dark .is-style-eyebrow { color: var(--wp--preset--color--amber); }
.at-on-dark .wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-line) > .wp-block-button__link:not(.has-text-color):not(.has-background) { background: transparent; color: var(--wp--preset--color--white); border-color: rgba(255, 255, 255, .75); }
.at-on-dark .wp-block-buttons > .wp-block-button:is(.is-style-outline, .is-style-line) > .wp-block-button__link:not(.has-text-color):not(.has-background):hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.at-on-oxblood .wp-block-buttons > .wp-block-button:not(.is-style-outline, .is-style-line, .is-style-text, .is-style-on-image) > .wp-block-button__link:not(.has-background) { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.at-on-oxblood .wp-block-buttons > .wp-block-button:not(.is-style-outline, .is-style-line, .is-style-text, .is-style-on-image) > .wp-block-button__link:not(.has-background):hover { background: var(--wp--preset--color--canvas-2); border-color: var(--wp--preset--color--canvas-2); }

/* ---------- Glass (frosted panels: Banner, Page heading, header, sticky cart, photo buttons) ----------
   Falls back to near-solid colour where backdrop-filter is missing or the visitor asks for less transparency. */
:root {
	--at-glass-filter: blur(18px) saturate(1.4);
	--at-glass-light: rgba(247, 245, 242, .62);
	--at-glass-light-strong: rgba(247, 245, 242, .8);
	--at-glass-dark: rgba(23, 21, 15, .45);
	--at-glass-oxblood: rgba(94, 22, 0, .58);
	--at-glass-edge: rgba(255, 255, 255, .38);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	:root { --at-glass-light: rgba(247, 245, 242, .95); --at-glass-light-strong: rgba(247, 245, 242, .97); --at-glass-dark: rgba(23, 21, 15, .88); --at-glass-oxblood: rgba(94, 22, 0, .94); }
}
@media (prefers-reduced-transparency: reduce) {
	:root { --at-glass-light: rgba(247, 245, 242, .95); --at-glass-light-strong: rgba(247, 245, 242, .97); --at-glass-dark: rgba(23, 21, 15, .88); --at-glass-oxblood: rgba(94, 22, 0, .94); }
}

/* Sticky header: frosted. The glass sits on a pseudo-element of the (already positioned) sticky wrapper, because
   backdrop-filter on an ancestor would trap the mobile menu's position:fixed overlay inside the header. */
.wp-site-blocks > header.wp-block-template-part:has(.at-header):not(:has(.at-header--transparent))::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--at-glass-light-strong); -webkit-backdrop-filter: var(--at-glass-filter); backdrop-filter: var(--at-glass-filter);
}
.at-header.has-canvas-background-color:not(.at-header--transparent) { background-color: transparent !important; }

/* ---------- Grounds ---------- */
.wp-block-group.is-style-band { background: var(--wp--preset--color--oxblood); color: rgba(255, 255, 255, .86); }
.wp-block-group.is-style-band :where(h1, h2, h3, h4, h5, a:not(.wp-block-button__link)) { color: var(--wp--preset--color--white); }
.wp-block-group.is-style-band .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.wp-block-group.is-style-band .wp-block-button__link:hover { background: var(--wp--preset--color--canvas-2); border-color: var(--wp--preset--color--canvas-2); }
.wp-block-group.is-style-ink { background: var(--wp--preset--color--ink); color: rgba(255, 255, 255, .78); }
.wp-block-group.is-style-ink :where(h1, h2, h3, h4, h5, a:not(.wp-block-button__link)) { color: var(--wp--preset--color--white); }
.wp-block-group.is-style-card { background: var(--wp--preset--color--white); border: var(--at-line); padding: var(--wp--preset--spacing--50); }
.wp-block-group.is-style-ruled { border-top: var(--at-line); padding-top: var(--wp--preset--spacing--50); }

/* ---------- Media ---------- */
.wp-block-image { overflow: hidden; }
.wp-block-image.is-style-product img { aspect-ratio: var(--wp--custom--ratio--product); object-fit: cover; width: 100%; }
.wp-block-image.is-style-editorial img { aspect-ratio: var(--wp--custom--ratio--editorial); object-fit: cover; width: 100%; }
.wp-block-image.is-style-square img { aspect-ratio: 1; object-fit: cover; width: 100%; object-position: center 62%; }
:where(a) > img, .wp-block-image a img, .wc-block-components-product-image img, .wc-block-grid__product-image img {
	transition: transform var(--at-dur) var(--at-ease);
}
:where(.wp-block-image a, .wc-block-components-product-image a):hover img { transform: scale(var(--wp--custom--motion--hover-image-scale)); }
.wp-block-cover .wp-block-cover__background.has-scrim-gradient-background { opacity: 1; }

/* ---------- Lists ---------- */
.wp-block-list.is-style-specs { list-style: none; padding: 0; border-top: var(--at-line); }
.wp-block-list.is-style-specs li { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 0; border-bottom: var(--at-line); }
.wp-block-list.is-style-specs li strong { font-family: var(--wp--preset--font-family--label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--wp--custom--tracking--label); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.wp-block-list.is-style-plain { list-style: none; padding: 0; }
.wp-block-list.is-style-plain li + li { margin-top: 10px; }
.wp-block-list.is-style-plain a { text-decoration: none; color: var(--wp--preset--color--body); }
.wp-block-list.is-style-plain a:hover { color: var(--wp--preset--color--ink); text-decoration: underline; }

/* ---------- Accordion (core/details) ---------- */
.wp-block-details { border-bottom: var(--at-line); }
.wp-block-details summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	font-family: var(--wp--preset--font-family--label); font-weight: 600; text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label); font-size: var(--wp--preset--font-size--label-lg); color: var(--wp--preset--color--ink);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-size: 1.25rem; font-weight: 300; transition: transform var(--at-dur-fast) var(--at-ease); }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { max-width: var(--wp--style--global--content-size); }

/* ---------- Text, lists and tables (WordPress's own blocks), the Afrotunda way ---------- */
/* Lists: small oxblood squares; numbers in the label face. Styled lists (specs, plain) keep their own look. */
.wp-block-list:not([class*="is-style-"]) { padding-left: 1.5em; }
.wp-block-list:not([class*="is-style-"]) li + li,
.wp-block-list:not([class*="is-style-"]) li > .wp-block-list { margin-top: .5em; }
ul.wp-block-list:not([class*="is-style-"]) { list-style: none; }
ul.wp-block-list:not([class*="is-style-"]) > li { position: relative; }
ul.wp-block-list:not([class*="is-style-"]) > li::before {
	content: ""; position: absolute; left: -1.25em; top: .72em;
	width: 5px; height: 5px; background: var(--wp--preset--color--oxblood);
}
ul.wp-block-list:not([class*="is-style-"]) ul > li::before { background: transparent; outline: 1px solid var(--wp--preset--color--oxblood); outline-offset: -1px; }
ol.wp-block-list:not([class*="is-style-"]) > li::marker {
	font-family: var(--wp--preset--font-family--label); font-weight: 600; color: var(--wp--preset--color--oxblood);
}
.at-on-dark ul.wp-block-list:not([class*="is-style-"]) > li::before { background: var(--wp--preset--color--amber); }
.at-on-dark ol.wp-block-list:not([class*="is-style-"]) > li::marker { color: var(--wp--preset--color--amber); }

/* Tables: hairline rows, no grid; label-face column titles; figures line up. */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--small); font-variant-numeric: tabular-nums; }
.wp-block-table :is(th, td) { border: 0; border-bottom: 1px solid var(--wp--preset--color--hair); padding: 14px 16px 14px 0; text-align: left; vertical-align: top; }
.wp-block-table thead { border: 0; }
.wp-block-table thead th,
.wp-block-table tr:first-child th {
	border-bottom: 1px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--label); font-weight: 600; font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--ink);
}
.wp-block-table tbody th { font-weight: 600; color: var(--wp--preset--color--ink); }
.wp-block-table tfoot { border: 0; }
.wp-block-table tfoot td { border-bottom: 0; border-top: 1px solid var(--wp--preset--color--ink); font-weight: 600; color: var(--wp--preset--color--ink); }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes :is(th, td) { padding-left: 16px; border-color: transparent; }
.wp-block-table.is-style-stripes thead th { border-bottom-color: var(--wp--preset--color--ink); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wp--preset--color--canvas-2); }
.wp-block-table figcaption,
.wp-block-table .wp-element-caption { margin-top: 12px; text-align: left; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--meta); }
.at-on-dark .wp-block-table :is(th, td) { border-bottom-color: rgba(255, 255, 255, .18); }
.at-on-dark .wp-block-table thead th { color: var(--wp--preset--color--white); border-bottom-color: var(--wp--preset--color--stone); }

/* Quote: the source in the label face. */
.wp-block-quote cite {
	display: block; margin-top: var(--wp--preset--spacing--20); font-style: normal;
	font-family: var(--wp--preset--font-family--label); font-size: var(--wp--preset--font-size--small); font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--meta);
}

/* Links in running text: thin underline that turns oxblood. */
:where(.entry-content, .wp-block-post-content, .at-text) p a:not(.wp-element-button) {
	text-decoration-thickness: 1px; text-underline-offset: 3px;
	transition: color var(--at-dur-fast) var(--at-ease);
}
:where(.entry-content, .wp-block-post-content, .at-text) p a:not(.wp-element-button):hover { color: var(--wp--preset--color--oxblood); }

/* ---------- Contact details row (Contact page; any group with class at-contact-ways) ---------- */
.at-contact-ways__list { gap: var(--wp--preset--spacing--50); }
.at-contact-ways__list > .wp-block-column { border-top: 1px solid var(--wp--preset--color--ink); padding-top: var(--wp--preset--spacing--30); }
.at-contact-ways__list .is-style-eyebrow { margin: 0 0 var(--wp--preset--spacing--20); }
.at-contact-ways__list .is-style-lead { margin: 0; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--title); line-height: 1.45; }
.at-contact-ways__list .is-style-lead a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .2s, background-size .3s var(--at-ease); }
.at-contact-ways__list .is-style-lead a:hover { color: var(--wp--preset--color--oxblood); }

/* ---------- Separator ---------- */
.wp-block-separator { border: 0; border-top: var(--at-line); opacity: 1; }
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { max-width: none; }

/* ---------- Forms ---------- */
:where(input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], select, textarea) {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	border: 1px solid var(--wp--custom--color--hair-strong);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	min-height: var(--wp--custom--control--height);
	padding: 10px 14px;
}
:where(input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--oxblood); outline-offset: 1px; }
:where(button, input[type="submit"]) { font-family: var(--wp--preset--font-family--label); }

/* WPForms prints its own submit button, which theme.json's button element
   never reaches. Same control as .wp-element-button. */
.wpforms-container .wpforms-submit {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--label-lg);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.1;
	text-transform: uppercase;
	padding: var(--wp--custom--control--padding);
	border: 1px solid var(--wp--preset--color--oxblood);
	border-radius: 0;
	background: var(--wp--preset--color--oxblood);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background var(--at-dur-fast) var(--at-ease), border-color var(--at-dur-fast) var(--at-ease);
}
.wpforms-container .wpforms-submit:hover {
	background: var(--wp--custom--color--oxblood-deep);
	border-color: var(--wp--custom--color--oxblood-deep);
}
.wpforms-container .wpforms-submit:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 3px; }
.wpforms-container .wpforms-field { padding: 0 0 12px; }
.wpforms-container :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { width: 100%; max-width: 100%; }

/* ---------- WooCommerce: product tiles ---------- */
.wc-block-product-template .wc-block-product,
.wc-block-product-template > li { text-align: left; }
.wc-block-components-product-image { background: var(--wp--preset--color--stone); overflow: hidden; }
.wc-block-components-product-image img { aspect-ratio: var(--wp--custom--ratio--product); object-fit: cover; width: 100%; }
.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--title);
	font-size: var(--wp--preset--font-size--body) !important;
	font-weight: 400;
	text-align: left !important;
	margin-block: 14px 4px;
}
.wc-block-product-template .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wc-block-product-template .wc-block-components-product-price { text-align: left !important; }
.wc-block-components-product-sale-badge,
.wc-block-components-product-badge {
	border-radius: 0 !important; border: 0 !important;
	background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--white) !important;
	font-family: var(--wp--preset--font-family--label); font-weight: 600; text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label); font-size: var(--wp--preset--font-size--small) !important;
	padding: 4px 10px !important;
}
.wc-block-breadcrumbs, .woocommerce-breadcrumb {
	font-family: var(--wp--preset--font-family--label); font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase; letter-spacing: var(--wp--custom--tracking--label); color: var(--wp--preset--color--meta);
}
.wc-block-breadcrumbs a { color: var(--wp--preset--color--meta); text-decoration: none; }

/* Woo buttons follow the brand button. */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-product-button .wp-block-button__link,
.single_add_to_cart_button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--label) !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	background: var(--wp--preset--color--oxblood) !important;
	color: var(--wp--preset--color--white) !important;
	min-height: var(--wp--custom--control--height);
}
.wc-block-components-button:not(.is-link):hover,
.single_add_to_cart_button:hover { background: var(--wp--custom--color--oxblood-deep) !important; }
.wc-block-components-text-input input, .wc-block-components-select select, .wc-block-components-combobox input { border-radius: 0 !important; }

/* Single product */
.at-product__summary .wp-block-post-title { margin-top: 0; }
.at-product__summary .wc-block-components-product-price,
.at-product__summary .wp-block-woocommerce-product-price { font-size: var(--wp--preset--font-size--lead) !important; color: var(--wp--preset--color--ink); }
@media (min-width: 782px) {
	/* The details column grows long (panels), so the gallery is the part that stays put. */
	.at-product__media { position: sticky; top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 0px) + 24px); align-self: flex-start; }
}
.woocommerce-tabs, .wp-block-woocommerce-product-details { border-top: var(--at-line); }

/* ---------- WooCommerce: cart, checkout, account ---------- */
.at-header--checkout .is-style-eyebrow { margin: 0; }
.at-header--checkout .is-style-eyebrow a { color: inherit; text-decoration: none; }
.at-header--checkout .is-style-eyebrow a:hover { color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Product notes arrive as preformatted text; set them as ordinary small print
   so a long line wraps instead of pushing the summary off the page. */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata :is(pre, code, p) {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	white-space: normal; overflow-wrap: anywhere;
	margin: 0; padding: 0; background: none; color: var(--wp--preset--color--meta);
}
.wc-block-components-order-summary-item__description,
.wc-block-cart-item__product { min-width: 0; }

/* Notices: a hairline box with a coloured edge, not the default tinted panels. */
.wc-block-components-notice-banner,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: var(--at-line); border-left: 2px solid var(--wp--preset--color--amber);
	border-radius: 0; background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
}
.wc-block-components-notice-banner:is(.is-success, .is-info, .is-warning, .is-error) {
	border: var(--at-line); border-left: 2px solid var(--wp--preset--color--amber);
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
}
.wc-block-components-notice-banner:focus { outline: 1px solid var(--wp--custom--color--hair-strong); outline-offset: 0; }
.wc-block-components-notice-banner:is(.is-success, .is-info, .is-warning) > svg { background: none; fill: var(--wp--preset--color--ink); }
.wc-block-components-notice-banner.is-error, .woocommerce-error { border-left-color: var(--wp--preset--color--oxblood); }
.wc-block-components-notice-banner > svg { background: none; fill: var(--wp--preset--color--oxblood); }

/* Square, hairline controls to match the rest of the site. */
.wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-textarea,
.wc-block-components-radio-control--highlight-checked,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-sidebar .wc-block-components-panel,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 0 !important; }
.wp-block-woocommerce-checkout-order-summary-block { border: var(--at-line); background: var(--wp--preset--color--white); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { border-radius: 0; min-height: var(--wp--custom--control--height); }
.wp-block-woocommerce-cart .wc-block-cart-items th,
.wc-block-cart__totals-title {
	font-family: var(--wp--preset--font-family--label); font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase;
	color: var(--wp--preset--color--meta);
}

/* My account (classic shortcode): two calm columns, hairline panels. */
.woocommerce-account .woocommerce { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: var(--at-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: var(--at-line); }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block; padding: 14px 0; text-decoration: none;
	font-family: var(--wp--preset--font-family--label); font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase;
	color: var(--wp--preset--color--meta);
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { color: var(--wp--preset--color--ink); }
.woocommerce-account :is(form.login, form.register, form.lost_reset_password) {
	border: var(--at-line); border-radius: 0; background: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--50); margin: 0;
}
.woocommerce-account .woocommerce-form-row :is(input.input-text, .password-input) { width: 100%; }
.woocommerce-account .woocommerce :is(h2, h3) { font-size: var(--wp--preset--font-size--title-md); margin: 0 0 var(--wp--preset--spacing--30); }
.woocommerce-account table.shop_table { border: 0; border-top: var(--at-line); border-radius: 0; border-collapse: collapse; width: 100%; }
.woocommerce-account table.shop_table :is(th, td) { border: 0; border-bottom: var(--at-line); padding: 14px 8px 14px 0; text-align: left; }

/* ---------- Cookie banner (Complianz) ---------- */
.cmplz-cookiebanner {
	border: var(--at-line) !important; border-radius: 0 !important; box-shadow: none !important;
	background: var(--wp--preset--color--white) !important;
	font-family: var(--wp--preset--font-family--body);
}
.cmplz-cookiebanner .cmplz-title { font-family: var(--wp--preset--font-family--title); font-weight: 400; color: var(--wp--preset--color--ink); }
.cmplz-cookiebanner .cmplz-message { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--body); }
.cmplz-cookiebanner .cmplz-btn {
	min-height: var(--wp--custom--control--height); border-radius: 0 !important; box-shadow: none !important;
	font-family: var(--wp--preset--font-family--label); font-size: var(--wp--preset--font-size--small);
	font-weight: 600; letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
	border-color: var(--wp--preset--color--oxblood) !important; background: var(--wp--preset--color--oxblood) !important; color: var(--wp--preset--color--white) !important;
}
.cmplz-cookiebanner .cmplz-btn:is(.cmplz-deny, .cmplz-view-preferences, .cmplz-save-preferences) {
	border-color: var(--wp--custom--color--hair-strong) !important; background: transparent !important; color: var(--wp--preset--color--ink) !important;
}
.cmplz-cookiebanner .cmplz-links a { color: var(--wp--preset--color--meta) !important; }
.cmplz-cookiebanner .cmplz-btn:focus-visible { outline: 1px solid var(--wp--preset--color--ink); outline-offset: 2px; }
#cmplz-manage-consent .cmplz-manage-consent {
	border: var(--at-line) !important; border-radius: 0 !important; box-shadow: none !important;
	font-family: var(--wp--preset--font-family--label); font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase;
}

/* Maker credit under the price (afroterra-commerce). */
.at-maker {
	display: flex; align-items: center; gap: 7px; margin: 6px 0 0;
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600; line-height: normal;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--meta);
}
.at-maker::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; background: var(--wp--preset--color--amber); }

/* ---------- Motion: reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.at-reveal { opacity: 0; transform: translateY(var(--wp--custom--motion--reveal-offset)); transition: opacity var(--wp--custom--motion--reveal-duration) var(--at-ease), transform var(--wp--custom--motion--reveal-duration) var(--at-ease); }
	.at-reveal.is-revealed { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.at-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-hide-mobile { }
@media (max-width: 781px) { .at-hide-mobile { display: none !important; } }
@media (min-width: 782px) { .at-hide-desktop { display: none !important; } }

/* Legacy gallery: fill the media column (Woo's CSS caps it at 48%). */
.at-product__media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.at-product__media .woocommerce-product-gallery__image img { aspect-ratio: var(--wp--custom--ratio--product); object-fit: cover; width: 100%; background: var(--wp--preset--color--stone); }
.at-product__media .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 2px !important; }
.at-product__media .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
.at-product__media .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; opacity: .6; transition: opacity var(--at-dur-fast) var(--at-ease); }
.at-product__media .flex-control-thumbs img.flex-active, .at-product__media .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { border-radius: 0 !important; z-index: 3 !important; } /* Woo uses 99: it showed through the sticky header */
.at-product__media .wp-block-woocommerce-product-image-gallery { max-width: none; }

/* ---------- Mobile navigation overlay: a left-aligned drawer with hairline rows ---------- */
.at-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--canvas) !important;
	padding: var(--wp--preset--spacing--40) var(--wp--custom--gutter);
}
.at-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: var(--wp--preset--spacing--60);
}
.at-header .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}
.at-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	flex-direction: row !important;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center !important;
	width: 100%;
	padding: 18px 0;
	border-bottom: var(--at-line);
	font-size: 1.05rem;
}
.at-header .is-menu-open .wp-block-navigation-item__content { color: var(--wp--preset--color--ink) !important; }
.at-header .is-menu-open .at-mega__toggle { width: 40px; height: 40px; margin-right: -8px; }

/* Legal / compliance content */
.afrotunda-product-compliance { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 16px; }
.afrotunda-product-compliance dt { font-family: var(--wp--preset--font-family--label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--wp--custom--tracking--label); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.afrotunda-product-compliance dd { margin: 0; }
.afrotunda-withdrawal form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; max-width: var(--wp--style--global--content-size); }
.afrotunda-withdrawal form .form-row { margin: 0; display: grid; gap: 6px; }
.afrotunda-withdrawal form .form-row-wide, .afrotunda-withdrawal form button { grid-column: 1 / -1; justify-self: start; }
.afrotunda-withdrawal form label { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--ink); }
.afrotunda-withdrawal .afrotunda-hp { position: absolute !important; left: -9999px; }
@media (max-width: 600px) { .afrotunda-withdrawal form { grid-template-columns: 1fr; } }

/* ---------- Shop: filter sidebar ---------- */
.at-shop__filters .wc-block-product-filters { position: sticky; top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 0px) + 24px); }
.at-shop__filters :where(.wp-block-woocommerce-product-filter-taxonomy, .wp-block-woocommerce-product-filter-attribute, .wp-block-woocommerce-product-filter-price, .wp-block-woocommerce-product-filter-status, .wp-block-woocommerce-product-filter-active) {
	border-top: var(--at-line);
	padding-block: 18px;
	margin: 0;
}
.at-shop__filters h3.wp-block-heading {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--preset--color--ink);
	margin: 0 0 14px;
}
.at-shop__filters .wc-block-product-filter-checkbox-list__label,
.at-shop__filters .wc-block-product-filter-checkbox-list__text { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--body); }
.at-shop__filters input[type="checkbox"] { min-height: 0; accent-color: var(--wp--preset--color--ink); border-radius: 0; }
/* Size chips match the product page swatches. */
.at-shop__filters .wc-block-product-filter-chips__item {
	border-radius: 0 !important;
	border: 1px solid var(--wp--custom--color--hair-strong) !important;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	min-width: 44px;
	min-height: 40px;
	justify-content: center;
}
.at-shop__filters .wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
}
.wc-block-product-filter-removable-chips__item { border-radius: 0 !important; border-color: var(--wp--custom--color--hair-strong) !important; font-size: var(--wp--preset--font-size--small); }
.at-shop__filters .wc-block-product-filter-price-slider .wc-block-product-filter-price-slider__range { --range-color: var(--wp--preset--color--ink); }
.at-shop__filters .wc-block-product-filter-price-slider input[type="text"] { min-height: 38px; padding: 6px 10px; font-size: var(--wp--preset--font-size--small); }
@media (max-width: 781px) {
	.at-shop.wp-block-columns { gap: 0; }
	.at-shop__filters { flex-basis: auto !important; }
	.at-shop__filters .wc-block-product-filters { position: static; }
}

/* ---------- Layout styles used by the pattern library ---------- */
/* Mosaic: a grid group of images, flush, every image fills its cell. */
.wp-block-group.is-style-mosaic { gap: 2px !important; grid-auto-rows: clamp(160px, 19vw, 300px); grid-auto-flow: dense; }
.wp-block-group.is-style-mosaic > .wp-block-image { margin: 0; height: 100%; overflow: hidden; background: var(--wp--preset--color--stone); }
.wp-block-group.is-style-mosaic > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.wp-block-group.is-style-mosaic > .wp-block-image figcaption { position: absolute; inset: auto 0 0 0; margin: 0; padding: 14px 16px; color: var(--wp--preset--color--white); background: linear-gradient(to top, rgba(23,21,15,.6), transparent); font-size: var(--wp--preset--font-size--small); text-align: left; }
.wp-block-group.is-style-mosaic > .wp-block-image { position: relative; }
@media (max-width: 781px) {
	.wp-block-group.is-style-mosaic { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 44vw; }
	.wp-block-group.is-style-mosaic > * { grid-column: auto !important; grid-row: auto !important; }
}
/* Story tile: image + caption, or a text card when there is no image. */
.wp-block-group.is-style-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(220px, 24vw, 380px); background: var(--wp--preset--color--stone); }
.wp-block-group.is-style-tile > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.wp-block-group.is-style-tile > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-group.is-style-tile:has(> .wp-block-image) > :not(.wp-block-image) { position: relative; color: var(--wp--preset--color--white); }
.wp-block-group.is-style-tile:has(> .wp-block-image)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,21,15,.6) 0%, rgba(23,21,15,.1) 50%, transparent 75%); pointer-events: none; }
.wp-block-group.is-style-tile:has(> .wp-block-image) > :not(.wp-block-image) { z-index: 1; }
.wp-block-group.is-style-tile:not(:has(> .wp-block-image)) { background: var(--wp--preset--color--canvas-2); justify-content: center; }
.wp-block-group.is-style-tile .is-style-eyebrow { color: inherit; opacity: .85; }
@media (max-width: 781px) {
	.wp-block-group:has(> .is-style-tile) { grid-template-columns: 1fr !important; }
	.wp-block-group:has(> .is-style-tile) > * { grid-column: auto !important; grid-row: auto !important; }
}
/* Image styles */
.wp-block-image.is-style-band img { width: 100%; height: clamp(240px, 32vw, 420px); object-fit: cover; }
.wp-block-image.is-style-fill { height: 100%; margin: 0; }
.wp-block-image.is-style-fill img { width: 100%; height: 100%; min-height: clamp(280px, 34vw, 640px); object-fit: cover; object-position: center 62%; }
/* Reel: a horizontal scroller on small screens. */
@media (max-width: 781px) {
	.wp-block-post-template.is-style-reel { position: relative; display: grid !important; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
	.wp-block-post-template.is-style-reel > li { scroll-snap-align: start; }
}
/* Pullquote, plain */
.wp-block-pullquote.is-style-plain { border: 0; padding: var(--wp--preset--spacing--60) 0; text-align: center; }
.wp-block-pullquote.is-style-plain blockquote p { font-size: var(--wp--preset--font-size--title-lg); line-height: var(--wp--custom--leading--title); color: var(--wp--preset--color--ink); }
.wp-block-pullquote cite { font-family: var(--wp--preset--font-family--label); font-style: normal; text-transform: uppercase; letter-spacing: var(--wp--custom--tracking--label); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--meta); }
/* Split: two columns, image side fills, text side breathes. */
.wp-block-columns.is-split { gap: 0 !important; align-items: stretch !important; }
.wp-block-columns.is-split > .wp-block-column:not(:has(> .wp-block-image)) { display: flex; flex-direction: column; justify-content: center; padding: var(--wp--preset--spacing--80) var(--wp--custom--gutter); }
.wp-block-columns.is-split > .wp-block-column:not(:has(> .wp-block-image)) > * { max-width: 560px; }
@media (max-width: 781px) {
	.wp-block-columns.is-split.is-split--reverse { flex-direction: column-reverse; }
	.wp-block-columns.is-split > .wp-block-column:not(:has(> .wp-block-image)) { padding: var(--wp--preset--spacing--60) var(--wp--custom--gutter); }
}
/* Product grids inside patterns get quick-view-ready tiles like the shop. */
.wp-block-woocommerce-product-collection .wc-block-product-template { row-gap: var(--wp--preset--spacing--50); }

/* "Where to find us" (About page) is a link target: land below the sticky header. */
#where-to-find-us {
	scroll-margin-top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 0px));
}

/* ---------- Slider (block style "Slider" on product lists) ---------- */
.is-style-slider { position: relative; }
.is-style-slider .wc-block-product-template,
.is-style-slider .wp-block-post-template {
	position: relative; /* keeps screen-reader text inside the scroller (it made the whole page scroll sideways) */
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: 72%;
	grid-template-columns: none !important;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.is-style-slider .wc-block-product-template::-webkit-scrollbar,
.is-style-slider .wp-block-post-template::-webkit-scrollbar { display: none; }
.is-style-slider .wc-block-product-template > li,
.is-style-slider .wp-block-post-template > li { scroll-snap-align: start; width: auto !important; margin: 0 !important; }
@media (min-width: 782px) {
	.is-style-slider .wc-block-product-template,
	.is-style-slider .wp-block-post-template { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
}
.at-slider__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 var(--wp--preset--spacing--30); }
.at-slider__head > .wp-block-heading { margin: 0; }
.is-style-slider > .wp-block-heading { margin: 0 0 var(--wp--preset--spacing--30); }
.at-slider__nav { display: flex; gap: 8px; flex: none; margin-left: auto; }
.at-slider__nav[hidden] { display: none; }
.at-slider__btn {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
	border: 1px solid var(--wp--preset--color--ink); border-radius: 0;
	background: transparent; color: var(--wp--preset--color--ink);
	transition: background-color .15s, color .15s, border-color .15s;
}
.at-slider__btn::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M20 12H4M10 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.at-slider__btn--next::before { transform: scaleX(-1); }
.at-slider__btn:hover:not(:disabled) { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--canvas); }
.at-slider__btn:focus-visible { outline: 2px solid var(--wp--preset--color--oxblood); outline-offset: 2px; }
.at-slider__btn:disabled { border-color: var(--wp--preset--color--hair); color: var(--wp--preset--color--stone); cursor: default; }

.at-product__summary .wp-block-post-title { margin-top: 0; }
.at-editor-note { padding: 12px; border: 1px dashed var(--wp--preset--color--hair); color: var(--wp--preset--color--meta); font-size: .875rem; }
