/**
 * Ibiza — base stylesheet
 *
 * theme.json owns colour, type, spacing and block styling. This file only
 * carries what theme.json cannot express: accessibility affordances, motion
 * preferences, and the one structural detail the design is built around.
 *
 * Budget: 25KB. See IBIZA_CSS_BUDGET in functions.php.
 */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

p,
li,
h1,
h2,
h3,
h4 {
	overflow-wrap: break-word;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--mar);
	outline-offset: 2px;
	border-radius: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
	outline: none;
}

.skip-link.screen-reader-text {
	background-color: var(--wp--preset--color--sal);
	border: 1px solid var(--wp--preset--color--tinta);
	box-shadow: var(--wp--preset--shadow--edge);
	color: var(--wp--preset--color--tinta);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
	z-index: 100000;
}

/* Signature: the hard edge. Balearic building shadows are sharp, not blurred.
   Nothing in this theme uses a blur radius. */

.ibiza-header {
	position: relative;
}

.ibiza-header::after {
	background: var(--wp--preset--color--arena);
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	right: 0;
}

.ibiza-footer {
	border-top: 1px solid var(--wp--preset--color--arena);
}

img,
svg,
video,
canvas {
	height: auto;
	max-width: 100%;
}

img[width][height] {
	height: auto;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	background: var(--wp--preset--color--sal);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius);
	color: var(--wp--preset--color--tinta);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.65rem 0.85rem;
	width: 100%;
}

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border-bottom: 1px solid var(--wp--preset--color--arena);
	padding: 0.6rem 0.75rem;
	text-align: left;
}

.wp-block-table th {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

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

@media print {
	.ibiza-header,
	.ibiza-footer,
	.wp-block-navigation,
	.wp-block-comments {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}

	a::after {
		content: " (" attr( href ) ")";
		font-size: 0.85em;
	}
}

/* -------------------------------------------------------------------------
   Responsive navigation, no JavaScript

   A checkbox holds the open state; CSS does the rest. The checkbox itself is
   never display:none, because that would take it out of the focus order — it
   is clipped instead, so keyboard users can still reach and toggle it.
   ------------------------------------------------------------------------- */

.ibiza-nav {
	display: flex;
	align-items: center;
}

.ibiza-nav__state {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ibiza-nav__burger {
	display: none;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 0.4rem 0.2rem;
	user-select: none;
}

/* Three bars drawn with one element, so the markup stays minimal. */
.ibiza-nav__bars,
.ibiza-nav__bars::before,
.ibiza-nav__bars::after {
	background: var(--wp--preset--color--tinta);
	display: block;
	height: 2px;
	width: 1.25rem;
}

.ibiza-nav__bars {
	position: relative;
}

.ibiza-nav__bars::before,
.ibiza-nav__bars::after {
	content: "";
	left: 0;
	position: absolute;
}

.ibiza-nav__bars::before { top: -6px; }
.ibiza-nav__bars::after  { top: 6px; }

/* The checkbox is focused, so draw the ring on the thing people can see. */
.ibiza-nav__state:focus-visible + .ibiza-nav__burger {
	outline: 2px solid var(--wp--preset--color--mar);
	outline-offset: 2px;
	border-radius: 2px;
}

@media ( max-width: 47.99em ) {
	.ibiza-nav__burger {
		display: flex;
	}

	/* Closed: the menu is removed from the page, not just hidden, so its
	   links stay out of the tab order. */
	.ibiza-nav__state:not(:checked) ~ .wp-block-navigation {
		display: none;
	}

	.ibiza-nav__state:checked ~ .wp-block-navigation {
		/* Set explicitly rather than relying on core's layout class to
		   reassert it — that class is not ours to depend on. */
		display: flex;
		justify-content: flex-start;
		background: var(--wp--preset--color--sal);
		border-top: 1px solid var(--wp--preset--color--arena);
		border-bottom: 1px solid var(--wp--preset--color--arena);
		left: 0;
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
		position: absolute;
		right: 0;
		/* Drop below the header rather than covering it. The containing block
		   is .ibiza-header, which is position:relative at this width. */
		top: 100%;
		z-index: 20;
	}

	/* Core right-justifies the desktop menu; the panel reads left-to-right. */
	.ibiza-nav__state:checked ~ .wp-block-navigation.items-justified-right {
		justify-content: flex-start;
	}

	.ibiza-nav__state:checked ~ .wp-block-navigation ul {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
	}

	.ibiza-header {
		position: relative;
	}
}

@media ( min-width: 48em ) {
	/* Desktop never shows the control, and the menu is always laid out. */
	.ibiza-nav__burger {
		display: none;
	}

	.ibiza-nav__state ~ .wp-block-navigation {
		display: flex;
	}
}

/*
 * Storefront sections.
 *
 * A section is a full-width band with flow layout, so nothing inside it is
 * force-centred. One rail holds the column: grids fill it, prose is capped at
 * a readable measure, and both start on the same left edge.
 */
.ibiza-section {
	padding-left: clamp(1rem, 4vw, 2.5rem);
	padding-right: clamp(1rem, 4vw, 2.5rem);
}

.ibiza-rail {
	max-width: 68rem;
	margin-left: auto;
	margin-right: auto;
}

.ibiza-rail > :is(h1, h2, h3, h4, p, .wp-block-buttons) {
	max-width: 46rem;
}

/* Recordings on the storefront. */
.ibiza-clip {
	margin: 0;
}

.ibiza-clip video {
	/* Landscape clips fill the column; a portrait phone recording is capped by
	   height instead, so it does not tower over everything beside it. */
	max-width: 100%;
	max-height: 30rem;
	width: auto;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
	background: var(--wp--preset--color--tinta);
}

.ibiza-clip figcaption {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/*
 * Floating header.
 *
 * Sticky and frosted so the aurora runs underneath it rather than stopping at
 * a hard edge. `backdrop-filter` is progressive: without it the bar is simply
 * a solid colour, which is still fine.
 */
.ibiza-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: color-mix(in oklab, var(--wp--preset--color--sal) 72%, transparent);
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
}

@supports not (backdrop-filter: blur(1px)) {
	.ibiza-header {
		background: var(--wp--preset--color--sal);
	}
}

/*
 * Picture beside words.
 *
 * Grid rather than flex so the two halves share a baseline at any width, and
 * one breakpoint so a phone stacks them picture first.
 */
.ibiza-split {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

@media (min-width: 48em) {
	.ibiza-split {
		grid-template-columns: 1fr 1fr;
	}

	.ibiza-split.is-flipped > :first-child {
		order: 2;
	}
}

.ibiza-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--fx-round, 1rem);
}

.ibiza-figure figure {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Contact form
 *
 * Inputs inherit the site's type rather than the browser's, and the error
 * state is carried by a word as well as a colour.
 * ---------------------------------------------------------------------- */

.ibiza-contact {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 48rem) {
	.ibiza-contact.has-aside {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
	}
}

.ibiza-form {
	display: grid;
	gap: 1.1rem;
}

.ibiza-field {
	display: grid;
	gap: 0.4rem;
	margin: 0;
}

.ibiza-field label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.ibiza-optional {
	font-weight: 400;
	opacity: 0.6;
}

.ibiza-field :where(input, textarea) {
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: inherit;
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
	border-radius: 0.5rem;
	background: color-mix(in oklab, currentColor 4%, transparent);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ibiza-field :where(input, textarea):hover {
	border-color: color-mix(in oklab, currentColor 38%, transparent);
}

.ibiza-field :where(input, textarea):focus {
	background: color-mix(in oklab, currentColor 2%, transparent);
	border-color: currentColor;
}

.ibiza-field textarea {
	resize: vertical;
	min-height: 7rem;
}

.ibiza-field.is-wrong :where(input, textarea) {
	border-color: var(--wp--preset--color--sol, #c2410c);
}

.ibiza-wrong {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--sol, #c2410c);
}

.ibiza-decoy {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ibiza-send {
	font: inherit;
	font-weight: 600;
	justify-self: start;
	padding: 0.8rem 1.8rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: var(--wp--preset--color--nit, #10131f);
	background: var(--wp--preset--color--sal, #f3f1ff);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.ibiza-send:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.ibiza-form-done {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
	padding: 1.2rem 1.4rem;
	border-radius: 0.75rem;
	border: 1px solid color-mix(in oklab, currentColor 18%, transparent);
	background: color-mix(in oklab, currentColor 5%, transparent);
}

.ibiza-details {
	display: grid;
	gap: 1.2rem;
	margin: 0;
}

.ibiza-detail dt {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	opacity: 0.65;
	margin: 0 0 0.2rem;
}

.ibiza-detail dd {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	white-space: pre-line;
}

/* -------------------------------------------------------------------------
 * Article body
 *
 * One readable column. The lede is set larger because the first sentence is
 * where a reader decides, and asides step back because they are not the
 * argument.
 * ---------------------------------------------------------------------- */

.ibiza-lede {
	line-height: 1.45;
	letter-spacing: -0.01em;
	max-width: 32em;
}

.ibiza-aside {
	border-left: 2px solid color-mix(in oklab, currentColor 20%, transparent);
	padding-left: 1rem;
}

.ibiza-quote {
	border: 0;
	padding: 0;
	margin-block: 2.5rem;
}

.ibiza-quote p {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.ibiza-quote cite {
	display: block;
	margin-top: 0.8rem;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	opacity: 0.65;
}

.wp-block-list {
	padding-left: 1.3em;
}

.wp-block-list li + li {
	margin-top: 0.4em;
}

.wp-element-caption {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.7;
	margin-top: 0.6rem;
}

/* -------------------------------------------------------------------------
 * Comments
 *
 * A theme that silently swallows twenty comments is worse than one with none,
 * so these are styled rather than merely present.
 * ---------------------------------------------------------------------- */

.ibiza-comments {
	border-top: 1px solid color-mix(in oklab, currentColor 14%, transparent);
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.ibiza-comments .wp-block-avatar img {
	display: block;
}

.ibiza-comments .wp-block-comment-content p:last-child {
	margin-bottom: 0;
}

/* Replies step in, with a rule to follow rather than only whitespace. */
.ibiza-comments ol {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.ibiza-comments ol ol {
	padding-left: clamp(1rem, 4vw, 2.6rem);
	border-left: 1px solid color-mix(in oklab, currentColor 12%, transparent);
}

.ibiza-comments .wp-block-comment-reply-link a,
.ibiza-comments .wp-block-comment-edit-link a {
	font-weight: 600;
	text-decoration: none;
}

.ibiza-comments .wp-block-comment-reply-link a:hover,
.ibiza-comments .wp-block-comment-edit-link a:hover {
	text-decoration: underline;
}

.ibiza-comments .comment-form :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: inherit;
	width: 100%;
	max-width: 32rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
	border-radius: 0.5rem;
	background: color-mix(in oklab, currentColor 4%, transparent);
}

.ibiza-comments .comment-form textarea {
	max-width: none;
	resize: vertical;
}

.ibiza-comments .comment-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.ibiza-comments .comment-form p {
	margin-bottom: 1rem;
}

.ibiza-comments .comment-form .submit {
	font: inherit;
	font-weight: 600;
	padding: 0.8rem 1.8rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: var(--wp--preset--color--nit, #10131f);
	background: var(--wp--preset--color--sal, #f3f1ff);
}

.ibiza-comments .comment-form .submit:hover {
	opacity: 0.9;
}

/* -------------------------------------------------------------------------
 * Content a theme does not control
 *
 * Found by rendering WordPress's own test data: a plain <pre> keeps its line
 * breaks, so a poem or a stack trace pushes the whole page sideways, and
 * pre-block-editor captions carry an inline pixel width that ignores the
 * viewport. Neither comes from anything the theme wrote, and both have to be
 * survivable — a reader on a phone should never have to scroll sideways to
 * read a paragraph.
 * ---------------------------------------------------------------------- */

:where(pre, .wp-block-preformatted, .wp-block-code, .wp-block-verse) {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

:where(pre) {
	tab-size: 2;
}

/*
 * Legacy captions carry width in pixels on the figure itself, and global
 * styles give figures a max-width in pixels too — so a zero-specificity rule
 * loses and 580px of image still pushes a 312px column sideways. This is the
 * one place the theme overrules both, because the alternative is a reader
 * scrolling horizontally to finish a sentence.
 */
.wp-caption,
figure.wp-caption {
	max-width: 100% !important;
	width: auto !important;
}

.wp-caption img {
	width: auto;
}

:where(.wp-caption) img,
:where(.entry-content, .wp-block-post-content) :where(img, video, iframe, object, embed) {
	max-width: 100%;
	height: auto;
}

:where(.wp-caption-text, .wp-caption .wp-caption-text) {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.7;
	margin-top: 0.5rem;
}

/* An unbroken string — a URL, a hash — should wrap rather than widen the page. */
:where(.entry-content, .wp-block-post-content) :where(p, li, dd, dt, h1, h2, h3, h4, h5, h6) {
	overflow-wrap: break-word;
}

:where(.wp-block-table, .wp-block-table > table) {
	max-width: 100%;
}

.wp-block-table {
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
 * Template kit
 *
 * Shared pieces for the fifteen starter templates: cards, grids, numbered
 * steps, price rows, an info panel and a closing band. Every colour comes from
 * the palette (or currentColor), so each style variation dresses them in its
 * own colours without a line of extra CSS.
 *
 * @since 0.7.9
 * ---------------------------------------------------------------------- */

.ibiza-kicker {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mar);
	margin-bottom: 0.75rem;
}

.ibiza-hero-split {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (min-width: 60em) {
	.ibiza-hero-split {
		grid-template-columns: 1.25fr 1fr;
	}
}

.ibiza-hero-split > * {
	min-width: 0;
}

/* A row of small facts under a hero. */
.ibiza-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin-top: 1.75rem;
	font-size: var(--wp--preset--font-size--small);
	color: color-mix(in oklab, currentColor 72%, transparent);
}

.ibiza-proof > * {
	margin: 0 !important;
}

.ibiza-proof strong {
	color: var(--wp--preset--color--tinta);
}

/* Responsive card grid. */
.ibiza-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.ibiza-grid > * {
	margin: 0 !important;
}

.ibiza-card {
	background: var(--wp--preset--color--sal);
	color: var(--wp--preset--color--tinta);
	border: 1px solid color-mix(in oklab, var(--wp--preset--color--tinta) 10%, transparent);
	border-radius: min(calc(var(--wp--custom--radius, 8px) * 1.5), 1.5rem);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	box-shadow: 0 1px 2px color-mix(in oklab, var(--wp--preset--color--tinta) 6%, transparent), 0 12px 32px -16px color-mix(in oklab, var(--wp--preset--color--tinta) 22%, transparent);
}

.ibiza-card > :first-child {
	margin-top: 0;
}

.ibiza-card > :last-child {
	margin-bottom: 0;
}

.ibiza-card h3,
.ibiza-card h4 {
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
}

.ibiza-card p:not(.ibiza-avatar):not(.ibiza-mark) {
	color: color-mix(in oklab, currentColor 80%, transparent);
}

/* A small coloured badge at the top of a card. */
.ibiza-mark {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: calc(var(--wp--custom--radius, 8px) * 1.2);
	background: color-mix(in oklab, var(--wp--preset--color--mar) 14%, var(--wp--preset--color--sal));
	color: var(--wp--preset--color--mar);
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 1rem !important;
}

/* Numbered steps: 01, 02, 03. */
.ibiza-steps {
	counter-reset: ibiza-step;
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.ibiza-steps > * {
	counter-increment: ibiza-step;
	margin: 0 !important;
	padding-top: 1.25rem;
	border-top: 2px solid color-mix(in oklab, currentColor 18%, transparent);
}

.ibiza-steps > *::before {
	content: counter(ibiza-step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--mar);
	margin-bottom: 0.75rem;
}

/* Price and timetable rows: name on the left, value on the right. */
.ibiza-rows {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ibiza-rows > li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid color-mix(in oklab, currentColor 14%, transparent);
}

.ibiza-rows > li:first-child {
	border-top: 1px solid color-mix(in oklab, currentColor 14%, transparent);
}

.ibiza-rows > li strong {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* An info panel beside a hero: next slots, opening hours, a menu. */
.ibiza-panel {
	border-radius: min(calc(var(--wp--custom--radius, 8px) * 2), 1.75rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--sal);
	color: var(--wp--preset--color--tinta);
	box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--wp--preset--color--tinta) 45%, transparent);
	border: 1px solid color-mix(in oklab, var(--wp--preset--color--tinta) 10%, transparent);
}

.ibiza-panel > :first-child {
	margin-top: 0;
}

.ibiza-panel > :last-child {
	margin-bottom: 0;
}

/* Initials in a circle, for a team without photographs. */
.ibiza-avatar {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wp--preset--color--mar), var(--wp--preset--color--cala));
	color: var(--wp--preset--color--sal);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0 0 1rem !important;
}

/* Big figures. */
.ibiza-stats {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.ibiza-stats > * {
	margin: 0 !important;
}

p.ibiza-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0 0 0.4rem !important;
}

/* Closing call to action on a dark band. */
.ibiza-band {
	border-radius: min(calc(var(--wp--custom--radius, 8px) * 2.5), 2rem);
	padding: clamp(2rem, 6vw, 4.5rem);
	background: var(--wp--preset--color--tinta);
	color: var(--wp--preset--color--sal);
}

.ibiza-band :is(h2, h3, p) {
	color: inherit;
}

.ibiza-band .wp-block-button:not(.is-style-ibiza-outline) .wp-block-button__link {
	background: var(--wp--preset--color--sal);
	color: var(--wp--preset--color--tinta);
}

/* Four cards: one row on desktop, two by two on tablets, never three plus an orphan. */
@media (min-width: 40em) {
	.ibiza-grid:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.ibiza-grid:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* A display headline beside a panel has half the width to fill: keep it to three or four lines. */
@media (min-width: 60em) {
	.ibiza-hero-split .has-xx-large-font-size.fx-display,
	.ibiza-hero-split h1.has-xx-large-font-size {
		font-size: clamp(2.75rem, 4.6vw, 4.5rem) !important;
		line-height: 1.02;
	}
}

/* ---------------------------------------------------------------------------
   0.8.0 polish
   ------------------------------------------------------------------------ */

/* A textarea is never a pill, whatever the style's radius. */
textarea {
	border-radius: min(var(--wp--custom--radius, 8px), 0.75rem);
}

/* Quotes line up with the text above them. */
.ibiza-quote,
.wp-block-quote.ibiza-quote {
	margin-inline: 0 !important;
	padding-inline: 0 !important;
	border-left: 0 !important;
}

/* Price lists: the heading sits level with the first row, not floating midway. */
.ibiza-hero-split:has(.ibiza-rows) {
	align-items: start;
}

/* Three figures stay one row on a phone instead of two and an orphan. */
.ibiza-stats:has(> :nth-child(3):last-child) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 40em) {
	p.ibiza-stat {
		font-size: clamp(1.6rem, 7.5vw, 2.25rem);
	}

	.ibiza-stats {
		gap: 1rem;
	}

	.ibiza-stats p:not(.ibiza-stat) {
		font-size: 0.8125rem;
		line-height: 1.4;
	}
}
