/* M2b.4 (D20): the showcase ribbon (src/components/ShowcaseRibbon.astro), a slim full-width strip above the header in
   the footer pair (--color-footer-bg / --color-footer-text), which check.sh holds at the text minimum (4.5:1) in every
   palette; a "colors" theme falls back to base and bg, like the footer. Linked only in a site.json "showcase" build. */
.showcase-ribbon { margin: 0; padding: 0.375rem 1rem; background: var(--color-footer-bg, var(--color-base));
  color: var(--color-footer-text, var(--color-bg)); font-size: 0.875rem; font-weight: 600; line-height: 1.4; text-align: center; }
.showcase-ribbon a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* M2b.4 step 2 (D20): theme.json "style" tokens. src/layouts/Page.astro sets data-hero, data-cards, data-headings,
   data-gallery (and, M2b.4 polish D23, data-header, data-footer, data-hero-edge, data-eyebrow) on <html> and links this
   file only when theme.json has "style"; the asset hook in astro.config.mjs removes it from every other dist/.
   Unlayered, so it wins over the Tailwind layers of global.css. Only kit classes are targeted: .section-hero /
   .hero-grid, .card, .card-list, h1-h3, .eyebrow, and a gallery is the .card-list whose items hold a <figure>.
   Text on a coloured panel uses the footer pair (--color-footer-bg/-text), which check.sh holds at >= 4.5:1 in every
   palette. Review 2026-11-03 chunks 1-2: the overlay panel is opaque (M2), the title accent, the outline button and
   the focus ring follow the panel's text colour (M3), and the hero rules leave a leaking-tap hero alone (L4). */

/* ---------- Hero layouts (never a hero with the leaking tap: .hero-has-tap) ---------- */
[data-hero] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child):where(img, .img-placeholder, .img-sample) { border-radius: var(--radius); }
[data-hero] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child):is(img, .img-sample) { display: block; width: 100%; object-fit: cover; }
[data-hero] .section-hero:not(.hero-has-tap) .hero-grid > .img-sample > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* split: text and photo side by side from md, the photo a little narrower. */
@media (min-width: 768px) {
  [data-hero="split"] .section-hero .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
}

/* overlay: phone first the photo across the width with the text below it on the page colour (no box over the photo);
   from md the photo fills the hero and the text sits on an opaque panel of the footer pair in the middle of it. An
   overlay hero without a photo is a plain hero (review L5). */
[data-hero="overlay"] .section-hero:not(.hero-has-tap) { padding-block: 0; }
[data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid:has(> :nth-child(2)) { max-width: none; padding-inline: 0; grid-template-columns: 1fr; gap: 0; }
[data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { order: -1; aspect-ratio: 4 / 3; height: auto; border-radius: 0; }
[data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) { padding: 1.5rem 1rem 2rem; }
@media (min-width: 768px) {
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > * { grid-area: 1 / 1; }
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { aspect-ratio: auto; height: 100%; min-height: 30rem; }
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) { position: relative; z-index: 1;
    align-self: center; justify-self: center; margin: 3rem 1.5rem; max-width: 38rem; padding: 2rem 2.25rem; text-align: center;
    border-radius: var(--radius); background: var(--color-footer-bg, var(--color-base)); color: var(--color-footer-text, var(--color-bg)); }
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) :is(.cta-row, .badges) { justify-content: center; }
}
@media (min-width: 1024px) {
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { min-height: 36rem; }
}

/* bleed (M2b.4 polish): the text on the page colour at the left, the photo running to the right edge of the window over
   the full hero height with a soft fade into the page; phone first the text, then the photo across the width. */
[data-hero="bleed"] .section-hero:not(.hero-has-tap) { padding-block: 0; }
[data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid { max-width: none; padding-inline: 0; gap: 0; }
[data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child { padding: 2rem 1rem 1.5rem; }
[data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { aspect-ratio: 4 / 3; border-radius: 0; }
@media (min-width: 768px) {
  [data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; }
  [data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child { align-self: center;
    padding: 4rem 2rem 5rem max(2rem, calc((100vw - 72rem) / 2 + 2.5rem)); }
  [data-hero="bleed"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { aspect-ratio: auto; height: 100%; min-height: 30rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 22%); }
}

/* stacked: text first, then a wide photo across the whole content width. */
[data-hero="stacked"] .section-hero .hero-grid { grid-template-columns: 1fr; text-align: center; }
[data-hero="stacked"] .section-hero .hero-grid > :first-child { max-width: 46rem; margin-inline: auto; }
[data-hero="stacked"] .section-hero .cta-row, [data-hero="stacked"] .section-hero .badges { justify-content: center; }
[data-hero="stacked"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { aspect-ratio: 21 / 9; height: auto; }

/* framed: an arched photo inside a thin accent frame. */
[data-hero="framed"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { aspect-ratio: 4 / 5; max-width: 26rem; justify-self: center;
  border-radius: 999px 999px var(--radius) var(--radius); outline: 2px solid var(--color-accent); outline-offset: 0.6rem; }

/* collage: the photo tilted on an accent block. */
[data-hero="collage"] .section-hero:not(.hero-has-tap) .hero-grid > :last-child:not(:first-child) { transform: rotate(-2.5deg); box-shadow: 1rem 1rem 0 var(--color-accent);
  margin: 0.5rem 1.5rem 1.5rem 0.5rem; }

/* block: a plain, bold coloured block; the hero renders no photo (review L5). */
[data-hero="block"] .section-hero { background: var(--color-footer-bg, var(--color-base)); color: var(--color-footer-text, var(--color-bg)); }
[data-hero="block"] .section-hero :is(h1, .lead) { color: inherit; }
[data-hero="block"] .section-hero h1 { font-size: clamp(2rem, 7vw, 3.75rem); font-weight: 900; }
[data-hero="block"] .section-hero .hero-grid { grid-template-columns: 1fr; }

/* overlay panel and block: the text stands on the footer pair, so the title accent, eyebrow, outline button and focus ring
   take that text colour (review M3), and the badges keep the page text colour on their own light fill. */
@media (min-width: 768px) {
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) :is(h1, .lead, .eyebrow, .hero-title-accent, a:not(.btn)) { color: inherit; }
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) .btn-secondary { color: inherit; border-color: currentColor; background: transparent; }
  [data-hero="overlay"] .section-hero:not(.hero-has-tap) .hero-grid > :first-child:not(:last-child) :focus-visible { outline-color: currentColor;
    box-shadow: 0 0 0 5px var(--color-footer-bg, var(--color-base)); }
}
[data-hero="block"] .section-hero :is(.eyebrow, .hero-title-accent, a:not(.btn)) { color: inherit; }
[data-hero="block"] .section-hero .hero-title-accent { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
[data-hero="block"] .section-hero .btn-secondary { color: inherit; border-color: currentColor; background: transparent; }
[data-hero="block"] .section-hero :focus-visible { outline-color: currentColor; box-shadow: 0 0 0 5px var(--color-footer-bg, var(--color-base)); }
:is([data-hero="overlay"], [data-hero="block"]) .section-hero .badges li { color: var(--color-text); }

/* ---------- Hero edge (M2b.4 polish): an inline SVG wave or curve in the page colour over the lower edge ---------- */
[data-hero-edge] .section-hero { position: relative; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; display: block; width: 100%;
  height: clamp(1.5rem, 5vw, 4.5rem); pointer-events: none; }
.hero-edge path { fill: var(--color-bg); }

/* ---------- Card shapes ---------- */
[data-cards] .card { --card-pad: 1.25rem; }
[data-cards] .card :is(img, .img-placeholder, .img-sample) { border-radius: calc(var(--radius) * 0.6); }
[data-cards="soft"] .card { border-radius: calc(var(--radius) * 1.5); box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.06); }
[data-cards="pill"] .card { --card-pad: 1.5rem; border-radius: 2rem; text-align: center; padding: 1.5rem; }
[data-cards="pill"] .card :is(img, .img-placeholder, .img-sample) { border-radius: 1.5rem; }
[data-cards="outline"] .card { background: transparent; border: 2px solid var(--color-base); border-radius: 0; }
[data-cards="outline"] .card :is(img, .img-placeholder, .img-sample) { border-radius: 0; }
[data-cards="angled"] .card { border-radius: 0; border-left: 0.3rem solid var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%); }
[data-cards="angled"] .card :is(img, .img-placeholder, .img-sample) { border-radius: 0; }
[data-cards="flat"] .card { background: transparent; border: 1px solid color-mix(in srgb, var(--color-muted) 45%, transparent); }
[data-cards="shadow"] .card { background: var(--color-bg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0.75rem 1.75rem rgb(0 0 0 / 0.1); }
[data-cards] .card > h3 { margin-block: 0.25rem 0.375rem; }
[data-cards] .card > p { margin-block: 0.25rem; }

/* M2b.4 polish: a card that starts with its photo shows it edge to edge across the top (phone: at the left). */
[data-cards] .card:has(> :first-child:is(img, .img-sample)) { padding-top: 0; overflow: hidden; }
[data-cards] .card > :first-child:is(img, .img-sample) { display: block; width: calc(100% + 2 * var(--card-pad)); max-width: none;
  margin: 0 calc(-1 * var(--card-pad)) 0.875rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
[data-cards] .card > .img-sample:first-child > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 47.99rem) {
  [data-cards] .card-list > .card:has(> img:first-child) { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1rem; row-gap: 0; align-content: center; padding: 0 1rem 0 0; }
  [data-cards] .card-list > .card > img:first-child { grid-row: span 6; align-self: stretch; width: 100%; height: 100%;
    min-height: 6.5rem; margin: 0; aspect-ratio: auto; }
  [data-cards] .card-list > .card:has(> img:first-child) > :nth-child(2) { margin-top: 0.75rem; }
  [data-cards] .card-list > .card:has(> img:first-child) > :last-child { margin-bottom: 0.75rem; }
  /* 0.5.11: the text column beside the photo is about 150px wide at 320px; a long word ("Entspannungsmassage", Varna de
     2026-11-10) overflowed it. Hyphenate by the page language; break a word only when it still does not fit. */
  [data-cards] .card-list > .card:has(> img:first-child) > p { hyphens: auto; overflow-wrap: break-word; }
}

/* M2b.4 polish: the card grid follows the number of cards (3 cards: 3 columns from md; 2: 2; 6 or 9: 3 from lg). */
@media (min-width: 768px) {
  [data-cards] .card-list:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  [data-cards] .card-list:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-cards] .card-list:is(:has(> li:nth-child(6):last-child), :has(> li:nth-child(9):last-child)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 0.3.3 (kit-limits A8, G4): no row of cards ends with one card alone. Every card list that is not a gallery (services,
   trust, steps, reviews): from 768 px an odd count of 5 or more takes 3 columns (5 = 3 + 2, 9 = 3 + 3 + 3, 11 = 3 + 3 + 3
   + 2), an even count 2 (4 = 2 + 2); from 1024 px 4 or more cards take 4 columns (4, 7 = 4 + 3, 8, 10 = 4 + 4 + 2, 11),
   a multiple of 3 and 5, 9, 13 take 3 (6 = 3 + 3, 12 = 3 x 4, 5 = 3 + 2). Up to 12 cards no row from 1024 px holds a
   single card (13 cards leave one); below 768 px one column, as before. Packages keep their own grid (at most 4); the
   classic look's reviews (a column beside a photo) keep theirs. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  [data-cards] .card-list:not(:has(> li > figure), .look-classic .reviews-list):has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-cards] .card-list:not(:has(> li > figure), .look-classic .reviews-list):has(> li:nth-child(2n+5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  [data-cards] .card-list:not(:has(> li > figure), .look-classic .reviews-list):has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-cards] .card-list:not(:has(> li > figure), .look-classic .reviews-list):is(:has(> li:nth-child(3n):last-child), :has(> li:nth-child(4n+5):last-child)) {
    grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Heading styles ---------- */
[data-headings="upper"] :is(h1, h2, h3) { text-transform: uppercase; letter-spacing: 0.04em; }
[data-headings="italic"] :is(h1, h2) { font-style: italic; }
[data-headings="light"] :is(h1, h2) { font-weight: 300; letter-spacing: -0.01em; }
[data-headings="light"] h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
/* bold (M2b.4 polish): heavy display headings, as a bold serif or a rounded sans. */
[data-headings="bold"] :is(h1, h2, h3) { font-weight: 700; letter-spacing: -0.01em; }
[data-headings="bold"] h1 { font-weight: 800; font-size: clamp(2.25rem, 6.5vw, 3.75rem); line-height: 1.08; }
[data-headings="bold"] h2 { font-size: clamp(1.625rem, 3.6vw, 2.375rem); margin-block: 0 0.5rem; }
[data-headings="bold"] h3 { font-size: 1.3rem; }
[data-headings="bold"] .section-hero h1 + .lead { margin-top: 1rem; }

/* ---------- Eyebrow (M2b.4 polish): the short line above a title ---------- */
[data-eyebrow] .eyebrow { margin: 0 0 0.25rem; color: var(--color-base); }
[data-eyebrow] .eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
/* script: the accent (handwritten) font from 768 px. A phone keeps the small capitals, so it never downloads the accent
   font (Caveat is about 150 KB for latin + cyrillic; it cost the café demo 16 points of Lighthouse mobile performance). */
@media (min-width: 768px) {
  [data-eyebrow="script"] .eyebrow { font-family: var(--font-accent, inherit); font-size: 1.875rem; font-weight: 600; line-height: 1.1;
    letter-spacing: 0; text-transform: none; }
}

/* ---------- Gallery variants ---------- */
[data-gallery="masonry"] .card-list:has(> li > figure) { display: block; columns: 1; column-gap: 1rem; }
[data-gallery="masonry"] .card-list:has(> li > figure) > li { break-inside: avoid; margin-bottom: 1rem; }
@media (min-width: 768px) { [data-gallery="masonry"] .card-list:has(> li > figure) { columns: 2; } }
@media (min-width: 1024px) { [data-gallery="masonry"] .card-list:has(> li > figure) { columns: 3; } }
/* strip: tight tiles in one row from md (two columns on a phone), no gap between photos and no scrolling, so the page
   never scrolls sideways and check.sh finds no clipped element. */
[data-gallery="strip"] .card-list:has(> li > figure) { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
@media (min-width: 768px) {
  [data-gallery="strip"] .card-list:has(> li > figure) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
[data-gallery="strip"] .card-list:has(> li > figure) :is(img, .img-placeholder) { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; }
[data-gallery]:not([data-gallery="strip"]) .card-list:has(> li > figure) img { border-radius: var(--radius); }
/* grid (M2b.4 polish): even tiles, three across (also on a phone, as small tiles) when there are 3, 6 or 9 photos. */
[data-gallery="grid"] .card-list:has(> li > figure) img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
[data-gallery="grid"] .card-list:is(:has(> li:nth-child(3):last-child), :has(> li:nth-child(6):last-child), :has(> li:nth-child(9):last-child)):has(> li > figure) {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 768px) {
  [data-gallery="grid"] .card-list:is(:has(> li:nth-child(3):last-child), :has(> li:nth-child(6):last-child), :has(> li:nth-child(9):last-child)):has(> li > figure) { gap: 1rem; }
}

/* M2b.4 polish (D23): one stylesheet for the polish parts, so a page loads one file in place of four (render-blocking
   requests cost Lighthouse performance on a slow phone connection). Linked by src/layouts/Page.astro and kept in dist/
   by astro.config.mjs only when one part is used (src/lib/polish.ts usesPolish): the header and footer navigation,
   section bands, the location section, sample reviews. Each part below says what it styles. */

/* M2b.4 polish (D23): theme.json style.header / style.footer "nav" in the default look (src/layouts/Page.astro).
   Header: the section links inline from 1024 px; below that a menu button (a <details> element, no script) after the
   call button that opens the same links under the header. Footer: name, links, phone and profiles. Linked and kept in
   dist/ only with one of the two tokens (src/lib/polish.ts). */
.site-header:has(.head-nav) { position: sticky; }
@media (min-width: 768px) { .site-header:has(.head-nav) { position: relative; } }
.site-header:has(.head-nav) .site-name { font-family: var(--font-heading, inherit); font-size: 1.25rem; line-height: 1.15; }
.head-nav { order: 5; }
.head-nav-list { display: none; }
.head-menu > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: var(--radius); color: var(--color-base); cursor: pointer; list-style: none; }
.head-menu > summary::-webkit-details-marker { display: none; }
.head-menu[open] > summary { background: color-mix(in srgb, var(--color-base) 12%, transparent); }
.head-menu:not([open]) > ul { display: none; }
.head-menu > ul { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 0.5rem 1rem 1rem; list-style: none;
  background: var(--color-bg); border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 0.08); }
.head-menu > ul a { display: flex; align-items: center; min-height: 44px; padding-inline: 0.5rem; font-weight: 600; text-decoration: none; }
@media (min-width: 1024px) {
  .head-nav { order: 0; margin-inline: auto; }
  .head-menu { display: none; }
  .head-nav-list { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin: 0; padding: 0; list-style: none; }
  .head-nav-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); font-weight: 600;
    font-size: 0.9375rem; text-decoration: none; }
  .head-nav-list a:hover { color: var(--color-base); text-decoration: underline; }
}

/* 0.5.1: content.nav. The current page is underlined in the header list and stressed in the menu; the classic look
   gets the same menu button below 1024 px (its .site-nav shows the links from 1024 px), after the call button. */
.head-nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.head-menu > ul a[aria-current="page"] { color: var(--color-base); text-decoration: underline; }
.footer-nav-links a[aria-current="page"] { font-weight: 700; }
.site-header:has(.classic-menu) { position: sticky; }
.classic-menu { order: 5; }
@media (min-width: 768px) { .site-header:has(.classic-menu) { position: relative; } }
@media (min-width: 1024px) { .classic-menu { display: none; } }

.site-footer-nav { padding-block: 2.5rem 2rem; }
.footer-nav-grid { display: grid; gap: 1rem; }
.site-footer-nav .footer-nav-name { color: inherit; font-family: var(--font-heading, inherit); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.footer-nav-links ul, .footer-nav-contact { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-nav-links a, .footer-nav-contact :is(a, span) { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.footer-nav-meta { padding-top: 1rem; font-size: 0.875rem; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.footer-nav-meta p { margin: 0.25rem 0; }
@media (min-width: 1024px) {
  .footer-nav-grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 2.5rem; }
  .footer-nav-links ul { justify-content: center; }
  .footer-nav-contact { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-nav-contact :is(a, span) { min-height: 36px; }
  .footer-nav-meta { grid-column: 1 / -1; }
}

/* M2b.4 polish (D23): content "band" draws a section as a full-width coloured band (src/pages/index.astro wraps it in
   div.band). Linked and kept in dist/ only when a section has "band" (src/lib/polish.ts). Every pair is one that
   check.sh holds at >= 4.5:1: accent = accentText on accent; dark = the footer pair; soft = text, muted and base on
   surface. A "colors" theme (no accentText, surface or footer pair) falls back to the same roles as the footer. */
.band { padding-block: 0.5rem; }
.band + .band { margin-top: 0; }
/* A band as the last section meets the footer without a strip of page colour between them. */
body:has(main > .band:last-child) .site-footer { margin-top: 0; }
.band-accent { background: var(--color-accent); color: var(--color-accent-text, var(--color-text)); }
.band-dark { background: var(--color-footer-bg, var(--color-base)); color: var(--color-footer-text, var(--color-bg)); }
.band-soft { background: var(--color-surface, color-mix(in srgb, var(--color-base) 5%, var(--color-bg))); }
/* 0.3.2 (kit-limits R4): the band colours stop at a card. A card (reviews, services, packages) in an accent or dark band
   keeps the page pair: the page colour as its fill, and the page text, muted and base colours inside, the pairs
   contrast.mjs checks; before, the card kept its light fill while its text took the light band text (1.22:1). The same
   for the sample reviews note (its own surface pill). The menu
   price and line take the band text as well. scripts/lib/band-contrast.mjs measures every text in a band (check.sh). */
:is(.band-accent, .band-dark) :is(h1, h2, h3, p, li, dt, dd, .eyebrow, .lead, .muted, a:not(.btn), .menu-price, .menu-desc, .menu-group-note,
  .menu-tab):not(:where(.card, .card *, .review-sample-note)) { color: inherit; }
.band:is(.band-accent, .band-dark) .card { background: var(--color-bg); color: var(--color-text); }
.band-accent .card .btn-primary { background: var(--color-accent); color: var(--color-accent-text, var(--color-text));
  border-color: var(--color-accent); }
:is(.band-accent, .band-dark) .btn-secondary { color: inherit; border-color: currentColor; background: transparent; }
.band-accent .btn-primary { background: var(--color-accent-text, var(--color-bg)); color: var(--color-accent);
  border-color: var(--color-accent-text, var(--color-bg)); }
.band-accent :focus-visible { outline-color: currentColor; box-shadow: 0 0 0 5px var(--color-accent); }
.band-dark :focus-visible { outline-color: currentColor; box-shadow: 0 0 0 5px var(--color-footer-bg, var(--color-base)); }

/* A contact section in a band: the title and text at the left, the buttons at the right from md (a call-to-action band). */
@media (min-width: 768px) {
  .band .section-contact > .container-kit { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: center; }
  .band .section-contact > .container-kit > :not(.cta-row) { grid-column: 1; margin-block: 0.25rem; }
  .band .section-contact > .container-kit > .cta-row { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* M2b.4 polish (D23): the location section (src/sections/location/): opening hours and "find us" side by side, with an
   optional stylised map tile. Linked and kept in dist/ only when a location section renders (src/lib/polish.ts).
   Text uses text, muted and base on the page colour (checked by check.sh); the icons and the tile are decoration. */
.location-grid { display: grid; gap: 2rem; }
.location-grid h2 { display: flex; align-items: center; gap: 0.5rem; margin-top: 0; font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
.location-icon { flex: none; color: var(--color-accent); }
.hours-list { display: grid; gap: 0.375rem; margin: 1rem 0 0; }
.hours-row { display: grid; grid-template-columns: minmax(7.5rem, max-content) minmax(0, 1fr); gap: 1.5rem; }
.hours-row dd { margin: 0; font-weight: 600; }
.location-address { font-weight: 600; }
.location-map-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.location-tile { display: block; width: 100%; max-width: 30rem; height: auto; }
.tile-land { fill: color-mix(in srgb, var(--color-base) 9%, var(--color-surface, var(--color-bg))); }
.tile-water { fill: #b9d9e8; }
/* 0.3.1: on a dark default (data-scheme="dark") the sea is a deep blue mixed into the page colour, not the light blue. */
[data-scheme="dark"] .tile-water { fill: color-mix(in srgb, #3f7fa6 35%, var(--color-bg)); }
.tile-park { fill: color-mix(in srgb, #8fb46e 40%, var(--color-surface, var(--color-bg))); }
.tile-road, .tile-street { fill: none; stroke: var(--color-surface, #ffffff); stroke-linecap: round; }
.tile-road { stroke-width: 7; }
.tile-street { stroke-width: 3.5; }
.tile-pin { fill: var(--color-accent); }
.tile-pin-dot { fill: var(--color-accent-text, #ffffff); }
@media (min-width: 768px) {
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-hours { padding-inline-end: 2rem; border-inline-end: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent); }
  .location-has-map .location-tile { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .location-has-map .location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
  .location-has-map .location-tile { grid-column: auto; }
}

/* M2b.4 polish (D23): a reviews section with "sample": true (showcase sites only, src/lib/content.ts): the visible note
   that the quotes are examples, and quote cards with a quote mark and the stars. Linked and kept in dist/ only then. */
.review-sample-note { display: inline-block; margin: 0.25rem 0 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--color-surface, var(--color-bg)); color: var(--color-muted); font-size: 0.875rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent); }
.reviews-sample .review { display: flex; flex-direction: column; }
.reviews-sample .review blockquote { margin: 0; }
.reviews-sample .review blockquote::before { content: "\201C"; display: block; height: 1.75rem; color: var(--color-base);
  font-family: var(--font-heading, inherit); font-size: 3rem; font-weight: 700; line-height: 1; }
.reviews-sample .review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: auto 0 0; padding-top: 0.5rem; }
.reviews-sample .review-stars { color: var(--color-accent); letter-spacing: 0.15em; }
.reviews-sample .review-name { font-weight: 600; }
.reviews-sample .review-place { color: var(--color-muted); }

/* SK-M7.3f: the company line in the footer of every look (legal name, address, KvK, btw-id; src/layouts/Page.astro) and
   the controller block of the privacy page (src/pages/privacy.astro). Linked, and kept in dist/ by astro.config.mjs,
   only when business sets company data (src/lib/company.ts). Narrow screens: one item per line; from 640 px one line
   with a middle dot between the items, wrapping between items only. No item breaks inside a word (the btw-id is one).
   The classic footer shows the line as a full-width bottom row under a thin divider in the footer pair. */
.company-line { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; line-height: 1.6; }
.company-line li { overflow-wrap: normal; word-break: normal; }
.look-classic .footer-grid > .company-line { grid-column: 1 / -1; justify-self: stretch; margin: 0; padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--color-footer-text, var(--color-bg)) 22%, transparent); }
@media (min-width: 640px) {
  .company-line { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
  .company-line li + li::before { content: "\00B7"; margin-right: 0.5rem; }
}
.company-address { display: flex; flex-direction: column; font-style: normal; }

/* M2b.4 step 6 (D20): the language switch in the header (src/layouts/Page.astro) of a site with site.json "altLangs".
   Linked and kept in dist/ only then. The active language is marked with aria-current and not underlined. Phone first:
   compact (32 px wide, 40 px high); from md the full 44 px target. */
.lang-switch { display: flex; flex-shrink: 0; margin-inline-start: auto; font-size: 0.875rem; font-weight: 700; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; min-height: 2.5rem;
  padding-inline: 0.25rem; border-radius: var(--radius, 0.5rem); color: var(--color-base); text-decoration: underline;
  text-underline-offset: 0.2em; }
.lang-switch a[aria-current] { text-decoration: none; color: var(--color-text); background: color-mix(in srgb, var(--color-base) 12%, transparent); }
/* Below md the header has no room for name, switch and number: the call button after the switch shows its icon only
   (its aria-label keeps the number; the hero and contact buttons show it in full). check.sh overflow 320 px holds. */
@media (max-width: 47.99rem) {
  .lang-switch + a { font-size: 0; gap: 0; }
}
@media (min-width: 48rem) {
  .lang-switch { gap: 0.25rem; }
  .lang-switch a { min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.5rem; }
}
/* 0.5.0: more than three languages: one button (the current code and a chevron) that opens a list under it, aligned to
   its end edge so it never leaves the screen at 320 px. A closed list is display: none (check.sh clipping, LESSONS). */
.lang-menu { position: relative; }
.lang-menu details { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.5rem; padding-inline: 0.5rem;
  border-radius: var(--radius, 0.5rem); color: var(--color-text); cursor: pointer; list-style: none;
  background: color-mix(in srgb, var(--color-base) 12%, transparent); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 0.4em; height: 0.4em; border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); }
.lang-menu details[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
.lang-menu ul { display: none; }
.lang-menu details[open] ul { display: block; position: absolute; inset-inline-end: 0; top: calc(100% + 0.25rem); z-index: 60;
  min-width: 11rem; max-width: calc(100vw - 2rem); margin: 0; padding: 0.25rem; list-style: none;
  background: var(--color-bg); border: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
  border-radius: var(--radius, 0.5rem); box-shadow: 0 8px 24px rgb(0 0 0 / 0.15); }
.lang-menu li a { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 2.75rem;
  padding-inline: 0.75rem; white-space: nowrap; font-weight: 600; }
@media (min-width: 48rem) {
  .lang-menu summary { min-height: 2.75rem; padding-inline: 0.75rem; }
}

/* Kit 0.4.1: the header of a site.json profile "local" site in the default look (src/layouts/Page.astro). Linked and
   kept in dist/ only then (astro.config.mjs), so profile "plumber" (Marco) and the classic look are unchanged.
   Below md the call button shows its phone icon only, with or without a language switch: at 390 px the number wrapped
   over two lines ("+370 000 / 00000"). Its aria-label keeps the number; .btn keeps the 44 px target; the hero and
   contact buttons show the number in full. Without a language switch the button sits at the end, next to the menu
   button. The business name may wrap (two lines for a long name), one font step smaller on phones and one more below
   360 px; it stays centred in its 44 px row. */
@media (max-width: 47.99rem) {
  .site-header-inner > a[href^="tel:"] { font-size: 0; gap: 0; }
  .site-header-inner > .site-name ~ a[href^="tel:"]:not(.lang-switch + a) { margin-inline-start: auto; }
  .site-header .site-header-inner > .site-name:not(:has(> img)) { min-width: 0; font-size: 1.125rem; line-height: 1.15;
    overflow-wrap: break-word; }
}
@media (max-width: 22.49rem) {
  .site-header .site-header-inner > .site-name:not(:has(> img)) { font-size: 1rem; }
}

/* SK-M7.2: section "steps" (src/sections/steps/). Linked only when a steps section renders; the number badge is a CSS
   counter, so it always matches the order of the <ol>. */
.steps-list { counter-reset: step; }
.steps-item { counter-increment: step; }
.steps-item::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem;
  border-radius: 999px; font-weight: 700;
  background: var(--color-accent); color: var(--color-accent-text, var(--color-text));
}

/* M2b.4 chunk 3 (D20): price parts of the local sites. Linked by src/pages/index.astro and kept in dist/ by
   astro.config.mjs only when a services item has price/meta, a pricing section has variant "menu" or a packages
   section renders (src/lib/offers.ts). Phone first; md (768px) and lg (1024px) only add. */

/* ---------- services: meta line and price on a card ---------- */
.card-meta { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--color-muted); }
.card-price { margin: 0.75rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--color-base); }
.card-list > .card:has(.card-price) { display: flex; flex-direction: column; }
.card-list > .card:has(.card-price) > .card-price { margin-top: auto; padding-top: 0.75rem; }

/* ---------- pricing: row description in the price table ---------- */
.price-desc { display: block; font-size: 0.875rem; font-weight: 400; color: var(--color-muted); }

/* ---------- pricing variant "menu": label, dotted leader, price ---------- */
.menu-list { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 1rem; }
.menu-row { margin: 0; }
.menu-line { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; font-weight: 600; }
.menu-label { min-width: 0; overflow-wrap: anywhere; }
.menu-leader { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted color-mix(in srgb, var(--color-muted) 60%, transparent); transform: translateY(-0.3em); }
.menu-price { white-space: nowrap; color: var(--color-base); }
.menu-desc { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--color-muted); max-width: 36rem; }
@media (min-width: 1024px) {
  .menu-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; row-gap: 1.25rem; }
}

/* ---------- kit 0.3.2 (kit-limits R1): pricing "groups", the menu categories as tabs ----------
   One radio button per category (visually hidden, still focusable: Tab reaches the checked one, the arrow keys move
   between them) with its label as the tab; the panel of the checked radio shows, the others are display: none (so a
   screen reader reads only the open category; every price stays in the HTML). Without this file every panel shows. */
.menu-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.menu-tab-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.menu-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0.375rem 1.125rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); color: var(--color-base); font-weight: 600; cursor: pointer; }
.menu-tab:hover { border-color: currentColor; }
.menu-tab-input:checked + .menu-tab { background: var(--color-base); border-color: var(--color-base); color: var(--color-bg); }
.menu-tab-input:focus-visible + .menu-tab { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.menu-panels { flex-basis: 100%; }
.menu-panel { display: none; }
.menu-tabs > .menu-tab-input:nth-of-type(1):checked ~ .menu-panels > .menu-panel:nth-child(1),
.menu-tabs > .menu-tab-input:nth-of-type(2):checked ~ .menu-panels > .menu-panel:nth-child(2),
.menu-tabs > .menu-tab-input:nth-of-type(3):checked ~ .menu-panels > .menu-panel:nth-child(3),
.menu-tabs > .menu-tab-input:nth-of-type(4):checked ~ .menu-panels > .menu-panel:nth-child(4),
.menu-tabs > .menu-tab-input:nth-of-type(5):checked ~ .menu-panels > .menu-panel:nth-child(5),
.menu-tabs > .menu-tab-input:nth-of-type(6):checked ~ .menu-panels > .menu-panel:nth-child(6) { display: block; }
.menu-group-note { margin: -0.25rem 0 0; font-size: 0.9rem; color: var(--color-muted); }

/* ---------- packages ---------- */
.package-list { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: 1rem; }
.package { position: relative; display: flex; flex-direction: column; gap: 0.5rem; border: 2px solid transparent; }
.package-highlight { border-color: var(--color-accent); box-shadow: 0 0.75rem 2rem -1rem color-mix(in srgb, var(--color-text) 35%, transparent); }
.package-badge { order: -1; align-self: flex-start; margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: var(--color-accent); color: var(--color-accent-text, var(--color-text)); }
.package-name { margin: 0; }
.package-price { margin: 0; font-size: 1.75rem; line-height: 1.2; color: var(--color-base); }
.package-period { font-size: 1rem; font-weight: 400; color: var(--color-muted); }
.package-text { margin: 0; color: var(--color-muted); }
.package-features { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.package-features li { display: flex; gap: 0.5rem; align-items: flex-start; }
.package-features svg { flex: none; margin-top: 0.2em; color: var(--color-base); }
.package-note { margin-top: 0.5rem; }
@media (min-width: 768px) {
  .package-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .packages-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .packages-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- M2b.4 polish (D23): a services card button ("See menu") ---------- */
.card-list > .card:has(.card-action) { display: flex; flex-direction: column; }
.card-action { margin: auto 0 0; padding-top: 0.875rem; }
.card-action .btn { padding: 0.5rem 1rem; font-size: 0.9375rem; }
/* Review 2026-11-03 chunks 3-4 L4: the separator between dish and price, read and copied but not shown (no box). */
.menu-sep { font-size: 0; }
