/*
 * MŠ Kaštánek – mockup stylesheet.
 * Tokens first (light on :root, the night theme under [data-theme="dark"]),
 * then base, shell (header, footer), shared pieces and page sections.
 *
 * Two rules hold the look together:
 *   1. What you can click is a "block": ink outline + a flat shadow underneath
 *      that the element sinks into when pressed.
 *   2. What only holds content is a flat tinted panel with no outline.
 */

/* ---------- Fonts (SIL OFL, self-hosted, latin + latin-ext) ---------- */

@font-face { font-family: 'Grandstander'; font-weight: 100 900; font-display: swap; src: url('../fonts/grandstander-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Grandstander'; font-weight: 100 900; font-display: swap; src: url('../fonts/grandstander-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url('../fonts/figtree-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url('../fonts/figtree-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-weight: 400 700; font-display: swap; src: url('../fonts/caveat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-weight: 400 700; font-display: swap; src: url('../fonts/caveat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */

:root {
    color-scheme: light;

    --font-display: 'Grandstander', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

    /* Paper and ink: warm cream and the brown of a chestnut, never pure black. */
    --paper: #FFF6E6;
    --paper-2: #FFEDD2;
    --surface: #FFFFFF;
    --surface-2: #FFFBF3;
    --ink: #2B1B14;
    --ink-2: #5B473C;
    --ink-3: #7A655A;
    --line: #2B1B14;
    --shadow: #2B1B14;
    --hair: rgba(43, 27, 20, .14);

    /* Text that sits on a colour fill stays dark in both themes. */
    --on-fill: #2B1B14;

    /* The crayon box: fill / soft tint / deep (text on the tint). */
    --red: #F25C3F;     --red-soft: #FFDCD2;    --red-deep: #A82C12;
    --orange: #FF9440;  --orange-soft: #FFE3C7; --orange-deep: #94480A;
    --yellow: #FFC738;  --yellow-soft: #FFEFBA; --yellow-deep: #7A5200;
    --green: #4DB377;   --green-soft: #D5F0DD;  --green-deep: #1B6640;
    --blue: #5B8DEF;    --blue-soft: #DCE8FF;   --blue-deep: #2550B0;
    --lilac: #A78BFA;   --lilac-soft: #EAE3FF;  --lilac-deep: #5B3CC4;
    --pink: #FF9FC0;    --pink-soft: #FFE3EC;   --pink-deep: #A62A5C;

    --foot: #163E2E;
    --foot-2: #1F5540;
    --foot-ink: #F8F2E3;
    --foot-ink-2: #BCD3C4;
    --hill-1: #7CCB98;
    --hill-2: #4DB377;

    /* The drawn map of the contact section. */
    --map-land: #F8EDD3; --map-park: #CBEBD2; --map-water: #BFDBFF; --map-road: #FFFFFF;
    --map-edge: #E6D7B8; --map-house: #F1D7B4; --map-tree: #7CCB98; --map-text: #8A7566;

    --bw: 2.5px;
    --r-sm: 14px;
    --r: 22px;
    --r-lg: 32px;
    --block: 0 5px 0 0 var(--shadow);
    --block-lg: 0 7px 0 0 var(--shadow);
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 92px;   /* the bar at the very top of a page */
    --bar-h: 66px;      /* the bar once the page moves */
}

[data-theme="dark"] {
    color-scheme: dark;

    /* Night: the sky after the kids went home. */
    --paper: #1A1730;
    --paper-2: #221E3E;
    --surface: #2C2750;
    --surface-2: #332D5C;
    --ink: #FBF4E6;
    --ink-2: #D2CAE0;
    --ink-3: #A9A0BE;
    --line: #0C0A18;
    --shadow: #0C0A18;
    --hair: rgba(251, 244, 230, .16);

    --red-soft: #4D2630;    --red-deep: #FFB5A5;
    --orange-soft: #4B3122; --orange-deep: #FFC796;
    --yellow-soft: #473B1F; --yellow-deep: #FFDD85;
    --green-soft: #1F4038;  --green-deep: #9EE2B8;
    --blue-soft: #26335F;   --blue-deep: #B3CBFF;
    --lilac-soft: #382E66;  --lilac-deep: #D2C4FF;
    --pink-soft: #4A2745;   --pink-deep: #FFC0D6;

    --foot: #100E20;
    --foot-2: #1A1730;
    --foot-ink-2: #A9A0BE;
    --hill-1: #2C5747;
    --hill-2: #1F4038;

    --map-land: #262146; --map-park: #1F4038; --map-water: #27407E; --map-road: #3A3468;
    --map-edge: #1A1730; --map-house: #443C74; --map-tree: #2F6B55; --map-text: #A9A0BE;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar-h) + 28px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.35rem + 5.2vw, 5rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); letter-spacing: -.008em; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.18; }
h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .09em; }
strong, b { font-weight: 700; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] :focus-visible { outline-color: var(--yellow); }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pic { width: 48px; height: 48px; flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--yellow); color: var(--on-fill); padding: 10px 16px; border-radius: 999px; border: var(--bw) solid var(--line); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); }

.section { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }

.hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* A wavy pencil line under one word of a heading. */
.squiggle {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7c9-6 17 4 28 0s18-5 29 0 19 5 29 0 18-4 28 0' fill='none' stroke='%23FFC738' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .3em;
    padding-bottom: .14em;
}
.squiggle--red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 7c9-6 17 4 28 0s18-5 29 0 19 5 29 0 18-4 28 0' fill='none' stroke='%23F25C3F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Colour scopes: a class, a tile or a band picks one crayon. */
.is-red    { --c: var(--red);    --c-soft: var(--red-soft);    --c-deep: var(--red-deep); }
.is-orange { --c: var(--orange); --c-soft: var(--orange-soft); --c-deep: var(--orange-deep); }
.is-yellow { --c: var(--yellow); --c-soft: var(--yellow-soft); --c-deep: var(--yellow-deep); }
.is-green  { --c: var(--green);  --c-soft: var(--green-soft);  --c-deep: var(--green-deep); }
.is-blue   { --c: var(--blue);   --c-soft: var(--blue-soft);   --c-deep: var(--blue-deep); }
.is-lilac  { --c: var(--lilac);  --c-soft: var(--lilac-soft);  --c-deep: var(--lilac-deep); }
.is-pink   { --c: var(--pink);   --c-soft: var(--pink-soft);   --c-deep: var(--pink-deep); }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .9em 1.45em;
    font: 700 1.02rem/1.1 var(--font-body);
    color: var(--on-fill);
    background: var(--red);
    border: var(--bw) solid var(--line);
    border-radius: 999px;
    box-shadow: var(--block);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 0 var(--shadow); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 0 var(--shadow); }
.btn .ico { transition: transform .15s ease; }
.btn:hover .ico--go { transform: translateX(3px); }
.btn--yellow { background: var(--yellow); }
.btn--green { background: var(--green); }
.btn--plain { background: var(--surface); color: var(--ink); }
.btn--sm { padding: .68em 1.1em; font-size: .95rem; box-shadow: 0 4px 0 0 var(--shadow); }
.btn--sm:hover { box-shadow: 0 2px 0 0 var(--shadow); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; border-bottom: var(--bw) solid var(--c, var(--yellow)); padding-bottom: 2px; }
.link-arrow .ico { transition: transform .15s ease; }
.link-arrow:hover .ico { transform: translateX(4px); }

.pill {
    display: inline-flex; align-items: center; gap: .45em;
    padding: .28em .8em;
    font-size: .85rem; font-weight: 700; line-height: 1.3;
    color: var(--c-deep, var(--ink-2));
    background: var(--c-soft, var(--paper-2));
    border-radius: 999px;
    white-space: nowrap;
}
.pill::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--ink-3)); }
.pill--plain::before { content: none; }
.pill--solid { background: var(--c, var(--yellow)); color: var(--on-fill); }
.pill--solid::before { content: none; }

/* ---------- Header ----------
   One bar across the whole width. At the very top of a page it is see-through and
   tall; once the page moves it turns into a compact strip of paper cut with craft
   scissors (the scalloped edge), so nothing shows around it. Without the script it is
   always the solid strip. On pages with an in-page menu that menu docks under the bar
   and takes the scalloped edge over (see .subnav). */

.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); pointer-events: none; transition: top .32s cubic-bezier(.2, .8, .2, 1); }
.header-bar {
    position: relative; height: var(--bar-h);
    background: var(--surface);
    pointer-events: auto;
    transition: height .28s cubic-bezier(.2, .8, .2, 1), background-color .2s ease, box-shadow .2s ease;
}
.js:not(.is-scrolled) .header-bar { height: var(--header-h); background: transparent; }

/* The scalloped edge: a fill and an ink line, both cut by a mask so they follow the theme. */
.header-bar::before, .header-bar::after,
.subnav::before, .subnav::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 13px;
    pointer-events: none; transition: opacity .2s ease;
}
.header-bar::before, .subnav::before {
    background: var(--surface);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 13'%3E%3Cpath d='M0 0h32v1Q16 19 0 1Z'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 13px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 13'%3E%3Cpath d='M0 0h32v1Q16 19 0 1Z'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 13px;
}
.header-bar::after, .subnav::after {
    background: var(--line);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 13'%3E%3Cpath d='M0 1Q16 19 32 1' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 13px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 13'%3E%3Cpath d='M0 1Q16 19 32 1' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x 0 0 / 32px 13px;
}
.js:not(.is-scrolled) .header-bar::before, .js:not(.is-scrolled) .header-bar::after,
.subnav-stuck .header-bar::before, .subnav-stuck .header-bar::after,
.nav-up .header-bar::before, .nav-up .header-bar::after,
.menu-open .header-bar::before, .menu-open .header-bar::after { opacity: 0; }
.subnav-stuck .header-bar { box-shadow: inset 0 -2px 0 var(--paper-2); }

.header-row { display: flex; align-items: center; gap: 20px; height: 100%; }

.logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 44px; height: 44px; transition: width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.js:not(.is-scrolled) .logo img { width: 54px; height: 54px; }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font: 800 1.42rem/1 var(--font-display); letter-spacing: -.01em; padding-top: .12em; }
.logo-text small { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* Every item of the menu is one crayon: its colour shows as a paper cut-out behind the word. */
.main-nav { align-self: stretch; }
.nav-list { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
    position: relative; z-index: 0;
    display: inline-flex; align-items: center; gap: .3em;
    padding: .56em .8em .44em;
    border: 0; background: none; cursor: pointer;
    font: 700 1.06rem/1.15 var(--font-display); color: var(--ink);
    text-decoration: none; white-space: nowrap;
    transition: color .15s ease;
}
.nav-link::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--c);
    border-radius: 15px 19px 13px 21px / 19px 13px 21px 15px;
    opacity: 0; transform: scale(.72) rotate(-5deg);
    transition: opacity .15s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-item:nth-child(even) .nav-link::before { border-radius: 19px 14px 21px 13px / 14px 20px 13px 19px; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[data-current] { color: var(--on-fill); }
.nav-link:hover::before, .nav-link[aria-expanded="true"]::before, .nav-link[data-current]::before { opacity: 1; transform: rotate(-2deg); }
.nav-item:nth-child(even) .nav-link:hover::before, .nav-item:nth-child(even) .nav-link[aria-expanded="true"]::before, .nav-item:nth-child(even) .nav-link[data-current]::before { transform: rotate(1.5deg); }
.nav-chev { width: .9em; height: .9em; margin-top: -.12em; stroke-width: 2.8; transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-tag, .nav-extra { display: none; }

/* The panels of "Třídy" and "Pro rodiče". */
.nav-panel {
    position: absolute; left: -16px; top: calc(100% + 20px); z-index: 5;
    padding: 12px;
    background: var(--surface);
    border: var(--bw) solid var(--line); border-radius: var(--r);
    box-shadow: var(--block-lg);
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 48px 0;
    transition: opacity .16s ease, transform .24s cubic-bezier(.34, 1.4, .64, 1), visibility 0s .24s;
}
.nav-panel::before {
    content: ""; position: absolute; left: 44px; top: -9.5px; width: 15px; height: 15px;
    background: var(--surface);
    border: var(--bw) solid var(--line); border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0;
    transform: rotate(45deg);
}
.nav-link[aria-expanded="true"] + .nav-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

.nav-classes { display: grid; grid-template-columns: repeat(4, 132px); gap: 4px; }
.nav-class { display: grid; justify-items: center; padding: 14px 6px 12px; border-radius: 16px; text-align: center; text-decoration: none; transition: background-color .15s ease; }
.nav-class:hover, .nav-class[aria-current="page"] { background: var(--c-soft); }
.nav-class-face { display: grid; place-items: center; width: 78px; aspect-ratio: 1; margin-bottom: 10px; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--line); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nav-class-face img { width: 78%; }
.nav-class:hover .nav-class-face { transform: rotate(-8deg) scale(1.08); }
.nav-class b { font: 800 1.14rem/1.1 var(--font-display); }
.nav-class small { margin-top: 3px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.nav-panel-more { display: flex; align-items: center; justify-content: center; gap: .45em; margin-top: 8px; padding: .68em 1em; border-radius: 14px; background: var(--paper); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background-color .15s ease; }
.nav-panel-more:hover { background: var(--paper-2); }
.nav-panel-more .ico { transition: transform .15s ease; }
.nav-panel-more:hover .ico { transform: translateX(4px); }

.nav-sublinks { display: grid; grid-template-columns: repeat(2, 270px); gap: 2px; }
.nav-sublink { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; width: 100%; padding: 9px 14px 9px 10px; border: 0; border-radius: 16px; background: none; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.nav-sublink i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--c-soft); color: var(--c-deep); transition: background-color .15s ease, color .15s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nav-sublink i .ico { width: 22px; height: 22px; }
.nav-sublink b { align-self: end; font-weight: 700; line-height: 1.25; }
.nav-sublink small { align-self: start; font-size: .86rem; line-height: 1.3; color: var(--ink-2); }
.nav-sublink:hover { background: var(--paper); }
.nav-sublink:hover i { background: var(--c); color: var(--on-fill); transform: rotate(-7deg) scale(1.06); }

.nav-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.icon-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: var(--surface); color: var(--ink);
    border: var(--bw) solid var(--line); border-radius: 50%;
    cursor: pointer;
    transition: transform .2s ease, background-color .15s ease;
}
.icon-btn:hover { background: var(--yellow-soft); transform: rotate(18deg); }
.icon-btn .ico { width: 22px; height: 22px; }
.when-dark, [data-theme="dark"] .when-light { display: none; }
[data-theme="dark"] .when-dark { display: block; }

.menu-toggle {
    position: relative; z-index: 2; order: 2;
    display: none; align-items: center; gap: 10px;
    height: 44px; padding: 0 15px 0 17px;
    background: var(--surface); color: var(--ink);
    border: var(--bw) solid var(--line); border-radius: 999px;
    box-shadow: 0 4px 0 0 var(--shadow);
    font: 700 1.02rem/1 var(--font-display);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.menu-toggle:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--shadow); }
.menu-toggle-label { min-width: 3.25em; padding-top: .14em; text-align: left; }
.menu-toggle-ico { position: relative; width: 20px; height: 14px; }
.menu-toggle-ico i { position: absolute; left: 0; right: 0; top: 5.75px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .15s ease, right .25s ease; }
.menu-toggle-ico i:nth-child(1) { transform: translateY(-5.75px); }
.menu-toggle-ico i:nth-child(3) { transform: translateY(5.75px); right: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-ico i:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-ico i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-ico i:nth-child(3) { transform: rotate(-45deg); right: 0; }

/* Small screens: the bar keeps the logo and two buttons, the menu is a full sheet of paper.
   While reading down the bar steps aside and comes back with the first scroll up. */
@media (max-width: 1160px) {
    :root { --header-h: 76px; --bar-h: 60px; }
    .nav-up .site-header { top: calc(-1 * var(--bar-h)); }
    .header-row { gap: 10px; }
    .logo img, .js:not(.is-scrolled) .logo img { width: 42px; height: 42px; }
    .logo-text b { font-size: 1.3rem; }
    .nav-actions { order: 1; }
    .menu-toggle { display: inline-flex; }

    .main-nav {
        position: fixed; inset: 0; z-index: 1;
        padding: calc(var(--header-h) + 10px) var(--gutter) 40px;
        background: var(--paper);
        overflow-y: auto; overscroll-behavior: contain;
        visibility: hidden; opacity: 0;
        transition: opacity .2s ease, visibility 0s .2s;
    }
    .main-nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
    .main-nav::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: calc(100% + 1px); }   /* always something to scroll, so a swipe over the sheet never moves the page under it */
    .nav-list, .nav-extra { width: min(100%, 540px); margin-inline: auto; }
    .nav-list { flex-direction: column; height: auto; gap: 4px; }
    .nav-item { display: block; }
    .nav-link { width: 100%; gap: 14px; padding: 7px 14px 7px 8px; font-size: 1.5rem; font-weight: 800; text-align: left; }
    .nav-link::before, .nav-item:nth-child(even) .nav-link::before { background: var(--c-soft); border-radius: 20px; transform: none; transition: opacity .15s ease; }
    .nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[data-current] { color: var(--ink); }
    .nav-link[aria-expanded="true"]::before { opacity: 0; }
    .nav-link:hover::before, .nav-link[data-current]::before,
    .nav-item:nth-child(even) .nav-link:hover::before, .nav-item:nth-child(even) .nav-link[data-current]::before { opacity: 1; transform: none; }
    .nav-tag { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--c); border: var(--bw) solid var(--line); border-radius: 16px; transform: rotate(-4deg); }
    .nav-item:nth-child(even) .nav-tag { transform: rotate(4deg); }
    .nav-tag .pic { width: 34px; height: 34px; }
    .nav-label { flex: 1; padding-top: .12em; }
    .nav-chev { width: 1em; height: 1em; margin: 0; color: var(--ink-3); }

    .nav-panel { position: static; display: none; padding: 4px 0 12px; background: none; border: 0; border-radius: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
    .nav-panel::before { content: none; }
    .nav-link[aria-expanded="true"] + .nav-panel { display: block; }
    .nav-classes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
    .nav-class { padding: 10px 2px; }
    .nav-class-face { width: min(72px, 86%); margin-bottom: 8px; }
    .nav-class b { font-size: 1.05rem; }
    .nav-class small { font-size: .78rem; }
    .nav-panel-more { display: none; }
    .nav-sublinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nav-extra { display: block; margin-top: 22px; padding-top: 22px; border-top: 2px dashed var(--paper-2); }
    .nav-extra .btn { display: none; width: 100%; }
    .nav-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0; font-weight: 600; color: var(--ink-2); }
    .nav-contact > * { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; }
    .nav-contact .ico { width: 1.15em; height: 1.15em; }

    .main-nav.is-open .nav-item, .main-nav.is-open .nav-extra { animation: nav-in .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
    .nav-item:nth-child(2) { --i: 1; } .nav-item:nth-child(3) { --i: 2; } .nav-item:nth-child(4) { --i: 3; }
    .nav-item:nth-child(5) { --i: 4; } .nav-item:nth-child(6) { --i: 5; } .nav-extra { --i: 6; }
}
@media (max-width: 620px) {
    .nav-actions .nav-cta { display: none; }
    .nav-extra .btn { display: inline-flex; margin-bottom: 18px; }
    .nav-sublinks { grid-template-columns: 1fr; }
}
@media (max-width: 379px) {
    .menu-toggle { padding: 0; width: 44px; justify-content: center; }
    .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); min-width: 0; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes nav-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Section heads ---------- */

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.sec-head .hand { display: block; color: var(--c-deep, var(--red-deep)); transform: rotate(-2deg); transform-origin: left bottom; margin-bottom: .42em; }
.sec-head p.sub { margin-top: .7em; color: var(--ink-2); max-width: 40em; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--center .hand { transform-origin: center; }

/* ---------- Blocks: the clickable card ---------- */

.block {
    position: relative;
    background: var(--surface);
    border: var(--bw) solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--block-lg);
    transition: transform .14s ease, box-shadow .14s ease;
    display: block;
}
a.block { text-decoration: none; }
a.block:hover, button.block:hover, .block:has(.stretch:hover) { transform: translateY(3px); box-shadow: 0 4px 0 0 var(--shadow); }
a.block:active, button.block:active, .block:has(.stretch:active) { transform: translateY(7px); box-shadow: 0 0 0 0 var(--shadow); }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.panel { background: var(--c-soft, var(--paper-2)); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }

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

.hero { position: relative; padding: clamp(28px, 4.5vw, 56px) 0 clamp(28px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6em; padding: .4em 1em .4em .5em; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; font-weight: 700; font-size: .95rem; margin-bottom: 2.1em; }
.hero-eyebrow i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--green); color: var(--on-fill); }
.hero-eyebrow .ico { width: 1.1em; height: 1.1em; }
.hero h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.hero .lead { margin: 1.3em 0 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.hero-note { position: relative; display: inline-flex; align-items: start; gap: 6px; margin: 30px 0 0 12px; color: var(--ink-2); transform: rotate(-3deg); }
.hero-note svg { width: 62px; height: 42px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: scaleY(-1) rotate(8deg); margin-top: -26px; }

.hero-art { position: relative; }
.hero-photos { position: relative; aspect-ratio: 1 / 1.02; }
.hero-blob { position: absolute; inset: 8% -4% 2% 6%; background: var(--yellow-soft); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.hero-photo { position: absolute; object-fit: cover; border: var(--bw) solid var(--line); box-shadow: var(--block-lg); background: var(--paper-2); }
.hero-photo--main { right: 3%; top: 0; width: 62%; height: 84%; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.hero-photo--round { left: 0; bottom: 9%; width: 45%; aspect-ratio: 1; border-radius: 50%; }
.hero-sun { position: absolute; left: 7%; top: 3%; width: 21%; animation: spin 40s linear infinite; }
.hero-sun .moon { display: none; }
[data-theme="dark"] .hero-sun { animation: bob 6s ease-in-out infinite; }
[data-theme="dark"] .hero-blob { background: var(--surface-2); }
[data-theme="dark"] .hero-sun .sun { display: none; }
[data-theme="dark"] .hero-sun .moon { display: block; }
.hero-star { position: absolute; fill: var(--c); stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; animation: twinkle 3.2s ease-in-out infinite; }
.hero-star--1 { width: 44px; right: -2%; top: 20%; }
.hero-star--2 { width: 30px; left: 33%; top: -1%; animation-delay: -1.2s; }
.hero-star--3 { width: 34px; left: 1%; bottom: 1%; animation-delay: -2s; }

.today {
    position: absolute; right: -2%; bottom: -3%; z-index: 3;
    width: min(330px, 66%);
    padding: 16px 18px 18px;
    background: var(--surface);
    border: var(--bw) solid var(--line); border-radius: var(--r);
    box-shadow: var(--block-lg);
    transform: rotate(1.5deg);
}
.today-peek { position: absolute; right: 18px; top: -47px; width: 70px; z-index: -1; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.today:hover .today-peek { transform: translateY(-12px) rotate(6deg); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.today-head b { font: 800 1.18rem/1.1 var(--font-display); }
.open-dot { display: inline-flex; align-items: center; gap: .45em; font-size: .82rem; font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.open-dot::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.today-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-top: 2px dashed var(--hair); font-size: .93rem; line-height: 1.35; }
.today-list .pic { width: 34px; height: 34px; }
.today-list small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.today .link-arrow { margin-top: 6px; font-size: .92rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes twinkle { 50% { transform: scale(.72) rotate(18deg); opacity: .75; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
    .hero-photos { aspect-ratio: 1 / .96; }
    .today { position: relative; right: auto; bottom: auto; width: auto; margin: -34px 0 0; transform: rotate(-.6deg); }
    .hero-note { display: none; }
    .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Facts bar ---------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--block); overflow: hidden; }
.fact { display: flex; align-items: center; gap: 14px; padding: 18px clamp(14px, 2vw, 26px); border-left: 2px dashed var(--hair); }
.fact:first-child { border-left: 0; }
.fact-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--c-soft); color: var(--c-deep); flex: none; transform: rotate(-5deg); }
.fact-ico .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.fact small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fact b { font: 800 1.22rem/1.2 var(--font-display); }
@media (max-width: 940px) {
    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(odd) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 2px dashed var(--hair); }
}
@media (max-width: 480px) {
    .fact { flex-direction: column; align-items: start; gap: 8px; padding: 14px; }
    .fact b { font-size: 1.08rem; }
}

/* ---------- Quick tiles ("značky") ---------- */

.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
button.quick-tile { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.quick-tile { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px; background: var(--c-soft); border-radius: 26px; }
.quick-tile .tag-ico { display: grid; place-items: center; width: 64px; height: 64px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 18px; transform: rotate(-5deg); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.quick-tile:hover .tag-ico { transform: rotate(4deg) scale(1.06); }
.quick-tile .pic { width: 44px; height: 44px; }
.quick-tile b { display: block; font: 700 1.16rem/1.15 var(--font-display); color: var(--ink); }
.quick-tile small { display: block; font-size: .88rem; line-height: 1.35; color: var(--ink-2); margin-top: 5px; }
@media (max-width: 1100px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .quick-tile { padding: 14px 14px 16px; gap: 10px; border-radius: 22px; }
    .quick-tile .tag-ico { width: 54px; height: 54px; border-radius: 16px; }
    .quick-tile .pic { width: 36px; height: 36px; }
}

/* ---------- News ---------- */

.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.news-img { aspect-ratio: 16 / 11; overflow: hidden; border-bottom: var(--bw) solid var(--line); background: var(--paper-2); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.05) rotate(.6deg); }
.news-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .86rem; color: var(--ink-3); font-weight: 600; }
.news-body p { font-size: .97rem; color: var(--ink-2); line-height: 1.5; }
.news-more { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .35em; color: var(--ink); }
.news-more .ico { transition: transform .15s ease; }
.news-card:hover .news-more .ico { transform: translateX(4px); }

/* The notice a teacher would pin to the door. */
.note {
    position: relative;
    padding: 30px 22px 22px;
    background: var(--yellow); color: var(--on-fill);
    border-radius: 4px 4px 26px 4px;
    box-shadow: 0 10px 18px -8px rgba(43, 27, 20, .45);
    transform: rotate(1.6deg);
}
.note::before { content: ""; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; margin-left: -48px; background: rgba(255, 255, 255, .6); border-left: 2px dashed rgba(43, 27, 20, .12); border-right: 2px dashed rgba(43, 27, 20, .12); transform: rotate(-3deg); backdrop-filter: blur(1px); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, rgba(43, 27, 20, .16) 50%, transparent 50%); border-radius: 0 0 26px 0; }
.note .hand { font-size: 1.9rem; margin-bottom: .35em; display: block; }
.note p { font-size: .98rem; line-height: 1.5; }
.note ul { margin-top: .8em; display: grid; gap: .5em; font-size: .95rem; }
.note li { display: grid; grid-template-columns: auto 1fr; gap: .6em; align-items: start; }
.note li .ico { margin-top: .15em; }
.note a { font-weight: 700; }

@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .news-grid, .news-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Classes ---------- */

.class-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.class-tile { background: var(--c-soft); padding: 22px 22px 24px; display: flex; flex-direction: column; overflow: hidden; }
.class-face { align-self: center; display: grid; place-items: center; width: min(170px, 78%); aspect-ratio: 1; margin: 2px 0 18px; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--line); }
.class-face img { width: 78%; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.class-tile:hover .class-face img { animation: wiggle .55s ease-in-out; transform: scale(1.08); }
.class-tile h3 { font-size: 1.75rem; font-weight: 800; }
.class-tile .age { font-weight: 700; color: var(--c-deep); margin-top: 2px; }
.class-tile p { font-size: .94rem; color: var(--ink-2); margin: 10px 0 16px; line-height: 1.45; }
.class-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); flex: none; transition: background-color .15s ease, transform .2s ease; }
.block:hover .go { background: var(--c, var(--yellow)); color: var(--on-fill); transform: rotate(-35deg); }
@media (max-width: 1100px) { .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .class-grid { grid-template-columns: 1fr; gap: 16px; }
    .class-tile { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; padding: 16px; }
    .class-face { width: 96px; margin: 0; grid-row: span 3; align-self: start; }
    .class-tile p { margin: 6px 0 0; }
    .class-foot { grid-column: 1 / -1; margin-top: 12px; }
}

/* ---------- Bands with a wavy edge ---------- */

.band { position: relative; background: var(--c-soft, var(--paper-2)); }
.band::before, .band::after {
    content: ""; position: absolute; left: 0; right: 0; height: 22px;
    background: inherit;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 22V11C15-3 45-3 60 11s45 14 60 0v11Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 22V11C15-3 45-3 60 11s45 14 60 0v11Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
}
.band::before { top: -21px; }
.band::after { bottom: -21px; transform: scaleY(-1); }
.band--flat-bottom::after { content: none; }

/* ---------- A day in the kindergarten ---------- */

.day { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; counter-reset: stop; }
.day::before { content: ""; position: absolute; left: 6%; right: 6%; top: 76px; border-top: 3px dashed var(--line); opacity: .28; }
.day-stop { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.day-time { font: 800 1.02rem/1 var(--font-display); padding: .5em .8em .4em; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; margin-bottom: 12px; }
.day-ico { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--surface); border: var(--bw) solid var(--line); box-shadow: var(--block); margin-bottom: 26px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.day-stop:hover .day-ico { transform: translateY(-6px) rotate(-6deg); }
.day-stop:nth-child(even) .day-ico { translate: 0 10px; }
.day-stop h3 { font-size: 1.12rem; margin-bottom: 6px; }
.day-stop p { font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1100px) {
    .day { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
    .day::before { content: none; }
    .day-stop { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; text-align: left; align-items: start; justify-items: start; }
    .day-ico, .day-stop:nth-child(even) .day-ico { grid-row: 1 / 4; margin: 0; translate: none; }
    .day-time { margin-bottom: 8px; font-size: .92rem; }
}
@media (max-width: 620px) { .day { grid-template-columns: 1fr; } }

/* ---------- Calendar ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.split--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.split--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 940px) { .split, .split--contact, .split--lead { grid-template-columns: 1fr; } }

.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 26px; box-shadow: var(--block); }
.event:hover { box-shadow: 0 2px 0 0 var(--shadow) !important; }
.event-date { display: grid; place-items: center; align-content: center; width: 72px; height: 72px; border-radius: 18px; background: var(--c-soft); color: var(--c-deep); border: var(--bw) solid var(--line); line-height: 1; }
.event-date b { font: 800 1.75rem/1 var(--font-display); color: var(--ink); padding-top: .12em; }
.event-date small { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 1px; }
.event h3 { font-size: 1.14rem; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.event-meta span { display: inline-flex; align-items: center; gap: .35em; }
.event-meta .ico { width: 1.05em; height: 1.05em; }
.event-meta .pill { font-size: .78rem; }
@media (max-width: 520px) { .event { grid-template-columns: auto minmax(0, 1fr); } .event .go { display: none; } .event-date { width: 62px; height: 62px; } .event-date b { font-size: 1.5rem; } }

.aside-card h3 { display: flex; align-items: center; gap: .5em; margin-bottom: 14px; }
.aside-card h3 .ico { color: var(--c-deep); width: 1.2em; height: 1.2em; }
.dl-list { display: grid; }
.dl-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 2px dashed var(--hair); font-size: .96rem; }
.dl-list li:first-child { border-top: 0; padding-top: 0; }
.dl-list span:last-child { font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- The enrolment band ---------- */

.cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: end; padding: clamp(26px, 4.5vw, 56px); padding-bottom: 0; background: var(--yellow); color: var(--on-fill); border: var(--bw) solid var(--line); border-radius: clamp(28px, 4vw, 44px); box-shadow: var(--block-lg); overflow: hidden; }
.cta-copy { padding-bottom: clamp(26px, 4.5vw, 56px); }
.cta-band .hand { display: block; transform: rotate(-2deg); transform-origin: left; margin-bottom: .3em; }
.cta-band p { font-size: 1.1rem; max-width: 34em; margin: .9em 0 1.3em; }
.cta-dates { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
.cta-dates li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: 999px; font-size: .92rem; line-height: 1.2; }
.cta-dates i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-soft); color: var(--c-deep); font-style: normal; }
.cta-dates b { display: block; }
.cta-crew { display: flex; align-items: end; justify-content: center; }
.cta-crew img { width: 29%; margin-inline: -2.5%; transform-origin: bottom center; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); margin-bottom: -5%; }
.cta-crew img:nth-child(2) { width: 32%; margin-bottom: -3%; z-index: 1; }
.cta-crew img:nth-child(3) { width: 29%; margin-bottom: -7%; }
.cta-crew img:hover { transform: translateY(-14%) rotate(-4deg); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-copy { padding-bottom: 0; } .cta-crew { max-width: 420px; margin-inline: auto; } }

/* ---------- Contact ---------- */

.contact-list { display: grid; gap: 14px; margin-top: 26px; }
.contact-list li { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; }
.contact-list i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--c-soft); color: var(--c-deep); }
.contact-list small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a, .contact-list b { font-weight: 700; font-size: 1.08rem; }
.map { overflow: hidden; padding: 0; }
.map > svg { width: 100%; height: auto; }
.map-chip { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 22px; }
.map-chip b { display: block; font: 700 1.05rem/1.2 var(--font-display); }
.map-chip span { font-size: .9rem; color: var(--ink-2); }

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

.foot-top { position: relative; z-index: 1; height: clamp(70px, 11vw, 150px); margin: calc(-1 * clamp(70px, 11vw, 150px)) 0 -1px; pointer-events: none; }
.hills { display: block; width: 100%; height: 100%; }
.foot-top img { position: absolute; width: clamp(34px, 4.6vw, 62px); }
.foot-top img:nth-of-type(1) { left: 14%; bottom: 47%; transform: rotate(-8deg); }
.foot-top img:nth-of-type(2) { right: 20%; bottom: 60%; transform: rotate(6deg); }
main > :last-child { padding-bottom: calc(clamp(48px, 7vw, 96px) + clamp(70px, 11vw, 150px)) !important; }
main > .band:last-child::after { content: none; }
.site-footer { background: var(--foot); color: var(--foot-ink); padding: clamp(28px, 4vw, 48px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 28px clamp(24px, 4vw, 56px); }
.site-footer .logo-text small { color: var(--foot-ink-2); }
.site-footer p { color: var(--foot-ink-2); font-size: .96rem; max-width: 30em; margin-top: 16px; }
.site-footer h3 { font-size: 1.12rem; margin-bottom: 14px; }
.foot-links { display: grid; gap: 9px; font-size: .98rem; }
.foot-links a { text-decoration: none; color: var(--foot-ink-2); }
.foot-links a:hover { color: var(--foot-ink); text-decoration: underline; }
.foot-links li { display: flex; gap: .6em; align-items: start; color: var(--foot-ink-2); }
.foot-links .ico { margin-top: .2em; color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 22px; border-top: 2px dashed rgba(248, 242, 227, .2); font-size: .88rem; color: var(--foot-ink-2); }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Dialog ---------- */

.dialog { width: min(100% - 32px, 520px); padding: 0; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--block-lg); }
.dialog::backdrop { background: rgba(43, 27, 20, .55); backdrop-filter: blur(3px); }
.dialog[open] { animation: pop-in .22s cubic-bezier(.34, 1.4, .64, 1); }
.dialog-body { padding: 26px clamp(18px, 4vw, 30px) 28px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.dialog h2 { font-size: 1.8rem; }
.call-list { display: grid; gap: 10px; margin-top: 18px; }
.call-list a { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px 16px 8px 8px; background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; transition: transform .12s ease; }
.call-list a:hover { transform: translateX(4px); }
.call-list img { width: 46px; height: 46px; padding: 5px; background: var(--c); border: var(--bw) solid var(--line); border-radius: 50%; }
.call-list span { font-variant-numeric: tabular-nums; }

/* ---------- Sub-page header ---------- */

.page-head { position: relative; background: var(--c-soft, var(--paper-2)); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) 0 clamp(36px, 5vw, 64px); }
.page-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 22px; background: inherit; transform: scaleY(-1);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 22V11C15-3 45-3 60 11s45 14 60 0v11Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cpath d='M0 22V11C15-3 45-3 60 11s45 14 60 0v11Z'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 22px;
}
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .92rem; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { text-decoration: none; border-bottom: 2px solid transparent; }
.crumbs a:hover { border-color: currentColor; }
.crumbs li + li::before { content: "›"; margin-right: .5em; opacity: .6; }
.page-head .lead { margin-top: .9em; }
.page-head .hero-cta { margin-top: 1.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.3em; }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .42em .95em; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; font-weight: 700; font-size: .93rem; }
.chip .ico { color: var(--c-deep); width: 1.1em; height: 1.1em; }
.head-face { position: relative; display: grid; place-items: center; width: clamp(150px, 24vw, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--line); box-shadow: var(--block-lg); }
.head-face img, .head-face > .pic { width: 76%; animation: bob 5s ease-in-out infinite; }
.head-face .hero-star { fill: var(--yellow); }
.head-face .hand { position: absolute; right: 78%; top: 4%; transform: rotate(-8deg); white-space: nowrap; padding: .28em .7em .2em; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); border-radius: 999px 999px 4px 999px; box-shadow: 0 4px 0 0 var(--shadow); font-size: 1.7rem; }
@media (max-width: 760px) {
    .page-head-grid { grid-template-columns: 1fr; }
    .head-face { width: 132px; order: -1; }
    .head-face .hand { right: auto; left: 92%; top: 8%; border-radius: 999px 999px 999px 4px; font-size: 1.4rem; }
}

/* Sticky in-page menu */
/* A pill under the page head; once it reaches the bar it docks under it as a second
   row of the same strip and carries the scalloped edge. */
html:has(.subnav) { scroll-padding-top: calc(var(--bar-h) + 88px); }
.subnav { position: sticky; top: var(--bar-h); z-index: 40; margin-top: 34px; padding-inline: var(--gutter); pointer-events: none; transition: top .32s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.nav-up .subnav { top: 0; }
.subnav ul { pointer-events: auto; display: flex; gap: 6px; width: max-content; max-width: 100%; margin-inline: auto; padding: 6px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; box-shadow: 0 4px 0 0 var(--shadow); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.subnav:not(.is-stuck)::before, .subnav:not(.is-stuck)::after { opacity: 0; }
.subnav.is-stuck { background: var(--surface); pointer-events: auto; padding-inline: 0; }
.subnav.is-stuck ul { background: transparent; border-color: transparent; box-shadow: none; padding-inline: var(--gutter); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: .45em .95em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.subnav a:hover { background: var(--paper-2); }
.subnav a.is-active { background: var(--c, var(--yellow)); color: var(--on-fill); }

/* ---------- Class page ---------- */

.week { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.week-card { padding: clamp(20px, 3vw, 34px); }
.week-card .pill { margin-bottom: 12px; }
.week-card h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; }
.week-card > p { color: var(--ink-2); margin: .8em 0 1.4em; }
.plan { display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; background: var(--paper); border-radius: 18px; }
.plan li.is-today { background: var(--c-soft); outline: var(--bw) solid var(--line); }
.plan i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: var(--bw) solid var(--line); font: 800 1.05rem/1 var(--font-display); font-style: normal; padding-top: .15em; }
.plan li.is-today i { background: var(--c); color: var(--on-fill); }
.plan li.is-off { background: none; outline: 2px dashed var(--hair); outline-offset: -2px; color: var(--ink-3); }
.plan li.is-off i { background: none; border-style: dashed; }
.plan b { display: block; line-height: 1.3; }
.plan span { font-size: .92rem; color: var(--ink-2); line-height: 1.35; display: block; }
.week-side { display: grid; gap: 24px; }

/* A page from a lined exercise book. */
.poem {
    position: relative; padding: 26px 26px 24px 58px;
    background: repeating-linear-gradient(var(--surface) 0 35px, var(--blue-soft) 35px 37px);
    background-position: 0 22px;
    border: var(--bw) solid var(--line); border-radius: var(--r);
    box-shadow: var(--block);
    transform: rotate(-1.2deg);
}
.poem::before { content: ""; position: absolute; left: 42px; top: 0; bottom: 0; border-left: 2px solid var(--red); opacity: .55; }
.poem::after { content: ""; position: absolute; left: 14px; top: 26px; bottom: 26px; width: 14px; background: radial-gradient(circle, var(--paper) 0 6px, transparent 6.5px) 0 0 / 14px 74px repeat-y; }
.poem small { display: block; font: 700 .78rem/37px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.poem p { font: 700 1.72rem/37px var(--font-hand); margin: 0; }
.poem cite { display: block; font: 600 .86rem/37px var(--font-body); color: var(--ink-3); text-align: right; }

.ask { background: var(--c-soft); border-radius: var(--r); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ask .pic { width: 46px; height: 46px; }
.ask h4 { margin-bottom: 4px; }
.ask p { font-size: .96rem; color: var(--ink-2); }
@media (max-width: 940px) { .week { grid-template-columns: 1fr; } .week-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .week-side { grid-template-columns: 1fr; } }

.polaroid { margin: 0; padding: 10px 10px 4px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 10px; box-shadow: var(--block); transform: rotate(1.8deg); }
.polaroid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.polaroid figcaption { text-align: center; padding: 10px 0 6px; font-size: 1.5rem; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.person { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; align-content: start; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); }
.avatar { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--c-soft); color: var(--c-deep); border: var(--bw) solid var(--line); font: 800 1.6rem/1 var(--font-display); padding-top: .12em; }
.avatar img { position: absolute; right: -8px; bottom: -6px; width: 34px; }
.person h3 { font-size: 1.22rem; }
.person .role { font-size: .9rem; font-weight: 700; color: var(--c-deep); margin-top: 2px; }
.person-links { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 12px; padding-top: 14px; border-top: 2px dashed var(--hair); font-size: .95rem; }
.person-links a { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.person-links a:hover { text-decoration: underline; }
.person-links .ico { color: var(--c-deep); }
@media (max-width: 940px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }

/* Gallery teaser: photos cut into different shapes */
.shots { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(100px, 13vw, 176px); gap: 16px; }
.shot { position: relative; overflow: hidden; border: var(--bw) solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); display: block; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { transform: scale(1.03) rotate(-1.2deg); z-index: 2; }
.shot--a { grid-column: span 5; grid-row: span 2; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.shot--b { grid-column: span 4; }
.shot--c { grid-column: span 3; border-radius: 50%; aspect-ratio: 1; justify-self: center; height: 100%; }
.shot--d { grid-column: span 3; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 90px; }
.shot--e { grid-column: span 4; border-radius: 90px var(--r-lg) var(--r-lg) var(--r-lg); }
.shot--more { grid-column: span 12; display: none; }
.shot-count { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; background: rgba(43, 27, 20, .62); color: #fff; font: 800 1.7rem/1 var(--font-display); text-align: center; }
.shot-count small { font: 600 .9rem/1.3 var(--font-body); margin-top: 6px; }
@media (max-width: 760px) {
    .shots { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 26vw; gap: 12px; }
    .shot--a { grid-column: span 6; grid-row: span 2; }
    .shot--b, .shot--c, .shot--d, .shot--e { grid-column: span 3; border-radius: var(--r-lg); aspect-ratio: auto; justify-self: stretch; }
}

/* What to bring */
.bring { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bring li { background: var(--surface); border-radius: var(--r); padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bring .tag-ico { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 8px; background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: 20px; transform: rotate(-4deg); }
.bring li:nth-child(even) .tag-ico { transform: rotate(4deg); }
.bring b { font: 700 1.08rem/1.2 var(--font-display); }
.bring span { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 1100px) { .bring { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bring { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.docs li { display: grid; }
.doc { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 24px; box-shadow: var(--block); }
.doc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--c-soft, var(--red-soft)); color: var(--c-deep, var(--red-deep)); border: var(--bw) solid var(--line); }
.doc b { display: block; line-height: 1.25; }
.doc small { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.doc > .ico { color: var(--ink-3); }

/* ---------- Enrolment page ---------- */

.date-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.date-card { padding: 22px 24px 24px; background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--block); }
.date-card:nth-child(1) { transform: rotate(-1.4deg); }
.date-card:nth-child(3) { transform: rotate(1.4deg); }
.date-card small { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c-deep); }
.date-card b { display: block; font: 800 clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem)/1.1 var(--font-display); margin: 8px 0 8px; }
.date-card p { font-size: .96rem; color: var(--ink-2); }
@media (max-width: 860px) { .date-cards { grid-template-columns: 1fr; } .date-card { transform: none !important; } }

.steps { position: relative; display: grid; gap: 18px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; border-left: 3px dashed var(--line); opacity: .28; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; counter-increment: step; }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: var(--on-fill); border: var(--bw) solid var(--line); box-shadow: var(--block); font: 800 1.7rem/1 var(--font-display); padding-top: .12em; }
.step-n::before { content: counter(step); }
.step-body { background: var(--surface); border-radius: var(--r); padding: 18px 22px 20px; }
.step-body .pill { float: right; margin: 0 0 6px 12px; }
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 520px) { .step { grid-template-columns: 48px 1fr; gap: 12px; } .step-n { width: 48px; height: 48px; font-size: 1.3rem; } .steps::before { left: 23px; } .step-body .pill { float: none; margin: 0 0 8px; } }

.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.checklist i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--on-fill); border: var(--bw) solid var(--line); }
.checklist i .ico { width: 18px; height: 18px; stroke-width: 3; }
.checklist b { display: block; }
.checklist span { font-size: .95rem; color: var(--ink-2); }

.criteria { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 1rem; }
.criteria th, .criteria td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 2px dashed var(--hair); }
.criteria thead th { background: var(--c-soft); border-top: 0; font: 700 1rem/1.2 var(--font-display); }
.criteria td:last-child, .criteria th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.criteria .pts { display: inline-grid; place-items: center; min-width: 2.4em; padding: .15em .55em; border-radius: 999px; background: var(--c); color: var(--on-fill); font: 800 1rem/1.3 var(--font-display); }

.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price { padding: 24px; background: var(--surface); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.price .tag-ico { display: grid; place-items: center; width: 62px; height: 62px; background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: 18px; transform: rotate(-4deg); margin-bottom: 10px; }
.price b { font: 800 2rem/1 var(--font-display); }
.price b small { font: 600 .95rem/1 var(--font-body); color: var(--ink-3); }
.price p { font-size: .94rem; color: var(--ink-2); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 24px; box-shadow: 0 4px 0 0 var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.faq details[open] { box-shadow: 0 0 0 0 var(--shadow); transform: translateY(4px); background: var(--c-soft, var(--yellow-soft)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 22px; cursor: pointer; list-style: none; font: 700 1.14rem/1.25 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--line); transition: transform .2s ease, background-color .15s ease; }
.faq details[open] summary i { transform: rotate(180deg); background: var(--c, var(--yellow)); color: var(--on-fill); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); max-width: 62em; }

/* ---------- Menu page ---------- */

.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 999px; box-shadow: 0 4px 0 0 var(--shadow); }
.tabs button { padding: .55em 1.1em; border: 0; border-radius: 999px; background: none; font-weight: 700; cursor: pointer; }
.tabs button { white-space: nowrap; }
@media (max-width: 480px) { .tabs button .muted { display: none; } }
.tabs button:hover { background: var(--paper-2); }
.tabs button[aria-selected="true"] { background: var(--c, var(--yellow)); color: var(--on-fill); }
.tabs button[aria-selected="true"] .muted { color: inherit; opacity: .75; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }

.menu-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.menu-day { padding: 0; overflow: hidden; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); }
.menu-day.is-today { box-shadow: var(--block-lg); transform: translateY(-6px); }
.menu-day header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 18px 12px; background: var(--c-soft); border-bottom: var(--bw) solid var(--line); }
.menu-day.is-today header { background: var(--c); color: var(--on-fill); }
.menu-day header b { font: 800 1.25rem/1 var(--font-display); padding-top: .12em; }
.menu-day header span { font-size: .88rem; font-weight: 700; }
.menu-day ul { padding: 4px 18px 14px; }
.menu-day li { padding: 12px 0; border-top: 2px dashed var(--hair); font-size: .96rem; line-height: 1.4; }
.menu-day li:first-child { border-top: 0; }
.menu-day small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.al { display: inline-flex; gap: 3px; margin-left: 2px; vertical-align: 1px; }
.al i { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 700 .72rem/1 var(--font-body); font-style: normal; }
.menu-closed { padding: 28px 18px; text-align: center; color: var(--ink-2); display: grid; justify-items: center; gap: 8px; }
@media (max-width: 1180px) { .menu-week { grid-template-columns: repeat(3, minmax(0, 1fr)); } .menu-day.is-today { transform: none; } }
@media (max-width: 760px) { .menu-week { grid-template-columns: 1fr; } }

.allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; font-size: .93rem; }
.allergens li { display: flex; align-items: center; gap: .6em; }
.allergens i { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font: 800 .8rem/1 var(--font-display); font-style: normal; padding-top: .1em; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .subnav, .hills, .site-footer, .toolbar .btn { display: none !important; }
    body { background: #fff; }
    .block, .menu-day, .btn { box-shadow: none !important; }
}
