/**
 * Školka – design system.
 *
 * Tokens, base elements, components and block styles. Loaded on the front end
 * (after GeneratePress and its inline CSS) and inside the block editor canvas
 * via add_editor_style(), so nothing here may depend on front-end-only wrappers.
 *
 * 1. Tokens
 * 2. Base elements
 * 3. Buttons
 * 4. Cards, badges, grids
 * 5. Notices
 * 6. Block styles (registered in inc/blocks.php)
 * 7. Core block polish
 * 8. Jídelníček components
 * 9. Pattern helpers
 *
 * Colours only come from the tokens below. SVG data URIs use palette hexes
 * (URL-encoded); icons used as masks take their colour from background-color.
 *
 * Breakpoints: mobile first, min-width 640 / 1000 / 1100 px (1100 = GP menu);
 * 720 px only for .sk-grid--2; max-width 479 / 639 px only to hide, stack or
 * compact elements on phones (and 640–999 px for the tablet .sk-grid--3 row).
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {

	/* Colours – theme.json palette (fallbacks keep the page usable without presets). */
	--sk-color-ink: var(--wp--preset--color--ink, #1e3a4c);
	--sk-color-ink-soft: var(--wp--preset--color--ink-soft, #4a5e6d);
	--sk-color-primary: var(--wp--preset--color--primary, #1f6b6e);
	--sk-color-primary-dark: var(--wp--preset--color--primary-dark, #154e51);
	--sk-color-accent: var(--wp--preset--color--accent, #b8483b);
	--sk-color-accent-dark: var(--wp--preset--color--accent-dark, #96362b);
	--sk-color-sun: var(--wp--preset--color--sun, #f2c14e);
	--sk-color-canvas: var(--wp--preset--color--canvas, #fffbf5);
	--sk-color-surface: var(--wp--preset--color--surface, #fff);
	--sk-color-sky: var(--wp--preset--color--sky-soft, #e6f3f4);
	--sk-color-leaf: var(--wp--preset--color--leaf-soft, #e8f3e6);
	--sk-color-blush: var(--wp--preset--color--blush-soft, #fcebe6);
	--sk-color-sun-soft: var(--wp--preset--color--sun-soft, #fdf3d7);
	--sk-color-apricot: var(--wp--preset--color--apricot-soft, #fdebdc);
	--sk-color-line: var(--wp--preset--color--line, #e7ded1);
	--sk-color-ink-deep: color-mix(in srgb, var(--sk-color-ink) 80%, #000);

	/* Typography. */
	--sk-font-heading: var(--wp--preset--font-family--heading, "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif);
	--sk-font-body: var(--wp--preset--font-family--body, "Nunito Sans", system-ui, -apple-system, "Segoe UI", roboto, sans-serif);
	--sk-text-xs: 0.8125rem;
	--sk-text-sm: var(--wp--preset--font-size--small, 0.9375rem);
	--sk-text-md: var(--wp--preset--font-size--medium, 1.0625rem);
	--sk-text-lg: var(--wp--preset--font-size--large, clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem));
	--sk-text-xl: var(--wp--preset--font-size--x-large, clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem));
	--sk-text-2xl: var(--wp--preset--font-size--xx-large, clamp(2.125rem, 1.6rem + 2.4vw, 3.25rem));

	/* Spacing – theme.json spacing presets. */
	--sk-space-2xs: 0.25rem;
	--sk-space-xs: var(--wp--preset--spacing--20, 0.5rem);
	--sk-space-s: var(--wp--preset--spacing--30, 1rem);
	--sk-space-m: var(--wp--preset--spacing--40, 1.5rem);
	--sk-space-l: var(--wp--preset--spacing--50, clamp(2rem, 4vw, 3rem));
	--sk-space-xl: var(--wp--preset--spacing--60, clamp(3rem, 6vw, 4.5rem));
	--sk-space-2xl: var(--wp--preset--spacing--70, clamp(4rem, 8vw, 6rem));

	/* Shape and depth. */
	--sk-radius-sm: 0.5rem;
	--sk-radius-md: 1rem;
	--sk-radius-lg: 1.5rem;
	--sk-radius-pill: 999px;
	--sk-shadow-sm: 0 1px 2px rgb(30 58 76 / 0.06), 0 2px 8px rgb(30 58 76 / 0.05);
	--sk-shadow-md: var(--wp--preset--shadow--soft, 0 1px 2px rgb(30 58 76 / 0.06), 0 8px 24px rgb(30 58 76 / 0.08));
	--sk-shadow-lg: 0 2px 4px rgb(30 58 76 / 0.06), 0 16px 40px rgb(30 58 76 / 0.12);
	--sk-stitch: 2px dashed color-mix(in srgb, var(--sk-color-primary) 30%, transparent); /* stitched-card outline */

	/* Layout. */
	--sk-content: var(--wp--style--global--content-size, 760px);
	--sk-wide: var(--wp--style--global--wide-size, 1200px);
	--sk-gutter: clamp(1rem, 4vw, 2rem);
	--sk-container: calc(var(--sk-wide) + 2 * var(--sk-gutter)); /* .sk-container's content box = wide size */

	/* Motion and focus (dark areas override --sk-focus-ring with the sun colour). */
	--sk-transition: 160ms ease;
	--sk-focus-ring: 3px solid var(--sk-color-ink);
	--sk-focus-offset: 3px;

	/* Line icons (24×24, used as masks – the stroke colour is irrelevant). */
	--sk-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18h3'/%3E%3C/svg%3E");
	--sk-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7.5 8 5.5 8-5.5'/%3E%3C/svg%3E");
	--sk-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
	--sk-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6-7-11.5a7 7 0 0 1 14 0C19 15 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
	--sk-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E");
	--sk-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--sk-icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E");
	--sk-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5h.01'/%3E%3C/svg%3E");
	/* White bare glyphs (no circle) drawn on the coloured notice badges. */
	--sk-icon-glyph-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
	--sk-icon-glyph-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v7.5M12 18h.01'/%3E%3C/svg%3E");
	--sk-icon-bowl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5h17a8.5 8.5 0 0 1-17 0z'/%3E%3Cpath d='M9 20.5h6M9 3.5c-.8 1 .8 2.2 0 3.5M13 3.5c-.8 1 .8 2.2 0 3.5'/%3E%3C/svg%3E");
	--sk-icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E");
	--sk-icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4'/%3E%3C/svg%3E");

	/* Coloured icons for background images (primary stroke). */
	--sk-img-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E");
	--sk-img-bowl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6B6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5h17a8.5 8.5 0 0 1-17 0z'/%3E%3Cpath d='M9 20.5h6M9 3.5c-.8 1 .8 2.2 0 3.5M13 3.5c-.8 1 .8 2.2 0 3.5'/%3E%3C/svg%3E");

	/* Doodle waves (masks): a tiling 48×12 line and a stretchable filled edge. */
	--sk-wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12'%3E%3Cpath d='M0 6q6-6 12 0t12 0 12 0 12 0' fill='none' stroke='%231F6B6E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
	--sk-wave-h: clamp(1.25rem, 3vw, 2.75rem); /* height of every wavy section edge */
	--sk-wave-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 28C180 6 360 4 540 18S900 42 1080 30S1340 8 1440 16V48H0z' fill='%231E3A4C'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Base elements
   ========================================================================== */

body,
button,
input,
select,
textarea {
	font-family: var(--sk-font-body);
}

body {
	background-color: var(--sk-color-canvas);
	color: var(--sk-color-ink);
	font-size: var(--sk-text-md);
	line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--sk-font-heading);
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	text-wrap: balance;
}

h1 {
	font-size: var(--sk-text-2xl);
}

h2 {
	font-size: var(--sk-text-xl);
}

h3 {
	font-size: var(--sk-text-lg);
}

h4 {
	font-size: 1.125rem;
}

h5,
h6 {
	font-size: 1rem;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-inline-start: 1.5em;
}

li > ul,
li > ol {
	margin: 0.25em 0 0;
}

/* Rhythm for content lists only; theme UI lists (menus, chips, footer) need no resets. */
:where(.sk-entry, .editor-styles-wrapper) li + li {
	margin-top: 0.25em;
}

li::marker {
	color: var(--sk-color-primary);
}

b,
strong {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

address {
	font-style: normal;
}

mark {
	padding-inline: 0.15em;
	border-radius: 0.2em;
	background-color: var(--sk-color-sun-soft);
	color: var(--sk-color-ink);
}

table {
	border-collapse: collapse;
}

th,
td {
	border: 1px solid var(--sk-color-line);
	text-align: start;
}

a {
	color: var(--sk-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--sk-transition), text-decoration-color var(--sk-transition);
}

a:hover {
	color: var(--sk-color-primary-dark);
	text-decoration-thickness: 2px;
}

/* Inside blocks with a custom text colour, headings and links follow that colour. */
:where(.has-text-color) :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

:where(.has-text-color) a:where(:not(.wp-element-button, .sk-btn)),
:where(.has-text-color) a:where(:not(.wp-element-button, .sk-btn)):is(:hover, :focus) {
	color: inherit;
}

:where(a, summary, .sk-btn, .wp-element-button, .wp-block-button__link):focus-visible {
	outline: var(--sk-focus-ring);
	outline-offset: var(--sk-focus-offset);
}

::selection {
	background-color: var(--sk-color-sun-soft);
	color: var(--sk-color-ink);
}

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

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ==========================================================================
   3. Buttons
   --sk-btn-* custom properties let modifiers (and wrappers such as the core
   outline style) recolour a button without fighting selector specificity.
   ========================================================================== */

.sk-btn,
.wp-element-button,
.wp-block-button .wp-block-button__link.wp-element-button {
	display: inline-block;
	min-height: 44px;
	padding: 0.7em 1.5em;
	border: 2px solid var(--sk-btn-border, transparent);
	border-radius: var(--sk-radius-pill);
	background-color: var(--sk-btn-bg, var(--sk-color-primary));
	color: var(--sk-btn-fg, var(--sk-color-surface));
	font-family: var(--sk-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sk-transition), border-color var(--sk-transition), color var(--sk-transition), filter var(--sk-transition);
}

.sk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
}

.sk-btn:visited {
	color: var(--sk-btn-fg, var(--sk-color-surface));
}

.sk-btn:hover,
.sk-btn:focus,
.sk-btn:active,
.wp-element-button:hover,
.wp-element-button:focus,
.wp-element-button:active,
.wp-block-button .wp-block-button__link.wp-element-button:hover,
.wp-block-button .wp-block-button__link.wp-element-button:focus,
.wp-block-button .wp-block-button__link.wp-element-button:active {
	border-color: var(--sk-btn-border-hover, transparent);
	background-color: var(--sk-btn-bg-hover, var(--sk-color-primary-dark));
	color: var(--sk-btn-fg-hover, var(--sk-color-surface));
	text-decoration: none;
}

.sk-btn--accent {
	--sk-btn-bg: var(--sk-color-accent);
	--sk-btn-bg-hover: var(--sk-color-accent-dark);
}

.sk-btn--outline,
.wp-block-button.is-style-outline {
	--sk-btn-bg: transparent;
	--sk-btn-fg: var(--sk-color-primary);
	--sk-btn-border: currentcolor;
	--sk-btn-bg-hover: var(--sk-color-primary);
	--sk-btn-fg-hover: var(--sk-color-surface);
	--sk-btn-border-hover: var(--sk-color-primary);
}

.sk-btn--small {
	padding: 0.5em 1.1em;
	font-size: 0.9375rem;
}

.sk-btn:disabled,
.sk-btn[aria-disabled="true"],
.wp-element-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.sk-btn[hidden] {
	display: none;
}

/* Buttons coloured in the editor: never white text on light palette colours. */
.wp-block-button__link:is(.has-sun-background-color, .has-sun-soft-background-color, .has-apricot-soft-background-color, .has-canvas-background-color, .has-surface-background-color, .has-sky-soft-background-color, .has-leaf-soft-background-color, .has-blush-soft-background-color, .has-line-background-color):not(.has-text-color) {
	--sk-btn-fg: var(--sk-color-ink);
	--sk-btn-fg-hover: var(--sk-color-ink);
}

.wp-block-button .wp-block-button__link.has-background:hover {
	filter: brightness(0.92);
}

/* ==========================================================================
   4. Cards, badges, grids
   ========================================================================== */

.sk-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sk-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sk-grid--1 {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {

	.sk-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 720px) {

	.sk-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {

	.sk-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Tablet (2-column) range: an odd last card spans the row as a horizontal card instead of leaving an empty half row. */
@media (min-width: 640px) and (max-width: 999px) {

	.sk-grid--3 > .sk-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.sk-grid--3 > .sk-card:last-child:nth-child(odd) .sk-card__media {
		flex: 0 0 calc((100% - var(--sk-space-m)) / 2); /* lines up with the column above */
		min-height: 12rem;
		aspect-ratio: auto;
	}

	.sk-grid--3 > .sk-card:last-child:nth-child(odd) .sk-card__body {
		justify-content: center;
	}
}

.sk-card {
	--sk-card-tint: var(--sk-color-sky);
	--sk-card-icon: var(--sk-icon-sun);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sk-color-line);
	border-radius: var(--sk-radius-lg);
	background-color: var(--sk-color-surface);
	box-shadow: var(--sk-shadow-sm);
	overflow-wrap: break-word;
	transition: border-color var(--sk-transition), box-shadow var(--sk-transition), transform var(--sk-transition);
}

.sk-card--galerie {
	--sk-card-tint: var(--sk-color-sun-soft);
	--sk-card-icon: var(--sk-icon-camera);
}

.sk-card--jidelnicek,
.sk-card__placeholder--menu {
	--sk-card-tint: var(--sk-color-leaf);
	--sk-card-icon: var(--sk-icon-bowl);
}

.sk-card--page {
	--sk-card-tint: var(--sk-color-blush);
}

.sk-card--locked {
	--sk-card-tint: var(--sk-color-blush);
	--sk-card-icon: var(--sk-icon-lock);
}

.sk-card:hover {
	border-color: color-mix(in srgb, var(--sk-color-primary) 35%, var(--sk-color-line));
	box-shadow: var(--sk-shadow-lg);
}

.sk-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--sk-card-tint);
}

.sk-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.sk-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background-color: var(--sk-card-tint);
	background-image: radial-gradient(circle, color-mix(in srgb, var(--sk-color-surface) 75%, transparent) 1.5px, transparent 2px);
	background-size: 18px 18px;
}

.sk-card__placeholder::before,
.sk-card__placeholder::after {
	content: "";
	grid-area: 1 / 1;
}

.sk-card__placeholder::before {
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	background-color: var(--sk-color-surface);
	box-shadow: var(--sk-shadow-sm);
}

.sk-card__placeholder::after {
	width: 2.5rem;
	height: 2.5rem;
	background-color: var(--sk-color-primary);
	-webkit-mask: var(--sk-card-icon) center / contain no-repeat;
	mask: var(--sk-card-icon) center / contain no-repeat;
}

.sk-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--sk-space-xs);
	padding: var(--sk-space-m);
}

.sk-card__body > * {
	margin: 0;
}

.sk-card__eyebrow {
	color: var(--sk-color-primary);
	font-size: var(--sk-text-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sk-card__title {
	font-size: var(--sk-text-lg);
	line-height: 1.25;
}

.sk-card__link,
.sk-card__link:visited {
	color: var(--sk-color-ink);
	text-decoration: none;
}

.sk-card__link:hover,
.sk-card__link:focus {
	color: var(--sk-color-primary);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* Stretched link: the whole card is clickable, the title stays the accessible name. */
.sk-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--sk-radius-lg);
}

.sk-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-sm);
}

.sk-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--sk-color-ink-soft);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.sk-card--compact .sk-card__media {
	aspect-ratio: 16 / 7;
}

.sk-card--compact .sk-card__title {
	font-size: 1.25rem;
}

/* Phones: a compact card without an image drops the decorative placeholder band. */
@media (max-width: 639px) {

	.sk-card--compact .sk-card__media:has(> .sk-card__placeholder) {
		display: none;
	}
}

@media (min-width: 640px) {

	.sk-card--compact {
		flex-direction: row;
	}

	.sk-card--compact .sk-card__media {
		flex: 0 0 clamp(10rem, 30%, 15rem);
		min-height: 9rem;
		aspect-ratio: auto;
	}

	.sk-card--compact .sk-card__body {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: no-preference) {

	.sk-card:hover {
		transform: translateY(-2px);
	}

	.sk-card:hover .sk-card__image {
		transform: scale(1.03);
	}
}

/* Where :has() exists, draw the keyboard focus ring around the whole card. */
@supports selector(:has(*)) {

	.sk-card:has(.sk-card__link:focus-visible) {
		outline: var(--sk-focus-ring);
		outline-offset: var(--sk-focus-offset);
	}

	.sk-card .sk-card__link:focus-visible {
		outline: none;
	}
}

.sk-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.75em;
	border-radius: var(--sk-radius-pill);
	background-color: var(--sk-color-sun);
	color: var(--sk-color-ink);
	font-family: var(--sk-font-body);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.4;
	white-space: nowrap;
	vertical-align: middle;
}

.sk-badge--lock {
	background-color: var(--sk-color-blush);
}

.sk-badge--lock::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background-color: currentcolor;
	-webkit-mask: var(--sk-icon-lock) center / contain no-repeat;
	mask: var(--sk-icon-lock) center / contain no-repeat;
}

.sk-date {
	white-space: nowrap;
}

/* ==========================================================================
   5. Notices
   ========================================================================== */

.sk-notice,
.is-style-skolka-notice,
.is-style-skolka-notice-important {
	--sk-notice-accent: var(--sk-color-primary);
	--sk-notice-glyph: var(--sk-icon-glyph-info);
	--sk-notice-badge: 1.5rem;
	position: relative;
	padding: var(--sk-space-m);
	padding-inline-start: calc(var(--sk-space-m) + var(--sk-notice-badge) + 0.75rem);
	border: 1px solid color-mix(in srgb, var(--sk-notice-accent) 30%, transparent);
	border-radius: var(--sk-radius-md);
	background-color: var(--sk-color-sky);
	color: var(--sk-color-ink);
}

/* Round badge with an „i“ (Upozornění) or „!“ (Důležité upozornění), aligned with the first line.
 * One pseudo-element only: the block editor uses ::after for the selected-block outline. */
.sk-notice::before,
.is-style-skolka-notice::before,
.is-style-skolka-notice-important::before {
	content: "";
	position: absolute;
	/* Centred on the first text line (line box ≈ 1.75rem). */
	top: calc(var(--sk-space-m) + 0.125rem);
	left: var(--sk-space-m);
	width: var(--sk-notice-badge);
	height: var(--sk-notice-badge);
	border-radius: 50%;
	background: var(--sk-notice-accent) var(--sk-notice-glyph) center / 1.2rem no-repeat;
}

@media (max-width: 479px) {

	.sk-notice,
	.is-style-skolka-notice,
	.is-style-skolka-notice-important {
		--sk-notice-badge: 1.375rem;
		padding-inline-start: calc(var(--sk-space-m) + var(--sk-notice-badge) + 0.6rem);
	}
}

.sk-notice--info {
	--sk-notice-accent: var(--sk-color-primary);
	background-color: var(--sk-color-sky);
}

.sk-notice--important,
.is-style-skolka-notice-important {
	--sk-notice-accent: var(--sk-color-accent);
	--sk-notice-glyph: var(--sk-icon-glyph-alert);
	background-color: var(--sk-color-blush);
}

.sk-notice > :first-child {
	margin-top: 0;
}

.sk-notice > :last-child {
	margin-bottom: 0;
}

.sk-notice :is(h2, h3) {
	font-size: var(--sk-text-lg);
}

/* ==========================================================================
   6. Block styles
   ========================================================================== */

/* Group: "Karta" and "Prošitá karta". */
.is-style-skolka-card,
.is-style-skolka-card-stitched {
	padding: var(--sk-space-m);
	border-radius: var(--sk-radius-lg);
	background-color: var(--sk-color-surface);
	box-shadow: var(--sk-shadow-md);
}

.is-style-skolka-card-stitched {
	padding: calc(var(--sk-space-m) + 0.5rem);
	outline: 2px dashed color-mix(in srgb, var(--sk-color-primary) 40%, transparent);
	outline-offset: -10px;
}

/* List: "S fajfkami". */
.is-style-skolka-checklist {
	padding-inline-start: 0;
	list-style: none;
}

.is-style-skolka-checklist > li {
	position: relative;
	padding-inline-start: 2.2em;
}

.is-style-skolka-checklist > li + li {
	margin-top: 0.6em;
}

.is-style-skolka-checklist > li::before {
	content: "";
	position: absolute;
	top: 0.125em;
	left: 0;
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
	background: var(--sk-color-leaf) var(--sk-img-check) center / 72% no-repeat;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sk-color-primary) 25%, transparent);
}

/* Table: "Jídelníček" – two columns, meal label + dishes. */
.wp-block-table.is-style-skolka-menu {
	overflow: hidden;
	border: 1px solid var(--sk-color-line);
	border-radius: var(--sk-radius-md);
	background-color: var(--sk-color-surface);
}

.wp-block-table.is-style-skolka-menu table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.wp-block-table.is-style-skolka-menu :is(thead, tfoot) {
	border: 0;
}

.wp-block-table.is-style-skolka-menu :is(th, td) {
	padding: 0.7em 0.9rem;
	border: 0;
	border-bottom: 1px solid var(--sk-color-line);
	text-align: start;
	vertical-align: baseline;
}

.wp-block-table.is-style-skolka-menu tbody tr:nth-child(even) {
	background-color: var(--sk-color-canvas);
}

.wp-block-table.is-style-skolka-menu tr:last-child > * {
	border-bottom: 0;
}

.wp-block-table.is-style-skolka-menu :is(th, td):first-child {
	width: 10rem;
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-table.is-style-skolka-menu thead th {
	background-color: var(--sk-color-sky);
	color: var(--sk-color-ink);
}

.wp-block-table.is-style-skolka-menu figcaption {
	padding: 0.5em 0.9rem;
}

@media (max-width: 479px) {

	.wp-block-table.is-style-skolka-menu :is(tr, th, td) {
		display: block;
		width: auto;
	}

	.wp-block-table.is-style-skolka-menu :is(th, td):first-child {
		width: auto;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.wp-block-table.is-style-skolka-menu :is(th, td):not(:first-child) {
		padding-top: 0.2rem;
	}
}

/* Separator: "Vlnka" – a hand-drawn wave, recoloured by the block's colour settings. */
.wp-block-separator.is-style-skolka-wave {
	width: min(100%, 12rem);
	height: 12px;
	margin-inline: auto;
	border: 0;
	background-color: currentcolor;
	color: var(--sk-color-primary);
	opacity: 1;
	-webkit-mask: var(--sk-wave-line) left center / 48px 12px repeat-x;
	mask: var(--sk-wave-line) left center / 48px 12px repeat-x;
}

.wp-block-separator.is-style-skolka-wave:is(.alignwide, .alignfull) {
	width: 100%;
}

/* ==========================================================================
   7. Core block polish
   ========================================================================== */

.wp-block-image img {
	border-radius: var(--sk-radius-md);
}

/* Theme icons and illustrations are SVGs: never round them off. */
.wp-block-image img[src$=".svg"] {
	border-radius: 0;
}

.wp-block-image figcaption,
.wp-element-caption {
	margin-top: 0.6em;
	margin-bottom: 0;
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-sm);
	line-height: 1.5;
	text-align: center;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
	overflow: hidden;
	border-radius: var(--sk-radius-md);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	margin: 0;
	padding: 1.5em 0.75em 0.6em;
	/* Fade only within the 1.5em top padding: the text always sits on a solid 85% ink band (AA over light photos). */
	background: linear-gradient(0deg, color-mix(in srgb, var(--sk-color-ink) 85%, transparent) calc(100% - 1.5em), transparent);
	color: var(--sk-color-surface);
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: start;
}

.wp-block-gallery > .wp-element-caption {
	width: 100%;
}

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

.wp-block-table :is(th, td) {
	padding: 0.6em 0.85em;
	border: 1px solid var(--sk-color-line);
	text-align: start;
	vertical-align: top;
}

.wp-block-table :is(thead, tfoot) {
	border: 0;
}

.wp-block-table thead th {
	background-color: var(--sk-color-sky);
	font-weight: 700;
}

.wp-block-table.is-style-stripes {
	border-bottom: 1px solid var(--sk-color-line);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: var(--sk-color-canvas);
}

.wp-block-table.is-style-stripes :is(th, td) {
	border-color: transparent;
}

.wp-block-quote {
	margin-inline: 0;
	padding: var(--sk-space-m);
	border: 0;
	border-inline-start: 4px solid var(--sk-color-sun);
	border-radius: 0 var(--sk-radius-md) var(--sk-radius-md) 0;
	background-color: var(--sk-color-sun-soft);
	font-size: 1.125rem;
	font-style: normal;
}

.wp-block-quote > :last-child {
	margin-bottom: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5em;
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-sm);
	font-style: normal;
	font-weight: 700;
}

.wp-block-quote.is-style-plain {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.wp-block-pullquote {
	padding-block: var(--sk-space-m);
	border-block: 3px solid var(--sk-color-sun);
}

.wp-block-separator {
	margin-block: var(--sk-space-l);
}

.wp-block-separator:not(.is-style-skolka-wave):not(.is-style-dots):not(.has-background) {
	height: 0;
	background: none;
}

.wp-block-separator:not(.is-style-skolka-wave):not(.has-text-color):not(.has-background) {
	color: var(--sk-color-line);
}

.wp-block-separator.is-style-dots:not(.has-text-color) {
	color: var(--sk-color-primary);
}

/*
 * File block: a row like the document list (.sk-doc-list) – file icon in the left padding, bold
 * name, an optional muted „Popis“ and, if switched on, a small download button on the right.
 * Name and description flow as text, so long names wrap like a list item. The same rules fit the
 * saved markup and the editor, where name and button sit in .wp-block-file__content-wrapper.
 * The description is span.sk-file-description on the front end (inc/blocks.php) and the
 * --sk-file-description custom property in the editor (assets/js/editor-file-defaults.js).
 * Files placed one under another (or under a document list) read as a single list.
 */
.wp-block-file:not(.wp-element-button) {
	position: relative;
	box-sizing: border-box;
	min-height: 44px;
	padding-block: 0.6rem;
	padding-inline-start: 2rem;
	border-bottom: 1px dashed var(--sk-color-line);
	color: var(--sk-color-ink-soft);
	font-size: inherit;
}

.wp-block-file:not(.wp-element-button)::before {
	content: "";
	position: absolute;
	top: calc(0.6rem + 0.15em);
	left: 0;
	width: 1.35em;
	height: 1.35em;
	background-color: var(--sk-color-primary);
	-webkit-mask: var(--sk-icon-file) center / contain no-repeat;
	mask: var(--sk-icon-file) center / contain no-repeat;
}

.wp-block-file__content-wrapper {
	display: inline;
}

/* Core makes the name an inline-block in the editor; inline lets the description follow it. */
.wp-block-file > a:not(.wp-block-file__button),
.wp-block-file__content-wrapper > a:not(.wp-block-file__button) {
	display: inline;
	font-weight: 700;
}

.wp-block-file__content-wrapper::after {
	content: var(--sk-file-description, none);
	margin-inline-start: 0.3em;
}

/* Download button (off by default): small, on the right, vertically centred. */
.wp-block-file:not(.wp-element-button):has(.wp-block-file__button) {
	padding-inline-end: 7.5rem;
}

.wp-block-file > .wp-block-file__button,
.wp-block-file__button-richtext-wrapper {
	position: absolute;
	top: 50%;
	right: 0;
	margin: 0;
	transform: translateY(-50%);
}

.wp-block-file .wp-block-file__button {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 34px;
	margin: 0;
	padding: 0.3em 1em;
	font-size: 0.875rem;
	line-height: 1.2;
}

/* The optional inline PDF preview sits above the row, full width. */
.wp-block-file .wp-block-file__embed,
.wp-block-file .wp-block-file__preview {
	display: block;
	width: calc(100% + 2rem);
	margin-block-end: 0.6rem;
	margin-inline-start: -2rem;
	border-radius: var(--sk-radius-sm);
}

.wp-block-file:not(.wp-element-button):has(.wp-block-file__embed, .wp-block-file__preview)::before {
	top: auto;
	bottom: calc(0.6rem + 0.15em);
}

.wp-block-file:has(.wp-block-file__embed, .wp-block-file__preview) > .wp-block-file__button,
.wp-block-file:has(.wp-block-file__embed, .wp-block-file__preview) .wp-block-file__button-richtext-wrapper {
	top: auto;
	bottom: 0.4rem;
	transform: none;
}

.wp-block-file:not(.wp-element-button) + .wp-block-file:not(.wp-element-button),
.sk-doc-list + .wp-block-file:not(.wp-element-button) {
	margin-top: 0;
}

.wp-block-file:not(.wp-element-button):has(+ .wp-block-file),
.sk-doc-list:has(+ .wp-block-file) {
	margin-bottom: 0;
}

/*
 * YouTube click-to-play placeholder (inc/youtube.php, assets/js/youtube.js): the thumbnail stored
 * on this site, the title, a play button and a note. The player replaces it after a click.
 */
.sk-yt .wp-block-embed__wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--sk-radius-md);
	background-color: var(--sk-color-ink);
}

.sk-yt .wp-block-embed__wrapper::before {
	display: none;
}

.sk-yt--vertical .wp-block-embed__wrapper {
	max-width: 22rem;
	margin-inline: auto;
	aspect-ratio: 9 / 16;
}

.sk-yt__link,
.sk-yt__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sk-yt__link {
	display: block;
	isolation: isolate;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 3px rgb(0 0 0 / 0.5);
}

/* Shade above the thumbnail so the title and note stay readable on any picture. */
.sk-yt__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(30 58 76 / 0.85) 0%, rgb(30 58 76 / 0) 30%, rgb(30 58 76 / 0) 70%, rgb(30 58 76 / 0.85) 100%);
}

.sk-yt__thumb {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sk-yt__title {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	padding: var(--sk-space-s) var(--sk-space-m);
	overflow: hidden;
	font-family: var(--sk-font-heading);
	font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sk-yt__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background-color: var(--sk-color-primary);
	box-shadow: var(--sk-shadow-lg);
	transform: translate(-50%, -50%);
	transition: transform var(--sk-transition), background-color var(--sk-transition);
}

.sk-yt__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-block: 0.85rem solid transparent;
	border-inline-start: 1.35rem solid #fff;
	transform: translate(-50%, -50%);
}

.sk-yt__link:hover .sk-yt__play,
.sk-yt__link:focus-visible .sk-yt__play {
	background-color: var(--sk-color-accent);
	transform: translate(-50%, -50%) scale(1.08);
}

.sk-yt__link:focus-visible {
	outline: 3px solid var(--sk-color-sun);
	outline-offset: -3px;
}

.sk-yt__note {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: var(--sk-space-s) var(--sk-space-m);
	font-size: 0.875rem;
	line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
	.sk-yt__play {
		transition: none;
	}
}

.wp-block-details > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.5em 1.2em;
	border-radius: var(--sk-radius-pill);
	background-color: var(--sk-color-sky);
	color: var(--sk-color-ink);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
	transition: background-color var(--sk-transition);
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background-color: var(--sk-color-primary);
	transform: rotate(-90deg);
	transition: transform var(--sk-transition);
	-webkit-mask: var(--sk-icon-chevron) center / contain no-repeat;
	mask: var(--sk-icon-chevron) center / contain no-repeat;
}

.wp-block-details[open] > summary::before {
	transform: none;
}

.wp-block-details > summary:hover {
	background-color: color-mix(in srgb, var(--sk-color-sky) 80%, var(--sk-color-primary));
}

.wp-block-details > :not(summary) {
	margin-top: var(--sk-space-s);
}

.wp-block-cover:not(.alignfull) {
	overflow: hidden;
	border-radius: var(--sk-radius-lg);
}

/* ==========================================================================
   8. Jídelníček components (pattern skolka/jidelnicek-tyden + templates)
   ========================================================================== */

.sk-menu-day {
	padding: var(--sk-space-m);
	border: 1px solid var(--sk-color-line);
	border-radius: var(--sk-radius-lg);
	background-color: var(--sk-color-surface);
	box-shadow: var(--sk-shadow-sm);
}

.sk-menu-day__title {
	margin: 0;
	font-size: var(--sk-text-lg);
}

.sk-menu-day__title::before {
	content: "";
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-inline-end: 0.6rem;
	border-radius: 50%;
	background-color: var(--sk-color-sun);
	box-shadow: 0 0 0 4px var(--sk-color-sun-soft);
	vertical-align: 0.12em;
}

.sk-menu-day > .sk-menu-day__title + * {
	margin-block-start: var(--sk-space-xs);
}

/* Inside a day card the table needs no frame of its own. */
.sk-menu-day .wp-block-table.is-style-skolka-menu {
	margin-bottom: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.sk-menu-day__holiday {
	display: inline-block;
	margin: 0;
	padding: 0.3em 0.9em;
	/* lg (not pill): still a pill when single-line because the radius gets clamped to half the height, but stays a rounded rectangle when the notice wraps. */
	border-radius: var(--sk-radius-lg);
	background-color: var(--sk-color-blush);
	color: var(--sk-color-ink);
	font-weight: 700;
}

.sk-menu-note {
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-sm);
}

.sk-menu-note::before {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-inline-end: 0.4em;
	background-color: var(--sk-color-primary);
	vertical-align: -0.22em;
	-webkit-mask: var(--sk-icon-info) center / contain no-repeat;
	mask: var(--sk-icon-info) center / contain no-repeat;
}

.sk-menu-legend :is(ol, ul) {
	margin-bottom: 0;
	font-size: var(--sk-text-sm);
	column-gap: var(--sk-space-l);
	columns: 2 14rem;
}

.sk-menu-legend li {
	break-inside: avoid;
}

/* ==========================================================================
   9. Pattern helpers
   ========================================================================== */

.sk-eyebrow,
.sk-hero__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--sk-color-primary);
	font-family: var(--sk-font-body);
	font-size: var(--sk-text-xs);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sk-eyebrow::before,
.sk-hero__eyebrow::before {
	content: "";
	display: inline-block;
	width: 2rem;
	height: 0.5rem;
	margin-inline-end: 0.6em;
	background-color: var(--sk-color-accent);
	vertical-align: 0.1em;
	-webkit-mask: var(--sk-wave-line) left center / 2rem 0.5rem repeat-x;
	mask: var(--sk-wave-line) left center / 2rem 0.5rem repeat-x;
}

/* Hero pattern: soft blobs behind the content, wavy bottom edge into the canvas. */
.sk-hero-block {
	position: relative;
	background-image:
		radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--sk-color-surface) 55%, transparent) 0 11rem, transparent 11.05rem),
		radial-gradient(circle at 4% 96%, color-mix(in srgb, var(--sk-color-sun) 22%, transparent) 0 6rem, transparent 6.05rem);
}

.sk-hero-block::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: var(--sk-wave-h);
	background-color: var(--sk-color-canvas);
	pointer-events: none;
	-webkit-mask: var(--sk-wave-edge) center / 100% 100% no-repeat;
	mask: var(--sk-wave-edge) center / 100% 100% no-repeat;
}

.sk-hero-block .wp-block-image {
	margin-inline: auto;
	text-align: center;
}

.sk-hero-block .wp-block-image img {
	width: 100%;
	max-width: 30rem;
}

/* Quick links: tiles with an icon bubble and a stretched heading link. */
.sk-quicklink {
	position: relative;
	transition: box-shadow var(--sk-transition), transform var(--sk-transition);
}

.sk-quicklink .wp-block-image {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background-color: var(--sk-color-surface);
}

.sk-quicklink:not(.has-background) .wp-block-image {
	background-color: var(--sk-color-sky);
}

.sk-quicklink .wp-block-image img {
	width: 3rem;
	height: 3rem;
	border-radius: 0;
}

.sk-quicklink :is(h2, h3) a {
	color: var(--sk-color-ink);
	text-decoration: none;
}

.sk-quicklink :is(h2, h3) a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--sk-radius-lg);
}

.sk-quicklink :is(h2, h3) a:hover,
.sk-quicklink :is(h2, h3) a:focus {
	color: var(--sk-color-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.sk-quicklink:hover {
	box-shadow: var(--sk-shadow-lg);
}

.sk-quicklink > :last-child {
	margin-bottom: 0;
}

/* If staff switch the tiles to a Columns layout, keep them equally tall. */
.sk-quicklinks .wp-block-column > .sk-quicklink {
	height: 100%;
}

/* Phones: compact tiles (smaller icon, tighter padding and gaps); the whole tile stays the tap target. */
@media (max-width: 639px) {

	.sk-quicklink {
		padding: 1rem 1.25rem;
	}

	.sk-quicklink .wp-block-image {
		width: 2.5rem;
		height: 2.5rem;
	}

	/* max-* also caps the pattern's inline width/height (48px) on the image. */
	.sk-quicklink .wp-block-image img {
		max-width: 1.75rem;
		max-height: 1.75rem;
	}

	/* Beats the flow layout's block gap (:root :where(.is-layout-flow) > *). */
	.sk-quicklink > .wp-block-image + * {
		margin-block-start: 0.5rem;
	}

	.sk-quicklink > :is(h2, h3) + * {
		margin-block-start: 0.25rem;
	}
}

@media (prefers-reduced-motion: no-preference) {

	.sk-quicklink:hover {
		transform: translateY(-2px);
	}
}

@supports selector(:has(*)) {

	.sk-quicklink:has(a:focus-visible) {
		outline: var(--sk-focus-ring);
		outline-offset: var(--sk-focus-offset);
	}

	.sk-quicklink a:focus-visible {
		outline: none;
	}
}

/* Contact card: icon + small label on every row. */
.sk-contact-card > .wp-block-image img {
	width: 3rem;
	height: 3rem;
}

.sk-contact-card__row {
	--sk-row-icon: var(--sk-icon-info);
	position: relative;
	padding-inline-start: 2.25rem;
}

.sk-contact-card__row::before {
	content: "";
	position: absolute;
	top: 0.1em;
	left: 0;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--sk-color-primary);
	-webkit-mask: var(--sk-row-icon) center / contain no-repeat;
	mask: var(--sk-row-icon) center / contain no-repeat;
}

.sk-contact-card__address {
	--sk-row-icon: var(--sk-icon-pin);
}

.sk-contact-card__phone {
	--sk-row-icon: var(--sk-icon-phone);
}

.sk-contact-card__email {
	--sk-row-icon: var(--sk-icon-mail);
}

.sk-contact-card__hours {
	--sk-row-icon: var(--sk-icon-clock);
}

.sk-contact-card__row > strong:first-child {
	color: var(--sk-color-ink-soft);
	font-size: var(--sk-text-xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sk-contact-card__row a {
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Daily routine: dashed "stitched" line with dots, time column from 640px. */
.sk-timeline {
	position: relative;
	padding-inline-start: 0;
	list-style: none;
}

.sk-timeline::before {
	content: "";
	position: absolute;
	top: 0.6em;
	bottom: 0.6em;
	left: calc(0.5rem - 1px);
	width: 2px;
	background-image: linear-gradient(to bottom, color-mix(in srgb, var(--sk-color-primary) 45%, transparent) 55%, transparent 0);
	background-size: 2px 9px;
}

.sk-timeline > li {
	position: relative;
	padding-inline-start: 2rem;
}

.sk-timeline > li + li {
	margin-top: var(--sk-space-s);
}

.sk-timeline > li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	box-sizing: border-box;
	width: 1rem;
	height: 1rem;
	border: 3px solid var(--sk-color-primary);
	border-radius: 50%;
	background-color: var(--sk-color-surface);
}

.sk-timeline > li:nth-child(even)::before {
	border-color: var(--sk-color-accent);
}

/* The .rich-text variant matches the editor, which wraps list item text in a RichText element. */
.sk-timeline > li > strong:first-child,
.sk-timeline > li > .rich-text > strong:first-child {
	display: block;
	color: var(--sk-color-primary-dark);
	font-family: var(--sk-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {

	.sk-timeline > li {
		padding-inline-start: 11rem;
	}

	.sk-timeline > li > strong:first-child,
	.sk-timeline > li > .rich-text > strong:first-child {
		position: absolute;
		top: 0;
		left: 2rem;
		width: 8.5rem;
	}
}

/* Class cards: a crayon-coloured dot derived from the card tint. */
/*
 * Class cards: the grid block becomes a wrapping flex row so an incomplete last row is centred
 * (5 classes → 3 + 2 on desktop, 2 + 2 + 1 on tablets). The gap still comes from the block settings.
 */
.wp-block-group.is-layout-grid:has(> .sk-class-card) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.wp-block-group.is-layout-grid > .sk-class-card {
	--sk-class-gap: var(--wp--preset--spacing--40, 1.5rem);
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
}

@media (min-width: 600px) {

	.wp-block-group.is-layout-grid > .sk-class-card {
		flex-basis: calc((100% - var(--sk-class-gap)) / 2);
	}
}

@media (min-width: 900px) {

	.wp-block-group.is-layout-grid > .sk-class-card {
		flex-basis: calc((100% - 2 * var(--sk-class-gap)) / 3);
	}
}

.sk-class-card {
	--sk-class-color: var(--sk-color-primary);
}

.sk-class-card.has-blush-soft-background-color {
	--sk-class-color: var(--sk-color-accent);
}

.sk-class-card.has-sun-soft-background-color {
	--sk-class-color: var(--sk-color-sun);
}

.sk-class-card.has-apricot-soft-background-color {
	--sk-class-color: color-mix(in srgb, var(--sk-color-accent) 50%, var(--sk-color-sun));
}

.sk-class-card.has-leaf-soft-background-color {
	--sk-class-color: color-mix(in srgb, var(--sk-color-primary) 55%, var(--sk-color-sun));
}

.sk-class-card :is(h2, h3)::before {
	content: "";
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-inline-end: 0.45em;
	border-radius: 50%;
	background-color: var(--sk-class-color);
	box-shadow: 0 0 0 3px var(--sk-color-surface);
	vertical-align: 0.02em;
}

.sk-class-card ul {
	padding-inline-start: 0;
	list-style: none;
}

.sk-class-card li + li {
	margin-top: 0.4em;
}

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

/* Document list: file icon + link, size hint in muted text. */
.sk-doc-list {
	padding-inline-start: 0;
	list-style: none;
	color: var(--sk-color-ink-soft);
}

.sk-doc-list > li {
	position: relative;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding-block: 0.6rem;
	padding-inline-start: 2rem;
	border-bottom: 1px dashed var(--sk-color-line);
}

.sk-doc-list > li::before {
	content: "";
	position: absolute;
	top: calc(0.6rem + 0.15em);
	left: 0;
	width: 1.35em;
	height: 1.35em;
	background-color: var(--sk-color-primary);
	-webkit-mask: var(--sk-icon-file) center / contain no-repeat;
	mask: var(--sk-icon-file) center / contain no-repeat;
}

.sk-doc-list a {
	font-weight: 700;
}
