/**
 * Duhový svět – component styles.
 * Colours, fonts and spacing come from theme.json presets (var(--wp--preset--…)).
 */

:root {
	--ds-radius-s: var(--wp--custom--radius--small, 10px);
	--ds-radius: var(--wp--custom--radius--medium, 16px);
	--ds-radius-l: var(--wp--custom--radius--large, 24px);
	--ds-shadow: var(--wp--preset--shadow--soft);
	--ds-shadow-lifted: var(--wp--preset--shadow--lifted);
	--ds-navy: var(--wp--preset--color--navy);
	--ds-border: var(--wp--preset--color--border);
	--ds-section-gap: var(--wp--preset--spacing--70);
}

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

body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

:where(a, button, summary, input):focus-visible {
	outline: 2px solid var(--ds-navy);
	outline-offset: 3px;
	border-radius: 4px;
}

.ds-main { padding-bottom: var(--ds-section-gap); overflow-x: clip; }
.ds-main > .alignwide:first-child,
.ds-main > .entry-content > .alignwide:first-child,
.ds-main > .wp-block-post-content > .alignwide:first-child { margin-top: var(--wp--preset--spacing--50); }

.ds-section { margin-top: var(--ds-section-gap); }
.ds-section__head { margin-bottom: var(--wp--preset--spacing--50); }
.ds-section__head > * { margin-block: 0 0.5rem; }
.ds-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }

.ds-row-head { align-items: baseline; margin-bottom: var(--wp--preset--spacing--40); }
.ds-row-head > * { margin: 0; }

.ds-more a {
	font-weight: 800;
	text-decoration: none;
	color: var(--ds-navy);
}
.ds-more a::after { content: " →"; transition: margin 0.15s ease; }
.ds-more a:hover::after { margin-left: 0.25em; }

/* ------------------------------------------------------------------ Header */

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.ds-topbar {
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}
.ds-topbar__inner { min-height: 36px; gap: 0.25rem 1.5rem; }
.ds-topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.ds-topbar a { color: #fff; text-decoration: none; opacity: 0.9; }
.ds-topbar a:hover { opacity: 1; text-decoration: underline; }
.ds-topbar__contact span { opacity: 0.75; }

@media (max-width: 781px) {
	.ds-topbar { display: none; }
}

.ds-header {
	/* No backdrop-filter here: it would trap the fixed mobile menu overlay inside the header. */
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--ds-border);
}
.ds-header__inner { min-height: 82px; gap: 1rem; }

.ds-brand { gap: 0.75rem; align-items: center; }
.ds-brand__mark { margin: 0; flex-shrink: 0; }
.ds-brand__mark img { border-radius: 0; display: block; }
.ds-brand__text { gap: 0.1rem; }
.ds-brand__text > * { margin: 0; }
.ds-brand .wp-block-site-title { white-space: nowrap; }

.ds-header__nav { gap: 1.25rem; }
.ds-header__cta .wp-block-button__link { white-space: nowrap; }

@media (max-width: 1239px) {
	.ds-header .ds-header__cta { display: none; }
}

/* Navigation: submenu dropdowns */
.ds-nav .wp-block-navigation-item__content { padding: 0.5rem 0.15rem; }
.ds-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--apricot-dark); }
.ds-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--ds-border) !important;
	border-radius: var(--ds-radius);
	box-shadow: var(--ds-shadow-lifted);
	padding: 0.5rem !important;
	min-width: 240px !important;
}
.ds-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: var(--ds-radius-s);
	padding: 0.55rem 0.8rem;
	font-weight: 600;
}
.ds-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--sky-light);
}

/* Show the hamburger up to 1099px (core switches at 600px, too early for 6 items). */
@media (min-width: 600px) and (max-width: 1099px) {
	.ds-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ds-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

.ds-nav .wp-block-navigation__responsive-container-open {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--sky-light);
	color: var(--ds-navy);
}

.ds-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	padding: clamp(1rem, 4vw, 2rem);
	overflow-y: auto;
}
.ds-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 0.75rem;
}
.ds-nav .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	align-items: flex-start !important;
}
.ds-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--ds-navy);
}
.ds-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0.25rem 0 0.5rem 0.75rem !important;
	background: transparent !important;
}
.ds-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.25rem 0;
}

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

.wp-block-button__link { transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 58, 95, 0.15); }

.wp-block-button.is-style-ds-navy .wp-block-button__link {
	background: var(--ds-navy);
	color: #fff;
}
.wp-block-button.is-style-ds-navy .wp-block-button__link:hover { background: var(--wp--preset--color--navy-dark); }

.wp-block-button.is-style-ds-glass .wp-block-button__link {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(6px);
}
.wp-block-button.is-style-ds-glass .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.28); }

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--ds-navy);
	color: var(--ds-navy);
	background: transparent;
}

/* ------------------------------------------------------------------ Hero slider */

.is-style-ds-slider { display: grid; gap: 1rem; }
.is-style-ds-slider > .ds-slide { margin: 0 !important; }

.ds-slider-wrap {
	position: relative;
	margin-top: var(--wp--preset--spacing--50);
	border-radius: var(--ds-radius-l);
	overflow: hidden;
	box-shadow: var(--ds-shadow);
}
.ds-slider-wrap .is-style-ds-slider.is-ready {
	display: flex;
	gap: 0;
	margin: 0 !important;
	touch-action: pan-y;
}
.is-style-ds-slider.is-ready > .ds-slide {
	flex: 0 0 100%;
	border-radius: 0;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ds-slide { border-radius: var(--ds-radius-l); overflow: hidden; }
.ds-slide .wp-block-cover__inner-container { padding-inline: clamp(1rem, 5vw, 4.5rem); }
.ds-slide :is(h1, h2, p) { color: #fff; }
.ds-slide__title { margin-bottom: 0.5rem; text-wrap: balance; }
.ds-slide__text { max-width: 34ch; opacity: 0.95; }
.ds-slide::after {
	content: "";
	position: absolute;
	right: -30px;
	bottom: -10px;
	width: clamp(140px, 22vw, 260px);
	aspect-ratio: 100 / 58;
	background: url("../images/duha-dekorace.svg") no-repeat center / contain;
	pointer-events: none;
	z-index: 1;
}

.ds-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ds-navy);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: var(--ds-shadow);
}
.ds-slider__nav:hover { background: #fff; }
.ds-slider__nav--prev { left: 14px; }
.ds-slider__nav--next { right: 14px; }

.ds-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}
.ds-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}
.ds-slider__dot[aria-current="true"] { width: 28px; background: var(--wp--preset--color--apricot); }

@media (max-width: 781px) {
	.ds-slide { min-height: 480px !important; }
	.ds-slide .wp-block-cover__background { background: linear-gradient(0deg, rgba(21, 43, 71, 0.85) 0%, rgba(21, 43, 71, 0.55) 55%, rgba(21, 43, 71, 0.15) 100%) !important; }
	.ds-slide.has-custom-content-position { align-items: flex-end; }
	.ds-slide .wp-block-cover__inner-container { padding-bottom: 3rem; }
	.ds-slide .wp-block-buttons { gap: 0.5rem; }
	.ds-slide .wp-block-button__link { font-size: 0.875rem; padding: 0.7rem 1.1rem; }
	.ds-slider__nav { display: none; }
}

/* ------------------------------------------------------------------ Cards & tinted boxes */

.is-style-ds-card,
[class*="is-style-ds-tint-"] {
	border-radius: var(--ds-radius);
	padding: var(--wp--preset--spacing--50);
}
.is-style-ds-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--ds-border);
	box-shadow: var(--ds-shadow);
}
.is-style-ds-tint-mint { background: var(--wp--preset--color--mint-light); }
.is-style-ds-tint-sky { background: var(--wp--preset--color--sky-light); }
.is-style-ds-tint-butter { background: var(--wp--preset--color--butter-light); }
.is-style-ds-tint-lavender { background: var(--wp--preset--color--lavender-light); }
.is-style-ds-tint-coral { background: var(--wp--preset--color--coral-light); }

.alignwide[class*="is-style-ds-tint-"].ds-section,
.ds-journey { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); border-radius: var(--ds-radius-l); }

.ds-feature { gap: 0.5rem; height: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ds-feature > * { margin: 0; }
.ds-feature h3 { margin-top: 0.5rem; }
.ds-feature p:not(.ds-more) { color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--small); }
.ds-feature .ds-more { margin-top: auto; padding-top: 0.25rem; font-size: var(--wp--preset--font-size--small); }
.ds-cards > .ds-feature:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-lifted); }

.wp-block-image.is-style-ds-icon {
	display: inline-flex;
	padding: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--ds-shadow);
}
.is-style-ds-card .wp-block-image.is-style-ds-icon { background: var(--wp--preset--color--base); box-shadow: none; }
.wp-block-image.is-style-ds-icon img { border-radius: 0; }
.wp-block-image img[src$=".svg"] { border-radius: 0; }

/* Steps / journey */
.is-style-ds-steps { position: relative; counter-reset: ds-step; }
.ds-step { gap: 0.5rem; text-align: center; height: 100%; }
.ds-step > * { margin: 0; }
.ds-step--left { text-align: left; align-items: flex-start !important; }
.ds-step__num {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	font-weight: 900;
	color: var(--wp--preset--color--navy-dark);
	background: var(--wp--preset--color--butter);
}
.is-style-ds-steps > :nth-child(4n + 2) .ds-step__num { background: var(--wp--preset--color--mint); }
.is-style-ds-steps > :nth-child(4n + 3) .ds-step__num { background: var(--wp--preset--color--sky); }
.is-style-ds-steps > :nth-child(4n + 4) .ds-step__num { background: var(--wp--preset--color--coral); }
.ds-step__icon { margin: 0.25rem 0 !important; }

@media (min-width: 1100px) {
	.is-style-ds-steps > .ds-step { position: relative; }
	.is-style-ds-steps > .ds-step:not(:last-child)::after {
		content: "→";
		position: absolute;
		right: -1.05rem;
		top: 50%;
		transform: translate(50%, -50%);
		font-size: 1.25rem;
		font-weight: 900;
		color: var(--wp--preset--color--apricot-dark);
		z-index: 1;
	}
}

.ds-journey .wp-block-buttons { margin-top: var(--wp--preset--spacing--60); }

/* Bento + photo grid with caption pills */
.ds-bento {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.85rem;
}
.ds-bento > .wp-block-image,
.ds-photo-grid > .wp-block-image { position: relative; margin: 0; }
.ds-bento img,
.ds-photo-grid img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ds-radius);
	display: block;
}
.ds-bento figcaption,
.ds-photo-grid figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ds-navy);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
}

/* Testimonials */
.ds-quote { position: relative; padding-top: 3.25rem; }
.ds-quote + .ds-quote { margin-top: 1rem; }
.ds-quote::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: var(--wp--preset--spacing--50);
	width: 34px;
	height: 34px;
	background: url("../icons/quote.svg") no-repeat center / contain;
}
.ds-quote__text { font-style: italic; margin: 0; }
.ds-quote__author {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	color: var(--wp--preset--color--muted);
}
.ds-quote__author::before { content: "— "; }

.ds-split { gap: clamp(1.5rem, 4vw, 3.5rem); }

/* News cards */
.ds-post-card { padding: 0; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.ds-post-card .wp-block-post-featured-image { margin: 0; }
.ds-post-card .wp-block-post-featured-image img { border-radius: 0; }
.ds-post-card__body { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50); }
.ds-post-card__body > * { margin-block: 0 0.4rem; }
.ds-post-card .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.ds-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--apricot-dark); }
.ds-post-card .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--small); }
.ds-post-card .wp-block-post-excerpt__more-text { display: none; }

/* Calendar */
.ds-calendar { height: 100%; }
.ds-calendar__head { gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.ds-calendar__head > * { margin: 0; }
.ds-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.ds-events li {
	display: grid;
	grid-template-columns: 4.75rem 1fr;
	column-gap: 0.85rem;
	align-items: start;
	padding: 0.75rem;
	background: var(--wp--preset--color--surface);
	border-radius: var(--ds-radius-s);
	font-weight: 700;
	line-height: 1.35;
}
.ds-events li strong {
	grid-row: span 3;
	align-self: stretch;
	display: grid;
	place-items: center;
	text-align: center;
	border-radius: 8px;
	background: var(--wp--preset--color--apricot);
	color: var(--wp--preset--color--navy-dark);
	font-size: var(--wp--preset--font-size--small);
	padding: 0.35rem;
}
.ds-events li br { display: none; }
.ds-events small { display: block; font-weight: 600; color: var(--wp--preset--color--muted); }

/* CTA banner */
.ds-cta {
	margin-top: var(--ds-section-gap);
	background: var(--ds-navy);
	color: #fff;
	border-radius: var(--ds-radius-l);
	overflow: hidden;
}
.ds-cta__cols { gap: 0 !important; margin: 0; }
.ds-cta__text { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); }
.ds-cta__text :is(h2, p) { color: #fff; }
.ds-cta__media { align-self: stretch !important; }
.ds-cta__media .wp-block-image,
.ds-cta__media img { height: 100%; margin: 0; }
.ds-cta__media img { width: 100%; object-fit: cover; border-radius: 0; min-height: 260px; }

.ds-cta-box {
	margin-top: var(--ds-section-gap);
	padding: var(--wp--preset--spacing--60) !important;
	border-radius: var(--ds-radius-l) !important;
	gap: 1.25rem;
	align-items: center;
}
.ds-cta-box h3 { margin: 0 0 0.25rem; }
.ds-cta-box p { margin: 0; }

/* Sub-page hero */
.is-style-ds-page-hero {
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius-l);
	box-shadow: var(--ds-shadow);
	overflow: hidden;
}
.is-style-ds-page-hero > .wp-block-columns { gap: 0 !important; margin: 0; }
.ds-page-hero__media { align-self: stretch !important; }
.ds-page-hero__media .wp-block-image { height: 100%; margin: 0; }
.ds-page-hero__media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	border-radius: 0;
}
.ds-page-hero__text { padding: var(--wp--preset--spacing--70) clamp(1.25rem, 5vw, 4rem); position: relative; }
.ds-page-hero__text h1 { margin: 0 0 0.25rem; }
.ds-page-hero__subtitle { color: var(--ds-navy); font-weight: 700; margin-top: 0; }
.is-style-ds-page-hero::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	bottom: 1rem;
	width: 110px;
	aspect-ratio: 100 / 58;
	background: url("../images/duha-dekorace.svg") no-repeat center / contain;
	opacity: 0.9;
	pointer-events: none;
}

@media (max-width: 781px) {
	.ds-page-hero__media img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
	.ds-page-hero__text { padding-top: var(--wp--preset--spacing--50); padding-bottom: 4.5rem; }
	.ds-cta__text { padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
}

.ds-title-banner {
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) !important;
	border-radius: var(--ds-radius-l) !important;
}
.ds-title-banner > * { margin-block: 0 0.5rem; }
.ds-title-banner .wp-block-search { margin-top: 1.25rem; max-width: 640px; }

.ds-notice { gap: 1rem; align-items: center; margin-top: var(--wp--preset--spacing--50); }
.ds-notice > * { margin: 0; }

.ds-transfer .wp-block-columns { gap: var(--wp--preset--spacing--60); }

.ds-benefits {
	margin-top: var(--ds-section-gap);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) !important;
	border-radius: var(--ds-radius-l) !important;
}
.ds-benefit { gap: 0.75rem; align-items: center; }
.ds-benefit > * { margin: 0; }
.ds-benefit p { font-weight: 700; font-size: var(--wp--preset--font-size--small); line-height: 1.35; }

.ds-motto { margin-top: var(--ds-section-gap); padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) !important; border-radius: var(--ds-radius-l) !important; }
.ds-motto__text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--ds-navy);
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}
.ds-motto::before {
	content: "";
	display: block;
	width: 80px;
	aspect-ratio: 100 / 58;
	margin: 0 auto 1rem;
	background: url("../images/duha-dekorace.svg") no-repeat center / contain;
}

.ds-handwritten {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	color: var(--wp--preset--color--coral);
	transform: rotate(-4deg);
	margin-top: 1.5rem !important;
}

/* Lists */
.is-style-ds-check { list-style: none; padding: 0; }
.is-style-ds-check li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.4rem;
	font-weight: 700;
}
.is-style-ds-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #fff url("../icons/check.svg") no-repeat center / 0.95rem;
}
@media (min-width: 600px) {
	.ds-columns-2 { columns: 2; column-gap: 2rem; }
	.ds-columns-2 li { break-inside: avoid; }
}

.is-style-ds-docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.is-style-ds-docs li {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0 0.75rem;
	padding: 0.75rem 0.9rem 0.75rem 3.1rem;
	background: var(--wp--preset--color--surface);
	border-radius: var(--ds-radius-s);
	box-shadow: var(--ds-shadow);
	line-height: 1.35;
}
.is-style-ds-docs li::before {
	content: "";
	position: absolute;
	left: 0.8rem;
	top: 50%;
	width: 1.6rem;
	height: 1.6rem;
	transform: translateY(-50%);
	background: url("../icons/document.svg") no-repeat center / contain;
}
.is-style-ds-docs a { font-weight: 800; text-decoration: none; color: var(--ds-navy); }
.is-style-ds-docs a::after { content: ""; position: absolute; inset: 0; }
.is-style-ds-docs li:hover { box-shadow: var(--ds-shadow-lifted); }
.is-style-ds-docs small {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base);
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
}
.ds-docbox h3 { margin-top: 0; }

.ds-facts { list-style: none; padding: 0; margin: 0; }
.ds-facts li { padding: 0.6rem 0; border-bottom: 1px solid var(--ds-border); }
.ds-facts li:last-child { border-bottom: 0; }

/* FAQ */
.wp-block-details.is-style-ds-faq {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--ds-border);
	border-radius: var(--ds-radius);
	padding: 0;
	margin-top: 0.75rem;
	box-shadow: var(--ds-shadow);
}
.wp-block-details.is-style-ds-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 1rem 3rem 1rem 1.25rem;
	position: relative;
	font-weight: 800;
	color: var(--ds-navy);
}
.wp-block-details.is-style-ds-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-ds-faq summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}
.wp-block-details.is-style-ds-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details.is-style-ds-faq > :not(summary) { padding: 0 1.25rem 1rem; margin: 0; }

/* Search */
.wp-block-search__inside-wrapper { gap: 0.5rem; }
.wp-block-search__input {
	border: 1.5px solid var(--ds-border);
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	font: inherit;
	background: #fff;
}
.wp-block-search__button { margin-left: 0; }

/* Articles */
.ds-article-head { margin-top: var(--wp--preset--spacing--60); }
.ds-article-head > * { margin-block: 0 0.5rem; }
.ds-back a { font-weight: 800; text-decoration: none; }
.wp-block-post-navigation-link { margin-top: var(--wp--preset--spacing--50); }

.ds-404 { margin-top: var(--wp--preset--spacing--70); padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60) !important; border-radius: var(--ds-radius-l) !important; }
.ds-404 .wp-block-search { max-width: 480px; margin-inline: auto; }

.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--60); font-weight: 800; }
.wp-block-query-pagination-numbers .page-numbers { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--apricot); }

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

.ds-footer {
	margin-top: var(--ds-section-gap);
	background: var(--ds-navy);
	color: rgba(255, 255, 255, 0.85);
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
	position: relative;
}
.ds-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--wp--preset--gradient--rainbow);
}
.ds-footer a { color: #fff; text-decoration: none; }
.ds-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--apricot); }
.ds-footer__cols { gap: var(--wp--preset--spacing--60); }
.ds-footer__title { color: var(--wp--preset--color--apricot); font-size: var(--wp--preset--font-size--medium); margin-top: 0; }
.ds-brand--light .wp-block-site-title a,
.ds-brand--light .wp-block-site-tagline { color: #fff; }
.ds-footer__about { margin-top: 1rem; max-width: 34ch; }
.ds-footer__links { list-style: none; padding: 0; margin: 0; }
.ds-footer__links li { margin-bottom: 0.45rem; }
.ds-footer__social { display: flex; gap: 0.6rem; }
.ds-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}
.ds-footer__social a:hover { background: rgba(255, 255, 255, 0.24); }
.ds-footer__social img { border-radius: 0; }
.ds-footer__bottom {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: var(--wp--preset--font-size--x-small);
	gap: 0.5rem 1.5rem;
}
.ds-footer__bottom p { margin: 0; }

/* ------------------------------------------------------------------ Forms (Contact Form 7, optional plugin) */

.ds-form-section .wp-block-columns { gap: var(--wp--preset--spacing--60); }
.ds-form-section h2 { margin-top: 0; }

.wpcf7 form > p,
.wpcf7 .ds-form-grid > p { margin: 0 0 1rem; }
.wpcf7 label {
	display: block;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	color: var(--ds-navy);
}
.wpcf7 label br { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 0.35rem; }

@media (min-width: 600px) {
	.wpcf7 .ds-form-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1rem;
	}
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--ds-border);
	border-radius: var(--ds-radius-s);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 400;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpcf7 textarea { min-height: 8rem; resize: vertical; }
.wpcf7 select {
	appearance: none;
	padding-right: 2.5rem;
	background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1rem;
}
.wpcf7 :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--ds-navy);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.wpcf7 .ds-form-consent { font-size: var(--wp--preset--font-size--small); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; color: var(--wp--preset--color--contrast); }
.wpcf7 input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--ds-navy); flex-shrink: 0; }

.wpcf7 input[type="submit"] {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.5rem;
	background: var(--wp--preset--color--apricot);
	color: var(--wp--preset--color--navy-dark);
	font: inherit;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	max-width: 100%;
	white-space: normal;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--apricot-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 58, 95, 0.15); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.wpcf7 input[type="submit"]:focus-visible { outline: 2px solid var(--ds-navy); outline-offset: 3px; }

.wpcf7 .wpcf7-not-valid { border-color: var(--wp--preset--color--coral); }
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	color: #C0392B;
}
.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: var(--ds-radius-s);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--butter-light);
}
.wpcf7 form.sent .wpcf7-response-output { background: var(--wp--preset--color--mint-light); color: #1F6B3A; }
.wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output { background: var(--wp--preset--color--butter-light); color: #8A5A00; }
.wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output { background: var(--wp--preset--color--coral-light); color: #A3341F; }

/* ------------------------------------------------------------------ Small screens */

@media (max-width: 781px) {
	.ds-header__inner { min-height: 68px; }
	.ds-brand__mark img { width: 46px !important; }
	.ds-brand .wp-block-site-title { font-size: 1.05rem; }
	.ds-brand .wp-block-site-tagline { font-size: 0.6rem; }
	.alignwide[class*="is-style-ds-tint-"].ds-section,
	.ds-journey,
	.ds-title-banner,
	.ds-motto,
	.ds-benefits { padding-left: var(--wp--preset--spacing--50) !important; padding-right: var(--wp--preset--spacing--50) !important; }
	.ds-cta-box { flex-direction: column; align-items: flex-start !important; }
}
