/*
Theme Name: Little Sprouts
Description: A cheerful kindergarten and daycare theme in primary colours with rounded shapes, programmes by age, a daily schedule and parent news.
Version: 1.0.0
Author: Pursae
*/

/* ── Fonts (SIL Open Font License, self-hosted) ── */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ── Tokens ── */
:root {
	--ls-red: #e63946;
	--ls-yellow: #ffbe0b;
	--ls-blue: #3a86ff;
	--ls-green: #2bb673;
	--ls-bg: #fffaf0;
	--ls-ink: #23305a;
	--ls-muted: color-mix(in srgb, var(--ls-ink) 66%, var(--ls-bg));
	--ls-line: color-mix(in srgb, var(--ls-ink) 12%, var(--ls-bg));
	--ls-card: #ffffff;
	--ls-display: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
	--ls-body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
	--ls-r: 32px;
	--ls-r-sm: 999px;
	--ls-max: 1200px;
	--ls-narrow: 740px;
	--ls-pad: clamp(16px, 4vw, 40px);
	--ls-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cpath d='M0 20 Q 20 0 40 20 T 80 20 T 120 20 T 160 20 V40 H0 Z' fill='%23000'/%3E%3C/svg%3E");
	--ls-squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q 5 0 10 6 T 20 6 T 30 6 T 40 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.ls-round-soft { --ls-r: 16px; --ls-r-sm: 14px; }
body.ls-round-crisp { --ls-r: 6px; --ls-r-sm: 6px; }
body.ls-fonts-atkinson { --ls-display: "Atkinson Hyperlegible", Verdana, sans-serif; }
body.ls-fonts-system { --ls-display: "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif; --ls-body: system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ls-bg); }
body { margin: 0; font-family: var(--ls-body); font-size: 18px; line-height: 1.7; color: var(--ls-ink); background: var(--ls-bg); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { margin: 1.4em 0 0.5em; font-family: var(--ls-display); font-weight: 600; line-height: 1.15; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4, h5, h6 { font-size: 1.05rem; color: var(--ls-blue); }
p, ul, ol, blockquote, pre, figure, table, dl { margin: 0 0 1.2em; }
a { color: var(--ls-blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ls-red); }
:focus-visible { outline: 4px solid var(--ls-yellow); outline-offset: 3px; border-radius: 6px; }
img, video, iframe { max-width: 100%; height: auto; }
figcaption, .wp-element-caption { margin-top: 10px; font-size: 0.88rem; color: var(--ls-muted); text-align: center; }
blockquote, .wp-block-quote { position: relative; margin-inline: 0; padding: 26px 30px; border-radius: var(--ls-r); background: color-mix(in srgb, var(--ls-yellow) 22%, var(--ls-card)); font-family: var(--ls-display); font-size: 1.25rem; line-height: 1.45; }
blockquote::after { content: ""; position: absolute; left: 44px; bottom: -16px; border-left: 18px solid transparent; border-right: 6px solid transparent; border-top: 18px solid color-mix(in srgb, var(--ls-yellow) 22%, var(--ls-card)); }
blockquote p:last-of-type { margin-bottom: 6px; }
blockquote cite { font-family: var(--ls-body); font-size: 0.88rem; font-style: normal; font-weight: 700; color: var(--ls-muted); }
hr, .wp-block-separator { height: 12px; margin: 3em auto; border: 0; max-width: 240px; background: var(--ls-green); -webkit-mask: var(--ls-squiggle) left center / 40px 12px repeat-x; mask: var(--ls-squiggle) left center / 40px 12px repeat-x; }
table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: calc(var(--ls-r) * 0.6); background: var(--ls-card); }
th, td { padding: 0.8em 1em; text-align: left; border-bottom: 2px solid var(--ls-line); }
th { font-family: var(--ls-display); font-weight: 600; background: color-mix(in srgb, var(--ls-blue) 12%, var(--ls-card)); }
tr:last-child td { border-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select { width: 100%; padding: 0.75em 1.1em; border: 3px solid var(--ls-line); border-radius: min(var(--ls-r-sm), 20px); background: var(--ls-card); color: var(--ls-ink); }
input:focus, textarea:focus { outline: none; border-color: var(--ls-blue); }
.ls-btn, button, input[type="submit"], .search-submit, .wp-block-button__link, .wp-element-button { display: inline-block; padding: 0.75em 1.5em; border: 0; border-radius: var(--ls-r-sm); background: var(--ls-red); color: #fff; font-family: var(--ls-display); font-size: 1.02rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--ls-red) 65%, #000); transition: transform .12s, box-shadow .12s; }
.ls-btn:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 color-mix(in srgb, var(--ls-red) 65%, #000); }
.ls-btn:active, button:active, .wp-block-button__link:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--ls-red) 65%, #000); }
.ls-btn--ghost, .is-style-outline .wp-block-button__link { background: var(--ls-card); color: var(--ls-blue); box-shadow: 0 5px 0 color-mix(in srgb, var(--ls-blue) 40%, var(--ls-card)), inset 0 0 0 3px var(--ls-blue); }
.ls-btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { color: var(--ls-blue); box-shadow: 0 7px 0 color-mix(in srgb, var(--ls-blue) 40%, var(--ls-card)), inset 0 0 0 3px var(--ls-blue); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); border: 0; word-wrap: normal !important; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; margin: 0; padding: 0.75em 1em; clip: auto; clip-path: none; background: var(--ls-yellow); color: var(--ls-ink); border-radius: 12px; }
::selection { background: var(--ls-yellow); color: var(--ls-ink); }

/* ── Layout ── */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; padding-bottom: 72px; }
.ls-wrap { width: 100%; max-width: calc(var(--ls-max) + 2 * var(--ls-pad)); margin-inline: auto; padding-inline: var(--ls-pad); }
.ls-narrow { max-width: calc(var(--ls-narrow) + 2 * var(--ls-pad)); }
.ls-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: var(--ls-r-sm); background: color-mix(in srgb, var(--ls-green) 16%, var(--ls-card)); color: color-mix(in srgb, var(--ls-green) 70%, #000); font-family: var(--ls-display); font-size: 0.92rem; font-weight: 600; }
.ls-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 44px; align-items: start; }
body.ls-sidebar-none .ls-layout { grid-template-columns: minmax(0, 1fr); }
body.ls-sidebar-none .ls-layout > .widget-area { display: none; }
.ls-layout:not(:has(> .widget-area)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .ls-layout { grid-template-columns: minmax(0, 1fr); } }

/* ── Sprout mark ── */
.ls-sprout { position: relative; display: inline-block; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ls-yellow); vertical-align: middle; }
.ls-sprout::after { content: ""; position: absolute; left: 21px; top: 18px; width: 4px; height: 20px; border-radius: 2px; background: color-mix(in srgb, var(--ls-green) 80%, #000); }
.ls-sprout i { position: absolute; top: 9px; width: 16px; height: 11px; background: var(--ls-green); }
.ls-sprout i:first-child { left: 8px; border-radius: 16px 0 16px 0; transform: rotate(-15deg); }
.ls-sprout i:last-child { right: 8px; border-radius: 0 16px 0 16px; transform: rotate(15deg); }

/* ── Header ── */
.ls-rainbow { display: flex; height: 8px; }
.ls-rainbow i { flex: 1; } .ls-rainbow i:nth-child(1) { background: var(--ls-red); } .ls-rainbow i:nth-child(2) { background: var(--ls-yellow); } .ls-rainbow i:nth-child(3) { background: var(--ls-green); } .ls-rainbow i:nth-child(4) { background: var(--ls-blue); }
.ls-notice { margin: 0; padding: 8px var(--ls-pad); background: var(--ls-ink); color: #fff; font-size: 0.9rem; font-weight: 700; text-align: center; }
.site-header { position: relative; z-index: 40; background: var(--ls-bg); }
body.ls-sticky .site-header { position: sticky; top: 0; box-shadow: 0 4px 0 var(--ls-line); }
body.admin-bar.ls-sticky .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 92px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-title { margin: 0; font-family: var(--ls-display); font-size: 1.7rem; font-weight: 700; line-height: 1.05; }
.site-title a { color: var(--ls-ink); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: 0.85rem; color: var(--ls-muted); line-height: 1.3; }
.site-logo img { display: block; max-height: 64px; width: auto; }
.main-navigation { margin-left: auto; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation > div > ul, .main-navigation > ul { display: flex; flex-wrap: wrap; gap: 6px; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 8px 16px; border-radius: var(--ls-r-sm); color: var(--ls-ink); font-family: var(--ls-display); font-size: 1.02rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.main-navigation > div > ul > li:nth-child(4n+1) > a:hover, .main-navigation > div > ul > li:nth-child(4n+1).current-menu-item > a { background: var(--ls-red); color: #fff; }
.main-navigation > div > ul > li:nth-child(4n+2) > a:hover, .main-navigation > div > ul > li:nth-child(4n+2).current-menu-item > a { background: var(--ls-yellow); color: var(--ls-ink); }
.main-navigation > div > ul > li:nth-child(4n+3) > a:hover, .main-navigation > div > ul > li:nth-child(4n+3).current-menu-item > a { background: var(--ls-green); color: #fff; }
.main-navigation > div > ul > li:nth-child(4n) > a:hover, .main-navigation > div > ul > li:nth-child(4n).current-menu-item > a { background: var(--ls-blue); color: #fff; }
.main-navigation .current-menu-ancestor > a { box-shadow: inset 0 0 0 3px var(--ls-line); }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 0.2em; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.main-navigation .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 220px; padding: 10px; border-radius: calc(var(--ls-r) * 0.7); background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line), 0 20px 40px -20px var(--ls-ink); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility .15s; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.main-navigation .sub-menu a:hover { background: color-mix(in srgb, var(--ls-blue) 12%, var(--ls-card)); color: var(--ls-blue); }
.ls-enroll { flex: none; background: var(--ls-green); box-shadow: 0 5px 0 color-mix(in srgb, var(--ls-green) 60%, #000); }
.ls-enroll:hover { box-shadow: 0 7px 0 color-mix(in srgb, var(--ls-green) 60%, #000); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
	.site-header__inner { flex-wrap: wrap; gap: 12px; padding-block: 14px; min-height: 0; }
	.site-description { display: none; }
	.menu-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--ls-blue); box-shadow: 0 5px 0 color-mix(in srgb, var(--ls-blue) 60%, #000); }
	.ls-burger, .ls-burger::before, .ls-burger::after { display: block; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
	.ls-burger { position: relative; } .ls-burger::before, .ls-burger::after { content: ""; position: absolute; left: 0; }
	.ls-burger::before { top: -6px; } .ls-burger::after { top: 6px; }
	.main-navigation > div, .main-navigation > ul { display: none; }
	.main-navigation.toggled > div, .main-navigation.toggled > ul { display: block; position: absolute; left: var(--ls-pad); right: var(--ls-pad); top: calc(100% + 6px); padding: 14px; border-radius: 24px; background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line), 0 24px 50px -20px var(--ls-ink); }
	.main-navigation.toggled ul { display: block; }
	.main-navigation .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
	.ls-enroll { order: 3; width: 100%; text-align: center; }
}

/* ── Tags ── */
.ls-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ls-tag { display: inline-block; padding: 3px 12px; border-radius: var(--ls-r-sm); background: var(--ls-blue); color: #fff; font-family: var(--ls-display); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.ls-card__tags .ls-tag:nth-of-type(2) { background: var(--ls-green); }
a.ls-tag:hover { background: var(--ls-red); color: #fff; }
.ls-tag--star { background: var(--ls-yellow); color: var(--ls-ink); }
.ls-tag--soft { background: color-mix(in srgb, var(--ls-blue) 14%, var(--ls-card)); color: var(--ls-blue); }

/* ── News cards ── */
.ls-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.ls-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--ls-r); background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line); transition: transform .15s; }
.ls-card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.ls-card:nth-child(4n+2):hover { transform: translateY(-4px) rotate(0.4deg); }
.ls-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.ls-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ls-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ls-card__title { margin: 0 0 8px; font-size: 1.35rem; }
.ls-card__title a { color: var(--ls-ink); text-decoration: none; }
.ls-card__title a:hover { color: var(--ls-red); }
.ls-card__excerpt { color: var(--ls-muted); font-size: 0.98rem; }
.ls-card__excerpt p { margin: 0 0 0.8em; }
.ls-card__meta { margin: auto 0 0; font-size: 0.85rem; font-weight: 700; color: var(--ls-muted); }
body:not(.ls-show-author) .byline { display: none; }
body.ls-news-list .ls-news { grid-template-columns: 1fr; }
body.ls-news-list .ls-card { flex-direction: row; }
body.ls-news-list .ls-card__media { flex: 0 0 min(40%, 320px); aspect-ratio: auto; min-height: 210px; }
@media (max-width: 640px) { body.ls-news-list .ls-card { flex-direction: column; } body.ls-news-list .ls-card__media { flex: none; aspect-ratio: 3 / 2; min-height: 0; } }

/* ── Page headers ── */
.page-header { padding-block: 44px 32px; }
.page-header .page-title { margin: 0; }
.archive-description { max-width: 620px; margin-top: 10px; color: var(--ls-muted); }
.page-header .search-form { max-width: 540px; margin-top: 20px; }

/* ── Single & page ── */
.entry-header { padding-block: 44px 24px; }
.entry-title { margin: 0; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.92rem; font-weight: 700; color: var(--ls-muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.ls-feature { margin-bottom: 36px; }
.ls-feature img { display: block; width: 100%; border-radius: var(--ls-r); box-shadow: 0 8px 0 color-mix(in srgb, var(--ls-yellow) 60%, var(--ls-bg)); }
.ls-page-hero { margin-bottom: 44px; padding-block: 44px; background: color-mix(in srgb, var(--ls-blue) 14%, #fff); }
.ls-page-hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.ls-page-hero .entry-title { flex: 1 1 320px; }
.ls-page-hero .ls-blob { flex: 0 1 380px; }
.ls-blob { margin: 0; }
.ls-blob img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 62% 38% 46% 54% / 55% 48% 52% 45%; }
body.ls-round-crisp .ls-blob img { border-radius: var(--ls-r); }
body.ls-waves .ls-page-hero { position: relative; margin-bottom: 64px; }
body.ls-waves .ls-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 20px; background: color-mix(in srgb, var(--ls-blue) 14%, #fff); -webkit-mask: var(--ls-wave) left top / 160px 40px repeat-x; mask: var(--ls-wave) left top / 160px 40px repeat-x; transform: scaleY(-1); }
.entry-content .alignwide { margin-inline: calc(-1 * min(140px, (100vw - var(--ls-narrow)) / 2 - var(--ls-pad))); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content .wp-block-image img { border-radius: var(--ls-r); }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) { padding-left: 1.4em; list-style: none; }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) > li { position: relative; margin-bottom: 0.35em; }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) > li::before { content: ""; position: absolute; left: -1.25em; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--ls-yellow); }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) > li:nth-child(4n+2)::before { background: var(--ls-red); }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) > li:nth-child(4n+3)::before { background: var(--ls-green); }
.entry-content ul:not([class*="ls-"]):not(.wp-block-latest-posts) > li:nth-child(4n)::before { background: var(--ls-blue); }
.entry-content ol li::marker { font-family: var(--ls-display); font-weight: 700; color: var(--ls-red); }
.entry-footer { display: grid; gap: 16px; margin-top: 36px; }
.tags-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.author-info { display: flex; gap: 18px; padding: 22px; border-radius: var(--ls-r); background: var(--ls-card); }
.author-info .avatar { width: 64px; height: 64px; border-radius: 50%; }
.author-title { margin: 0 0 6px; font-size: 1.15rem; }

/* ── Nursery blocks used by the demo ── */
.ls-programs { gap: 22px; }
.ls-program { height: 100%; padding: 26px 24px; border-radius: var(--ls-r); color: #fff; }
.ls-program > * { margin-top: 0; }
.ls-program h3 { margin-bottom: 4px; color: inherit; font-size: 1.6rem; }
.ls-program .ls-age { display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: var(--ls-r-sm); background: rgba(255, 255, 255, 0.25); font-family: var(--ls-display); font-weight: 600; }
.ls-program p:last-child { margin-bottom: 0; }
.ls-program a { color: inherit; }
.ls-program--red { background: var(--ls-red); }
.ls-program--yellow { background: var(--ls-yellow); color: var(--ls-ink); }
.ls-program--yellow .ls-age { background: rgba(255, 255, 255, 0.5); }
.ls-program--green { background: color-mix(in srgb, var(--ls-green) 88%, #000); }
.ls-program--blue { background: var(--ls-blue); }
.ls-schedule { position: relative; margin: 0; padding: 0 0 0 0; list-style: none; }
.ls-schedule::before { content: ""; position: absolute; left: 47px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--ls-line) 0 10px, transparent 10px 18px); }
.ls-schedule li { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 10px 0; }
.ls-schedule li strong { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 98px; padding: 6px 0; border-radius: var(--ls-r-sm); background: var(--ls-blue); color: #fff; font-family: var(--ls-display); font-weight: 600; font-size: 0.95rem; }
.ls-schedule li:nth-child(4n+2) strong { background: var(--ls-red); }
.ls-schedule li:nth-child(4n+3) strong { background: var(--ls-green); }
.ls-schedule li:nth-child(4n) strong { background: var(--ls-yellow); color: var(--ls-ink); }
.ls-schedule li span { padding-top: 4px; }
.ls-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--ls-r); background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line); }
.ls-panel > :first-child { margin-top: 0; }
.ls-callout { padding: 18px 22px; border-radius: calc(var(--ls-r) * 0.7); background: color-mix(in srgb, var(--ls-green) 14%, var(--ls-card)); border: 3px dashed color-mix(in srgb, var(--ls-green) 50%, var(--ls-card)); }
.ls-callout > :last-child { margin-bottom: 0; }

/* ── Front page ── */
.ls-hero { position: relative; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 100px); overflow: hidden; background: color-mix(in srgb, var(--ls-yellow) 18%, var(--ls-bg)); }
body.ls-waves .ls-hero { margin-bottom: 20px; }
body.ls-waves .ls-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--ls-bg); -webkit-mask: var(--ls-wave) left bottom / 160px 40px repeat-x; mask: var(--ls-wave) left bottom / 160px 40px repeat-x; }
.ls-hero__shape { position: absolute; border-radius: 50%; opacity: 0.9; animation: ls-bob 6s ease-in-out infinite; }
.ls-hero__shape--1 { left: -40px; top: 40px; width: 120px; height: 120px; background: var(--ls-red); }
.ls-hero__shape--2 { right: 8%; top: 24px; width: 54px; height: 54px; background: var(--ls-blue); animation-delay: -2s; }
.ls-hero__shape--3 { left: 46%; bottom: 60px; width: 34px; height: 34px; border-radius: 8px; background: var(--ls-green); transform: rotate(20deg); animation-delay: -4s; }
@keyframes ls-bob { 50% { translate: 0 -12px; } }
.ls-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ls-hero__title { margin: 0 0 16px; font-size: clamp(2.8rem, 6.4vw, 4.8rem); font-weight: 700; line-height: 1.02; }
.ls-hero__lead { max-width: 28em; font-size: 1.2rem; color: var(--ls-muted); }
.ls-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ls-hero__art img { aspect-ratio: 1 / 0.9; box-shadow: 14px 14px 0 var(--ls-blue); }
@media (max-width: 860px) { .ls-hero__inner { grid-template-columns: 1fr; } .ls-hero__art { max-width: 460px; } }
.ls-front-content > * { width: min(var(--ls-max), 100% - 2 * var(--ls-pad)); margin-inline: auto; }
.ls-front-content > .alignfull { width: 100%; }
.ls-section { margin-block: 72px; }
.ls-section-head { margin-bottom: 28px; text-align: center; }
.ls-section-head > * { margin-block: 0 8px !important; }
.ls-day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .ls-day { grid-template-columns: 1fr; } }
.ls-band { position: relative; padding: clamp(36px, 6vw, 72px) var(--ls-pad); background: color-mix(in srgb, var(--ls-green) 14%, var(--ls-bg)); }
.ls-band > * { max-width: var(--ls-max); margin-inline: auto; }
body.ls-waves .ls-band { margin-block: 100px; }
body.ls-waves .ls-band::before, body.ls-waves .ls-band::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; max-width: none; background: inherit; -webkit-mask: var(--ls-wave) left bottom / 160px 40px repeat-x; mask: var(--ls-wave) left bottom / 160px 40px repeat-x; }
body.ls-waves .ls-band::before { top: -39px; }
body.ls-waves .ls-band::after { bottom: -39px; transform: scaleY(-1); }
.ls-quotes { gap: 24px; }
.ls-visit { padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--ls-r) * 1.4); background: var(--ls-yellow); text-align: center; }
.ls-visit .wp-block-heading { margin-top: 0; }
.ls-visit .wp-block-buttons { justify-content: center; }
.ls-visit .wp-block-button__link { background: var(--ls-ink); box-shadow: 0 5px 0 #000; }
.wp-block-latest-posts { margin: 0; padding: 0; list-style: none; }
.wp-block-latest-posts li { padding: 10px 0; }
.wp-block-latest-posts.is-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; padding: 22px 24px; border-radius: var(--ls-r); background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line); border-top: 10px solid var(--ls-blue); }
.wp-block-latest-posts.is-grid li:nth-child(3n+2) { border-top-color: var(--ls-red); }
.wp-block-latest-posts.is-grid li:nth-child(3n) { border-top-color: var(--ls-green); }
.wp-block-latest-posts__post-title { display: block; font-family: var(--ls-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--ls-ink); text-decoration: none; }
.wp-block-latest-posts__post-title:hover { color: var(--ls-red); }
.wp-block-latest-posts__post-date { display: block; margin-top: 4px; font-size: 0.85rem; font-weight: 700; color: var(--ls-muted); }
.wp-block-latest-posts__post-excerpt { margin-top: 8px; font-size: 0.95rem; color: var(--ls-muted); }
@media (max-width: 860px) { .wp-block-latest-posts.is-grid { grid-template-columns: 1fr; } }
.ls-wide-content { padding-top: 4px; }

/* ── Blocks ── */
.wp-block-pullquote { margin: 2em 0; padding: 30px; border-radius: var(--ls-r); background: var(--ls-blue); color: #fff; text-align: center; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; background: none; }
.wp-block-pullquote blockquote::after { display: none; }
.wp-block-pullquote p { font-family: var(--ls-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; }
.wp-block-columns { gap: 28px; }
.wp-block-gallery.has-nested-images { gap: 14px; }
.wp-block-gallery .wp-block-image img { border-radius: calc(var(--ls-r) * 0.6); }
.wp-block-table { overflow-x: auto; }

/* ── Pagination & nav ── */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; border-radius: var(--ls-r-sm); background: var(--ls-card); color: var(--ls-ink); font-family: var(--ls-display); font-weight: 600; text-decoration: none; box-shadow: 0 4px 0 var(--ls-line); }
.page-numbers.current { background: var(--ls-red); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--ls-red) 65%, #000); }
.post-navigation { margin: 44px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px 22px; border-radius: var(--ls-r); background: var(--ls-card); color: var(--ls-ink); text-decoration: none; box-shadow: 0 6px 0 var(--ls-line); }
.post-navigation a:hover { box-shadow: 0 6px 0 var(--ls-blue); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .meta-nav { display: block; margin-bottom: 4px; font-family: var(--ls-display); font-weight: 600; color: var(--ls-red); }
.post-navigation .post-title { font-family: var(--ls-display); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }

/* ── Comments ── */
.comments-area { margin-top: 44px; }
.comments-title, .comment-reply-title { font-size: 1.6rem; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(16px, 4vw, 48px); }
.comment-body { margin-bottom: 16px; padding: 18px 22px; border-radius: var(--ls-r); background: var(--ls-card); box-shadow: 0 5px 0 var(--ls-line); }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--ls-display); font-weight: 600; }
.comment-author .avatar { width: 42px; height: 42px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { font-size: 0.85rem; color: var(--ls-muted); text-decoration: none; }
.reply a { font-family: var(--ls-display); font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 32px; padding: 28px; border-radius: var(--ls-r); background: color-mix(in srgb, var(--ls-blue) 8%, var(--ls-card)); }
.comment-form label { display: block; margin-bottom: 6px; font-family: var(--ls-display); font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--ls-body); font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 0.92rem; color: var(--ls-muted); }

/* ── Widgets ── */
.widget-area { display: grid; gap: 24px; }
.widget { padding: 24px; border-radius: var(--ls-r); background: var(--ls-card); box-shadow: 0 6px 0 var(--ls-line); }
.widget > :last-child { margin-bottom: 0; }
.widget-title, .widget .wp-block-heading { margin: 0 0 12px; font-size: 1.25rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-bottom: 2px dotted var(--ls-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ls-ink); text-decoration: none; }
.widget a:hover { color: var(--ls-red); }
.wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-block-tag-cloud a { padding: 4px 12px; border-radius: var(--ls-r-sm); background: color-mix(in srgb, var(--ls-blue) 12%, var(--ls-card)); color: var(--ls-blue); font-size: 0.85rem !important; font-weight: 700; }
.search-form { display: flex; gap: 8px; }
.search-form__label { flex: 1; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }

/* ── 404 & empty ── */
.ls-404 { padding-block: 64px; text-align: center; }
.ls-404__blocks { display: inline-flex; gap: 12px; margin-bottom: 24px; }
.ls-404__blocks span { display: grid; place-items: center; width: clamp(72px, 14vw, 120px); aspect-ratio: 1; border-radius: calc(var(--ls-r) * 0.6); color: #fff; font-family: var(--ls-display); font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18); }
.ls-404__blocks span:nth-child(1) { background: var(--ls-red); transform: rotate(-6deg); }
.ls-404__blocks span:nth-child(2) { background: var(--ls-yellow); color: var(--ls-ink); transform: translateY(-10px); }
.ls-404__blocks span:nth-child(3) { background: var(--ls-blue); transform: rotate(5deg); }
.ls-404 .page-title { max-width: 18em; margin: 0 auto 12px; font-size: clamp(2rem, 4.6vw, 3rem); }
.ls-404 .search-form { max-width: 480px; margin: 28px auto 0; }
.no-results { padding: 28px; border-radius: var(--ls-r); background: var(--ls-card); }
.no-results .page-title { margin-top: 0; }

/* ── Footer ── */
.site-footer { margin-top: 60px; }
.ls-footer-wave { height: 40px; background: var(--ls-ink); -webkit-mask: var(--ls-wave) left bottom / 160px 40px repeat-x; mask: var(--ls-wave) left bottom / 160px 40px repeat-x; }
body:not(.ls-waves) .ls-footer-wave { display: none; }
.ls-footer-body { padding-block: 40px; background: var(--ls-ink); color: rgba(255, 255, 255, 0.82); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-bottom: 32px; }
.footer-widgets .widget { padding: 0; background: none; box-shadow: none; }
.footer-widgets .widget-title, .footer-widgets .wp-block-heading { color: var(--ls-yellow); }
.footer-widgets li { border-color: rgba(255, 255, 255, 0.15); }
.footer-widgets a { color: #fff; }
.site-footer__bar { display: grid; gap: 14px; justify-items: center; padding-top: 28px; border-top: 2px dashed rgba(255, 255, 255, 0.2); text-align: center; }
.ls-footer-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ls-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer-navigation ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { display: block; padding: 6px 14px; border-radius: var(--ls-r-sm); background: rgba(255, 255, 255, 0.1); color: #fff; font-family: var(--ls-display); text-decoration: none; }
.footer-navigation a:hover { background: var(--ls-red); }
.site-info { margin: 0; font-size: 0.9rem; }
.site-info span { margin-inline: 6px; }
.site-info a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) {
	body { font-size: 17px; }
	.ls-schedule::before { left: 39px; }
	.ls-schedule li strong { width: 82px; font-size: 0.85rem; }
}

/* ── Long words, e-mail addresses and links never widen the page ── */
p, li, dd, td, th, figcaption, blockquote, .widget { overflow-wrap: break-word; }
/* ── Galleries (a grid that does not depend on core layout classes) ── */
.wp-block-gallery.has-nested-images { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.wp-block-gallery.has-nested-images.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wp-block-gallery.has-nested-images figure.wp-block-image { position: relative; width: auto !important; max-width: none; margin: 0 !important; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 10px 8px; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); color: #fff; font-size: 0.8rem; text-align: center; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::before { content: none; }
@media (max-width: 600px) { .wp-block-gallery.has-nested-images, .wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
