/**
 * Skegness Charity Bike Ride — theme styles.
 *
 * Tokens (colours, fonts, sizes, spacing) live in theme.json; this file holds
 * the block style variations and the layout details theme.json can't express.
 */

:root {
	--sr-ink: var(--wp--preset--color--contrast);
	--sr-paper: var(--wp--preset--color--base);
	--sr-card: var(--wp--preset--color--card);
	--sr-muted: var(--wp--preset--color--muted);
	--sr-pencil: var(--wp--preset--color--muted-foreground);
	--sr-accent: var(--wp--preset--color--accent);
	--sr-rule: var(--wp--preset--color--rule);
	--sr-mono: var(--wp--preset--font-family--dm-mono);
	--sr-header-h: 81px;
	--sr-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

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

::selection {
	background: var(--sr-accent);
	color: #fff;
}

/* Header, main and footer sit flush. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--sr-ink);
	outline-offset: 2px;
}

img {
	height: auto;
	max-width: 100%;
}

/* Line icons (registered as plain paths; core strips stroke attributes). */
.sr-line-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* No backdrop-filter here: it would trap the fixed mobile menu overlay
   inside the header. */
.site-header.has-background {
	background-color: color-mix(in srgb, var(--sr-paper) 97%, transparent) !important;
}

.site-header__inner {
	min-height: 56px;
}

.site-header__logo {
	flex: none;
	line-height: 0;
}

.site-header__logo img {
	width: auto;
	height: 56px;
}

.site-header .site-header__nav .wp-block-navigation-item__content {
	padding: 0.375rem 0.875rem;
	color: var(--sr-pencil);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-header .site-header__nav .wp-block-navigation-item__content:hover,
.site-header .site-header__nav .current-menu-item > .wp-block-navigation-item__content,
.site-header .site-header__nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--sr-ink);
}

.site-header__nav .current-menu-item > .wp-block-navigation-item__content,
.site-header__nav .wp-block-navigation-item__content[aria-current="page"] {
	font-weight: 600;
}

.site-header__nav .wp-block-navigation__responsive-container-open,
.site-header__nav .wp-block-navigation__responsive-container-close {
	color: var(--sr-pencil);
}

.site-header__nav .wp-block-navigation__responsive-container-open:hover,
.site-header__nav .wp-block-navigation__responsive-container-close:hover {
	color: var(--sr-ink);
}

/* Collapse to the menu button below 900px (core collapses at 600px). */
@media (min-width: 600px) and (max-width: 899px) {
	.site-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.site-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

@media (max-width: 899px) {
	.site-header .site-header__cart {
		order: 2;
		margin-left: auto;
	}

	.site-header__nav {
		order: 3;
	}
}

/* Mobile menu overlay */
.site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.75rem clamp(1.5rem, 4vw, 2.5rem) 2rem;
}

.site-header__nav .is-menu-open .wp-block-navigation__responsive-close {
	max-width: none;
}

.site-header__nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 3.5rem !important;
}

.site-header__nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	align-items: stretch !important;
	width: 100%;
}

.site-header__nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--sr-rule);
}

.site-header__nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 1rem 0 !important;
	font-size: 1.125rem;
}

.site-header__nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 0;
	right: 0;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-footer__heading.is-style-eyebrow {
	margin-bottom: 1rem;
	font-size: 0.625rem;
}

.site-footer .site-footer__nav .wp-block-navigation-item__content,
.site-footer .site-footer__links a {
	color: var(--sr-pencil);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer .site-footer__nav .wp-block-navigation-item__content:hover,
.site-footer .site-footer__links a:hover {
	color: var(--sr-ink);
}

.site-footer__links {
	font-size: var(--wp--preset--font-size--base);
}

/* ─── Block style: eyebrow label ───────────────────────────────────────── */

.is-style-eyebrow {
	color: var(--sr-pencil);
	font-family: var(--wp--preset--font-family--instrument-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.5;
	text-transform: uppercase;
}

h2.is-style-eyebrow,
h3.is-style-eyebrow,
h4.is-style-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
}

.is-layout-flow > h3.is-style-eyebrow + *,
.is-layout-flow > h4.is-style-eyebrow + * {
	margin-block-start: 1.25rem;
}

.is-layout-flow > h2.is-style-eyebrow + * {
	margin-block-start: 2.5rem;
}

.has-contrast-background-color .is-style-eyebrow {
	color: color-mix(in srgb, var(--sr-paper) 50%, transparent);
}

.is-style-mono {
	font-family: var(--sr-mono);
}

/* ─── Block style: lists ───────────────────────────────────────────────── */

ul.is-style-dash,
ul.is-style-plain {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

ul.is-style-dash li,
ul.is-style-plain li {
	margin: 0;
}

ul.is-style-dash li + li,
ul.is-style-plain li + li {
	margin-top: 0.625rem;
}

ul.is-style-dash li {
	position: relative;
	padding-left: 1.25rem;
}

ul.is-style-dash li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--sr-accent);
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.has-camera-icon .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--sr-arrow) center / contain no-repeat;
	mask: var(--sr-arrow) center / contain no-repeat;
}

.wp-block-button.has-camera-icon .wp-block-button__link::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-large .wp-block-button__link {
	padding: 1rem 2rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {
	padding: calc(0.75rem - 1px) calc(1.75rem - 1px);
	border: 1px solid var(--sr-rule);
	background: transparent;
	color: var(--sr-ink);
	font-weight: 500;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	border-color: var(--sr-ink);
	background: var(--sr-card);
	color: var(--sr-ink);
}

.wp-block-button.is-style-tag .wp-block-button__link {
	padding: 0.625rem 1rem;
	border: 1px solid var(--sr-rule);
	background: transparent;
	color: var(--sr-ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wp-block-button.is-style-tag .wp-block-button__link:hover,
.wp-block-button.is-style-tag .wp-block-button__link:focus-visible {
	border-color: var(--sr-ink);
	background: var(--sr-card);
	color: var(--sr-ink);
}

/* ─── Text links ───────────────────────────────────────────────────────── */

.arrow-link a {
	color: var(--sr-pencil);
	text-decoration: none;
}

.arrow-link a:hover {
	color: var(--sr-ink);
}

.underline-link a {
	text-underline-offset: 0.3em;
}

.date-bar a {
	color: inherit;
	text-underline-offset: 2px;
}

.date-bar a:hover {
	color: inherit;
	text-decoration: none;
}

.date-bar .wp-block-icon svg {
	display: block;
}

/* ─── Layout helpers ───────────────────────────────────────────────────── */

/* Internal 1px rules between grid / flex children, none on the outside. */
.is-style-divided {
	overflow: hidden;
}

.is-style-divided > * {
	box-shadow: -1px -1px 0 0 var(--sr-rule);
}

.is-style-rows > * {
	margin-block-start: 0 !important;
	padding-block: 1.5rem;
	border-top: 1px solid var(--sr-rule);
}

.is-style-rows.rows-tight > * {
	padding-block: 1.25rem;
}

.is-style-rows.rows-tight > :first-child {
	border-top: 0;
}

.is-style-stack-tight > * + * {
	margin-block-start: 0.5rem;
}

.timeline-row__label {
	flex-shrink: 0;
	padding-top: 0.2rem;
	line-height: 1.5;
}

.timeline-row h3 {
	margin: 0;
}

.icon-row .wp-block-icon {
	flex: none;
	margin-top: 0.3rem;
	color: var(--sr-pencil);
	line-height: 0;
}

.icon-row .wp-block-icon svg {
	display: block;
}

.icon-row a {
	color: inherit;
	text-decoration: none;
}

.icon-row a:hover {
	color: var(--sr-ink);
	text-decoration: underline;
}

/* Linked cards: the whole card is clickable via the title link. */
.is-style-link-card {
	position: relative;
	background: var(--sr-paper);
	transition: background-color 0.15s ease;
}

.is-style-link-card:hover {
	background: var(--sr-card);
}

.is-style-link-card a {
	color: inherit;
	text-decoration: none;
}

.is-style-link-card a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-link-card:focus-within {
	outline: 2px solid var(--sr-ink);
	outline-offset: -2px;
}

.is-style-link-card a:focus-visible {
	outline: none;
}

.is-style-link-card::after {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	margin-top: 1.5rem;
	background: var(--sr-accent);
	-webkit-mask: var(--sr-arrow) center / contain no-repeat;
	mask: var(--sr-arrow) center / contain no-repeat;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.is-style-link-card:hover::after,
.is-style-link-card:focus-within::after {
	opacity: 1;
}

.link-card__num {
	margin-bottom: 0.5rem;
	letter-spacing: 0.1em;
}

.link-card__title {
	font-size: 1rem;
}

/* Bordered stat grids */
.stat {
	text-align: inherit;
}

.stat__value {
	margin: 0;
	letter-spacing: -0.01em;
}

.stat__label {
	margin: 0;
	letter-spacing: 0.1em;
}

.home-hero__stat-grid .stat {
	padding-block: 1.25rem;
	text-align: center;
}

.home-hero__stat-grid .stat__label {
	margin-top: 0.125rem;
}

.stats-row .stat__label,
.totals-bar .stat__label {
	margin-top: 0.25rem;
}

/* Placeholder and contained images */
.wp-block-image.is-contained img {
	object-fit: contain !important;
}

.wp-block-image img {
	display: block;
	width: 100%;
}

.teaser-grid {
	align-items: start;
}

/* Section heading rows */
.section-head {
	align-items: baseline;
}

.footer-row {
	align-items: center;
}

/* ─── Page header with artwork ─────────────────────────────────────────── */

.is-style-page-hero,
.page-header {
	position: relative;
	overflow: hidden;
}

.page-hero__title {
	margin-block-start: 0.75rem !important;
}

.page-hero__intro {
	margin-block-start: 1.25rem !important;
	line-height: 1.6;
}

@media (min-width: 782px) {
	.is-style-page-hero,
	.page-header {
		min-height: 318px;
	}

	/* Artwork is taller than the minimum hero height so a taller hero (intro
	   text, wrapped title) shows more of it; the hero's bottom edge crops it. */
	.is-style-page-hero::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 875px;
		height: 640px;
		background: url("../images/hero-page-art.webp") no-repeat 0 0 / 875px 640px;
		pointer-events: none;
	}

	.is-style-page-hero > * {
		position: relative;
		z-index: 1;
	}

	/* Text sits in the left half of the content grid, clear of the artwork
	   (which starts ~110px right of centre). Sized from the grid rather than
	   the viewport so it holds up on wide screens. */
	.is-style-page-hero > .page-hero__title,
	.is-style-page-hero > .page-hero__intro {
		box-sizing: border-box;
		width: calc(min(100%, var(--wp--style--global--content-size)) / 2 + 4rem);
		max-width: none;
		margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
		margin-right: 0 !important;
	}

	.is-style-page-hero > .page-hero__intro {
		width: min(36rem, calc(min(100%, var(--wp--style--global--content-size)) / 2));
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	.is-style-page-hero::before {
		left: 54%;
	}
}

/* ─── Home hero ─────────────────────────────────────────────────────────── */

.is-style-home-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.is-style-home-hero > .home-hero__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	width: 100%;
}

.home-hero__title {
	overflow-wrap: normal;
}

.home-hero__intro {
	max-width: 32rem;
	line-height: 1.65;
}

.home-hero__stats {
	position: relative;
	z-index: 1;
	margin-block-start: 0 !important;
}

@media (min-width: 782px) {
	.is-style-home-hero::before {
		content: "";
		position: absolute;
		top: 0;
		left: calc(50% - 100px);
		width: 900px;
		height: 1100px;
		background: url("../images/hero-home-art.webp") no-repeat 0 0 / 900px 1100px;
		pointer-events: none;
	}

	.home-hero__content {
		position: relative;
		z-index: 1;
	}

	.home-hero__content > * {
		max-width: 50%;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	.is-style-home-hero::before {
		left: calc(50% - 60px);
		transform: scale(0.85);
		transform-origin: 0 0;
	}
}

/* ─── Statement ────────────────────────────────────────────────────────── */

.wp-block-quote.is-style-statement {
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-quote.is-style-statement p {
	margin: 0;
	font-size: clamp(2rem, 5.5vw, 5rem) !important;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.95;
}

.wp-block-quote.is-style-statement cite {
	display: block;
	margin-top: 2rem;
	color: color-mix(in srgb, currentColor 40%, transparent);
	font-size: 0.875rem;
	font-style: normal;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* ─── Panels ───────────────────────────────────────────────────────────── */

.dark-panel .dark-panel__muted {
	color: color-mix(in srgb, var(--sr-paper) 60%, transparent);
}

.dark-panel a {
	color: inherit;
}

.after-ride strong {
	color: var(--sr-ink);
	font-weight: 600;
}

.after-ride {
	margin: 0;
}

/* ─── Charities ────────────────────────────────────────────────────────── */

.charity-grid {
	border: 1px solid var(--sr-rule);
}

.charity-grid .wp-block-post-template {
	margin: 0;
}

.charity-grid .wp-block-post-template > li {
	display: flex;
}

.charity-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	transition: background-color 0.15s ease;
}

.charity-card:hover {
	background: var(--sr-card);
}

.charity-card__logo {
	flex: none;
	margin: 0;
	background: var(--sr-muted);
}

.charity-card__logo img {
	width: 40px;
	height: 40px;
}

.charity-card__name {
	margin: 0;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.charity-card .is-style-mono {
	margin: 0;
	font-size: 0.625rem !important;
}

.charity-card__foot {
	margin-top: auto !important;
}

.charity-card__foot p {
	margin: 0;
}

.charity-card > :first-child {
	margin-bottom: 1rem;
}

/* ─── About ────────────────────────────────────────────────────────────── */

.ruled-section__title {
	margin-bottom: 0;
}

.fame-card .wp-block-image {
	background: transparent;
}

.fame-card__year {
	margin-block-start: 0.75rem !important;
}

.fame-card__title {
	margin-block-start: 0.5rem !important;
	font-weight: 600;
	letter-spacing: 0;
}

.fame-card > p:last-child {
	margin-block-start: 0.125rem !important;
}

.team-card__name {
	margin-block-start: 0.75rem !important;
}

.team-card > p:last-child {
	margin-block-start: 0.125rem !important;
}

/* Carousel (enhanced by theme.js) */
.is-style-carousel {
	--sr-carousel-gap: var(--wp--preset--spacing--40);
	display: grid !important;
	grid-auto-columns: 82%;
	grid-auto-flow: column;
	gap: var(--sr-carousel-gap) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.is-style-carousel::-webkit-scrollbar {
	display: none;
}

.is-style-carousel > * {
	margin: 0 !important;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.is-style-carousel {
		grid-auto-columns: calc((100% - var(--sr-carousel-gap)) / 2);
	}
}

@media (min-width: 1000px) {
	.is-style-carousel {
		grid-auto-columns: calc((100% - 2 * var(--sr-carousel-gap)) / 3);
	}
}

.carousel-controls {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 1.5rem 0 2rem;
}

.carousel-controls button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sr-rule);
	border-radius: 50%;
	background: var(--sr-paper);
	color: var(--sr-ink);
	cursor: pointer;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.carousel-controls button:hover {
	border-color: var(--sr-ink);
}

.carousel-controls button[disabled] {
	opacity: 0.35;
	cursor: default;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 3rem 0 1rem;
}

.carousel-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: var(--sr-rule);
	cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
	background: var(--sr-ink);
}

.hall-of-fame:not(.has-carousel) .is-style-carousel {
	margin-top: 2rem;
}

/* ─── Gallery ──────────────────────────────────────────────────────────── */

.gallery-header {
	padding-block: var(--wp--preset--spacing--70);
}

.gallery-header h1 {
	margin-block-start: 0.75rem !important;
}

.is-style-year-filter .wp-block-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.is-style-year-filter .wp-block-tab-list button {
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--sr-rule);
	color: var(--sr-pencil);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.is-style-year-filter .wp-block-tab-list button:hover {
	color: var(--sr-ink);
}

.is-style-year-filter .wp-block-tab-list button[aria-selected="true"] {
	border-color: var(--sr-ink);
	background: var(--sr-ink);
	color: var(--sr-paper);
}

.is-style-year-filter .wp-block-tab-list button[aria-selected="true"]::before {
	display: none;
}

.is-style-year-filter .wp-block-tab-panels {
	padding-top: 2.5rem;
}

.gallery-layout {
	border-bottom: 0;
}

.gallery-layout > .gallery-header {
	border-bottom: 1px solid var(--sr-rule);
}

.gallery-layout .wp-block-tab-list {
	margin-top: 0 !important;
	padding-bottom: var(--wp--preset--spacing--70);
	border-bottom: 1px solid var(--sr-rule);
}

@media (max-width: 781px) {
	.gallery-layout > .gallery-header {
		padding-bottom: 1.5rem;
		border-bottom: 0;
	}

	.gallery-layout .wp-block-tab-list {
		padding-bottom: 1.5rem;
	}
}

@media (min-width: 782px) {
	.gallery-layout {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: end;
	}

	.gallery-layout > .wp-block-tabs {
		display: contents;
	}

	.gallery-layout > .gallery-header {
		grid-column: 1;
	}

	.gallery-layout .wp-block-tab-list {
		grid-column: 2;
		align-self: stretch;
		align-content: end;
	}

	.gallery-layout .wp-block-tab-panels {
		grid-column: 1 / -1;
		margin: 0 !important;
	}
}

.wp-block-gallery.is-style-masonry.has-nested-images {
	display: block;
	column-gap: 0.5rem;
	columns: 2;
}

@media (min-width: 768px) {
	.wp-block-gallery.is-style-masonry.has-nested-images {
		columns: 3;
	}
}

@media (min-width: 1024px) {
	.wp-block-gallery.is-style-masonry.has-nested-images {
		columns: 4;
	}
}

.wp-block-gallery.is-style-masonry.has-nested-images figure.wp-block-image:not(#individual-image) {
	display: block;
	width: 100% !important;
	margin: 0 0 0.5rem !important;
	break-inside: avoid;
}

.wp-block-gallery.is-style-masonry.has-nested-images figure.wp-block-image img {
	height: auto;
}

/* ─── Contact ──────────────────────────────────────────────────────────── */

.wp-block-accordion.is-style-dash .wp-block-accordion-item + .wp-block-accordion-item {
	margin-top: 0;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	letter-spacing: 0;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading__toggle {
	gap: 0.5rem;
	padding: 0.375rem 0;
	transition: color 0.15s ease;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading__toggle::before {
	content: "—";
	color: var(--sr-accent);
	font-size: 0.75rem;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading__toggle:hover {
	color: var(--sr-accent);
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-heading__toggle-icon {
	color: var(--sr-pencil);
}

.wp-block-accordion.is-style-dash .wp-block-accordion-panel {
	padding: 0 0 0.75rem 1.25rem;
}

.wp-block-accordion.is-style-dash .wp-block-accordion-panel p {
	margin: 0;
}

/* ─── Social links ─────────────────────────────────────────────────────── */

.wp-block-social-links.is-style-boxed .wp-social-link {
	border: 1px solid var(--sr-rule);
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--sr-pencil) !important;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.wp-block-social-links.is-style-boxed .wp-social-link:hover {
	border-color: var(--sr-ink);
	color: var(--sr-ink) !important;
	transform: none;
}

.wp-block-social-links.is-style-boxed .wp-social-link a {
	padding: 7px;
}

.wp-block-social-links.is-style-boxed .wp-social-link svg {
	width: 16px;
	height: 16px;
}

/* ─── Text pages ───────────────────────────────────────────────────────── */

.prose {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.prose h2 {
	margin-top: 2.5rem;
}

.prose a {
	text-underline-offset: 0.2em;
}

.has-notice {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--sr-accent);
	background: var(--sr-card);
}

/* ─── WooCommerce (general) ────────────────────────────────────────────── */

.woocommerce-page .wp-block-post-content > .alignfull:last-child {
	margin-bottom: 0;
}

/* ─── Small screens ────────────────────────────────────────────────────── */

/* "What to expect": heading above the cards until there's room for both. */
@media (max-width: 1099px) {
	.feature-columns {
		flex-wrap: wrap !important;
	}

	.feature-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (max-width: 599px) {
	.timeline-row__label {
		flex-basis: 4.25rem !important;
	}
}

@media (max-width: 781px) {
	.main-side > .wp-block-column + .wp-block-column {
		margin-top: 0;
	}

	.home-hero__title {
		letter-spacing: -0.03em !important;
	}
}

/* Order confirmation header */
.order-header__status h1,
.order-header__status .wc-block-order-confirmation-status__title,
.order-header .wc-block-order-confirmation-status > :first-child {
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 0.92;
}

.order-header .wc-block-order-confirmation-status p {
	margin-top: 1.25rem;
	color: var(--sr-pencil);
	font-size: var(--wp--preset--font-size--large);
}
