/* Rules that theme.json / block supports can't express. Keep this list short —
   if it grows, styling is happening here instead of in theme.json where it belongs. */

body {
	-webkit-font-smoothing: antialiased;
}

/* Reusable classes for the three patterns repeated across the theme with
   hand-typed inline styles (eyebrow labels, surface cards, arch-cropped
   images) — one definition instead of the same style block copy-pasted into
   every pattern/template that needed it. */
.bbyn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.bbyn-eyebrow::before {
	content: "";
	display: inline-block;
	width: 48px;
	height: 2px;
	flex: none;
	background: var(--wp--preset--color--primary);
}
.has-contrast-background-color .bbyn-eyebrow {
	color: var(--wp--preset--color--blush);
}
.has-contrast-background-color .bbyn-eyebrow::before {
	background: var(--wp--preset--color--blush);
}
@media (max-width: 600px) {
	.bbyn-eyebrow {
		gap: 10px;
		font-size: 14px;
		letter-spacing: 0.08em;
	}
	.bbyn-eyebrow::before {
		width: 28px;
	}
}
@media (max-width: 360px) {
	.bbyn-eyebrow {
		font-size: 13px;
		letter-spacing: 0.06em;
	}
}
.bbyn-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--card);
	padding: 28px;
}
.bbyn-arch {
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--arch);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

/* No text-decoration rule existed for nav/button links, so they showed the
   browser's default underline at all times. Left alone for plain in-content
   links (paragraph text) — link and body text share the same colour in this
   design, so the underline is the only thing that makes a link visually
   distinct there and shouldn't be removed. */
.bbyn-nav a,
.bbyn-footer-nav a,
.wp-element-button,
.wp-block-button__link {
	text-decoration: none;
}

/* Global link colour (theme.json elements.link) is plum, set via a
   zero-specificity :where() selector so anything more specific normally
   wins — but links inside the footer (nav menu, phone/email) had no color
   override at all, so they fell back to plum text on the footer's plum
   background and were invisible. */
footer a {
	color: var(--wp--preset--color--base);
}
footer a:hover {
	color: var(--wp--preset--color--blush);
}

/* Accordion (FAQ) pattern: hide the default disclosure marker so the
   pattern's own "+" indicator is the only one shown. */
.bbyn-accordion summary {
	list-style: none;
	cursor: pointer;
}
.bbyn-accordion summary::-webkit-details-marker {
	display: none;
}
.bbyn-accordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}
.bbyn-accordion summary::after {
	content: "+";
	color: var(--wp--preset--color--gold);
	font-size: 20px;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}
.bbyn-accordion[open] summary::after {
	transform: rotate(45deg);
}
.bbyn-accordion--compact summary {
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-accordion--compact summary::after {
	font-size: 16px;
}
.bbyn-accordion--compact p,
.bbyn-accordion--compact ul {
	font-size: 14px;
	color: var(--wp--preset--color--contrast-muted);
	margin-top: 12px;
}
.bbyn-accordion--compact ul {
	padding-left: 20px;
	columns: 2;
	column-gap: 24px;
}

/* Treatment ticker marquee. */
@keyframes bbyn-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
.bbyn-marquee__track {
	animation: bbyn-marquee 38s linear infinite;
	width: max-content;
}
@media (prefers-reduced-motion: reduce) {
	.bbyn-marquee__track {
		animation: none;
	}
}
/* The ticker runs the width of the content (full-bleed was reverted by
   request), so fade the words in and out at each end rather than letting
   them clip against a hard edge, which read as a cut-off word. */
.bbyn-marquee {
	border-radius: var(--wp--custom--radius--pill);
}
.bbyn-marquee__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Classic WooCommerce cart/checkout markup (basket, checkout — this WC
   version doesn't render the modern wp:woocommerce/cart|checkout blocks via
   SSR, so these pages use the classic shortcodes) — reskin to match the
   rest of the site rather than leaving WC's own default styling. */
.woocommerce table.shop_table,
.woocommerce-checkout table.shop_table {
	border-color: var(--wp--preset--color--contrast-border);
	border-radius: 16px;
	overflow: hidden;
}
.woocommerce table.shop_table th {
	background: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-faint);
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: var(--wp--preset--color--contrast-border);
}
.woocommerce .button,
.woocommerce-checkout .button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #place_order {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--pill);
	border: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 14px 28px;
}
.woocommerce .button:hover,
.woocommerce-checkout .button:hover,
.woocommerce #place_order:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
	border-top-color: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: 16px 20px;
}
.woocommerce form .form-row input.input-text,
.woocommerce-checkout form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce-checkout form .form-row select,
.woocommerce form .form-row textarea {
	border-radius: 10px;
	border-color: var(--wp--preset--color--contrast-border);
	font-family: var(--wp--preset--font-family--body);
}
.woocommerce-checkout #payment {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
}

/* Sticky booking bar sits above the footer, pinned to the viewport bottom.
   Deliberately `position: sticky`, not `fixed` — scrolls normally with the
   page and only pins once it would go below the viewport, un-pinning again
   once you scroll back past its real position, rather than permanently
   overlaying the page regardless of scroll. `fixed` was tried briefly for
   a report of the bar not appearing at all on mobile, but that turned out
   to be a DevTools viewport-display artifact, not a real rendering issue
   with sticky — see BBYN-Build-Plan.md §14. */
.bbyn-sticky-bar {
	position: sticky;
	bottom: 0;
	z-index: 60;
	transition: transform 0.3s ease;
}
/* Added by the pattern's own script, so without JS the bar just shows. */
.bbyn-sticky-bar.is-hidden {
	transform: translateY(110%);
}
@media (prefers-reduced-motion: reduce) {
	.bbyn-sticky-bar {
		transition: none;
	}
}

/* Primary/footer nav — wp_nav_menu() default markup (.menu-item-has-children,
   .sub-menu), styled to match the mockup's underline-on-active look with a
   simple hover dropdown for the Treatments / Help & Advice groups. */
.bbyn-nav {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bbyn-nav > li {
	position: relative;
}
.bbyn-nav > li > a {
	display: block;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.bbyn-nav > li.current-menu-item > a,
.bbyn-nav > li.current-menu-ancestor > a {
	border-bottom-color: var(--wp--preset--color--primary);
}
.bbyn-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 40;
}
.bbyn-nav li.menu-item-has-children:hover > .sub-menu,
.bbyn-nav li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.bbyn-nav .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
}
.bbyn-nav .sub-menu a:hover {
	background: var(--wp--preset--color--base);
}

.bbyn-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bbyn-footer-nav .sub-menu {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* theme.json used to put the site's global 48px side padding on body
   itself, which meant every full-bleed element (header, footer, sticky
   booking bar) had to individually escape it again with a negative-margin
   trick — and every version of that trick (vw-based, then a precise pixel
   value) kept either drifting with the scrollbar or getting overridden
   somewhere in the cascade without a real browser to debug the actual
   computed styles against.

   Removed body's padding entirely instead (theme.json), so there's
   nothing left to escape from — full-bleed elements are just full-width
   by default now, no override needed. The padding moved here, onto
   <main> specifically, since that's the one thing that actually needs it.

   Header, footer and the sticky booking bar are template-part-level
   siblings of <main>, outside it entirely, so removing body's padding was
   enough on its own for those three, confirmed working.

   The homepage marquee is different — it's inserted as ordinary page
   content inside front-page.html's <main>, so it inherits <main>'s own
   padding the same as everything else in there. A per-element escape was
   tried (negative margin against <main>'s padding, mirroring the
   header/footer approach) but didn't hold up after repeated attempts, and
   without a real browser to inspect the actual computed styles/cascade
   against, continuing to guess wasn't productive — reverted by request.
   Left running the width of <main>'s content area, not full-bleed. */
main.wp-block-group {
	padding-left: 48px;
	padding-right: 48px;
}
/* Side padding sits on the outer header/footer, not their inner rows: the
   inner rows are width-constrained to the same 1280px as <main>'s content,
   so padding them as well pushed the logo and footer text 48px further in
   than the page content below. */
.bbyn-site-header,
.bbyn-site-footer {
	padding-left: 48px;
	padding-right: 48px;
}
@media (max-width: 600px) {
	main.wp-block-group,
	.bbyn-site-header,
	.bbyn-site-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Header — mobile menu. Desktop keeps the original single-row layout;
   below the breakpoint the nav/phone/CTA collapse into a toggled panel. */
/* Book now beside the menu icon on phones, so the main action is never
   tucked inside the menu. Hidden on desktop, where the panel has its own. */
.bbyn-header-book-mobile {
	display: none;
}
.bbyn-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	flex-shrink: 0;
}
.bbyn-nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--contrast);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.bbyn-nav-toggle[aria-expanded="true"] .bbyn-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.bbyn-nav-toggle[aria-expanded="true"] .bbyn-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}
.bbyn-nav-toggle[aria-expanded="true"] .bbyn-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* core/group blocks using layout:"grid" (footer, hero, treatment-facts,
   gallery-grid, prices-table-live's parent, etc.) set a fixed
   grid-template-columns as an inline style with no responsive fallback —
   unlike wp:columns, which stacks automatically. Force single-column below
   the same breakpoint WordPress core uses for columns. */
@media (max-width: 782px) {
	.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 900px) {
	.bbyn-header-bar {
		flex-wrap: wrap;
		/* Desktop's 48px row-gap (blockGap) still reserves that much space
		   above the mobile panel even while it's collapsed to zero height
		   (flex gap applies to the wrapped row regardless of its content
		   height) — this is the actual cause of the empty space between the
		   logo/toggle row and the border line under the header when the
		   menu is closed. */
		gap: 0;
	}
	.bbyn-nav-toggle {
		display: flex;
		margin-left: 16px;
	}
	.bbyn-header-book-mobile {
		display: block;
		margin-left: auto;
	}
	.bbyn-header-book-mobile .wp-element-button {
		font-size: 12px;
		padding: 11px 20px;
	}
	.bbyn-header-panel .bbyn-header-actions {
		display: none;
	}
	.bbyn-site-header .bbyn-header-panel {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		/* The block's layout attrs add justify-content:center. In a column
		   that is vertical centring, so when the open list outgrows 80vh it
		   overflows equally top and bottom and the top (padding and the first
		   link) is clipped and unscrollable. Start-align instead. */
		justify-content: flex-start;
		gap: 24px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.bbyn-header-panel.is-open {
		max-height: 80vh;
		overflow-y: auto;
		padding-top: 24px;
		padding-bottom: 24px;
	}
	.bbyn-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.bbyn-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: none;
		padding: 4px 0 4px 16px;
		display: flex;
		flex-direction: column;
		gap: 2px;
	}
	.bbyn-header-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* Amelia booking widget — colours/font are set through Amelia's own LESS
   compile (see BBYN-Build-Plan.md §14), which is the correct place for
   them since it's what its whole colour system is keyed to. Shape and
   button typography aren't exposed as LESS variables there (button radius
   comes from the bundled Element UI vendor CSS, not Amelia's own LESS —
   confirmed by reading the source rather than guessing), so those live
   here instead, matching the same tokens theme.json uses for the site's
   own buttons/cards. */
.amelia-app-booking #am-step-booking,
.amelia-app-booking .am-step-booking-catalog {
	border-radius: var(--wp--custom--radius--card);
}
.amelia-app-booking .el-button {
	border-radius: var(--wp--custom--radius--pill);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}
.amelia-app-booking .el-input__inner,
.amelia-app-booking .el-select-dropdown {
	border-radius: 12px;
}
/* Amelia's step-by-step form is built for an 800px box (two 400px panels
   once the calendar opens), but before "Continue" the first panel is only
   760px, so the parked calendar panel's left edge showed as a dark strip.
   Hide it until Amelia marks the picker active; the slide-in is untouched. */
.amelia-app-booking .am-step-booking-catalog:not(.am-active-picker) .am-select-date {
	visibility: hidden;
}
.amelia-app-booking .am-step-booking-catalog {
	background: var(--wp--preset--color--surface);
}

/* Auto-generated blog post table of contents — see inc/table-of-contents.php.
   Reuses .bbyn-card for the panel itself, just adds the title/list styling
   that's specific to a TOC. */
.bbyn-toc {
	margin-bottom: 40px;
}
.bbyn-toc__title {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	margin: 0 0 14px;
}
.bbyn-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bbyn-toc a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.bbyn-toc a:hover {
	color: var(--wp--preset--color--primary);
}

/* Homepage category cards — the whole card reads as one link, so the
   heading drops the default in-content underline (it wrapped onto two
   heavy underlined lines on the longer category names) and the CTA line
   sits at the bottom of every card regardless of copy length. */
.bbyn-category-card {
	display: flex;
	flex-direction: column;
}
.bbyn-category-card h3 a {
	text-decoration: none;
}
.bbyn-category-card h3 a:hover {
	color: var(--wp--preset--color--primary);
}
.bbyn-category-card__cta {
	margin-top: auto !important;
	padding-top: 12px;
}

/* Healing timeline — see patterns/healing-timeline.php. */
.bbyn-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 20px;
}
.bbyn-timeline__stage {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--contrast-border);
}
.bbyn-timeline__stage:last-child {
	border-top: 2px solid var(--wp--preset--color--primary);
}
.bbyn-timeline__when {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.bbyn-timeline__what {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
	line-height: 1.5;
}
@media (max-width: 1100px) {
	.bbyn-timeline {
		grid-template-columns: repeat(4, 1fr);
		row-gap: 32px;
	}
}
@media (max-width: 600px) {
	.bbyn-timeline {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}
}

/* Prices page rows — rendered by the [bbyn_price_list] shortcode. */
.bbyn-price-list {
	margin: 16px 0 48px;
}
.bbyn-price-row {
	display: grid;
	grid-template-columns: 1fr auto 90px;
	gap: 24px;
	align-items: baseline;
	padding: 18px 0;
	border-top: 1px solid var(--wp--preset--color--contrast-border);
}
.bbyn-price-row:last-child {
	border-bottom: 1px solid var(--wp--preset--color--contrast-border);
}
.bbyn-price-row a {
	text-decoration: none;
}
.bbyn-price-row a:hover {
	color: var(--wp--preset--color--primary);
}
.bbyn-price-row__duration {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-faint);
}
.bbyn-price-row strong {
	text-align: right;
	font-weight: 500;
}
@media (max-width: 600px) {
	.bbyn-price-row {
		grid-template-columns: 1fr auto;
		gap: 4px 16px;
	}
	.bbyn-price-row__duration {
		grid-row: 2;
	}
}

/* Shared suitability list, inline on brow aftercare. */
.bbyn-contraindications ul {
	columns: 2;
	column-gap: 40px;
	padding-left: 20px;
}
.bbyn-contraindications li {
	break-inside: avoid;
	margin-bottom: 6px;
}
@media (max-width: 600px) {
	.bbyn-contraindications ul {
		columns: 1;
	}
}

/* Contact form (CF7) — match the site's inputs and pill button. */
.wpcf7-form p {
	margin: 0 0 18px;
}
.wpcf7-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 14px 16px;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: 12px;
	box-sizing: border-box;
}
.wpcf7-form textarea {
	min-height: 160px;
}
.wpcf7-form input[type="submit"] {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: var(--wp--custom--radius--pill);
	padding: 17px 34px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--primary);
}

/* Contact map — the embed had no size of its own and rendered at the
   browser's 300×150 iframe default. */
.bbyn-map iframe {
	display: block;
	width: 100%;
	height: 320px;
	border: 0;
	border-radius: var(--wp--custom--radius--card);
}

@media (max-width: 782px) {
	.bbyn-journey,
	.bbyn-visit {
		padding: 56px 28px !important;
	}
}

/* Long-form page content (Prices, aftercare, About…) — headings need room
   above them once they follow a list or paragraph rather than opening the page. */
.wp-block-post-content > h2 {
	margin-top: 64px;
}
.wp-block-post-content > h2:first-child {
	margin-top: 0;
}

/* theme.json heading sizes are fixed px with no fluid scaling, so the 82px
   display H1 broke "Semi-permanent" across lines on phones. */
@media (max-width: 600px) {
	h1,
	h1.wp-block-post-title {
		font-size: 48px !important;
	}
	h2 {
		font-size: 38px;
	}
}

/* Client photos — real <img> inside the arch (inc/images.php), cropped by
   object-fit rather than a CSS background so they carry alt text. */
.bbyn-arch--img {
	margin: 0;
	background: var(--wp--preset--color--surface);
}
.bbyn-arch--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bbyn-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.bbyn-photo-grid figure {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	border: 1px solid var(--wp--preset--color--contrast-border);
}
.bbyn-photo-grid img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 782px) {
	.bbyn-photo-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.bbyn-photo-grid--three figure:first-child {
		grid-column: 1 / -1;
		aspect-ratio: 4 / 3;
	}
}

/* Treatment hero without a photo yet — see patterns/treatment-hero.php. */
.bbyn-arch--text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 48px;
	text-align: center;
}
.bbyn-arch__title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.05;
	color: var(--wp--preset--color--contrast);
}
.bbyn-arch__caption {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.bbyn-arch__caption::before,
.bbyn-arch__caption::after {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--wp--preset--color--gold);
}

/* Reviews — six narrow flex columns made each card a 15-line strip of
   uneven height; a 3-up grid (2-up tablet, 1-up phone) reads properly. */
.wp-block-columns.bbyn-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.bbyn-reviews-grid > .wp-block-column {
	margin: 0 !important;
}
.bbyn-reviews-grid .bbyn-card {
	height: 100%;
	box-sizing: border-box;
}
@media (max-width: 1000px) {
	.wp-block-columns.bbyn-reviews-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.wp-block-columns.bbyn-reviews-grid {
		grid-template-columns: 1fr;
	}
}
.bbyn-footer-legal a {
	color: var(--wp--preset--color--base-muted);
}

/* Buttons: booking actions are terracotta (primary), everything else plum.
   theme.json's global button hover is terracotta, which would be no change
   on a terracotta button, so those hover to plum instead. */
.wp-block-button__link.has-primary-background-color:hover {
	background-color: var(--wp--preset--color--contrast) !important;
}

/* "Related:" line closing each treatment page's copy. */
.bbyn-related {
	margin-top: 48px !important;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--contrast-border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}


/* Card photos — treatment cards (hub, section pages) and homepage category
   cards. Decorative duplicates of the card's own link, so hidden from
   assistive tech; the title link carries the name. */
.bbyn-card > .bbyn-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	/* Out to the card's edges; beats the group's own blockGap margin rule. */
	margin: -28px -28px 20px !important;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card) var(--wp--custom--radius--card) 0 0;
	background: var(--wp--preset--gradient--warm-arch);
}
.bbyn-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.bbyn-card:hover .bbyn-card-media img {
	transform: scale(1.03);
}
.bbyn-card > .bbyn-card-media--text {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.bbyn-card-media--text span {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 32px;
	color: var(--wp--preset--color--contrast);
}
@media (prefers-reduced-motion: reduce) {
	.bbyn-card-media img {
		transition: none;
	}
}
.bbyn-card-facts {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--contrast-border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-faint);
}
.bbyn-card-facts strong {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}
.bbyn-photo-grid--gallery {
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) {
	.bbyn-photo-grid--gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Book now / chat — the main actions, made hard to miss (client feedback). */
.bbyn-btn-lg .wp-element-button {
	font-size: 15px;
	padding: 20px 46px;
	box-shadow: 0 14px 30px -14px var(--wp--preset--color--primary);
}
.bbyn-hero-actions .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.bbyn-hero-actions__call {
	margin: 20px 0 48px;
}
.bbyn-btn-chat .wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 2px solid var(--wp--preset--color--contrast);
	padding: 15px 28px;
}
.bbyn-btn-chat .wp-element-button:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.bbyn-btn-chat .bbyn-chat-icon {
	flex-shrink: 0;
}

/* Floating chat button: desktop only (phones use the sticky bar). Lifts
   clear of the sticky bar whenever the bar is on screen. */
.bbyn-chat-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 55;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.45);
	transition: bottom 0.3s ease, transform 0.2s ease;
}
.bbyn-chat-fab:hover {
	color: var(--wp--preset--color--base);
	transform: translateY(-2px);
}
.has-sticky-bar .bbyn-chat-fab {
	bottom: 110px;
}
footer .bbyn-chat-fab {
	color: var(--wp--preset--color--base);
}

@media (max-width: 782px) {
	.bbyn-chat-fab {
		display: none;
	}
	/* Compact sticky bar: no label, two equal buttons. */
	.bbyn-sticky-bar {
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
	}
	.bbyn-sticky-bar > p {
		display: none;
	}
	.bbyn-sticky-bar__actions {
		display: flex;
		gap: 10px;
		width: 100%;
	}
	.bbyn-sticky-bar__actions .wp-block-button {
		flex: 1;
	}
	.bbyn-sticky-bar__actions .wp-element-button {
		width: 100%;
		justify-content: center;
		text-align: center;
		padding: 13px 16px;
		font-size: 13px;
	}
	.bbyn-hero-actions .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.bbyn-hero-actions .wp-element-button {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}

/* Wider screens already have the floating chat button. */
@media (min-width: 783px) {
	.bbyn-sticky-bar__actions .bbyn-btn-chat {
		display: none;
	}
}

/* Treatment pages: the "Before you book" suitability note sits above the
   booking widget, so it's read before a slot is chosen. Amelia's own box
   (.am-step-booking-catalog) has `margin: 48px auto`; those margins escape
   the booking section and made holes above and below the widget. Spacing
   around it is set by the section and the note instead. (Amelia also
   animates margin changes, 0.3s after a 0.8s delay, so a margin tested from
   the console looks like it did nothing for a second.) */
#book .amelia-app-booking .am-step-booking-catalog {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Tenor Sans has no italic, so emphasis is carried by colour rather than a
   synthesised slant. (Written as html:root to keep the same priority
   the rules had while the old design-options panel could switch them off.) */
html:root em {
	font-style: normal;
}
html:root :is(h1, h2, h3, h4) em,
html:root .bbyn-arch__title {
	font-style: normal;
	color: var(--wp--preset--color--primary);
}
html:root :is(.has-contrast-background-color, .bbyn-marquee) :is(h1, h2, h3, h4) em {
	color: var(--wp--preset--color--blush);
}
html:root :is(p, li) em {
	font-weight: 600;
}
html:root [style*="font-style:italic"],
html:root .bbyn-card-media--text span {
	font-style: normal !important;
}
html:root :is(.bbyn-card-media--text span, .bbyn-arch__title) {
	font-weight: 400;
	letter-spacing: -0.005em;
	line-height: 1.12;
}
@media (max-width: 600px) {
	html:root body {
		--wp--preset--font-size--heading-l: 34px;
		--wp--preset--font-size--heading-m: 30px;
	}
	html:root h1 {
		font-size: 38px !important;
	}
}

/* Fine Line Tattoos flash sheet (patterns/tiny-tattoos-flash-sheet.php). */
.bbyn-flash-sheet {
	display: block;
	max-width: 480px;
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}
.bbyn-flash-sheet img {
	display: block;
	width: 100%;
	height: auto;
}
.bbyn-flash-sheet {
	cursor: zoom-in;
}
.bbyn-lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 24px 16px;
	border: 0;
	background: transparent;
	overflow: auto;
}
.bbyn-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}
.bbyn-lightbox::backdrop {
	background: rgba(18, 48, 43, 0.82);
}
.bbyn-lightbox img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 48px);
	margin: 0;
	border-radius: 12px;
}
.bbyn-lightbox__close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
html:has(.bbyn-lightbox[open]) {
	overflow: hidden;
}

/* Reading layout for text pages: a 720px column on the left, a sticky side
   panel on the right (patterns/reading-aside.php, inc/reading-layout.php).
   The column starts at the same left edge as the page title. */
.bbyn-reading {
	display: grid;
	grid-template-columns: minmax(0, 720px) minmax(0, 320px);
	justify-content: space-between;
	align-items: start;
	column-gap: 64px;
}
.bbyn-reading > * {
	margin-block: 0 !important;
}
.bbyn-reading__main .wp-block-post-content > * {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
.bbyn-reading__main .wp-block-post-content h2 {
	scroll-margin-top: 110px;
}
.bbyn-reading__aside {
	position: sticky;
	top: 120px;
	align-self: start;
}
.bbyn-reading__aside .bbyn-toc {
	margin-bottom: 24px;
}
.bbyn-reading__cta {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}
.bbyn-reading__cta .wp-block-button {
	width: 100%;
}
.bbyn-reading__cta .wp-block-button__link {
	display: flex;
	width: 100%;
	justify-content: center;
}
@media (max-width: 1000px) {
	.bbyn-reading {
		grid-template-columns: minmax(0, 1fr);
	}
	.bbyn-reading__aside {
		display: none;
	}
}
.bbyn-reading-intro {
	max-width: 720px;
}

/* About hero: the page's opening paragraphs sit under the excerpt, beside the photo. */
.bbyn-about-intro {
	margin-top: 24px;
}
.bbyn-about-intro > p {
	margin: 0 0 20px;
	color: var(--wp--preset--color--contrast-muted);
}

/* Instagram prompt under photo galleries (inc/social.php): a quiet strip, text
   on the left and an outline button on the right, stacking on small screens. */
.bbyn-insta-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-top: 32px;
	padding: 20px 28px;
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}
.bbyn-insta-strip__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}
.bbyn-insta-strip .wp-element-button {
	text-transform: none;
	letter-spacing: 0.02em;
}

/* ---- Blog ----------------------------------------------------------------
   Index and topic pages (templates/home.html, category.html, archive.html,
   patterns/blog-*.php) and single posts (templates/single.html, patterns/post-*.php). */
.bbyn-topic-intro {
	max-width: 720px;
	margin: 0;
}
.bbyn-topic-hub {
	margin: 20px 0 0;
	font-weight: 500;
}
.bbyn-blog-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}
.bbyn-blog-filter a {
	padding: 8px 16px;
	border: 1.5px solid var(--wp--preset--color--contrast-border);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.bbyn-blog-filter a:hover {
	border-color: var(--wp--preset--color--contrast);
}
.bbyn-blog-filter a[aria-current="page"] {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.bbyn-blog-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bbyn-card.bbyn-blog-card > .wp-block-post-featured-image,
.bbyn-card.bbyn-blog-card > .bbyn-blog-card__img {
	display: block;
	margin: -28px -28px 8px !important;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.bbyn-card.bbyn-blog-card > .wp-block-post-featured-image img,
.bbyn-card.bbyn-blog-card > .bbyn-blog-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bbyn-blog-card__topic,
.bbyn-blog-card__topic a {
	margin: 0;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}
.bbyn-blog-card h3,
.bbyn-blog-card .wp-block-post-title {
	margin: 0;
}
.bbyn-blog-card h3 a,
.bbyn-blog-card .wp-block-post-title a {
	text-decoration: none;
}
.bbyn-blog-card p {
	margin: 0;
}
.wp-block-query-pagination {
	gap: 8px 20px;
}
.wp-block-query-pagination .page-numbers.current {
	font-weight: 600;
}

/* Single post */
.bbyn-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.bbyn-post-standfirst {
	max-width: 720px;
	margin: 0 0 20px;
}
.bbyn-post-byline {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-post-hero {
	margin: 0;
}
.bbyn-post-hero img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--card-lg);
	object-fit: cover;
}
/* The inline contents list only shows where the side panel is hidden. */
@media (min-width: 1001px) {
	.bbyn-reading__main .bbyn-toc {
		display: none;
	}
}
.bbyn-reading__main .wp-block-post-content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}
.bbyn-reading__main .wp-block-post-content blockquote p {
	margin: 0 0 12px;
}
.bbyn-reading__main .wp-block-post-content :is(ul, ol) {
	padding-left: 1.4em;
}
.bbyn-reading__main .wp-block-post-content li + li {
	margin-top: 8px;
}
.bbyn-reading__main .wp-block-post-content figure {
	margin: 32px 0;
}
.bbyn-reading__main .wp-block-post-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--card);
}
.bbyn-reading__main .wp-block-post-content figcaption {
	margin-top: 10px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-reading__main .wp-block-post-content .wp-block-table {
	overflow-x: auto;
}
.bbyn-reading__main .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}
.bbyn-reading__main .wp-block-post-content :is(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--wp--preset--color--contrast-border);
	text-align: left;
}
.bbyn-reading__main .wp-block-post-content h3 {
	margin-top: 40px;
}

/* End of post: author, call to action, related posts */
.bbyn-post-end > * + * {
	margin-top: 40px;
}
.bbyn-author {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 720px;
}
.bbyn-author img {
	flex: none;
	width: 96px;
	height: 96px;
	border-radius: 999px;
	object-fit: cover;
	object-position: center 35%;
}
.bbyn-author p {
	margin: 0;
}
.bbyn-author__name {
	font-weight: 600;
	margin-bottom: 6px !important;
}
.bbyn-author__bio {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-post-cta {
	max-width: 720px;
	padding: 40px;
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: var(--wp--custom--radius--card-lg);
	background: var(--wp--preset--color--surface);
}
.bbyn-post-cta h2 {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--heading-m);
}
.bbyn-post-cta > p {
	margin: 0 0 24px;
}
.bbyn-post-cta .bbyn-eyebrow {
	margin-bottom: 16px;
}
.bbyn-post-cta__more {
	margin: 20px 0 0 !important;
	font-weight: 500;
}
.bbyn-related h2 {
	margin: 24px 0 28px;
	font-size: var(--wp--preset--font-size--heading-m);
}
.bbyn-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 782px) {
	.bbyn-related__grid {
		grid-template-columns: 1fr;
	}
	.bbyn-author {
		align-items: flex-start;
	}
	.bbyn-post-cta {
		padding: 28px 24px;
	}
}
.bbyn-post-links {
	max-width: 720px;
}
.bbyn-post-links__title {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.bbyn-post-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bbyn-post-links a {
	font-weight: 500;
}
/* No featured image: no empty band (and its padding) under the post header. */
.bbyn-post-heroband:not(:has(img)) {
	display: none;
}

/* Homepage journal strip */
.bbyn-home-journal__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-bottom: 32px;
}
.bbyn-home-journal__head h2 {
	margin: 0;
}
.bbyn-home-journal__all {
	font-weight: 500;
}

/* Equal-height cards: every card in a grid fills its row, and the price/duration
   line (or the "see more" link) sits at the bottom whatever the length of the intro. */
.wp-block-post-template.is-layout-grid > li {
	display: flex;
}
.wp-block-post-template.is-layout-grid > li > .bbyn-card,
.bbyn-category-grid > .bbyn-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}
.bbyn-card > .bbyn-card-facts {
	margin-top: auto;
}
.bbyn-card > .wp-block-post-excerpt {
	margin-bottom: 16px;
}

/* Open accordions: breathing room after the answer (before the next question) and a
   tighter, even gap between a question and its answer. */
.bbyn-accordion[open] {
	padding-bottom: 28px;
}
.bbyn-accordion[open] > summary + * {
	margin-block-start: 14px;
}
.bbyn-accordion--compact[open] {
	padding-bottom: 16px;
}

/* An image set into a long text page to break it up (page content, e.g. brow mapping on the brows overview). */
.bbyn-page-figure {
	margin: 40px 0;
}
.bbyn-page-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--card);
}
.bbyn-page-figure figcaption {
	margin-top: 12px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-muted);
}

/* "See X and book" link under a treatment summary (brows overview). */
.bbyn-more-link {
	margin-block-start: 14px;
}
.bbyn-more-link a {
	font-weight: 600;
	text-underline-offset: 3px;
}

/* Link-in-bio page (/links/): standalone, phone-first, no site header or footer. */
.bbyn-links-page {
	background: var(--wp--preset--color--base);
}
.bbyn-links {
	min-height: 100vh;
	padding: 40px 20px 48px;
	display: flex;
	justify-content: center;
}
.bbyn-links__inner {
	width: 100%;
	max-width: 520px;
	text-align: center;
}
.bbyn-links__portrait {
	display: block;
	width: 112px;
	height: 112px;
	margin: 0 auto 20px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 22%;
	border: 3px solid var(--wp--preset--color--surface);
	box-shadow: 0 0 0 1px var(--wp--preset--color--contrast-border);
}
.bbyn-links__title {
	margin: 0 0 8px;
	font-size: clamp(30px, 8vw, 38px);
	line-height: 1.1;
}
.bbyn-links__lead {
	margin: 0 auto 28px;
	max-width: 34ch;
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-links__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bbyn-links__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 22px;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.bbyn-links__btn:hover,
.bbyn-links__btn:focus-visible {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.bbyn-links__btn:active {
	transform: scale(0.99);
}
.bbyn-links__btn--primary {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.bbyn-links__btn--primary:hover,
.bbyn-links__btn--primary:focus-visible {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}
.bbyn-links__arrow {
	flex-shrink: 0;
}
.bbyn-links__foot {
	margin: 28px 0 0;
	font-size: 14px;
	color: var(--wp--preset--color--contrast-muted);
}
.bbyn-links__foot a {
	color: inherit;
}

/* Brow quiz (/which-brow-treatment/). */
.bbyn-quiz {
	max-width: 640px;
	margin: 40px 0 56px;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--contrast-border);
	border-radius: 28px;
	background: var(--wp--preset--color--surface);
}
.bbyn-quiz:not(.is-js) [data-quiz-start] { display: none; }
.bbyn-quiz__title { margin: 0 0 12px; font-size: clamp(26px, 5vw, 32px); line-height: 1.15; }
.bbyn-quiz__intro-text { margin: 0 0 20px; }
.bbyn-quiz__progress { margin: 0 0 8px; font-size: 14px; color: var(--wp--preset--color--contrast-muted); }
.bbyn-quiz__bar { height: 6px; margin-bottom: 24px; border-radius: 999px; background: var(--wp--preset--color--contrast-border); overflow: hidden; }
.bbyn-quiz__bar span { display: block; height: 100%; background: var(--wp--preset--color--primary); transition: width 0.25s; }
.bbyn-quiz__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.bbyn-quiz__legend { padding: 0; margin: 0 0 6px; font-family: var(--wp--preset--font-family--display); font-size: clamp(24px, 5vw, 30px); line-height: 1.2; }
.bbyn-quiz__legend:focus, .bbyn-quiz__result-title:focus { outline: none; }
.bbyn-quiz__hint { margin: 0 0 16px; color: var(--wp--preset--color--contrast-muted); }
.bbyn-quiz__options { display: grid; gap: 10px; margin-top: 16px; }
.bbyn-quiz__option { position: relative; }
.bbyn-quiz__option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bbyn-quiz__option label { display: block; padding: 15px 18px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 18px; background: var(--wp--preset--color--base); font-weight: 600; cursor: pointer; }
.bbyn-quiz__option input:checked + label { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.bbyn-quiz__option input:focus-visible + label { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.bbyn-quiz__nav, .bbyn-quiz__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bbyn-quiz__btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.bbyn-quiz__btn:hover:not(:disabled) { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.bbyn-quiz__btn--primary { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.bbyn-quiz__btn--primary:hover:not(:disabled) { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }
.bbyn-quiz__btn--ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.bbyn-quiz__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bbyn-quiz__result-title { margin: 0 0 12px; font-size: clamp(28px, 6vw, 36px); line-height: 1.15; }
.bbyn-quiz__result-lead { font-size: 18px; }
.bbyn-quiz__sub { margin: 24px 0 8px; font-size: 18px; font-weight: 600; }
.bbyn-quiz__why { margin: 0; padding-left: 1.2em; }
.bbyn-quiz__why li { margin-bottom: 6px; }
.bbyn-quiz__also { margin-top: 12px; color: var(--wp--preset--color--contrast-muted); }
.bbyn-quiz__photo { margin: 24px 0 0; }
.bbyn-quiz__photo img { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 20px; }
.bbyn-quiz__email { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--contrast-border); }
.bbyn-quiz__email .bbyn-quiz__sub { margin-top: 0; }
.bbyn-quiz__email .bbyn-quiz__hint { margin-bottom: 12px; }
.bbyn-quiz__email form { display: grid; gap: 12px; }
.bbyn-quiz__email input[type="email"] { width: 100%; padding: 13px 16px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 14px; font: inherit; background: var(--wp--preset--color--base); }
.bbyn-quiz__check { display: flex; gap: 10px; align-items: flex-start; }
.bbyn-quiz__check input { margin-top: 5px; flex-shrink: 0; }
.bbyn-quiz__hp { position: absolute; left: -9999px; }
.bbyn-quiz__fine { margin: 0; font-size: 14px; color: var(--wp--preset--color--contrast-muted); }
.bbyn-quiz__result > .bbyn-quiz__fine { margin-top: 24px; }
.bbyn-quiz__msg { margin: 0; min-height: 1.4em; font-size: 14px; }
@media (max-width: 600px) { .bbyn-quiz { padding: 22px 18px; } .bbyn-quiz__btn { width: 100%; } }

/* Consultation form (/consultation-form/): long medical form with signature boxes. */
.bbyn-consultation .wpcf7-form { max-width: 760px; }
.bbyn-consultation .wpcf7-form h4 { margin: 36px 0 12px; font-family: var(--wp--preset--font-family--body, inherit); font-size: 15px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; text-transform: uppercase; }
.bbyn-consultation .wpcf7-form p { margin: 0 0 18px; }
.bbyn-consultation .wpcf7-form input[type="date"],
.bbyn-consultation .wpcf7-form input[type="number"] { padding: 12px 14px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 14px; background: var(--wp--preset--color--surface); font: inherit; }
.bbyn-consultation .wpcf7-list-item { display: block; margin: 0 0 10px; }
.bbyn-consultation .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 400; margin: 0; cursor: pointer; }
.bbyn-consultation .wpcf7-checkbox .wpcf7-list-item { display: flex; gap: 10px; align-items: flex-start; }
.bbyn-consultation .wpcf7-list-item input[type="checkbox"],
.bbyn-consultation .wpcf7-list-item input[type="radio"] { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wp--preset--color--primary); }
.bbyn-consultation .wpcf7-exclusive-checkbox,
.bbyn-consultation .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bbyn-consultation .wpcf7-radio .wpcf7-list-item { margin: 0; }
.bbyn-consultation .wpcf7-form-control-signature-global-wrap { margin: 8px 0 6px; }
.bbyn-consultation .wpcf7-form-control-signature-wrap { width: 100% !important; max-width: 420px; height: 180px !important; border: 2px dashed var(--wp--preset--color--contrast); border-radius: 16px; background: var(--wp--preset--color--surface); }
.bbyn-consultation .wpcf7-form-control-signature-wrap::before { content: "Sign here"; position: absolute; left: 14px; top: 10px; font-size: 13px; color: var(--wp--preset--color--contrast-muted); pointer-events: none; }
.bbyn-consultation .wpcf7-form-control-clear-wrap { margin-top: 8px; }
.bbyn-consultation .wpcf7-form-control-clear-wrap input { padding: 8px 18px; border: 1px solid var(--wp--preset--color--contrast); border-radius: 999px; background: transparent; color: var(--wp--preset--color--contrast); font: inherit; font-size: 14px; cursor: pointer; }
.bbyn-consultation .wpcf7-form-control-clear-wrap input:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
