/* ==========================================================================
   Filmcare – base, layout, header, footer, content pages
   Catalog / product / request components are added per phase.
   ========================================================================== */

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 700; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
a { color: var(--c-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font-family: inherit; }
[hidden] { display: none !important; }

/* Focus: visible ring everywhere, brand blue (3:1+ on all surfaces). */
:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.fc-header :focus-visible { outline-color: #FFFFFF; }
:root[data-theme="dark"] .fc-header :focus-visible { outline-color: var(--c-ring); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fc-header :focus-visible { outline-color: var(--c-ring); } }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.fc-skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--c-ink); color: var(--c-on-ink); font-weight: 700; text-decoration: none; }
.fc-skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.fc-container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.fc-main { min-height: 50vh; }
.fc-page { padding-top: 32px; padding-bottom: 48px; }
.fc-breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.fc-breadcrumb a { color: inherit; }

/* ---------- Buttons ---------- */
.fc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--tap); padding: 0 20px; border-radius: var(--radius-pill);
	border: 1px solid transparent; background: var(--c-primary); color: var(--c-on-primary);
	font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1; white-space: nowrap;
}
.fc-btn:hover { filter: brightness(1.06); text-decoration: none; }
.fc-btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-ink); }
.fc-btn--lg { min-height: 52px; padding: 0 24px; }
.fc-btn[disabled], .fc-btn[aria-disabled="true"] { background: var(--c-disabled); color: var(--c-on-disabled); border-color: transparent; cursor: not-allowed; filter: none; }

.fc-icon-btn {
	width: var(--tap); height: var(--tap); border-radius: var(--radius-pill);
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid transparent; background: transparent; color: inherit; padding: 0;
}

/* ---------- Form fields ---------- */
.fc-field { display: flex; flex-direction: column; gap: 4px; }
.fc-field label { font-size: 13px; color: var(--c-muted); }
.fc-input {
	height: var(--tap); padding: 0 12px; border-radius: var(--radius-input);
	border: 1px solid var(--c-border-strong); background: var(--c-field); color: var(--c-text);
}
@media (max-width: 640px) {
	/* 16px stops iOS zooming into fields. */
	.fc-input { height: 48px; font-size: 16px; }
}

/* ---------- Notice bar ---------- */
.fc-notice { background: var(--c-notice); color: var(--c-on-notice); font-size: 13px; line-height: 1.4; padding: 8px var(--gutter); text-align: center; }
.fc-notice__short { display: none; }
@media (max-width: 640px) {
	.fc-notice__long { display: none; }
	.fc-notice__short { display: inline; }
}

/* ---------- Header ---------- */
.fc-header { background: var(--c-header); border-bottom: 1px solid var(--c-header-border); color: var(--c-header-text); position: relative; z-index: 10; }
.fc-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; }
.fc-logo { display: flex; align-items: center; flex: none; }
.fc-logo img { display: block; height: 44px; width: auto; }

.fc-search { flex: 1 1 320px; position: relative; display: flex; align-items: center; margin: 0; }
.fc-search__icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.fc-search__input {
	width: 100%; height: var(--tap); padding: 0 72px 0 42px;
	border: 1px solid var(--c-header-field-border); border-radius: var(--radius-pill);
	background: var(--c-header-field); color: var(--c-text); font-size: 15px;
}
.fc-search__input::placeholder { color: var(--c-muted); opacity: 1; }
.fc-search__kbd {
	position: absolute; right: 14px; font-size: 12px; color: var(--c-muted);
	border: 1px solid var(--c-border-strong); border-radius: 5px; padding: 2px 6px; background: var(--c-header-field); pointer-events: none;
}

.fc-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.fc-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.fc-menu a, .fc-nav__link {
	display: inline-flex; align-items: center; min-height: var(--tap);
	color: var(--c-header-text); text-decoration: none;
	font-size: 14px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.fc-menu a:hover { text-decoration: underline; }
.fc-menu .current-menu-item > a, .fc-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.fc-theme-toggle { border-color: var(--c-header-icon-border); color: var(--c-header-text); }
.fc-theme-toggle .fc-i-sun { display: none; }
:root[data-theme="dark"] .fc-theme-toggle .fc-i-sun { display: block; }
:root[data-theme="dark"] .fc-theme-toggle .fc-i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .fc-theme-toggle .fc-i-sun { display: block; }
	:root:not([data-theme="light"]) .fc-theme-toggle .fc-i-moon { display: none; }
}

.fc-request-btn {
	display: inline-flex; align-items: center; gap: 10px; height: var(--tap); padding: 0 18px;
	border-radius: var(--radius-pill); background: var(--c-header-btn); color: var(--c-on-header-btn);
	text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.fc-badge {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: var(--radius-pill); background: var(--c-header-badge); color: var(--c-on-header-badge);
	font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.fc-badge[data-count="0"] { display: none; }

.fc-menu-btn { display: none; color: var(--c-header-text); }

@media (max-width: 640px) {
	.fc-header__inner { flex-wrap: nowrap; gap: 4px; padding: 8px 8px 8px 4px; }
	.fc-menu-btn { display: inline-flex; }
	.fc-logo { flex: 1; min-width: 0; }
	.fc-logo img { height: 32px; }
	.fc-header .fc-search, .fc-header .fc-menu { display: none; }
	.fc-nav { flex-wrap: nowrap; gap: 4px; }
	.fc-theme-toggle { border-color: transparent; }
	.fc-request-btn { position: relative; width: var(--tap); padding: 0; justify-content: center; }
	.fc-request-btn__label { display: none; }
	.fc-request-btn .fc-badge {
		position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
		font-size: 11px; border: 2px solid var(--c-header);
	}
}

/* ---------- Drawer (mobile menu; categories join it in phase 2) ---------- */
.fc-drawer { position: fixed; inset: 0; z-index: 50; display: flex; }
.fc-drawer[hidden] { display: none; }
.fc-drawer__backdrop { position: absolute; inset: 0; background: var(--c-overlay); border: 0; padding: 0; }
.fc-drawer__panel {
	position: relative; width: 86%; max-width: 340px; height: 100%; overflow-y: auto;
	background: var(--c-bg); color: var(--c-text); padding: 12px 12px 24px;
	display: flex; flex-direction: column; gap: 12px;
	transform: translateX(-100%); transition: transform 0.2s ease;
}
.fc-drawer.is-open .fc-drawer__panel { transform: none; }
.fc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-left: 8px; }
.fc-drawer__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.fc-drawer .fc-search { flex: none; }
.fc-drawer .fc-search__input { background: var(--c-field); border-color: var(--c-border-strong); font-size: 16px; padding-right: 14px; }
.fc-drawer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-drawer-menu a {
	display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-input);
	color: var(--c-text); text-decoration: none; font-size: 16px; font-weight: 600;
}
.fc-drawer-menu a:hover, .fc-drawer-menu .current-menu-item > a { background: var(--c-selected-bg); }
body.fc-no-scroll { overflow: hidden; }

/* ---------- Content pages (Gutenberg text blocks) ---------- */
.fc-prose { max-width: 760px; }
.fc-prose > * + * { margin-top: 1em; }
.fc-prose h2 { margin-top: 1.6em; }
.fc-prose img { border-radius: var(--radius-card); }
.fc-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--c-border-strong); color: var(--c-soft); }
.fc-prose table { width: 100%; border-collapse: collapse; }
.fc-prose th, .fc-prose td { border-bottom: 1px solid var(--c-border); padding: 8px 10px; text-align: left; }
.fc-prose .wp-block-gallery img { border-radius: var(--radius-sm); }

/* ---------- Placeholder (phase scaffolding) ---------- */
.fc-placeholder {
	border: 1px dashed var(--c-border-strong); border-radius: var(--radius-card);
	padding: 40px 20px; text-align: center; color: var(--c-muted); background: var(--c-band);
}
.fc-placeholder strong { display: block; color: var(--c-text); font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }

/* ---------- How renting works ---------- */
.fc-how { margin-top: 32px; border-top: 1px solid var(--c-border); padding-top: 24px; }
.fc-how h2 { margin: 0 0 12px; font-size: 20px; }
.fc-how--intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; }
.fc-how--intro .fc-steps { grid-template-columns: 1fr; gap: 14px; }
.fc-how__intro p { margin: 0 0 12px; color: var(--c-soft); font-size: 15px; line-height: 1.65; max-width: 60ch; }
.fc-how__more { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; }
.fc-how__more:hover { text-decoration: underline; }
@media (max-width: 760px) { .fc-how--intro { grid-template-columns: minmax(0, 1fr); } }
.fc-steps { list-style: none; margin: 0; padding: 0; counter-reset: fc-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fc-steps li { counter-increment: fc-step; display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.fc-steps li::before {
	content: counter(fc-step); flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--c-primary); color: var(--c-on-primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.fc-steps strong, .fc-steps span { display: block; }
.fc-steps span { color: var(--c-muted); }

/* ---------- Footer ---------- */
.fc-footer { background: var(--c-footer); color: var(--c-footer-text); margin-top: 32px; }
.fc-footer__inner {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
	padding-top: 36px; padding-bottom: 36px; font-size: 14px; line-height: 1.6;
}
.fc-footer__logo img { display: block; height: 36px; width: auto; }
.fc-footer__head { font-weight: 700; color: var(--c-footer-head); margin: 0 0 8px; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.fc-footer a { color: var(--c-footer-text); }
.fc-footer a:hover { color: var(--c-footer-head); }
.fc-footer ul { list-style: none; margin: 0; padding: 0; }
.fc-footer address { font-style: normal; }
.fc-footer__social { display: flex; gap: 8px; margin-top: 4px; }
.fc-footer__social a {
	width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-pill);
}
.fc-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

/* ==========================================================================
   Booqable plugin version: catalog / product / cart layout around the widgets
   (widget internals are in booqable.css)
   ========================================================================== */

/* ---------- Rental period band ---------- */
.fc-period { background: var(--c-band); border-bottom: 1px solid var(--c-border); padding: 14px 0; }
.fc-period--compact { padding: 10px 0; }
.fc-period .fc-container { max-width: 960px; }

/* ---------- Catalog ---------- */
.fc-catalog {
	display: grid; gap: 20px 32px; padding-top: 28px; padding-bottom: 48px;
	grid-template-columns: 260px minmax(0, 1fr);
	grid-template-areas:
		"aside head"
		"aside bar"
		"aside list"
		"aside how";
	align-items: start;
}
.fc-catalog:not(.fc-catalog--product) { grid-template-rows: auto auto 1fr auto; } /* head bar list how: slack goes to the list */
.fc-catalog:not(.fc-catalog--product):has(.fc-catalog__banners:not([hidden]) .fc-banners) { grid-template-rows: auto auto auto 1fr auto; }
@media (max-width: 640px) { .fc-catalog:not(.fc-catalog--product), .fc-catalog:not(.fc-catalog--product):has(.fc-catalog__banners:not([hidden]) .fc-banners) { grid-template-rows: none; } }
.fc-catalog__head { grid-area: head; }
.fc-catalog__head h1 { margin: 0; }
.fc-catalog__notice { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-input); background: var(--c-selected-bg); color: var(--c-text); font-size: 14px; }
.fc-catalog__aside { grid-area: aside; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.fc-catalog__aside-title {
	margin: 0 0 -8px; padding-left: 10px; font-family: var(--font-body); font-size: 12px; font-weight: 700;
	letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted);
}
.fc-catalog__bar { grid-area: bar; }
.fc-catalog__list { grid-area: list; min-height: 400px; }
.fc-catalog__how { grid-area: how; margin-top: 8px; }

.fc-package {
	display: flex; flex-direction: column; gap: 4px; padding: 16px;
	background: var(--c-band); border: 1px solid var(--c-border); border-radius: var(--radius-card);
	font-size: 14px; line-height: 1.5; color: var(--c-soft);
}
.fc-package strong { color: var(--c-text); font-family: var(--font-head); font-weight: 600; font-size: 15px; }

@media (max-width: 900px) {
	.fc-catalog { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
	.fc-catalog {
		grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px;
		grid-template-areas: "head" "bar" "aside" "list" "how";
	}
	.fc-catalog__aside { position: static; }
	.fc-catalog__aside-title, .fc-package { display: none; }
	.fc-catalog__head h1 { font-size: 22px; }
}

/* ---------- Product page (catalog sidebar + product) ---------- */
/* The tall sidebar spans both rows; without 1fr its height is shared out over
   the rows and pushes the product down. */
.fc-catalog.fc-catalog--product { grid-template-areas: "aside head" "aside main"; grid-template-rows: auto 1fr; padding-top: 24px; }
.fc-product__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.fc-product .fc-breadcrumb { display: flex; gap: 6px; margin: 0; }
.fc-catalog--product .fc-sidebar-open { margin: 0 0 10px; }
@media (max-width: 640px) {
	/* Phones: product first, then the collections to keep browsing */
	.fc-catalog.fc-catalog--product { grid-template-areas: "head" "main" "aside"; grid-template-rows: none; }
	.fc-catalog--product .fc-catalog__aside { padding-top: 20px; border-top: 1px solid var(--c-border); }
	.fc-catalog--product .fc-catalog__aside-title { display: block; margin: 0; padding-left: 0; }
}
@media (min-width: 641px) {
	:root[data-fc-sidebar="collapsed"] .fc-catalog.fc-catalog--product { grid-template-areas: "head" "main"; }
}
.fc-placeholder a { display: inline-block; margin-top: 8px; }

/* ---------- Cart page ---------- */
.fc-cartpage h1 { margin-bottom: 4px; }
.fc-cartpage__intro { color: var(--c-muted); font-size: 14px; max-width: 640px; margin-bottom: 24px; }

/* ---------- Drawer extras ---------- */
.fc-drawer__contact { margin: 8px 12px 0; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted); }
.fc-drawer__contact a { font-weight: 700; font-size: 16px; }

/* ---------- Header layout: logo · menu (centred) · actions (right) ---------- */
.fc-header__inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: 12px 32px; flex-wrap: nowrap;
}
.fc-header .fc-logo { justify-self: start; }
.fc-header .fc-nav { justify-self: center; flex-wrap: nowrap; }
.fc-header .fc-menu { flex-wrap: nowrap; gap: 8px 28px; white-space: nowrap; }
.fc-header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* Medium widths: menu drops to its own row under logo + actions. */
@media (max-width: 1080px) and (min-width: 641px) {
	.fc-header__inner {
		grid-template-columns: auto 1fr;
		grid-template-areas: "logo actions" "nav nav";
		row-gap: 4px; padding-bottom: 6px;
	}
	.fc-header .fc-logo { grid-area: logo; }
	.fc-header__actions { grid-area: actions; }
	.fc-header .fc-nav { grid-area: nav; justify-self: start; }
}

@media (max-width: 640px) {
	.fc-header__inner { display: flex; gap: 4px; }
	.fc-header .fc-nav { display: none; }
	.fc-header__actions { gap: 4px; margin-left: auto; }
}

/* ---------- Catalog sidebar: FAQ link above the collections ---------- */
.fc-aside-links { display: flex; flex-direction: column; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.fc-aside-link {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 40px; padding: 8px 10px; border-radius: var(--radius-input);
	color: var(--c-soft); font-size: 15px; text-decoration: none;
}
.fc-aside-link:hover { background: var(--c-band); color: var(--c-text); text-decoration: none; }
.fc-aside-link .fc-i { color: var(--c-muted); }
@media (max-width: 640px) {
	/* Phones: the help links become one row of small links above the chips. */
	.fc-aside-links { flex-direction: row; flex-wrap: wrap; gap: 0 20px; padding-bottom: 0; border-bottom: 0; }
	.fc-aside-link { justify-content: flex-start; gap: 6px; padding: 0; min-height: 44px; color: var(--c-link); font-weight: 600; }
	.fc-aside-link .fc-i { order: -1; color: currentColor; }
	.fc-aside-link:hover { background: transparent; text-decoration: underline; }
}

/* ---------- Collapsible questions (<details>) on content pages ---------- */
.fc-prose details {
	border: 1px solid var(--c-border); border-radius: var(--radius-card);
	background: var(--c-surface); overflow: hidden;
}
.fc-prose details + details { margin-top: 8px; }
.fc-prose summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none;
	font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--c-text);
}
.fc-prose summary::-webkit-details-marker { display: none; }
.fc-prose summary::after {
	content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
	border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
	transform: rotate(45deg) translateY(-3px); transition: transform .15s ease;
}
.fc-prose details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.fc-prose summary:hover { background: var(--c-band); }
.fc-prose summary:focus-visible { outline-offset: -3px; }
.fc-prose details[open] > summary { border-bottom: 1px solid var(--c-border); }
.fc-prose details > :not(summary) { margin: 0; padding: 14px 16px 0; color: var(--c-soft); }
.fc-prose details > :not(summary) + :not(summary) { padding-top: 10px; }
.fc-prose details > :last-child:not(summary) { padding-bottom: 16px; }
.fc-prose details > ul, .fc-prose details > ol { padding-left: 36px; }

/* ==========================================================================
   Forms: WPForms (contact page)
   WPForms "modern" markup takes all colours/sizes from --wpforms-* custom
   properties. Map them to the theme tokens so the form follows light/night
   mode. !important on the properties because WPForms prints per-form size
   variables in an inline #wpforms-{id} rule.
   ========================================================================== */
.wpforms-container {
	--wpforms-field-background-color: var(--c-field) !important;
	--wpforms-field-border-color: var(--c-border-strong) !important;
	--wpforms-field-border-color-spare: var(--c-border-strong) !important;
	--wpforms-field-text-color: var(--c-text) !important;
	--wpforms-field-menu-color: var(--c-surface) !important;
	--wpforms-label-color: var(--c-text) !important;
	--wpforms-label-sublabel-color: var(--c-muted) !important;
	--wpforms-label-error-color: var(--c-error) !important;
	--wpforms-button-background-color: var(--c-primary) !important;
	--wpforms-button-border-color: var(--c-primary) !important;
	--wpforms-button-text-color: #FFFFFF !important;
	--wpforms-page-break-color: var(--c-primary) !important;
	--wpforms-field-border-radius: var(--radius-input) !important;
	--wpforms-button-border-radius: var(--radius-pill) !important;
	--wpforms-field-size-input-height: 48px !important;
	--wpforms-field-size-font-size: 16px !important;
	--wpforms-label-size-font-size: 15px !important;
	--wpforms-label-size-sublabel-font-size: 13px !important;
	--wpforms-button-size-height: 48px !important;
	--wpforms-button-size-padding-h: 28px !important;
	--wpforms-button-size-font-size: 15px !important;
	max-width: 640px;
	margin: 24px 0 0 !important; /* WPForms indents the form 60px; align it with the page text */
}
.wpforms-container .wpforms-field-label { font-weight: 600 !important; }
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder { color: var(--c-muted) !important; opacity: 1; }
.wpforms-container input[type="checkbox"],
.wpforms-container input[type="radio"] { accent-color: var(--c-primary); }
.wpforms-container .wpforms-field-gdpr-checkbox .wpforms-field-label-inline { color: var(--c-soft) !important; }
.wpforms-container .wpforms-field-gdpr-checkbox .wpforms-field-label-inline a { color: var(--c-link); }

/* Focus: brand ring (lighter blue in night mode for 3:1 against the dark field) */
.wpforms-container input:not([type="checkbox"]):not([type="radio"]):focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
	border-color: var(--c-ring) !important; box-shadow: 0 0 0 1px var(--c-ring) !important; outline: none;
}
.wpforms-container .wpforms-submit {
	font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.wpforms-container .wpforms-submit:focus-visible { outline: 3px solid var(--c-ring) !important; outline-offset: 2px; }
.wpforms-container .wpforms-submit:hover { filter: brightness(1.06); }

/* Messages */
.wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	background: var(--fc-ok-bg, #E3F3E8) !important; border: 1px solid var(--c-ok) !important;
	color: var(--c-text) !important; border-radius: var(--radius-card); padding: 16px 20px !important;
}
.wpforms-confirmation-container-full p { color: var(--c-text) !important; margin: 0; }
.wpforms-container .wpforms-error-container,
.wpforms-container .wpforms-error-noscript { color: var(--c-error) !important; }
.wpforms-container em.wpforms-error,
.wpforms-container label.wpforms-error { color: var(--c-error) !important; }
.wpforms-container .wpforms-field input.wpforms-error,
.wpforms-container .wpforms-field textarea.wpforms-error { border-color: var(--c-error) !important; }
/* The consent checkbox needs a clearly visible edge (≥3:1), stronger than the field borders. */
.wpforms-container input[type="checkbox"]::before,
.wpforms-container input[type="radio"]::before { border-color: var(--c-muted) !important; }
.wpforms-container input[type="checkbox"]:checked::before,
.wpforms-container input[type="radio"]:checked::before { border-color: var(--c-primary) !important; }

/* Help links in the drawer (under the main menu) and the footer "More" column */
.fc-drawer-menu--help { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--c-border); }
.fc-drawer-menu--help a { font-weight: 400; color: var(--c-soft); }
.fc-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-footer__links a { display: inline-flex; align-items: center; min-height: 32px; }
.fc-footer__links a[aria-current="page"] { color: var(--c-footer-head); }

/* ==========================================================================
   Content-page helpers usable from the classic editor (Text tab)
   <p class="fc-callout"><a href="…pdf">…</a></p>   notice with download icon
   <nav class="fc-toc">…<ol>…</ol></nav>           contents list
   ========================================================================== */
.fc-prose .fc-callout {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 14px 16px; border-radius: var(--radius-card);
	background: var(--c-selected-bg); border: 1px solid var(--c-border);
	color: var(--c-text); font-size: 15px; line-height: 1.5;
}
.fc-prose .fc-callout::before {
	content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--c-link);
	-webkit-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
	        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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fc-prose .fc-callout a { color: var(--c-link); font-weight: 600; }

.fc-prose .fc-toc {
	padding: 16px 20px; border-radius: var(--radius-card);
	background: var(--c-band); border: 1px solid var(--c-border); font-size: 15px;
}
.fc-prose .fc-toc > p { margin: 0 0 8px; }
.fc-prose .fc-toc ol { margin: 0; padding-left: 1.6em; columns: 2 240px; column-gap: 32px; }
.fc-prose .fc-toc li { break-inside: avoid; padding: 2px 0; }
.fc-prose .fc-toc a { color: var(--c-link); text-decoration: none; }
.fc-prose .fc-toc a:hover { text-decoration: underline; }

/* Long legal pages: numbered article headings with room above, anchors land below the top edge */
.fc-prose h2[id] { scroll-margin-top: 16px; }
.fc-prose h3 + p, .fc-prose h3 + ul { margin-top: 0.4em; }

/* ---------- Back to top (follows the reader on long pages) ---------- */
.fc-to-top {
	position: fixed; z-index: 40;
	/* Left side. On wide screens it sits in the margin just left of the content
	   column (which is where the eye is), otherwise 16px from the edge. */
	left: max(16px, env(safe-area-inset-left), calc((100vw - var(--container)) / 2 - 64px));
	bottom: calc(20px + env(safe-area-inset-bottom));
	width: 48px; height: 48px; padding: 0; border-radius: var(--radius-pill);
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border-strong);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); cursor: pointer;
	/* Hidden until scrolled down; visibility also removes it from the tab order. */
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, border-color .15s ease;
}
.fc-to-top.is-visible {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s, border-color .15s ease;
}
.fc-to-top:hover { border-color: var(--c-primary); color: var(--c-link); }
.fc-to-top:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
body.fc-no-scroll .fc-to-top { visibility: hidden; opacity: 0; } /* not over the open mobile menu */
@media (min-width: 1100px) { .fc-to-top { bottom: 28px; } }
@media print { .fc-to-top { display: none; } }

/* ==========================================================================
   Contact page layout (classic editor HTML)
   <div class="fc-contact"> form column + <aside class="fc-contact__info"> </div>
   <div class="fc-map"><iframe …></iframe></div>
   ========================================================================== */
.fc-prose:has(.fc-contact) { max-width: none; }
.fc-contact {
	display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 360px);
	gap: 32px 64px; align-items: start;
}
.fc-contact__form > :first-child { margin-top: 0; }
.fc-contact__form .wpforms-container { margin-top: 16px !important; }
.fc-contact__info {
	padding: 20px 24px; border-radius: var(--radius-card);
	background: var(--c-band); border: 1px solid var(--c-border);
	font-size: 15px; line-height: 1.55;
}
.fc-prose .fc-contact__info h2 { margin: 0 0 12px; font-size: 18px; }
.fc-contact__info p { margin: 0; }
.fc-contact__info p + p { margin-top: 14px; }
.fc-contact__info strong {
	display: block; margin-bottom: 2px; color: var(--c-muted);
	font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.fc-contact__info a { color: var(--c-link); font-weight: 600; }
.fc-contact__info .fc-contact__legal { padding-top: 14px; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: 13px; }
@media (max-width: 900px) {
	.fc-contact { grid-template-columns: minmax(0, 1fr); }
}

.fc-map {
	margin-top: 40px; overflow: hidden;
	border-radius: var(--radius-card); border: 1px solid var(--c-border); background: var(--c-img-bg);
}
.fc-map iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 640px) { .fc-map iframe { height: 300px; } }
/* Google's embed has no dark style: soften it in night mode instead of a bright white block. */
:root[data-theme="dark"] .fc-map iframe { filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .fc-map iframe { filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
}

/* ==========================================================================
   Search: header button, Ctrl/⌘+K hints, search dialog
   data-fc-os="mac|other" is set on <html> in <head>, so the right shortcut
   shows on first paint.
   ========================================================================== */
.fc-kbd::before { content: "Ctrl K"; }
:root[data-fc-os="mac"] .fc-kbd::before { content: "⌘ K"; }
.fc-kbd {
	display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px;
	border: 1px solid var(--c-border-strong); background: var(--c-field); color: var(--c-muted);
	font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; white-space: nowrap;
}

/* Header search field (≥641px): icon + shortcut, widens while in use */
.fc-hsearch {
	position: relative; display: flex; align-items: center; margin: 0;
	width: 96px; height: var(--tap); border-radius: var(--radius-pill);
	background: var(--c-header-field); border: 1px solid var(--c-header-field-border);
	transition: width .25s ease, border-color .15s ease, box-shadow .15s ease;
}
.fc-hsearch__icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.fc-hsearch__input {
	width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0 12px 0 40px;
	border: 0; border-radius: inherit; background: transparent; color: var(--c-text);
	font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.fc-hsearch__input::placeholder { color: transparent; opacity: 1; transition: color .15s ease; }
.fc-hsearch__input:focus { outline: none; cursor: text; }
.fc-hsearch .fc-kbd { position: absolute; right: 8px; pointer-events: none; }
.fc-hsearch:hover { border-color: var(--c-ring); }
/* Open: in use, holding a term, or the first-visit intro */
.fc-hsearch:focus-within,
.fc-hsearch:has(.fc-hsearch__input:not(:placeholder-shown)),
.fc-hsearch.is-intro { width: 240px; }
.fc-hsearch:focus-within { border-color: var(--c-ring); box-shadow: 0 0 0 2px var(--fc-header-ring, #FFFFFF); }
.fc-hsearch:focus-within .fc-hsearch__input::placeholder,
.fc-hsearch.is-intro .fc-hsearch__input::placeholder { color: var(--c-muted); }
.fc-hsearch:focus-within .fc-kbd,
.fc-hsearch:has(.fc-hsearch__input:not(:placeholder-shown)) .fc-kbd { display: none; }
.fc-hsearch.is-intro .fc-hsearch__input { padding-right: 56px; }

/* Phones: an icon button that opens the search box (no room to widen in the header) */
.fc-search-btn { display: none; border-color: transparent; color: var(--c-header-text); }
@media (max-width: 640px) {
	.fc-hsearch { display: none; }
	.fc-search-btn { display: inline-flex; }
}

/* Shortcut hint inside Booqable's search field on the catalog */
.fc-bq--bar .booqable-filter-bar .bq-product-search-component::after {
	content: "Ctrl K"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none;
	padding: 1px 6px; border-radius: 5px; border: 1px solid var(--c-border-strong); background: var(--c-surface);
	color: var(--c-muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.5;
}
:root[data-fc-os="mac"] .fc-bq--bar .booqable-filter-bar .bq-product-search-component::after { content: "⌘ K"; }
.fc-bq--bar .booqable-filter-bar .bq-product-search-component .bq-product-search-input { padding-right: 72px !important; }
/* Touch devices without a keyboard: no shortcut hints */
@media (hover: none) and (pointer: coarse) {
	.fc-bq--bar .booqable-filter-bar .bq-product-search-component::after { display: none; }
	.fc-bq--bar .booqable-filter-bar .bq-product-search-component .bq-product-search-input { padding-right: 16px !important; }
	.fc-hsearch .fc-kbd { display: none; }
	.fc-hsearch { width: var(--tap); }
	.fc-hsearch .fc-hsearch__icon { left: 12px; }
}

/* Search dialog (pages without the catalog bar) */
.fc-searchdlg {
	width: min(640px, calc(100vw - 32px)); max-width: none; margin: 12vh auto auto; padding: 0;
	border: 0; border-radius: var(--radius-card); background: transparent; color: var(--c-text);
}
.fc-searchdlg::backdrop { background: var(--c-overlay); }
.fc-searchdlg__panel {
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-card);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28); padding: 12px;
}
.fc-searchdlg__form { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; }
.fc-searchdlg__icon { position: absolute; left: 14px; color: var(--c-muted); pointer-events: none; }
.fc-searchdlg__input {
	flex: 1; min-width: 0; height: 52px; padding: 0 12px 0 44px;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-input);
	background: var(--c-field); color: var(--c-text); font-size: 17px;
}
.fc-searchdlg__input::placeholder { color: var(--c-muted); opacity: 1; }
.fc-searchdlg__input:focus { outline: none; border-color: var(--c-ring); box-shadow: 0 0 0 1px var(--c-ring); }
.fc-searchdlg__close {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--tap); height: var(--tap); padding: 0 6px; border: 0; background: transparent; cursor: pointer;
}
.fc-searchdlg__close kbd {
	padding: 2px 8px; border-radius: 5px; border: 1px solid var(--c-border-strong); background: var(--c-field);
	color: var(--c-muted); font-family: var(--font-body); font-size: 12px; font-weight: 600;
}
.fc-searchdlg__hint { margin: 10px 4px 2px; color: var(--c-muted); font-size: 13px; }
@media (max-width: 640px) {
	.fc-searchdlg { margin-top: 12px; }
	.fc-searchdlg__input { font-size: 16px; }
}
/* The hint only shows on an empty, unfocused field: while typing, or with a
   search term in it, the browser's clear (×) button takes that spot. */
.fc-bq--bar .booqable-filter-bar .bq-product-search-component:focus-within::after,
.fc-bq--bar .booqable-filter-bar .bq-product-search-component:has(.bq-product-search-input:not(:placeholder-shown))::after { display: none; }
.fc-bq--bar .booqable-filter-bar .bq-product-search-component:focus-within .bq-product-search-input,
.fc-bq--bar .booqable-filter-bar .bq-product-search-component:has(.bq-product-search-input:not(:placeholder-shown)) .bq-product-search-input { padding-right: 14px !important; }

/* ==========================================================================
   Catalog sidebar: collapse toggle, bottom links, own scroll
   ========================================================================== */
.fc-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: -8px; }
.fc-aside-head .fc-catalog__aside-title { margin: 0; }
.fc-aside-toggle { flex: none; width: 36px; height: 36px; border-radius: var(--radius-input); color: var(--c-muted); }
.fc-aside-toggle:hover { background: var(--c-band); color: var(--c-text); }
.fc-aside-links--bottom { padding: 12px 0 0; border-top: 1px solid var(--c-border); border-bottom: 0; }

/* The sidebar scrolls on its own when opened collections make it taller than the screen. */
@media (min-width: 641px) {
	.fc-catalog__aside {
		max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
		scrollbar-width: thin; scrollbar-color: var(--c-border-strong) transparent;
		padding-right: 4px; margin-right: -4px;
	}
}

/* "Show collections" button: only while the sidebar is collapsed */
.fc-sidebar-open {
	display: none; align-items: center; gap: 8px; margin: 0 0 10px; min-height: 40px; padding: 0 14px 0 10px;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill);
	background: var(--c-surface); color: var(--c-text); font-size: 14px; font-weight: 600; cursor: pointer;
}
.fc-sidebar-open:hover { border-color: var(--c-primary); }
.fc-sidebar-open .fc-i { color: var(--c-muted); }

@media (min-width: 641px) {
	:root[data-fc-sidebar="collapsed"] .fc-catalog {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "bar" "list" "how";
	}
	:root[data-fc-sidebar="collapsed"] .fc-catalog__aside { display: none; }
	:root[data-fc-sidebar="collapsed"] .fc-sidebar-open { display: inline-flex; }
}
/* Phones: the sidebar is the chip row; no collapsing there. */
@media (max-width: 640px) {
	.fc-aside-toggle { display: none; }
	.fc-aside-links--bottom { display: none; }
}

/* ==========================================================================
   Banners carousel (catalog home) — slides from wp-admin → Banners
   ========================================================================== */
.fc-catalog__banners { min-width: 0; }
.fc-catalog__banners:not(:has(.fc-banners)) { display: none; }
.fc-catalog:has(.fc-catalog__banners:not([hidden]) .fc-banners) {
	grid-template-areas:
		"aside banners"
		"aside head"
		"aside bar"
		"aside list"
		"aside how";
}
.fc-catalog__banners { grid-area: banners; }
@media (max-width: 640px) {
	.fc-catalog:has(.fc-catalog__banners:not([hidden]) .fc-banners) { grid-template-areas: "banners" "head" "bar" "aside" "list" "how"; }
}
@media (min-width: 641px) {
	:root[data-fc-sidebar="collapsed"] .fc-catalog:has(.fc-catalog__banners:not([hidden]) .fc-banners) { grid-template-areas: "banners" "head" "bar" "list" "how"; }
}

.fc-banners { position: relative; }
.fc-banners__track {
	position: relative; display: flex; gap: 16px; margin: 0; padding: 0;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	scrollbar-width: none; border-radius: var(--radius-card);
}
.fc-banners__track::-webkit-scrollbar { display: none; }
.fc-banners__track:focus { outline: none; }
.fc-banner {
	position: relative; flex: 0 0 88%; aspect-ratio: 5 / 2; min-height: 220px;
	scroll-snap-align: start; scroll-snap-stop: always;
	border-radius: var(--radius-card); overflow: hidden; background: var(--c-img-bg);
}
.fc-banners--single .fc-banner { flex-basis: 100%; }
.fc-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Legibility: darken bottom-left, where the text sits */
.fc-banner::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(20deg, rgba(10, 13, 17, 0.72) 0%, rgba(10, 13, 17, 0.35) 38%, rgba(10, 13, 17, 0) 65%);
}
.fc-banner__body {
	position: absolute; z-index: 1; left: 28px; bottom: 26px; right: 28px; max-width: 60%;
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #FFFFFF;
}
.fc-banner__lines { list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.45; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.fc-banner__lines li::before { content: "– "; }
.fc-prose .fc-banner__title, .fc-banner__title {
	margin: 0; color: #FFFFFF; font-family: var(--font-head); font-weight: 700; line-height: 1.15;
	font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.fc-banner__btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px 0 20px;
	border-radius: var(--radius-pill); background: #1F6FE5; color: #FFFFFF; text-decoration: none;
	font-size: 15px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.fc-banner__btn:hover { filter: brightness(1.08); text-decoration: none; }
.fc-banner__btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.fc-banner--focus-top .fc-banner__img { object-position: center top; }
.fc-banner--focus-bottom .fc-banner__img { object-position: center bottom; }
/* Photo-only slide: no text, so no darkening */
.fc-banner--plain::after { content: none; }
/* Product slide: square/portrait cut-out shown whole on white, text on the left in dark ink */
.fc-banner--product { background: #FFFFFF; }
.fc-banner--product::after { content: none; }
.fc-banner--product .fc-banner__img { object-fit: contain; padding: 16px; }
.fc-banner--product:not(.fc-banner--plain) .fc-banner__img { left: auto; width: 58%; object-position: right center; }
.fc-banner--product .fc-banner__body { top: 0; bottom: 0; justify-content: center; max-width: 42%; color: #0E1116; }
.fc-banner--product .fc-banner__lines, .fc-banner--product .fc-banner__title { color: #0E1116; text-shadow: none; }
.fc-banner--product .fc-banner__lines { color: #3A4350; }
.fc-banner--product .fc-banner__btn:focus-visible { outline-color: #1F6FE5; }

/* Controls: ‹ • • • › centred, pause/play on the right */
.fc-banners__controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; min-height: 36px; }
.fc-banners__arrow, .fc-banners__play {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill);
	background: var(--c-surface); color: var(--c-text); cursor: pointer;
}
.fc-banners__arrow:hover, .fc-banners__play:hover { border-color: var(--c-primary); color: var(--c-link); }
.fc-banners__arrow--prev .fc-i { transform: rotate(180deg); }
.fc-banners__play { position: absolute; right: 0; top: 0; }
.fc-banners__play .fc-i-play { display: none; }
.fc-banners.is-paused .fc-banners__play .fc-i-play { display: block; }
.fc-banners.is-paused .fc-banners__play .fc-i-pause { display: none; }
.fc-banners__dots { display: flex; align-items: center; gap: 2px; }
.fc-banners__dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fc-banners__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--c-border-strong); transition: width .2s ease, background-color .2s ease; }
.fc-banners__dot:hover::before { background: var(--c-muted); }
.fc-banners__dot[aria-current="true"]::before { width: 20px; background: var(--c-primary); }
.fc-banners__dot:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 0; border-radius: var(--radius-pill); }

@media (max-width: 640px) {
	.fc-banner { flex-basis: 92%; aspect-ratio: 4 / 3; min-height: 0; }
	.fc-banners--single .fc-banner { flex-basis: 100%; }
	.fc-banner__body { left: 16px; right: 16px; bottom: 16px; max-width: none; gap: 8px; }
	.fc-banner--product:not(.fc-banner--plain) .fc-banner__img { width: 100%; height: 62%; object-position: center top; }
	.fc-banner--product .fc-banner__body { top: auto; bottom: 16px; max-width: none; justify-content: flex-end; }
	.fc-banner__lines { font-size: 13px; }
	.fc-banners__track { gap: 10px; }
	.fc-banners__arrow { display: none; } /* swipe instead */
}

/* ==========================================================================
   Gallery ([gallery] shortcode → inc/gallery.php + assets/js/gallery.js)
   ========================================================================== */
/* A page with a gallery uses the full container width; text stays readable. */
.fc-prose:has(.fc-gallery) { max-width: none; }
.fc-prose:has(.fc-gallery) > :not(.fc-gallery):not(.fc-viewer) { max-width: 70ch; }
.fc-prose .fc-gallery { margin-top: 20px; }

.fc-gallery__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.fc-gallery__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fc-prose .fc-gallery__chips > li { margin: 0; }
.fc-gallery__chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; white-space: nowrap;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); background: var(--c-surface);
	color: var(--c-text); font: 600 14px/1 var(--font-body); cursor: pointer;
}
.fc-gallery__chip span { color: var(--c-muted); font-size: 12px; }
.fc-gallery__chip:hover { border-color: var(--c-primary); }
.fc-gallery__chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-ink); }
.fc-gallery__chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.fc-gallery__count { margin: 0; color: var(--c-muted); font-size: 14px; }
@media (max-width: 640px) {
	.fc-gallery__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
	.fc-gallery__chips::-webkit-scrollbar { display: none; }
	.fc-gallery__chip { flex: none; }
	.fc-gallery__count { display: none; }
}

/* Rows. Without JS: CSS-only approximation (rows ~220px, slight crop). With JS: exact widths/heights. */
.fc-gallery__grid { display: flex; flex-wrap: wrap; gap: var(--fc-gap, 8px); transition: opacity .16s; }
.fc-gallery__grid::after { content: ""; flex-grow: 999; }
.fc-gallery__grid.is-busy { opacity: 0; }
.fc-gallery__item {
	position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--c-img-bg);
	flex: var(--r, 1.333) 1 calc(var(--r, 1.333) * 220px); height: 220px;
}
.fc-gallery.is-js .fc-gallery__item { flex: none; }
.fc-gallery.is-js .fc-gallery__grid::after { display: none; }
.fc-gallery__item[hidden] { display: none; }
.fc-prose .fc-gallery__item img, .fc-gallery__item img {
	display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.fc-gallery__item::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: linear-gradient(to top, rgba(10, 13, 17, .7), rgba(10, 13, 17, 0) 45%);
}
.fc-gallery__cap {
	position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; pointer-events: none;
	color: #FFFFFF; font-size: 13px; font-weight: 600; line-height: 1.35;
	opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.fc-gallery__item:hover img, .fc-gallery__item:focus-visible img { transform: scale(1.035); }
.fc-gallery__item:hover::after, .fc-gallery__item:focus-visible::after,
.fc-gallery__item:hover .fc-gallery__cap, .fc-gallery__item:focus-visible .fc-gallery__cap { opacity: 1; transform: none; }
.fc-gallery__item:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
@media (hover: none) { .fc-gallery__cap, .fc-gallery__item::after { display: none; } }
@media (max-width: 640px) { .fc-gallery__item { height: 150px; flex-basis: calc(var(--r, 1.333) * 150px); } }
@media (prefers-reduced-motion: reduce) { .fc-gallery__grid, .fc-gallery__item img, .fc-gallery__cap { transition: none; } }

/* Viewer */
html.fc-viewer-open { overflow: hidden; }
.fc-viewer {
	position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
	border: 0; background: rgba(8, 10, 13, .96); color: #FFFFFF;
}
.fc-viewer::backdrop { background: rgba(8, 10, 13, .6); }
.fc-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.fc-viewer__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: #C9CFD8; font-size: 14px; }
.fc-viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; touch-action: pan-y; }
.fc-viewer__stage img {
	max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain;
	border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s;
}
.fc-viewer__stage img.is-swap { opacity: 0; }
.fc-viewer__cap { margin: 0; padding: 14px 16px 22px; min-height: 56px; text-align: center; color: #E6E9EE; font-size: 15px; }
.fc-viewer__btn {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); color: #FFFFFF;
}
.fc-viewer__btn:hover { background: rgba(255, 255, 255, .16); }
.fc-viewer__btn:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.fc-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.fc-viewer__nav--prev { left: 12px; }
.fc-viewer__nav--prev .fc-i { transform: rotate(180deg); }
.fc-viewer__nav--next { right: 12px; }
@media (max-width: 640px) {
	.fc-viewer__stage { padding: 0 8px; }
	.fc-viewer__nav { top: auto; bottom: -58px; transform: none; width: 44px; height: 44px; }
	.fc-viewer__nav--prev { left: 16px; }
	.fc-viewer__nav--next { right: 16px; }
	.fc-viewer__cap { padding: 14px 72px 22px; }
}
@media (prefers-reduced-motion: reduce) { .fc-viewer__stage img { transition: none; } }
