/**
 * Mand Consulting — refinement layer.
 *
 * theme.json carries the design tokens (color, type, spacing). This sheet adds
 * the interaction polish and a few block-style variations that JSON can't
 * express: sticky header, animated links, image framing, cards, responsive nav.
 * Everything is additive and scoped so existing block content keeps working.
 */

/* ---------------------------------------------------------------- Base feel */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

:where(.wp-site-blocks) {
	overflow-x: clip;
}

/* Keep anchor targets clear of the fixed header. */
:where(h1, h2, h3, [id]) {
	scroll-margin-top: 6rem;
}

/* ----------------------------------------- Flush full-bleed section stacking */

/* The page is a vertical stack of full-bleed bands (hero, content sections,
   footer). Kill the inherited block-gap between them so no pale strips of the
   page background ever show through. Each band carries its own padding. */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0 !important;
}

main.wp-block-group > .alignfull,
.wp-block-post-content > .alignfull {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* Now that bands sit flush, any band without its own inline padding still needs
   generous breathing room top and bottom. */
.wp-block-post-content > .alignfull:not([style*="padding-top"]) {
	padding-top: clamp(3.5rem, 6vw, 5.5rem);
}
.wp-block-post-content > .alignfull:not([style*="padding-bottom"]) {
	padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

/* Cap the height of in-content imagery so a single tall photo can't dominate. */
.wp-block-post-content .wp-block-image img {
	max-height: 32rem;
	width: 100%;
	object-fit: cover;
}

/* ------------------------------------------------ Breathing room in content */

/* Some original sections pack a full-width flex row hard against the left edge
   (looks "out of flow"). Let those rows wrap and centre within the wide column. */
.wp-block-post-content .wp-block-group.alignfull.is-layout-flex,
.wp-block-post-content .wp-block-group.alignwide.is-layout-flex {
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(2rem, 4vw, 3.5rem);
}

/* Generous gutters and row gaps between columns. */
.wp-block-post-content .wp-block-columns {
	gap: clamp(2.5rem, 4vw, 4rem);
	row-gap: clamp(2.5rem, 4vw, 3.5rem);
}

/* Vertical rhythm: stacked text/blocks inside columns and groups get air,
   even where the content was authored with very small block gaps. */
.wp-block-post-content :is(.wp-block-column, .wp-block-group:not(.is-layout-flex)) > * + * {
	margin-block-start: 1.25rem;
}

.wp-block-post-content .wp-block-list > li + li {
	margin-block-start: 0.85rem;
}

/* A touch more line spacing in list items that wrap. */
.wp-block-post-content .wp-block-list { line-height: 1.7; }

/* ---------------------------------------- Block & responsive safety nets */

/* Media never overflows its container. */
img,
svg,
video,
iframe,
.wp-block-image img,
.wp-block-post-featured-image img {
	max-width: 100%;
	height: auto;
}

/* Flex/grid items default to min-width:auto and refuse to shrink below their
   content (e.g. a full-size image), which can blow out the layout. Let them. */
.wp-block-columns,
.wp-block-column,
.wp-block-group,
.wp-block-query,
.wp-block-cover__inner-container {
	min-width: 0;
}

/* Force genuine stacking of columns on phones, even when an inner image is
   wider than the column would otherwise allow. */
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
		flex-grow: 1;
	}
}

/* Fraunces optical sizing for display headings. */
h1, h2, h3,
.wp-block-heading,
.wp-block-post-title,
.has-heading-font-family,
.has-system-serif-font-family {
	font-optical-sizing: auto;
}

/* ------------------------------------------------------ Links in body copy */

.entry-content a:not(.wp-element-button):not(.wp-block-button__link):where(:not([class*="has-"])),
.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):where(:not([class*="has-"])) {
	background-image: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 100% 1px;
	padding-bottom: 1px;
	transition: background-size .35s ease, color .25s ease;
}

.entry-content a:not(.wp-element-button):not(.wp-block-button__link):hover,
.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--accent);
	background-size: 100% 1.5px;
}

/* ----------------------------------------------------------------- Buttons */

.wp-element-button,
.wp-block-button__link {
	transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
	will-change: transform;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Outline button variation reads well on photography. */
.is-style-outline .wp-block-button__link {
	border-width: 1px;
	background: transparent;
}

/* ------------------------------------------ Fixed, scroll-aware header */

.mand-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: transparent;
	transition: background-color .35s ease, box-shadow .35s ease, padding .3s ease;
}

/* Solid state once scrolled: deep green glass, text stays light. */
.mand-header.is-scrolled {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-4) 90%, transparent);
	-webkit-backdrop-filter: saturate(150%) blur(12px);
	backdrop-filter: saturate(150%) blur(12px);
	box-shadow: 0 16px 40px -28px rgba(0,0,0,0.55);
	padding-top: 0.7rem !important;
	padding-bottom: 0.7rem !important;
}

/* Brand logo (white mark) sits left of the wordmark. */
.mand-brand .wp-block-site-logo {
	display: flex;
	align-items: center;
	margin: 0;
}

.mand-brand .wp-block-site-logo img {
	height: 40px;
	width: auto;
	display: block;
}

/* Brand wordmark, white over hero and over the scrolled green bar. */
.mand-brand .wp-block-site-title a,
.mand-brand .wp-block-site-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: #fff;
	transition: color .35s ease;
	text-shadow: 0 1px 18px rgba(0,0,0,0.3);
}

.mand-header.is-scrolled .mand-brand .wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent-2);
}

/* ------------------------------------------------------------- Navigation */

.mand-nav .wp-block-navigation-item__content {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	padding-bottom: 3px;
	position: relative;
	text-shadow: 0 1px 16px rgba(0,0,0,0.35);
	transition: color .35s ease;
}

/* The Navigation block manages its own colour and beats plain selectors, so
   force the header menu white in every state (transparent hero + solid bar). */
.mand-header .mand-nav .wp-block-navigation-item__content,
.mand-header .mand-nav .wp-block-navigation-item__content .wp-block-navigation-item__label {
	color: #fff !important;
}

.mand-header .mand-nav .wp-block-navigation-item__content:hover,
.mand-header .mand-nav .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--accent-2) !important;
}

.mand-header .wp-block-navigation .wp-block-navigation__responsive-container-open,
.mand-header .wp-block-navigation .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.mand-header.is-scrolled .mand-nav .wp-block-navigation-item__content {
	text-shadow: none;
}

.mand-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transition: width .3s ease;
}

.mand-nav .wp-block-navigation-item:hover .wp-block-navigation-item__content::after,
.mand-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	width: 100%;
}

.mand-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

/* Mobile flyout menu: full-screen dark-green panel with the links centred,
   clean and elegant. The core block forces a white overlay inline and aligns
   the items top-right, so we override the whole layout. 100dvh handles the
   mobile address bar so nothing ever needs scrolling. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--accent-4) !important;
	height: 100dvh !important;
	min-height: 100vh;
	padding: 0 !important;
}

/* The overlay nests container > close > dialog > content > ul. Force every
   wrapper to fill the screen and centre so the links land in the middle. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: clamp(1.5rem, 4.5vh, 2.6rem) !important;
	width: auto !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	justify-content: center;
	text-align: center;
}

.mand-header .mand-nav .is-menu-open .wp-block-navigation-item__content,
.mand-header .mand-nav .is-menu-open .wp-block-navigation-item__content .wp-block-navigation-item__label {
	color: #fff !important;
	font-size: clamp(1.6rem, 6vw, 2.1rem);
	letter-spacing: 0.1em;
	text-shadow: none;
}

.mand-header .mand-nav .is-menu-open .wp-block-navigation-item__content::after {
	display: none; /* drop the underline hover bar inside the overlay */
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: #fff !important;
	top: clamp(1.5rem, 5vw, 2.25rem);
	right: clamp(1.5rem, 5vw, 2.25rem);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* ============================================================ Hero & banners */

.mand-hero {
	position: relative;
	min-height: min(94vh, 880px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding-top: clamp(7rem, 16vh, 11rem);
	padding-bottom: clamp(4rem, 10vh, 7rem);
	background-image:
		linear-gradient(180deg, rgba(20,24,16,0.30) 0%, rgba(20,24,16,0.34) 45%, rgba(20,24,16,0.72) 100%),
		url(../img/hero.jpg);
	background-size: cover;
	background-position: center 38%;
	margin-top: 0 !important;
}

.mand-hero > * { position: relative; }

.mand-hero :is(h1, h2, p) { color: #fff; }

.mand-hero__title {
	font-size: clamp(2.7rem, 6.2vw, 4.9rem);
	line-height: 1.02;
	letter-spacing: -0.022em;
	text-shadow: 0 2px 40px rgba(0,0,0,0.35);
	margin: 0;
}

.mand-hero__lead {
	max-width: 40rem;
	margin: 1.3rem auto 0;
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
	line-height: 1.6;
	color: rgba(255,255,255,0.92) !important;
}

/* Ghost button used on imagery. */
.mand-btn-ghost .wp-block-button__link,
.mand-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.65);
	color: #fff;
}

.mand-btn-ghost .wp-block-button__link:hover,
.mand-hero .is-style-outline .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--wp--preset--color--contrast);
}

/* Scroll cue at the bottom of the hero. */
.mand-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 1px;
	height: 46px;
	background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.8));
	transform: translateX(-50%);
}

/* Inner-page banner: same image, deeper veil, compact. */
.mand-banner {
	position: relative;
	color: #fff;
	padding-top: clamp(7rem, 15vh, 9.5rem);
	padding-bottom: clamp(2.5rem, 6vh, 4rem);
	background-image:
		linear-gradient(180deg, rgba(20,24,16,0.45) 0%, rgba(20,24,16,0.62) 100%),
		url(../img/hero.jpg);
	background-size: cover;
	background-position: center 42%;
	margin-top: 0 !important;
}

.mand-banner__title { color: #fff; margin: 0; }
.mand-banner :is(h1, h2, p) { color: #fff; }

.mand-eyebrow--light { color: var(--wp--preset--color--accent-2); }

/* ------------------------------------------------------------ Images / media */

.wp-block-image img,
.wp-block-cover {
	border-radius: 3px;
}

.wp-block-image.is-style-mand-frame img {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	padding: 10px;
	background: var(--wp--preset--color--base);
	border-radius: 0;
}

/* Subtle zoom for linked / portfolio images. */
.wp-block-image:has(a):hover img,
.wp-block-post-featured-image:hover img {
	transform: scale(1.03);
}

.wp-block-image:has(a),
.wp-block-post-featured-image {
	overflow: clip;
	border-radius: 3px;
}

.wp-block-image:has(a) img,
.wp-block-post-featured-image img {
	transition: transform .6s cubic-bezier(.2,.6,.2,1);
}

/* ----------------------------------------------------- Block style: card */

.wp-block-group.is-style-mand-card {
	background: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: 6px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform .3s ease, box-shadow .3s ease;
	height: 100%;
}

.wp-block-group.is-style-mand-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* ------------------------------------------------ Block style: short rule */

.wp-block-separator.is-style-mand-narrow {
	width: 56px;
	border-width: 0 0 2px 0;
	border-bottom-color: var(--wp--preset--color--accent);
	opacity: 1;
	margin-left: 0;
}

.wp-block-separator.is-style-mand-narrow.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------- Eyebrow labels */

.mand-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.24em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

/* ------------------------------------------------------------ Post / cards */

.wp-block-post-title a {
	transition: color .25s ease;
}

.wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* --------------------------------------------------------- Portfolio meta */

.mand-readmore.wp-block-read-more,
a.mand-readmore {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: color .25s ease, transform .25s ease;
}

.mand-readmore.wp-block-read-more:hover,
a.mand-readmore:hover {
	color: var(--wp--preset--color--contrast);
	transform: translateX(3px);
}

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

.mand-footer a {
	transition: color .25s ease, opacity .25s ease;
}

.mand-footer a:hover {
	color: var(--wp--preset--color--accent-2);
}

/* --------------------------------------------------------------- Comments */

.wp-block-comment-template .wp-block-comment-author-name a {
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.mand-form input,
.mand-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: 6px;
	padding: 0.85em 1em;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	transition: border-color .2s ease, box-shadow .2s ease;
}

/* A little more space between fields so the form breathes. */
.mand-field { margin-bottom: 1.6rem; }

.comment-form input:focus,
.comment-form textarea:focus,
.mand-form input:focus,
.mand-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
}

/* --------------------------------------------------------- Contact actions */

.mand-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	justify-content: center;
}

.mand-contacts .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}

/* ----------------------------------------------------------- Responsive */

/* Tablet: keep the full menu on one line by tightening it (the visible nav
   only collapses to a hamburger below 600px). */
@media (min-width: 601px) and (max-width: 1100px) {
	.mand-nav.is-layout-flex {
		gap: clamp(0.7rem, 1.6vw, 1.4rem) !important;
	}
	.mand-nav .wp-block-navigation-item__content {
		font-size: 0.74rem;
		letter-spacing: 0.08em;
	}
	.mand-brand .wp-block-site-title a,
	.mand-brand .wp-block-site-title {
		font-size: 1.2rem;
	}
	.mand-brand .wp-block-site-logo img { height: 34px; }
}

@media (max-width: 781px) {
	/* Keep generous, but tighten the very large display type on phones. */
	h1, .wp-block-post-title {
		line-height: 1.1;
	}
}

@media (max-width: 600px) {
	.mand-brand .wp-block-site-title a,
	.mand-brand .wp-block-site-title {
		font-size: 1.15rem;
	}
}

@media (max-width: 600px) {
	.mand-contacts {
		flex-direction: column;
		align-items: stretch;
	}

	.mand-contacts .wp-block-button {
		width: 100%;
	}

	.mand-contacts .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* =============================================================== Recensioni */

.mand-review-notice {
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin-bottom: var(--wp--preset--spacing--30);
	font-size: 0.95rem;
}

.mand-review-notice.is-success {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 16%, var(--wp--preset--color--base));
	border: 1px solid var(--wp--preset--color--accent);
}

.mand-review-notice.is-error {
	background: #fbeeee;
	border: 1px solid #d98a8a;
	color: #7a2727;
}

/* ---- Reviews grid ---- */

.mand-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin: 0 0 var(--wp--preset--spacing--40);
}

.mand-review-card {
	margin: 0;
	background: var(--wp--preset--color--base);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	border-radius: 8px;
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform .3s ease, box-shadow .3s ease;
}

.mand-review-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.mand-review-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.mand-review-photo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--wp--preset--color--accent-3);
}

.mand-review-photo--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	color: var(--wp--preset--color--contrast);
}

.mand-review-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.mand-review-name {
	font-weight: 600;
	font-size: 1.05rem;
}

.mand-stars {
	display: inline-flex;
	gap: 1px;
	color: var(--wp--preset--color--accent);
	font-size: 0.95rem;
	line-height: 1;
}

.mand-stars .mand-star { color: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent); }
.mand-stars .mand-star.is-on { color: var(--wp--preset--color--accent); }

.mand-review-text {
	margin: 0;
	border: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast-2);
}

.mand-review-text p:last-child { margin-bottom: 0; }

.mand-reviews-empty {
	color: var(--wp--preset--color--contrast-3);
	font-style: italic;
}

/* ---- Submission form ---- */

.mand-review-formwrap {
	max-width: 600px;
	margin: var(--wp--preset--spacing--40) auto 0;
	padding: clamp(1.5rem, 2.5vw, 2.1rem) clamp(1.5rem, 2.5vw, 2.25rem);
	background: var(--wp--preset--color--base-2);
	border-radius: 12px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	box-shadow: var(--wp--preset--shadow--soft);
}

.mand-review-formwrap input[type="text"],
.mand-review-formwrap input[type="email"],
.mand-review-formwrap textarea {
	background: var(--wp--preset--color--base);
}

.mand-review-formtitle {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 380;
	margin: 0 0 0.4rem;
}

.mand-review-formintro {
	color: var(--wp--preset--color--contrast-3);
	font-size: 0.9rem;
	margin: 0 0 1.75rem;
}

.mand-field { margin-bottom: 1.25rem; }

.mand-field > label,
.mand-rating-field > legend {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	margin-bottom: 0.5rem;
	padding: 0;
}

.mand-field span { color: var(--wp--preset--color--accent); }

.mand-field small {
	display: block;
	margin-top: 0.35rem;
	color: var(--wp--preset--color--contrast-3);
	font-size: 0.8rem;
}

.mand-field input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	font-size: 0.9rem;
	padding: 0.75rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	border-radius: 6px;
	background: var(--wp--preset--color--base);
}

/* CSS-only star input (radios rendered 5→1, filled with the sibling trick). */
.mand-rating-field { border: 0; padding: 0; margin-bottom: 1.25rem; }

.mand-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
	font-size: 2rem;
	line-height: 1;
}

.mand-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.mand-rating-input label {
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	cursor: pointer;
	transition: color .15s ease, transform .15s ease;
}

.mand-rating-input label:hover,
.mand-rating-input label:hover ~ label,
.mand-rating-input input:checked ~ label {
	color: var(--wp--preset--color--accent);
}

.mand-rating-input label:hover { transform: scale(1.12); }

.mand-rating-input input:focus-visible + label {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.mand-review-submit { margin-top: 0.5rem; cursor: pointer; border: 0; }

/* Honeypot stays out of sight and out of the tab order. */
.mand-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
