/* ==========================================================================
   Design tokens

   Every colour, face, measure and rhythm the rest of the stylesheet builds
   on. Loaded first, so nothing below has to define a fallback.
   ========================================================================== */

:root {
    /* colour */
    --textDarker:   #1e282d;
    --textDark:     rgb(38 50 56);
    --textMedium:   rgb(38 50 56 / 0.7);
    --borderMedium: rgb(38 50 56 / 0.2);
    --borderLight:  rgb(38 50 56 / 0.075);
    --light:        rgb(38 50 56 / 0.035);
    --page:         #fff;
    --accent:       #f4b500;
    --accentDarker: #e6ac00;
    --scrim:        rgb(0 0 0 / 0.32);

    /* type */
    --fontTitles: "Roboto", ui-sans-serif, system-ui, sans-serif;
    --fontBody:   "Roboto", ui-sans-serif, system-ui, sans-serif;

    /* measure */
    --measure-small:  40rem;
    --measure-medium: 60rem;
    --measure-wide:   84rem;
    --gutter:  clamp(1rem, 4vw, 3rem);
    --radius:  1rem;
    --radius-s: 0.4rem;

    /* rhythm */
    --brick-space:       clamp(3.5rem, 7vw, 5rem);
    --brick-space-tight: clamp(1.5rem, 3vw, 2rem);
    --flow:        1.7em;
}

/* Colour themes. `color_name` in data/settings.yaml sets it site-wide, a
   page's own `color_name` front matter overrides it. The palettes differ only
   in the accent, so this is two tokens rather than four stylesheets. */
:root[data-color="red"]    { --accent: #ec0f0f; --accentDarker: #e00606; }
:root[data-color="blue"]   { --accent: #00adef; --accentDarker: #009ad5; }
:root[data-color="green"]  { --accent: #5fb22d; --accentDarker: #4f9625; }
:root[data-color="yellow"] { --accent: #f4b500; --accentDarker: #e6ac00; }

/* Dadilje Zajedno: topla koraljna boja, dovoljno tamna za bijeli tekst na gumbima. */
:root[data-color="zajedno"] { --accent: #c2334d; --accentDarker: #a92a42; }
/* ==========================================================================
   Web fonts

   Roboto (400, 500, 700) za cijelu stranicu, latin + latin-ext (č, ć, đ, š, ž).
   Datoteke su iz @fontsource/roboto (SIL Open Font License 1.1).
   `font-display: swap` da se tekst vidi prije nego font stigne.
   ========================================================================== */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/roboto-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/roboto-latin-400-normal.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: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/roboto-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/roboto-latin-500-normal.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: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/roboto-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/roboto-latin-700-normal.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;
}
/* ==========================================================================
   Hugobricks — the shared core

   Written against the revised, landmark-based markup:

     header.siteheader   banner      preheader + logo + nav
     main#main           main        a stack of <section> bricks
     footer.sitefooter   contentinfo logo + nav + colophon

   Every brick is one `<section class="<brickname>">` holding one `.container`
   (`.small` 40rem, `.medium` 60rem, default 84rem). Bricks style the plain
   html that markdown produces — headings, paragraphs, lists, images — so a
   content section needs no wrapper classes of its own. Where a brick needs
   two columns, its partial has already split the media out into a `<figure>`.

   This file holds what every brick leans on. The rest of the stylesheet is
   split by what it styles, and concatenated in `site/styles.html`:

     variables.css         the design tokens
     fonts.css             the @font-face rules
     header.css            the banner
     footer.css            the footer
     sections/<brick>.css  one file per brick, named after its partial

   Media queries live beside the rules they modify, in whichever file that is.

   Contents
     1  Reset and base
     2  Typography
     3  Components: buttons, box, forms, lists, media, details, breadcrumbs,
           language switcher
     4  Section rhythm
     5  Shared brick scaffolding: the collection grid and the backdrop
   ========================================================================== */


/* ==========================================================================
   1  Reset and base
   ========================================================================== */

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

html {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
    scroll-behavior: smooth;
    scroll-padding-block-start: 8rem;
    -webkit-text-size-adjust: 100%;
}

/* The page is at least as tall as the viewport, and `main` takes whatever the
   banner and the footer leave over. Without the stretch a short page — the
   `/headers/` placeholder, `/404/`, a single-brick page — ends halfway down
   the screen with the footer floating above the fold.

   The skip link is absolutely positioned, and so is the banner whenever it is
   transparent or pinned, so each drops out of this flow by itself and the
   column stays banner / main / footer. `flex-basis: auto` keeps every section
   at its own height: main grows into the space that is left over rather than
   sharing it out, so the extra room shows as page background above the
   footer instead of stretching the last brick. */
body {
    background: var(--page);
    color: var(--textMedium);
    font-family: var(--fontBody);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

main { flex: 1 0 auto; }

/* Except when the last brick sticks to the footer. The slack would open up
   between the map and the footer, which is the one gap that brick exists to
   close, and there is no way to hand it to the top of the section instead
   without flexing `main` — which would flatten the margin the brick rhythm
   puts above it. A page that ends in a map is long enough not to need the
   stretch anyway. */
main:has(> section.stickstofooter:last-child) { flex-grow: 0; }

img, svg, video, audio, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
video, audio, iframe { width: 100%; }

/* `hidden` has to outrank every component below, or it stops meaning hidden.
   The ua sheet's own `[hidden]` loses to any author rule that sets `display`,
   and one class is all it takes to tie with an attribute and win on order —
   `.button` sets `inline-block`, and a hidden button stayed on the page. This
   is the case `!important` is for: `hidden` is a state the markup asserts, not
   a style a component gets a say in. */
[hidden] { display: none !important; }

a { color: var(--textMedium); }
a:focus-visible,
button:focus-visible,
:is(input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 0.15rem solid var(--accentDarker);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* The measure. Three widths, one rule. */
.container {
    inline-size: 100%;
    max-inline-size: var(--measure-wide);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container.small  { max-inline-size: var(--measure-small); }
.container.medium { max-inline-size: var(--measure-medium); }


/* ==========================================================================
   2  Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
h1, h2 { font-family: var(--fontTitles); color: var(--textDark); line-height: 1.1; }

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-block-end: 1.75rem; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-block: 3.5rem 1.25rem; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--textDark); margin-block: 3rem 0.4rem; }
h4 { font-size: 1.1rem; line-height: 1.4; color: var(--textMedium); margin-block: 1rem 0.2rem; }

:is(h1, h2, h3, h4):first-child { margin-block-start: 0; }
h2 + h3, h3 + h4 { margin-block-start: 0; }

/* Flow spacing is a property of content, not of chrome: the banner and the
   footer lay their lists out with flex gaps and must not inherit it.
   `:where()` keeps the specificity at `main` alone, so every override further
   down the file still wins. */
main :where(p, ul, ol, dl, blockquote, pre, figure, table, details, address, form) {
    margin-block-end: var(--flow);
}
:where(section) :last-child { margin-block-end: 0; }

ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-block-start: 0.15rem; }

strong, b { color: var(--textDark); font-weight: 600; }
address { font-style: normal; }

/* A rule across the column. `<hr>` is the obvious way to write one and the
   one way an author cannot: `section_map.html` splits a page into sections on
   its horizontal rules, so `---` in the markdown starts a new brick instead of
   drawing a line inside the one being written. A list of a single empty item
   is the way to ask for the line — `-` alone on its own line, which goldmark
   renders as `<ul><li></li></ul>`.

   `:only-child` is what keeps it from firing on a real list that happens to
   have a blank item in it; that one stays a list, blank item and all. The two
   selectors share the declarations so the drawn line and the written one
   cannot drift apart, and the list needs two resets on top: its indent, and
   the marker an empty `<li>` would otherwise still show. */
hr,
ul:has(> li:only-child:empty) { block-size: 1px; border: 0; background: var(--borderLight); margin-block: 3.5rem; }
ul:has(> li:only-child:empty) { padding: 0; list-style: none; }

blockquote {
    font-style: italic;
    border-inline-start: 0.25rem solid var(--borderMedium);
    padding-inline-start: 1.25rem;
}

pre {
    overflow: auto;
    background: var(--light);
    padding: 0.75rem 1rem;
    border: 0.1rem solid var(--borderLight);
    border-radius: 0.25rem;
    font-size: 0.95rem;
    white-space: pre-wrap;
}
:not(pre) > code {
    background: var(--light);
    padding: 0.15rem 0.3rem;
    border: 0.1rem solid var(--borderLight);
    border-radius: 0.25rem;
}

table { width: 100%; border-collapse: collapse; }
caption { text-align: start; color: var(--textDark); padding-block-end: 0.5rem; }
th { text-align: start; color: var(--textDark); }
:is(th, td) { padding: 0.5rem 0.5rem 0.5rem 0; border-block-end: 0.0625rem solid var(--borderMedium); }
:is(th, td):last-child {padding-right: 0;}
tr:last-child td { border-block-end-width: 0; }
thead th { border-block-end-width: 0.0625rem; border-block-end-color: var(--borderMedium); }


/* ==========================================================================
   3  Components
   ========================================================================== */

/* -- buttons ------------------------------------------------------------- */

/* The menu toggle draws its own bars and is excluded, but the exclusion is
   wrapped in `:where()` so it costs nothing: an id inside a bare `:not()`
   counts as an id, which would put this base rule above every `.ghost` and
   `.secondary` below it and leave a `<button>` unable to wear them. */
.button, button:not(:where(#togglemenu)), input[type="submit"] {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.7em 1.25em;
    border: 0;
    border-radius: var(--radius-s);
    cursor: pointer;
    transition: transform 0.075s ease-in-out;
}
@media (hover: hover) and (min-width: 600px) {
    :is(.button, button, input[type="submit"]):hover { transform: scale(1.035); }
}
.button.ghost           { background: none; color: var(--accentDarker); box-shadow: inset 0 0 0 0.1rem var(--accent); }
.button.secondary       { background: var(--textDark); }
.button.secondary.ghost { background: none; color: var(--textDark); box-shadow: inset 0 0 0 0.1rem var(--textDark); }
.button.smaller         { padding: 0.4rem 1rem; }

.button.icon {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    inline-size: 2.25rem;
    padding: 0;
    background: var(--textDark);
}
.button.icon img { inline-size: 45%; filter: invert(1); }

p > .button { margin-block: 0.5rem; }

/* -- box ----------------------------------------------------------------- */

.box {
    /* What a notched field label paints over its top half, see `-- forms --`. */
    --field-notch: var(--light);
    position: relative;
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-radius: var(--radius);
    padding: 3.5rem clamp(2rem, 5vw, 5rem);
}
.box:not(:last-child) { margin-block-end: var(--flow); }

/* Two columns that fall to one when there is no room for both. `.twocols` is
   named in the markup by `image`, `image-alt`, `contact`, `product` and
   `cta`, so the grid that makes it work belongs here; a brick sets only what
   differs, which is the cross-axis alignment — copy beside a picture centres,
   a form beside an address hangs from the top. */
.twocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 2.5rem clamp(2rem, 5vw, 5rem);
    align-items: start;
}

/* -- inline link lists (social, contact, buttons) ------------------------ */

ul.social, ul.buttons, ul.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    list-style: none;
}
ul.social li, ul.buttons li, ul.contact li { margin: 0; }

/* -- media --------------------------------------------------------------- */

figure { border-radius: var(--radius); overflow: clip; }
figure img { inline-size: 100%; }
figure > a { display: block; }
figcaption { font-size: 0.9rem; padding-block-start: 0.5rem; }

p > img { border-radius: var(--radius); margin-block: 2.25rem; }
.box p > img { border-radius: 0; }

/* Portraits are toned rather than shown raw, so that a grid of avatars from
   different sources still reads as one set — the `reviews` and `team` bricks
   share it. This is the theme's `colorize_image`, which is the same value in
   all four palettes despite living in the palette stylesheet; its leading
   `contrast(1)` is an identity function and is dropped here. `.colorize` is
   the tone alone, for an image that keeps its own shape. */
.avatar, .colorize { filter: sepia(1) hue-rotate(160deg) grayscale(0.8); }

/* Hovering a linked thumbnail zooms it inside its frame. Only inside a frame:
   every other `<a>` in the theme that holds an image holds an *icon* — the
   preheader phone and mail, the logo, the cart, the social and team buttons —
   and those have nothing to clip the growth against, so they just swell and
   blur. The `.button.icon` ones already scale as a whole button besides. */
.thumb { border-radius: var(--radius); overflow: clip; }
.thumb img { transition: transform 0.35s ease-in-out; }
@media (hover: hover) {
    a:hover .thumb img { transform: scale(1.075); }
}

.avatar, img[src*="avatar"] { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* -- video shortcodes ----------------------------------------------------- */

/* The `youtube` and `vimeo` shortcodes emit a plain link around a poster
   image; everything that makes it read as a video — the play button and the
   wordmark in the corner — is painted here, on the link's own overlays, so
   the page embeds nothing from either platform until the visitor clicks. */
.shortcode-youtube, .shortcode-vimeo {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: clip;
}
.shortcode-youtube::before, .shortcode-youtube::after, .shortcode-vimeo::after {
    content: "";
    position: absolute;
    inset: 0;
}
.shortcode-youtube::before { background: url('/img/youtube_button.svg') center / auto 4rem no-repeat; }
.shortcode-youtube:hover::before { background-image: url('/img/youtube_button_hover.svg'); }
.shortcode-youtube::after { background: url('/img/youtube_text.svg') calc(100% - 1rem) calc(100% - 1rem) / auto 2rem no-repeat; }
.shortcode-vimeo::after { background: url('/img/vimeo_text.svg') calc(100% - 1rem) calc(100% - 1rem) / auto 2rem no-repeat; }
.shortcode-vimeo .playbutton {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    inline-size: 6rem;
    block-size: 4rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.6) url('/img/vimeo_play.svg') 55% center / auto 1.9rem no-repeat;
}
.shortcode-vimeo:hover .playbutton { background-color: #00adef; }
.shortcode-youtube img, .shortcode-vimeo img {
    display: block;
    margin: 0;
    inline-size: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
@media (max-width: 45rem) {
    .shortcode-youtube::before { background-size: auto 12vw; }
    .shortcode-youtube::after, .shortcode-vimeo::after { background-position: calc(100% - 3vw) calc(100% - 3vw); background-size: auto 6vw; }
    .shortcode-vimeo .playbutton { inline-size: 16.5vw; block-size: 11vw; background-size: 5.3vw; border-radius: 1.78vw; }
}

/* -- image gallery -------------------------------------------------------- */

/* The `gallery` shortcode: a grid of square thumbnails, each a link to the
   large rendition that the lightbox opens as an overlay. */
ul.image-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}
ul.image-gallery li { margin: 0; }
ul.image-gallery a { display: block; }
ul.image-gallery img { display: block; inline-size: 100%; border-radius: var(--radius); }

/* -- forms --------------------------------------------------------------- */

/* Every form lays its rows out on the same two-column grid, whether the rows
   are written in markdown as direct children of the `<form>` or generated by
   `site/form.html`, which groups them in a `<fieldset>` with a `<legend>`.
   The fieldset is a grouping element, not a frame: its border, padding and
   `min-inline-size: min-content` are reset away and it carries the same grid,
   so both cases behave alike. A row spans both columns unless it is `.half`,
   which is what puts two fields side by side. */
form, form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
form > :not(.half), form fieldset > :not(.half) { grid-column: 1 / -1; }
@media (max-width: 600px) {
    form .half { grid-column: 1 / -1; }
}

/* `:not([hidden])` keeps the spam trap hidden: `display` would override it.
   The row is the positioning context its label is notched into, below. */
form > div:not([hidden]), form fieldset > div:not([hidden]) {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-inline-size: 0;
    margin-block-end: 1rem;
}
/* A grid item stretches by default; a button keeps its own width. */
form .submit { align-items: flex-start; }
form > :is(button, .button, input[type="submit"]) { justify-self: start; }

/* A `<legend>` is not a heading, so the base `h3`'s metrics are spelled out
   for it here. The face is the body one: the title face is for `h1` and `h2`,
   and a heading inside a form reads at plain heading size like any other. */
form legend, form h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--textDark);
    padding: 0;
    margin-block: 0 1rem;
}

label { color: var(--textMedium); font-size: 0.9rem; }
input, textarea, select {
    font: inherit;
    color: var(--textDark);
    background: var(--page);
    padding: 0.5em;
    border: 1px solid var(--borderMedium);
    border-radius: 0.25rem;
}
/* `font: inherit` carries the body's 1.7 line-height into the controls — a
   text input honours it, a select does not, and the two come out at
   different heights beside each other. `normal` puts every one-line control
   on the select's footing, which is also the theme's own proportion, and the
   shared block-size settles the last two pixels of chrome a select draws
   that a text input does not. A textarea keeps the reading line-height: it
   holds a body of text. */
input:not([type="checkbox"], [type="radio"]), select {
    line-height: normal;
    block-size: 2.75rem;
}
label + input, label + textarea, label + select {margin-top: 0.5rem}
textarea { resize: vertical; block-size: 9rem; }
:is(input[type="checkbox"], input[type="radio"]) {cursor: pointer; }
:is(.checkbox, .radio) label { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: var(--textMedium); }

/* A field's label rides in a notch cut out of the top of its own border,
   rather than standing on a line above it. It is lifted out of the row's flow
   and centred on that border, so the control keeps the row to itself and the
   set of fields reads as one stack of boxes instead of alternating label,
   box, label, box.

   Straddling the border means the label's two halves sit on two different
   surfaces: above the line is whatever the form stands on, below it is the
   control's own fill. So the chip paints `--page` — the fill — and lays the
   surface over its top half only. Out on the page those are the same colour
   and the seam does not show; inside a `.box` the tint is real, and painting
   `--light` over `--page` composites to exactly what the box itself is
   painted with, so the halves line up with what they cover.

   Checkboxes and radios are left out: their label is a caption *beside* the
   control and wraps it, so it belongs in the flow. So is a label already
   hidden by `placeholders: true` — that one has given its text to the
   control's placeholder and must stay clipped. */
form div:not(.checkbox, .radio) > label:not(.sr-only) {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0.6rem;
    z-index: 1;
    transform: translateY(calc( 0.5rem - 50%));
    padding-inline: 0.25rem;
    font-size: 0.8rem;
    line-height: 1;
    background-color: var(--page);
    background-image: linear-gradient(var(--field-notch, transparent) 50%, transparent 50%);
}

/* A generated form carries no frame of its own. A brick that wants one says
   so — `contact` is the one that does, wrapping the form in a `.box` — so a
   form dropped into a plain section reads as that section's own content
   rather than as a card sitting inside it. */

/* A brick caps its direct children at the brick measure; a form reads better
   narrower than that, so it names its own. Inside a `.box` the box has
   already set the measure and the form fills it. */
main .container > form.form { max-inline-size: var(--measure-small); }
.box form.form { max-inline-size: 26rem; margin-inline: auto; }

/* -- language switcher --------------------------------------------------- */

/* A `<select>` that navigates on change, in the banner and in the footer
   both — `site/languageswitch.html`, wired up in `site.js`. It is a control
   rather than a hover panel so that a phone opens it with the picker it
   already has, and it is undressed back to a line of text so that it reads as
   chrome rather than as a field someone is filling in: no box, and the native
   arrow traded for the theme's own caret. Each place it appears says only what
   colour and size it is.

   `appearance: none` reaches the closed control only. The options are drawn
   by the browser, and a transparent ground with an inherited colour lands
   white on white in some of them, so the popup is painted explicitly. The
   focus ring is the one every control gets, and stays.

   `field-sizing: content` is what makes it read as text: a `<select>` is
   otherwise as wide as its widest option, so "EN" in the banner would carry
   the width of "Nederlands" beside it and the caret would float away from the
   label. Where it is not supported the control falls back to that widest-option
   width, which is what it had before — wider than it needs to be, never
   broken.

   The caret hangs off the wrapper because a `<select>` is a replaced element
   and grows no pseudo-element of its own. `pointer-events: none` lays it over
   the space the control reserves for it, so the whole width stays one click
   target. */
.languageswitch { position: relative; display: inline-block; }
.languageswitch select {
    appearance: none;
    field-sizing: content;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0 0.8rem 0 0;
    cursor: pointer;
}
.languageswitch option { color: var(--textDark); background: var(--page); }
.languageswitch::after {
    content: "";
    position: absolute;
    inset-inline-end: 0.1rem;
    inset-block-start: 50%;
    inline-size: 0.3rem;
    block-size: 0.3rem;
    border: 0.1rem solid currentcolor;
    border-inline-start: 0;
    border-block-start: 0;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* -- breadcrumbs --------------------------------------------------------- */

nav[aria-label="Breadcrumb"] ol,
ul.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.5rem;
    padding: 0;
    margin-block: -1rem .5rem;
    font-size: 0.9rem;
    list-style: none;
}
:is(nav[aria-label="Breadcrumb"] ol, ul.breadcrumbs) li { margin: 0; }
:is(nav[aria-label="Breadcrumb"] ol, ul.breadcrumbs) li + li::before { content: "/"; padding-inline-end: 0.5rem; color: var(--accent)!important;}
:is(nav[aria-label="Breadcrumb"] ol, ul.breadcrumbs) :is(a, li::before) { color: var(--accent)!important; text-decoration: none; }

/* -- details / faq ------------------------------------------------------- */

details { border-block: 0.1rem solid var(--borderMedium); }
details + details { border-block-start: 0; margin-block-start: calc(var(--flow) * -1); }
details summary {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 0.35rem 2rem 0.25rem 0;
    color: var(--textMedium);
}
details summary::marker, details summary::-webkit-details-marker { content: ""; display: none; }
details summary::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0.5rem;
    inline-size: 0.5rem;
    block-size: 0.5rem;
    border: 0.1rem solid var(--textMedium);
    border-inline-start: 0;
    border-block-end: 0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.15s ease-in-out;
}
details[open] summary { font-weight: 600; color: var(--textDark); }
details[open] summary::after { transform: translateY(-25%) rotate(-45deg); }
details > :not(summary):last-child { padding-block: 0.75rem 1.75rem; }
details > div > :last-child { margin-block-end: 0; }
.faqgroup + .faqgroup { margin-block-start: 2.5rem; }
.faqgroup h3 { margin-block-end: 0.75rem; }

/* -- opening hours ------------------------------------------------------- */

dl.openinghours { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1.5rem; }
dl.openinghours dt { color: var(--textDark); }
dl.openinghours dd { margin: 0; }


/* ==========================================================================
   4  Section rhythm

   Most bricks sit on the page background and space themselves with their own
   padding. A brick that paints its own surface — a tinted band, a full-bleed
   backdrop, a boxed call to action — is flagged `hasbackgroundcolor` in the
   markup, the theme's own name for it. Such a brick contributes no padding of
   its own (the thing it paints carries that) and only takes 2rem of air above
   itself, so two painted surfaces never collide and a painted surface never
   drifts away from the copy it belongs to.

   The flag is set by the brick partial, not by the author: `image-alt`,
   `header`, `map` and `cta` always carry it, `quote` only when the markdown
   gave it a backdrop.
   ========================================================================== */

main > section { padding-block: var(--brick-space); }
main > section:first-child { padding-block-start: calc(var(--brick-space) * 0.8); }

main > section.hasbackgroundcolor { padding-block: 0; margin-block-start: 2rem; }

/* Opening the page, there is nothing above it to be separated from — and a
   gap here would show as a white strip between the banner and a hero that is
   meant to run up behind it. */
main > section.hasbackgroundcolor:first-child { margin-block-start: 0; }

/* Two painted surfaces in a row need a gap that neither of them provides. */
main > section.hasbackgroundcolor + section.hasbackgroundcolor { padding-block-start: 3.5rem; }

/* Two plain bricks in a row need less air between them than a plain brick
   needs against a painted one, whose own edge does the separating. */
main > section:not(.hasbackgroundcolor) + section:not(.hasbackgroundcolor) {
    padding-block-start: var(--brick-space-tight);
}

/* Coming off a full-bleed backdrop, the next plain brick starts a little
   sooner — the backdrop has already given the eye its break. */
main > section.bgimage + section:not(.hasbackgroundcolor) { margin-block-start: 1.5rem; }

/* A painted surface running into the footer needs the gap the footer's own
   background would otherwise swallow — unless the brick is meant to butt up
   against it. */
main:has(> section.hasbackgroundcolor:last-child) + .sitefooter { margin-block-start: 7.5rem; }
main:has(> section.stickstofooter:last-child) + .sitefooter { margin-block-start: 0; }



/* ==========================================================================
   5  Shared brick scaffolding

   The two things more than one brick is built out of. Everything else lives
   in `sections/<brick>.css`.
   ========================================================================== */

/* A grid of cards, shared by the collection bricks — the ones flagged
   `collection` in the markup: `features`, `team`, `blocks`, `reviews`,
   `prices`, `posts`, `webshop`. Each is a centred intro above a grid, and the
   two are separate containers because they want different measures:
   `split_list.html` puts the prose in `.container.small` and the list in the
   full-width `.container`.

   The flag is what keeps this rule out of the business of knowing which
   bricks exist — the same move `hasbackgroundcolor` makes for the bands. */
section.collection > .container.small {
    text-align: center;
    margin-block-end: 4rem;
    padding-top: 1rem;
}
section.collection > .container > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1.55rem 1.5rem;
    padding: 0;
    list-style: none;
}
section.collection > .container > ul > li {
    position: relative;
    margin: 0;
}


/* Full-bleed backdrops, shared by the `header`, `quote` and `map` bricks. The
   image stays a real <img> so it is sized, fetched and cached normally — but
   it is taken out of flow, so it contributes no height. Like the theme's
   `background-image`, the brick is sized by its container's padding alone;
   left in flow the row would grow to the image's intrinsic height. */
.backdrop {
    position: absolute;
    inset: 0;
    /* Below the scrim, which is -1. Both were -1 once, which left the order
       to the tree — and a `::before` scrim generates ahead of the element it
       is meant to cover, so the image painted over it and the scrim did
       nothing. Naming the two layers is what keeps that from recurring. */
    z-index: -2;
    overflow: clip;
}
.backdrop > * { margin: 0; block-size: 100%; }
.backdrop :is(img, figure) {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

/* The stack that makes a backdrop work, and the whole of it: a section that
   holds one becomes the containing block the absolute image needs, and lays
   its children on a single grid cell so the content sits over the image
   rather than after it. It lives here rather than in the bricks because it is
   mechanism, not decoration — any brick that emits a `.backdrop` gets a
   working full-bleed image with no stylesheet of its own. */
section:has(> .backdrop) { position: relative; isolation: isolate; display: grid; }
section:has(> .backdrop) > * { grid-area: 1 / 1; }
section:has(> .backdrop) > :not(.backdrop) { z-index: 1; align-self: center; }

/* `bgimage` says the backdrop is a photograph to be read over, so it takes a
   scrim and turns its copy white. A `map` carries a backdrop without the
   flag: the theme leaves the map undarkened, and its floating card supplies
   its own contrast. */
section.bgimage { color: rgb(255 255 255 / 1); }
section.bgimage::before {
    content: "";
    grid-area: 1 / 1;
    z-index: -1;
    background: var(--scrim);
}
section.bgimage > .container { padding-block: 5.5rem 6rem; }
section.bgimage :is(h1, h2, h3, strong, blockquote, figcaption) { color: #fff; }
section.bgimage a:not(.button) { color: #fff; }
/* ==========================================================================
   Chrome: the banner

   `header.siteheader` — the skip link that precedes it, the preheader, the
   logo, the main navigation, the header actions and the mobile menu panel.
   ========================================================================== */

/* -- skip link ----------------------------------------------------------- */

.skiplink {
    position: absolute;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 100;
    background: var(--textDark);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-s);
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.15s ease-in-out;
}
.skiplink:focus-visible { transform: none; }

/* -- banner -------------------------------------------------------------- */

.siteheader { position: relative; z-index: 9; inline-size: 100%; background: var(--page); }
.siteheader a { text-decoration: none; }

/* data/settings.yaml `sticky_header`. The banner scrolls away with the page
   and slides back in once you are past it — `.sticky` says the setting is on,
   `.stuck` says it is currently pinned. While it is pinned it is out of flow,
   so site.js reserves its resting height on <body> rather than the theme's
   `header + section { padding-top: 11rem !important }`. */
@keyframes slidedown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
.siteheader.sticky.stuck {
    position: fixed;
    inset-block-start: 0;
    box-shadow: 0 0 0.5rem rgb(0 0 0 / 0.1);
}
body:not(.mobilemenu) .siteheader.sticky.stuck { animation: slidedown 0.45s ease-in-out; }
.siteheader.sticky.stuck .preheader { display: none; }

/* header.dark — data/settings.yaml `dark_header`, data/<lang>/header.yaml */
.siteheader.dark { background: var(--textDarker); }
.siteheader.dark :is(.logo, .logo small, .mainnav > ul > li > a, .languageswitch) { color: #fff; }
.siteheader.dark .mainnav > ul > li::after { background: #fff; }
.siteheader.dark :is(.logo img, .cart img, .search img, #togglemenu) { filter: invert(1); }
.siteheader.dark .preheader { background: rgb(255 255 255 / 0.06);}
.siteheader.dark :is(.preheader, .preheader a) { color: rgb(255 255 255 / 0.55); }
.siteheader.dark .preheader img { filter: invert(1); opacity: 0.55; }

/* header.transparent — a page's own `transparent_header: true` front matter.
   The banner lifts out of flow and paints nothing, so the `header` brick's
   backdrop runs up behind the logo and the menu; both turn white to sit on
   the scrim. Once the sticky banner is pinned it is an ordinary opaque bar
   again, so the white reverses out on `.stuck`.

   `.siteheader.sticky.stuck` outranks the position here on specificity, not
   on order — a pinned banner stays `fixed`.

   Only the top row of the menu reverses out. The dropdown is an opaque panel
   of its own, painted in `--page`, so its links keep the dark type they are
   given below — a blanket `.mainnav a` here would outrank that and hand the
   panel white text on a white ground. The mobile menu is likewise its own
   dark panel, so it is excluded too, and the hover rule keeps its active
   colour. */
.siteheader.transparent { position: absolute; inset-block-start: 0; background: transparent; }
.siteheader.transparent.stuck { background: var(--page); }
.siteheader.transparent:not(.stuck) :is(.logo, .logo small, .languageswitch) { color: #fff; }
body:not(.mobilemenu) .siteheader.transparent:not(.stuck) .mainnav > ul > li > a { color: #fff; }
body:not(.mobilemenu) .siteheader.transparent:not(.stuck) .mainnav > ul > li::after { background: #fff; }
.siteheader.transparent:not(.stuck) :is(.logo img, .cart img, .search img, #togglemenu) { filter: invert(1); }
.siteheader.transparent:not(.stuck) .preheader { background: transparent; border-block-end-color: rgb(255 255 255 / 0.25); }
.siteheader.transparent:not(.stuck) :is(.preheader, .preheader a) { color: rgb(255 255 255 / 0.8); }
.siteheader.transparent:not(.stuck) .preheader img { filter: invert(1); opacity: 0.8; }

/* The hero reserves the height the banner would have taken. site.js measures
   the banner at rest and publishes it as `--banner-height`; without that file
   the fallback is close enough that nothing is ever covered. */
.siteheader.transparent + main > section.bgimage:first-child > .container {
    padding-block-start: calc(5.5rem + var(--banner-height, 8rem));
}

.preheader {
    background: var(--textDark);
    color: rgb(255 255 255 / 0.55);
    border-block-end: 0.1rem solid var(--borderLight);
    font-size: 0.9rem;
}
.preheader a { color: inherit; }
.preheader img { filter: invert(1); }
/* data/settings.yaml `preheader.is_light`. The icons are solid black SVGs, so
   dropping the invert leaves them at full black next to type that is only 70%
   — they read as the loudest thing in the bar. Fading them to half strength
   lands them on the same weight as the text, as on the v1 site. */
.preheader.light { background: var(--light); color: var(--textMedium); }
.preheader.light img { filter: none; opacity: 0.5; }
.preheader .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 2rem;
    padding-block: 0.4rem;
}
.preheader p { margin: 0; }
.preheader ul.contact { gap: 0 2rem; }
.preheader a { display: flex; align-items: center; gap: 0.35rem; }
.preheader img { block-size: 0.8em; inline-size: auto; margin-right: 0.1rem;}

@media (max-width: 600px) {
    .preheader .container { justify-content: center; }
    .preheader ul.contact { display: none; }
}

.masthead .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-block: 1.25rem;
    transition: padding 0.15s ease-in-out;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.siteheader.sticky.stuck .masthead .container { padding-block: 0.7rem; }

/* -- logo ---------------------------------------------------------------- */

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--fontTitles);
    font-size: 1.8rem;
    line-height: 1.15;
    color: var(--textDark);
}
/* Tinted to `--textDark` the same way the cart glyph is, and for the same
   reason — see the note there. This rule is not scoped to the banner because
   `.logo` is one partial: the footer's logo is the same mark and takes the
   same tint, as it did in the theme. Both dark variants and the transparent
   banner invert it to white from more specific selectors. */
.logo img {
    block-size: 2rem;
    inline-size: auto;
    filter: contrast(0.7) sepia(1) hue-rotate(160deg);
}
.logo strong, .logo small { display: block; font-weight: 700; color: inherit; }
.logo small { font-family: var(--fontBody); font-size: 0.75rem; font-weight: 400; color: var(--textMedium); }

/* -- main navigation ----------------------------------------------------- */

.mainnav { margin-inline: auto; }
.mainnav ul { display: flex; gap: 2rem; padding: 0; list-style: none; }
.mainnav li { position: relative; margin: 0; }
.mainnav a { display: block; padding-block: 0.8rem 0.65rem; white-space: nowrap; color: var(--textDarker); }

.mainnav > ul > li::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0.6rem;
    inline-size: 100%;
    block-size: 0.05rem;
    background: currentcolor;
    transform: scaleX(0);
    transition: transform 0.15s ease-in-out;
}
.mainnav > ul > li:is(:hover, :focus-within, .active)::after { transform: scaleX(1); }

.mainnav li:has(> ul) > a::after {
    content: "";
    display: inline-block;
    inline-size: 0.3rem;
    block-size: 0.3rem;
    margin-inline-start: 0.4rem;
    border: 0.1rem solid currentcolor;
    border-inline-start: 0;
    border-block-start: 0;
    transform: translateY(-0.15rem) rotate(45deg);
}

.mainnav ul ul {
    position: absolute;
    z-index: 99;
    display: block;
    min-inline-size: 100%;
    margin-inline-start: -1rem;
    padding-block: 0.75rem 0.85rem;
    background: var(--page);
    border-radius: var(--radius-s);
    box-shadow: 0 0 1.5rem rgb(0 0 0 / 0.15);
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.25rem);
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}
.mainnav li:is(:hover, :focus-within) > ul { opacity: 1; transform: none; pointer-events: auto; }
.mainnav ul ul a { padding: 0.3rem 2rem 0.3rem 1rem; color: var(--textMedium); font-weight: 400; }
.mainnav ul ul li.active > a { color: var(--textDark); font-weight: 700; }

/* -- header actions and mobile menu -------------------------------------- */

.masthead .actions { display: flex; align-items: center; gap: 1rem; }

/* The language switcher is `.languageswitch` in the core, the same control
   the footer carries. The banner only sizes it: the current language's code,
   on the main navigation's weight, so it sits beside the menu rather than
   under it. A `<select>` rather than the theme's hover panel, so a phone
   opens it with the picker it already has. */
.masthead .languageswitch {
    color: var(--textDarker);
    font-size: 0.9rem;
}

.masthead :is(.cart, .search) { position: relative; display: block; }

/* The cart glyph is a black svg, and black is not a colour this theme paints
   anything in. The theme tinted it to `--textDark` with `.black_2_textDark`,
   the same `contrast(0.7) sepia(1) hue-rotate(160deg)` in all four palettes,
   and that is what this is — the leading `contrast(0.7)` lifts the black to a
   grey, the rest turns that grey the blue of the body text.

   A filter rather than the mask the accent glyphs use: those are drawn on an
   empty `<span>`, and a mask over an `<img>` cuts the picture out rather than
   colouring it. No `!important` either — the `invert(1)` that turns the glyph
   white on a dark or transparent banner is set on `.siteheader.dark` and
   `.siteheader.transparent`, which outrank this on specificity, so the two
   never argue. */
.masthead :is(.cart, .search) img {
    block-size: 1.25rem;
    inline-size: auto;
    filter: contrast(0.7) sepia(1) hue-rotate(160deg);
}
.masthead .cart .itemcount {
    position: absolute;
    inset-block-start: -0.5rem;
    inset-inline-start: 0.65rem;
    min-inline-size: 1rem;
    padding-inline: 0.15rem;
    background: rgb(235, 0, 0);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    border-radius: 1rem;
}

/* The third of the theme's `.black_2_textDark` icons, after the logo and the
   cart — see the note on the cart. The glyph is this button's background
   image, so the filter goes on the button; the only other thing in it is the
   label, and that is clipped out of sight. */
#togglemenu {
    display: none;
    inline-size: 3rem;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    background: url("/img/menu.svg") center / 2rem no-repeat;
    filter: contrast(0.7) sepia(1) hue-rotate(160deg);
    cursor: pointer;
}
#togglemenu span { position: absolute; clip-path: inset(50%); }

body.mobilemenu #togglemenu { display: block; }
body.mobilemenu .mainnav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 2;
    inline-size: min(20rem, 100%);
    margin: 0;
    padding-block: 4rem;
    overflow-y: auto;
    background: var(--textDark);
    transform: translateX(100%);
    transition: transform 0.2s ease-in-out;
}
body.mobilemenu.menushown .mainnav { transform: none; box-shadow: 0 0 0.5rem rgb(0 0 0 / 0.3); }
body.mobilemenu .mainnav ul { flex-direction: column; gap: 0; }
body.mobilemenu .mainnav a { color: #fff; padding: 0.45rem 2.5rem 0.45rem 3rem; font-size: 1.15rem; }
body.mobilemenu .mainnav > ul > li::after { content: none; }
body.mobilemenu .mainnav ul ul {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}
body.mobilemenu .mainnav ul ul a { padding-inline-start: 5rem; color: rgb(255 255 255 / 0.7); }
body.mobilemenu .mainnav li.active > a { color: var(--accent); font-weight: 700; }

@media (max-width: 500px) {
    .masthead .actions .button { display: none; }
}

@media (max-width: 400px) {
    .masthead .actions .languageswitch { display: none; }
}/* ==========================================================================
   Chrome: the footer

   `footer.sitefooter` — logo, navigation, socials and colophon.
   ========================================================================== */

/* -- footer -------------------------------------------------------------- */

.sitefooter {
    margin-block-start: 4rem;
    background: var(--light);
    border-block-start: 0.1rem solid var(--borderLight);
    color: var(--textMedium);
}
.sitefooter a { color: inherit; text-decoration: none; }
/* `.sitefooter a`'s inherit outweighs `.logo`'s own color, which would mute
   the mark to the footer's `--textMedium`; the logo keeps its dark ink, name
   and subtitle both, as in the theme. The dark footer whitens it below. */
.sitefooter .logo, .sitefooter .logo small { color: var(--textDark); }

/* data/settings.yaml `dark_footer` */
.sitefooter.dark { background: var(--textDark); border-block-start: 0; color: rgb(255 255 255 / 0.55); }
.sitefooter.dark .logo, .sitefooter.dark .logo small { color: #fff; }
.sitefooter.dark .logo img { filter: invert(1); }
.sitefooter.dark .colophon { border-block-start-color: rgb(255 255 255 / 0.1); }
.sitefooter.dark ul.social .button.icon { background: var(--accent); }

.sitefooter > .container {
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    padding-block: 3rem;
}
.sitefooter > .container > * { flex: 1; }
.sitefooter > .container nav { flex: 3; }
.sitefooter nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2rem;
    padding: 0;
    list-style: none;
}
.sitefooter nav li { margin: 0; }
.sitefooter nav a { display: block;}
@media (hover: hover) {
    .sitefooter nav a:hover { color: var(--textDark); }
    .sitefooter.dark nav a:hover { color: #fff; }
}
.sitefooter ul.social { justify-content: flex-end; }

.sitefooter .colophon { border-block-start: 1px solid var(--borderLight); font-size: 0.9rem; }
.sitefooter .colophon .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 2rem;
    padding-block: 1.7rem;
}
.sitefooter .colophon > .container > div > :last-child { margin: 0; }
.sitefooter .colophon a { text-decoration: underline; }
.sitefooter .colophon li a { text-decoration: none; }
.sitefooter .colophon ul { display: flex; gap: 1rem; padding: 0; list-style: none; }
/* The language switcher is `.languageswitch` in the core; the footer only
   says what colour it is. Hover is read on the wrapper so the caret comes
   along with the text. */
@media (hover: hover) {
    .sitefooter .colophon .languageswitch:hover { color: var(--textDark); }
    .sitefooter.dark .colophon .languageswitch:hover { color: #fff; }
}

@media (max-width: 1000px) {
    .sitefooter > .container { flex-direction: column; text-align: center; }
    .sitefooter ul.social { justify-content: center; }
}
#lightbox,
#lightbox::before {
  opacity:0;
  pointer-events:none;
  width:100%;
  height:100%;
  position:absolute;
  top:0;
  left:0;
  transition:all .3s ease-in-out
}
#lightbox {
  position:fixed;
  cursor:pointer;
  z-index:9999999;
  line-height:0;
  font-family: sans-serif;
}
#lightbox::before {
  backdrop-filter:grayscale(1)blur(2px);
  transition:all .3s ease-in-out;
  background:rgba(0,0,0,.7);
  z-index: 0;
  content:""
}
body.lightbox_visible #lightbox,
body.lightbox_visible #lightbox::before {
  opacity:1;
  pointer-events:all
}
#lightbox .img {
  position:relative;
  top:50%;
  left:50%;
  -ms-transform:translateX(-50%)translateY(-50%);
  -webkit-transform:translate(-50%,-50%);
  transform:translate(-50%,-50%);
  max-width:100%;
  max-height:100%
}
#lightbox .img img {
  opacity:0;
  pointer-events:none;
  width:auto
}
@media screen and (min-width:1200px) {
  #lightbox .img {
    max-width:1200px
  }
}
@media screen and (min-height:1200px) {
  #lightbox .img {
    max-height:1200px
  }
}
#lightbox span {
  display:block;
  position:fixed;
  bottom:13px;
  height:1.5em;
  line-height:1.4em;
  width:100%;
  text-align:center;
  color:#fff;
  text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000
}
#lightbox span {
  display:none
}
#lightbox .videoWrapperContainer {
  position:relative;
  top:50%;
  left:50%;
  -ms-transform:translateX(-50%)translateY(-50%);
  -webkit-transform:translate(-50%,-50%);
  transform:translate(-50%,-50%);
  width:1200px;
  max-width:100%;
  max-height:100%
}
#lightbox .videoWrapperContainer .videoWrapper {
  height:0;
  line-height:0;
  margin:0;
  padding:0;
  position:relative;
  padding-bottom:56.333%;
  background:#000
}
#lightbox .videoWrapper iframe {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
  display:block
}
#lightbox #prev,
#lightbox #next {
  height:50px;
  line-height:36px;
  display:none;
  margin-top:-25px;
  position:fixed;
  top:50%;
  padding:0 15px;
  cursor:pointer;
  text-decoration:none;
  z-index:99;
  color:#fff;
  font-size:60px
}
#lightbox.gallery #prev,
#lightbox.gallery #next {
  display:block
}
#lightbox #prev {
  left:0
}
#lightbox #next {
  right:0
}
#lightbox #close {
  height:50px;
  width:50px;
  position:fixed;
  cursor:pointer;
  text-decoration:none;
  z-index:99;
  right:0;
  top:0;
  background:0 0 !important
}
#lightbox #close:after,
#lightbox #close:before {
  position:absolute;
  margin-top:22px;
  margin-left:14px;
  content:"";
  height:2px;
  background:#fff;
  width:23px;
  -webkit-transform-origin:50% 50%;
  -moz-transform-origin:50% 50%;
  -o-transform-origin:50% 50%;
  transform-origin:50% 50%;
  -webkit-transform:rotate(-45deg);
  -moz-transform:rotate(-45deg);
  -ms-transform:rotate(-45deg);
  -o-transform:rotate(-45deg)
}
#lightbox #close:after {
  -webkit-transform:rotate(45deg);
  -moz-transform:rotate(45deg);
  -ms-transform:rotate(45deg);
  -o-transform:rotate(45deg)
}
#lightbox,
#lightbox * {
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none
}/* The `tabs` shortcode. `site.js` marks a widget `ready` when it has wired
   the buttons; until then — and without javascript at all — the tablist
   stays hidden and the panels simply stack under their own headings, so
   nothing is behind a control that does not work. */

.tabs > [role="tablist"] {
    display: none;
    align-items: flex-end;
    gap: 2rem;
    margin: 0 0 1.5rem;
    padding-top: 2rem;
    border-bottom: 1px solid var(--borderMedium);
    overflow: auto;
    width: 100%;
}
.tabs.ready > [role="tablist"] { display: flex; }
.tabs button {letter-spacing: 0!important;}
.tabs button:hover {transform: none!important;}
.tabs > [role="tablist"] > [role="tab"] {
    background: none;
    border: 0;
    padding: 0 0 0.5rem;
    color: var(--textDark);
    font: inherit;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.15;
    position: relative;
    cursor: pointer;
}

/* The underline slides in, as on the original theme. */
.tabs > [role="tablist"] > [role="tab"]::after {
    content: "";
    width: 100%;
    height: 0.13rem;
    background: var(--textDark);
    position: absolute;
    left: 0;
    bottom: 0;
    transform: scaleX(0) translateY(50%);
    transition: transform 0.2s ease-in-out;
}
.tabs > [role="tablist"] > [role="tab"]:hover::after,
.tabs > [role="tablist"] > [role="tab"][aria-selected="true"]::after {
    transform: scaleX(1) translateY(50%);
}

/* The tab already names the panel, so the ready widget drops the heading
   the markdown opened on; stacked without the script, it stays. */
.tabs.ready > [role="tabpanel"] > h2:first-child { display: none; }
.tabs { margin-bottom: 3.5rem; }
/* ==========================================================================
   Motion: bricks fading in as they arrive

   `data/settings.yaml` `intersectionobserver`. The key keeps the v1 name so a
   site's settings file still reads, but there is no observer here any more.
   The theme added `.opaque` to every section but the first, watched them all
   with an IntersectionObserver, and stripped the class on the first
   intersection; this file is what is left when that script goes away.

   It is written twice, because the browsers split on which half they have.

   1. A view-progress timeline, which scrubs: the fade tracks the scroll
      position, so scrolling back up fades a brick out again. Chrome 115,
      Safari 26, Firefox 144.
   2. An animation trigger, which fires: the brick coming into view starts an
      ordinary timed animation, and `play-once` is the whole of what the
      observer did — it runs forwards, once, and no scrolling undoes it.
      Chrome 145. This is the theme's behaviour, exactly, and where it is
      available it overrides the block above.

   Both are the same two keyframes, and both are off under
   `prefers-reduced-motion` and in a browser that has neither.

   The brick's content, not the brick: `.backdrop` is a sibling of
   `.container` inside the bricks that paint a full-bleed image, and fading
   the backdrop in would fade in the whole band rather than the words on it.
   The theme drew its backdrops as a background-image on the `<section>`
   itself, so `section > *` reached the same set.

   The rise is the `translate` property and not a `transform`, because two
   rules in the bricks put a static `transform` on a box that also fades —
   the lifted price plan's `scale(1.08)` is the one that shows. An animation
   holding its last frame outranks any normal declaration, so a `transform`
   here would flatten that card for good; `translate` composes with it
   instead, and the card keeps its lift.
   ========================================================================== */

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

    /* -- scrubbed ------------------------------------------------------- */

    @supports (animation-timeline: view()) {

        /* The first brick is the one on screen when the page opens, and the
           theme never faded it. Everything else is below the fold, or close
           enough that a third of it showing is already a brick at full
           strength.

           Nothing here can strand a brick at `opacity: 0`: a page too short
           to scroll has an inactive timeline, and an animation on an inactive
           timeline is not applied at all. */
        main > section:not(:first-child) > .container,
        .sitefooter > * {
            animation: fadeup linear both;
            /* Declared after the shorthand, which resets it to `auto`. */
            animation-timeline: view(block);
            animation-range: entry 0% entry 33%;
        }

        /* No rise for the footer or for the map that butts up against it, as
           in the theme. Both sit at the end of the document, where a downward
           translate lengthens the scrollable area — and the timeline is
           measured against that same area, so the two would chase each other
           over the last few pixels of the page. */
        main > section.stickstofooter > .container,
        .sitefooter > * { animation-name: fadein; }

        /* A collection's cards arrive one at a time rather than as one block,
           so the container holding the grid fades nothing and hands the job
           to its items. The intro above the grid is a container of its own
           and keeps its fade. `animation: none` resets the timeline with it.

           Each card is timed by its own position here, which on a grid means
           a row at a time: two cards side by side cross the same line at the
           same moment. The cascade *within* a row is in the trigger version
           below — it needs `sibling-index()`, and the browsers that have
           this timeline but not the trigger do not all have that either. */
        main > section.collection > .container:has(> ul) { animation: none; }
        main > section:not(:first-child).collection > .container > ul > li {
            animation: fadeup linear both;
            animation-timeline: view(block);
            animation-range: entry 0% entry 33%;
        }
    }

    /* -- fired once ----------------------------------------------------- */

    @supports (animation-trigger: --brick play-once) {

        /* The range is where the trigger is *live*, not a point it crosses:
           from a quarter of the brick showing until it has left the top of
           the screen. It has to stay live that long because a brick already
           on screen when the page opens must find itself inside the range —
           past a one-off point, with `both` holding the first keyframe, it
           would sit at `opacity: 0` and never be told to move. */
        main > section:not(:first-child) > .container,
        .sitefooter > * {
            timeline-trigger: --brick view() entry 25% exit 100%;
            /* The shorthand resets `animation-timeline` to `auto`, which is
               what unpicks the scrubbed version above — and it resets
               `animation-trigger` too, so that follows it. */
            animation: fadeup 0.7s ease-out both;
            animation-trigger: --brick play-once;
        }

        main > section.stickstofooter > .container,
        .sitefooter > * { animation-name: fadein; }

        /* The stagger. One trigger for the whole grid, published to the cards
           with `trigger-scope` — a trigger, like a timeline, is only visible
           to the subtree it is scoped to — so the cards run as one cascade
           off a single event instead of each waiting for its own line. That
           is what makes the second card in a row follow the first, which a
           timeline of its own can never do: they cross every line together.

           `sibling-index()` is the card's position in the list, so the delay
           is written once and holds for a row of three or a grid of nine. */
        main > section.collection > .container:has(> ul) { animation: none; }
        main > section.collection > .container > ul {
            timeline-trigger: --cards view() entry 25% exit 100%;
            trigger-scope: --cards;
        }
        main > section:not(:first-child).collection > .container > ul > li {
            animation: fadeup 0.7s ease-out both;
            animation-trigger: --cards play-once;
            animation-delay: calc((sibling-index() - 1) * 80ms);
        }
    }

    @keyframes fadeup {
        from { opacity: 0; translate: 0 4rem; }
    }
    @keyframes fadein {
        from { opacity: 0; }
    }
}
/* -- brick: about --------------------------------------------------------
   ![](/portrait.jpg)
   # Hey, my name is …
   Body copy.                                                             */

section.about { text-align: center; }
section.about p > img {
    display: inline-block;
    inline-size: 20rem;
    max-inline-size: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-block: 0 1.5rem;
}
section.about h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
section.about ul.social { justify-content: center; }
/* -- brick: blocks -------------------------------------------------------
   ## Heading
   Intro copy.

   - [![](/photo.jpg) **Tile title** One line.](/our-services/)           */

section.blocks li {
    aspect-ratio: 1.5;
    border-radius: var(--radius);
    text-align: center;
    isolation: isolate;
}
section.blocks li > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    block-size: 100%;
    padding: 1.5rem;
    text-decoration: none;
}
section.blocks li strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-block-end: 0.5rem;
}

/* A tile with a picture fills with it, dims it behind a scrim, and speaks in
   white over it. */
section.blocks li:has(img) { overflow: clip; }
section.blocks li:has(img) > a,
section.blocks li:has(img) strong { color: #fff; }
section.blocks li img {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}
section.blocks li:has(img)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--scrim);
    pointer-events: none;
}

/* A tile without one is a box: the theme's light fill and hairline border,
   dark text on it. */
section.blocks li:not(:has(img)) {
    background: var(--light);
    border: 1px solid var(--borderLight);
}
section.blocks li:not(:has(img)) > a { color: var(--textMedium); }
section.blocks li:not(:has(img)) strong { color: var(--textDark); }

/* Hover: a picture leans in, a box sharpens its edge. */
@media (hover: hover) {
    section.blocks li:hover img { transform: scale(1.075); }
    section.blocks li:not(:has(img)):hover { border-color: var(--borderMedium); }
}
/* -- brick: cart ---------------------------------------------------------
   Line items, total, link on to checkout. The progress steps and the
   submit row are shared with the `checkout` brick — the same furniture on
   the next page of the same flow.                                         */

section.cart table :is(th, td) {
    padding-block: 0.8rem;
    padding-right: 2rem;
}
section.cart table tr:last-child td {border-block-end-width: 0.0625rem;}
section.cart table :is(th, td):last-child { text-align: end; white-space: nowrap; padding-right: 0;}
section.cart tbody td[colspan] { text-align: center; }
section.cart tbody td:first-child { inline-size: 0; padding-right: 1rem;}
section.cart tbody td:nth-child(2) {
    inline-size: 50%;
    font-size: 0.9rem;
    line-height: 1.3;
}
section.cart tbody td:nth-child(2) a {text-decoration: none;}
section.cart .productavatar {
    inline-size: 4rem;
    max-inline-size: none; /* its cell has no preferred width to be 100% of */
    block-size: 4rem;
    border-radius: 50%;
    object-fit: cover;
}
section.cart input[type="number"] {
    inline-size: 4rem;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
}
section.cart input[type="number"]::-webkit-outer-spin-button,
section.cart input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
section.cart .carttotal { display: block; text-align: end; font-size: 1.7rem; padding-block-start: 1rem; }

:is(section.cart, section.checkout) .submitbutton {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin-block-start: 1rem;
}

/* The checkout steps, at the theme's own measurements: a 110px step whose
   dot sits on the line's start and whose label hangs centered under that
   dot — which is why every label is wrapped in an element, `translateX`
   cannot centre a bare text node. The list is centred and then nudged half
   a step inline, the theme's `margin-left: 55px`, so it is the run of dots
   that reads as centred rather than the boxes. */
:is(section.cart, section.checkout) ol.progress {
    display: flex;
    justify-content: center;
    margin-block-start: 3rem;
    padding: 0 0 0 3.4rem;
    list-style: none;
}
:is(section.cart, section.checkout) ol.progress li {
    position: relative;
    flex: 0 0 6.875rem;
    margin: 0;
    padding-block-start: 0.5rem;
    border-block-start: 1px solid var(--borderMedium);
}
:is(section.cart, section.checkout) ol.progress li > * {
    display: inline-block;
    white-space: nowrap;
    transform: translateX(-50%);
}
:is(section.cart, section.checkout) ol.progress li a { text-decoration: none; }
/* The dot: the theme's ring — a fill inside a page-coloured border, the
   hairline drawn by the shadow, sitting on the line. */
:is(section.cart, section.checkout) ol.progress li::before {
    content: "";
    position: absolute;
    inset-block-start: -0.5rem;
    inset-inline-start: -0.5rem;
    inline-size: 0.95rem;
    block-size: 0.95rem;
    border: 2px solid var(--page);
    border-radius: 50%;
    background: var(--page);
    box-shadow: 0 0 0.1px 1px var(--borderMedium);
}
:is(section.cart, section.checkout) ol.progress li:is(.current, .past) { border-block-start-color: var(--accent); }
:is(section.cart, section.checkout) ol.progress li:is(.current, .past)::before { background: var(--accent); box-shadow: 0 0 0.1px 1px var(--accent); }
:is(section.cart, section.checkout) ol.progress li:is(.current, .past) a { color: var(--accentDarker); }
/* The line runs dot to dot, so the last step carries a dot but no line
   onward — the border stays, transparent, so its dot sits at the same
   height as the others'. */
:is(section.cart, section.checkout) ol.progress li:last-child {
    flex-basis: auto;
    border-block-start-color: transparent;
}
/* -- brick: checkout -----------------------------------------------------
   Delivery details beside the order summary.                             */

section.checkout > .container { display: grid; grid-template-columns: 2fr 1.1fr; gap: 1rem 3rem; }
section.checkout > .container > :is(h1, ol.progress) { grid-column: 1 / -1; }

section.checkout fieldset + fieldset {margin-top: 1rem;}
section.checkout .summary {padding-top: 0.35rem;}
section.checkout .summary em { font-size: 0.9rem; display: block; line-height: 1.6;}

section.checkout .calculation {
    background: var(--light);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    text-align: end;
}
section.checkout .calculation span { float: inline-start; }
/* The sum: a block of its own — the label span inside it still floats, the
   amount rides right on the text-align — so the rule above it runs the full
   width of the summary. `clear` drops it below the floated labels. */
section.checkout .calculation .sum {
    display: block;
    float: none;
    clear: both;
    border-block-start: 0.1rem solid var(--borderMedium);
    margin-block-start: 0.35rem;
    padding-block-start: 0.1rem;
}

@media (max-width: 800px) {
    section.checkout > .container { grid-template-columns: 1fr; max-inline-size: var(--measure-small); }
}
/* -- brick: contact ------------------------------------------------------
   {{< contact-form >}}
   Address, email, phone, social links.                                   */

section.intro + section.contact {padding-top: 0!important;}
section.contact .box { padding: clamp(2rem, 4vw, 3rem); }
section.contact address { margin: 0; }
/* -- brick: cta ----------------------------------------------------------
   ## Get started today!
   One paragraph.
   [Get started now](/get-started/)
   ![](/illustration.svg)                                                 */

section.cta .box.twocols {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    margin: 0;
}
section.cta .text { flex: 2; }
section.cta .media { flex: 1; margin: 0; border-radius: 0; text-align: center; }
section.cta .media img { inline-size: 20rem; max-inline-size: 100%; margin: 0 auto; }
@media (max-width: 600px) {
    section.cta .box.twocols { flex-direction: column; text-align: center; }
}
/* -- brick: default ------------------------------------------------------
   Fallback. Whatever the markdown is, at the full measure.               */

section.default > .container > * { max-inline-size: var(--measure-medium); }
/* -- brick: docs ---------------------------------------------------------
   Sticky table of contents beside the body.                              */

section.docs { padding-block-start: 0; margin-top: -2rem;}
section.docs > .container { display: flex; gap: clamp(2rem, 5vw, 5rem); }

section.docs .docsmenu {
    flex: 0 0 18rem;
    max-inline-size: 18rem;
    padding-block: 2rem 3rem;
    border-inline-end: 1px solid var(--borderLight);
}
section.docs .docsmenu nav { position: sticky; inset-block-start: 9rem; }
section.docs .docsmenu ul { padding: 0; list-style: none; }
section.docs .docsmenu li { margin: 0; padding-block: 0.15rem; }
section.docs .docsmenu a {
    display: block;
    color: var(--textMedium);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
section.docs .docsmenu a::before { content: "-"; display: inline-block; inline-size: 1.25rem; }
section.docs .docsmenu li:has(> ul) > a::before { content: "›"; }
section.docs .docsmenu li:not(:is(.active, .current)) > ul { display: none; }
section.docs .docsmenu li ul a::before { content: ""; }
section.docs .docsmenu li ul { padding-inline-start: 1.25rem; }
section.docs .docsmenu li.current > a { color: var(--accentDarker);}

section.docs .docsbody { flex: 1 1 auto; min-inline-size: 0; padding-block: 3.2rem; }
section.docs .docsbody > * { max-inline-size: 45rem; }
section.docs .docsbody h1 { font-size: clamp(2.25rem, 5vw, 3rem); }

/* Inside the body every heading drops a level, exactly as it does inside a
   post — the page already has one display heading, the title above, and a
   body-face `h2` at h3's size keeps a page's own sections subordinate to it
   instead of competing. It is what the original theme does with
   `section.docs h2` and `h3`, sharing those rules with `.container.post`.

   The space above a heading is padding rather than margin so it cannot
   collapse into the paragraph before it, which is the theme's trick as well;
   `h2 + h3` drops it, because a subheading straight under its heading needs
   no gap at all. */
section.docs .docsbody h2 {
    font-family: var(--fontBody);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--textDark);
    margin-block: 0 0.4rem;
    padding-block-start: 1.5rem;
}
section.docs .docsbody h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--textMedium);
    margin-block: 0 0.2rem;
    padding-block-start: 1rem;
}
section.docs .docsbody :is(h2, h3):first-child { padding-block-start: 0; }
section.docs .docsbody h2 + h3 { padding-block-start: 0; }

/* The illustrations are line drawings, not photographs: at the body's full
   measure they read as a banner rather than as a picture beside the prose. */
section.docs .docsbody p img[src$=".svg"] { inline-size: 100%; max-inline-size: 30rem; margin-block: 3rem; }
section.docs .docsbody nav[aria-label="Breadcrumb"] ol,
section.docs .docsbody ul.breadcrumbs { justify-content: flex-start; }

@media (max-width: 65rem) {
    section.docs > .container { flex-direction: column-reverse; gap: 3rem; }
    section.docs .docsmenu { flex: none; max-inline-size: 100%; border: 0; padding-block-end: 0; }
    section.docs .docsmenu nav { position: static; }
}
/* -- brick: error404 -----------------------------------------------------
   ![](/error.svg)
   # Oops! Something went wrong!
   [Back to home](/)                                                      */

section.error404 { text-align: center; }
section.error404 h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
section.error404 p > img { inline-size: min(24rem, 80%); margin-inline: auto; }
/* -- brick: features -----------------------------------------------------
   Intro from the markdown, cards from data/<lang>/features.yaml.        */

section.features > .container > ul { gap: 3rem; margin-bottom: 2rem;}
section.features li { text-align: center; }

/* The icon. `--accent` masked through the glyph, the same trick the review
   stars and the map marker use, rather than the theme's `filter: contrast()
   sepia() hue-rotate()` hack respelled once per palette.

   The ring and the glyph cannot share an element: a mask applies to the whole
   box, borders included, so a ring drawn here would be masked away with
   everything outside the glyph. The ring stays on the box, the glyph goes on
   a pseudo-element.

   The circle is not a fixed size — it is the glyph plus its padding and ring,
   so changing one number changes the icon and nothing else. `inline-grid`
   rather than `grid` both centres it in the card's `text-align: center` and
   sets it on a text baseline, and that line box is what puts the last few
   pixels between the icon and the heading. */
section.features .icon {
    display: inline-grid;
    place-items: center;
    padding: 1.5rem;
    margin-block-end: 1.45rem;
    border: 0.1rem solid var(--accent);
    border-radius: 50%;
}
section.features .icon::before {
    content: "";
    inline-size: 3rem;
    block-size: 3rem;
    background: var(--accent);
    mask: var(--icon) center / contain no-repeat;
}

/* The base `h3` is already the card title — 1.25rem, 1.3, 700, `--textDark`,
   in the body face. Only the top margin goes: the icon above it supplies that
   space. The title face is for `h1` and `h2`; a heading inside a card stays in
   the body face, the same as `section.reviews figcaption strong`. */
section.features li h3 { margin-block-start: 0; }
/* -- brick: form ---------------------------------------------------------
   ## Shut up and take my money!
   {{< ctaform >}}

   A short form at the small measure. The controls, and the card around them,
   are styled once in the core — this only sets the rhythm around the form
   and centres the heading when the section leads with one.               */

section.form h1 { text-align: center; }
/* -- forme za upis (firma, profesionalac, oglas) -------------------------
   U stilu teme: naslov i uvod centrirani, forma u svijetloj kartici s
   okvirom (kao .box), polja s natpisom u rubu, kratka polja u dva stupca. */

section.form:has(form.dz-form) > .container { max-inline-size: 46rem; }
section.form:has(form.dz-form) > .container > h1 + p { text-align: center; margin-inline: auto; }
section.form form.dz-form {
    --field-notch: var(--light);
    max-inline-size: none;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--light);
    border: .1rem solid var(--borderLight);
    border-radius: var(--radius);
}
section.form form.dz-form .dz-help { color: var(--textMedium); }
section.form form.dz-form .checkbox input { accent-color: var(--accent); }
section.form form.dz-form .submit { margin-block-start: .5rem; }

/* Gumb "ispuni primjer" (samo uz hugo server): mali i diskretan, desno gore. */
form.dz-form .dz-primjer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 .5rem !important;
    box-shadow: none !important;
}
form.dz-form .dz-primjer button {
    inline-size: auto;
    padding: .1rem .5rem;
    font: inherit;
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--textMedium);
    background: transparent;
    border: 1px dashed var(--borderMedium);
    border-radius: .25rem;
    box-shadow: none;
    opacity: .6;
    cursor: pointer;
}
form.dz-form .dz-primjer button:hover { opacity: 1; transform: none; }

/* Gumb za pomoć ispod polja (help_link), npr. "Saznaj UID firme". */
form.dz-form .dz-pomoc {
    align-self: flex-start;
    margin-block-start: .5rem;
    padding: .2rem .65rem;
    font-size: .8rem;
    color: var(--accentDarker);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-radius: 1rem;
}
form.dz-form .dz-pomoc:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* -- brick: header -------------------------------------------------------
   Hero. The image becomes the backdrop, everything else sits on top.

   ![](/photo.jpg){:.background}
   # Heading
   Lead copy.
   {{< button "Get started" "/get-started/" >}}

   The stacking, the scrim, the white copy and the hero's padding are all in
   the core, on `:has(> .backdrop)` and `.bgimage` — shared with `quote` and
   `map`. Only the centring is the hero's own.                            */

section.header > .container { text-align: center; }
/* -- brick: image-alt ----------------------------------------------------
   The `image` brick with its columns swapped onto a tinted band. Everything
   else it needs is in `image.css`.                                       */

/* The two variants are four custom properties: a tint, its hairlines, and
   which column comes first. The `image-alt` brick already writes its picture
   before its prose, so `--media-order: 1` only confirms the markup order. */
section.image.alt {
    --band: var(--light);
    --band-border: 0.1rem;
    --text-order: 2;
    --media-order: 1;
}

/* Two rhythm rules that only the image pair knows about, so they live here
   rather than in the core's section rhythm. Brick stylesheets load after the
   core, so both still override it.

   A tinted band is `hasbackgroundcolor`, which zeroes the section padding on
   the grounds that whatever the brick paints carries its own. That does not
   hold for a full-bleed band: the space its content needs has to come from
   the section after all. And inside a run of image bricks the band is part of
   the zig-zag rather than a break in it, so there it butts straight up
   against its neighbour instead of taking the usual 2rem. */
main > section.image.alt { padding-block: var(--brick-space); }
main > section.image + section.image.alt { margin-block-start: 0; }
/* -- brick: image --------------------------------------------
   ## Heading
   Body copy, a list, a link.
   ![](/illustration.svg)

   The partial has already lifted the image into its own <figure>, so the
   two columns are two real elements and the reading order is honest.     */

section.image {
    background: var(--band, transparent);
    border-block: var(--band-border, 0) solid var(--borderLight);
}
/* Copy beside a picture reads centred against it, where the core default
   hangs both columns from the top. */
section.image .twocols { align-items: center; }
section.image .text { order: var(--text-order, 1); }
section.image .text > :last-child { margin-block-end: 0; }
section.image .media { order: var(--media-order, 2); margin: 0; text-align: center; }
section.image .media img { margin: 0 auto; border-radius: var(--radius); }
section.image .media img[src$=".svg"] { inline-size: 85%; border-radius: 0; }

/* A run of plain `image` bricks zig-zags without being asked to: every second
   brick of the run swaps its columns onto a tinted band. Any other brick ends
   the run and the count starts over — an explicit `image-alt` included, since
   that one paints its own band and would otherwise double up. Every link in
   the chain adds a class, so the longer selector always outranks the shorter
   one it also matches and the parity holds down the run; a run longer than six
   keeps the parity of the sixth. */
main > .image:not(.alt) + .image:not(.alt),
main > .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt),
main > .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt) {
    --band: var(--light);
    --band-border: 0.1rem;
    --text-order: 2;
    --media-order: 1;
}
main > .image:not(.alt) + .image:not(.alt) + .image:not(.alt),
main > .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt) + .image:not(.alt) {
    --band: transparent;
    --band-border: 0;
    --text-order: 1;
    --media-order: 2;
}

@media (max-width: 40rem) {
    /* Keep the text first on small screens, whichever variant it is. */
    section.image .text { order: 1; }
    section.image .media { order: 2; }
}
/* -- brick: imenik ------------------------------------------------------
   Pretraga i filteri, karta (Leaflet) i mreža kartica firmi.            */

section.imenik form.im-filteri {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0 1rem;
    padding: 1.25rem 1.25rem 0.25rem;
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-radius: var(--radius);
    --field-notch: var(--light);
}
section.imenik form.im-filteri > div { grid-column: auto; }
@media (max-width: 700px) {
    section.imenik form.im-filteri { grid-template-columns: 1fr 1fr; }
    section.imenik form.im-filteri > .im-trazi { grid-column: 1 / -1; }
}
section.imenik .im-broj { margin: 0.75rem 0 1rem; color: var(--textMedium); font-size: 0.9rem; }

section.imenik .im-karta {
    block-size: clamp(22rem, 60vh, 36rem);
    border-radius: var(--radius);
    border: 0.1rem solid var(--borderLight);
    z-index: 0;
}
.im-tocka span {
    display: block;
    inline-size: 22px;
    block-size: 22px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.im-popup { font: inherit; min-inline-size: 12rem; }
.im-popup p { margin: 0.2rem 0; }
.im-popup .im-kat { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--textMedium); }
.im-popup strong { font-size: 1rem; }
.im-popup .im-veze { display: flex; flex-direction: column; }

/* Klasteri u boji stranice umjesto zadane zelene/žute. */
.marker-cluster { background: color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; }
.marker-cluster div {
    inline-size: 30px; block-size: 30px; margin: 5px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff; font-weight: 700; font-size: 0.85rem;
}

section.imenik ul.im-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    gap: 1.25rem;
    padding: 0;
    margin: 2rem 0 0;
    list-style: none;
}
section.imenik .im-lista > li { margin: 0; scroll-margin-top: 6rem; }
section.imenik .im-lista > li[hidden] { display: none; }
section.imenik .im-lista article {
    display: flex;
    flex-direction: column;
    block-size: 100%;
    padding: 1.5rem;
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-inline-start: 0.35rem solid var(--boja);
    border-radius: var(--radius);
}
section.imenik .im-lista :target article,
section.imenik .im-lista li:target article { box-shadow: 0 0 0 0.2rem var(--boja); }
section.imenik .im-logo { max-inline-size: 7rem; max-block-size: 3rem; object-fit: contain; margin-block-end: 0.75rem; }
section.imenik .im-kat {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--boja);
}
section.imenik .im-lista h3 { margin: 0.2rem 0 0.4rem; font-size: 1.2rem; }
section.imenik .im-adresa { margin: 0; color: var(--textMedium); }
section.imenik .im-opis { margin: 0.75rem 0 0; }
section.imenik .im-veze { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.75rem 0 0; flex: 1; align-content: flex-start; }
section.imenik .im-na-karti {
    align-self: flex-start;
    margin-block-start: 1rem;
    padding: 0.4rem 0.9rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--accentDarker);
    background: none;
    border: 0.1rem solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}
section.imenik .im-na-karti:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
section.imenik .im-prazno { text-align: center; color: var(--textMedium); margin-block: 2rem; }

/* -- forme za prijavu ---------------------------------------------------- */

form.dz-form fieldset.dz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--borderMedium);
    border-radius: 0.25rem;
}
form.dz-form fieldset.dz-options legend {
    float: left;
    inline-size: 100%;
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--textMedium);
}
form.dz-form fieldset.dz-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: var(--textDark);
}
form.dz-form .dz-help { color: var(--textMedium); font-size: 0.85rem; }
form.dz-form input[type="file"] { block-size: auto; padding: 0.6rem 0.5rem; }
form.dz-form .checkbox label { align-items: flex-start; }
form.dz-form .checkbox label input { margin-block-start: 0.35rem; }
form.dz-form .checkbox label p { margin: 0; }
form.dz-form .dz-status { margin: 0.75rem 0 0; font-weight: 700; }
form.dz-form .dz-status.greska { color: var(--accentDarker); }
form.dz-form.poslano fieldset > :not(.submit) { display: none; }
form.dz-form.poslano .submit button { display: none; }

/* -- logo u boji ---------------------------------------------------------
   Tema boji logo filterom u boju teksta; naš logo ima svoju boju. */
.logo img,
.sitefooter.dark .logo img,
.siteheader.dark .logo img { filter: none; block-size: 2.5rem; }

/* Putanja (breadcrumbs): tema cilja aria-label="Breadcrumb", a mi ga prevodimo. */
nav[aria-label="Putanja"] ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.5rem;
    padding: 0;
    margin-block: -1rem .5rem;
    font-size: 0.9rem;
    list-style: none;
}
nav[aria-label="Putanja"] ol li { margin: 0; }
nav[aria-label="Putanja"] ol li + li::before { content: "/"; padding-inline-end: 0.5rem; color: var(--accent); }
nav[aria-label="Putanja"] ol :is(a, li::before) { color: var(--accent); text-decoration: none; }

/* Naslov forme je već h1 stranice; legenda ostaje samo za čitače ekrana. */
form.dz-form > fieldset > legend {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
form.dz-form .checkbox label span { display: block; }

section.imenik .container.small + .container { margin-block-start: 1.5rem; }

/* Skriveni natpis izbornika ("Izbornik" je duži od "Menu") ne smije
   proširiti stranicu na mobitelu. */
#togglemenu span { inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; }

section.imenik .im-prijavi {
    margin: 1rem 0 0;
    padding-block-start: .75rem;
    border-block-start: .1rem solid var(--borderLight);
    font-size: .8rem;
    color: var(--textMedium);
}
section.imenik .im-prijavi a { color: inherit; }
section.imenik .im-velicina { margin: .25rem 0 0; font-size: .85rem; color: var(--textMedium); }
section.imenik .im-uid { margin: .15rem 0 0; font-size: .8rem; color: var(--textMedium); }
section.imenik .im-uid a { color: inherit; }

section.imenik .im-jos-omot { text-align: center; margin: 1.5rem 0 0; }

/* -- istaknute firme ---------------------------------------------------- */
section.imenik .im-istaknute { margin-block-end: 2.5rem; }
section.imenik .im-istaknute h2 { margin-block: 0 1rem; }
section.imenik .im-istaknute .im-lista { margin-block-start: 0; }
section.imenik .im-lista article.im-istaknuta {
    background: color-mix(in srgb, var(--accent) 6%, var(--page));
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
section.imenik .im-oznaka {
    align-self: flex-start;
    margin: 0 0 .75rem;
    padding: .1rem .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 1rem;
}

/* -- profesionalci i poslovi -------------------------------------------- */
section.imenik .im-popis form.im-filteri { margin-block-start: 1.5rem; }
section.imenik .im-jezici { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0 0; }
section.imenik .im-jezici span {
    font-size: .75rem;
    padding: .1rem .55rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--boja) 12%, transparent);
    color: var(--textDark);
}
section.imenik .im-vrsta { background: var(--boja); }
section.imenik .im-datum { margin: .75rem 0 0; font-size: .8rem; color: var(--textMedium); }

/* -- Kontaktiraj --------------------------------------------------------- */
section.imenik .im-gumbi { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
section.imenik .im-gumbi .im-na-karti { margin: 0; }
section.imenik .im-kontaktiraj {
    padding: .4rem .9rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: .1rem solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}
section.imenik .im-kontaktiraj:hover { background: var(--accentDarker); transform: none; }

dialog.im-dialog {
    inline-size: min(34rem, calc(100% - 2rem));
    max-block-size: calc(100% - 2rem);
    margin: auto;
    padding: 1.75rem 1.75rem 1.25rem;
    border: 0;
    border-block-start: .5rem solid var(--accent);
    border-radius: .5rem;
    box-shadow: 0 10px 40px rgb(0 0 0 / .25);
    color: var(--textMedium);
    overflow-y: auto;
    overflow-x: hidden;
}
dialog.im-dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog.im-dialog h2 { font-size: 1.35rem; margin: 0 2rem .4rem 0; font-weight: 500; }
dialog.im-dialog .im-dialog-uvod { font-size: .85rem; margin: 0 0 1.25rem; }
dialog.im-dialog form.dz-form { max-inline-size: none; margin: 0; grid-template-columns: 1fr; }
dialog.im-dialog form.dz-form fieldset { grid-template-columns: 1fr; }
dialog.im-dialog textarea { block-size: 7rem; }
dialog.im-dialog .im-dialog-zatvori {
    position: absolute;
    inset-block-start: .75rem;
    inset-inline-end: .75rem;
    inline-size: 2rem;
    block-size: 2rem;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--textMedium);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
dialog.im-dialog .im-dialog-zatvori:hover { background: var(--light); transform: none; }
/* -- brick: intro --------------------------------------------------------
   # Heading
   One paragraph of lead copy.
   [Call to action](/get-started/)
   ![](/illustration.svg)                                                 */

section.intro > .container:first-child {padding-top: 1rem;}
section.intro { text-align: center; }
section.intro h1 + p { margin-block-start: -0.25rem; }
section.intro p > img { margin: 3rem auto 0; inline-size: min(38rem, 85%); }
/* -- brick: map ----------------------------------------------------------
   ![](/map.png)
   ## Contact us
   Address lines.                                                         */

section.map > .container {
    display: flex;
    justify-content: flex-end;
    padding-block: 3rem;
}
section.map address {
    min-inline-size: min(22rem, 100%);
    margin: 0;
    padding: 2.5rem 3rem;
    background: var(--page);
    border-radius: var(--radius);
    box-shadow: 0 0 1.5rem rgb(0 0 0 / 0.05);
}
/* The pin, centred on the map. The theme tinted a black svg with a `filter`
   hack spelled out once per palette; masking `--accent` through the same
   shape is exact, and it is one rule instead of four. Only drawn when there
   is a map to pin — a `map` brick with no image gets no floating marker.

   `grid-area` is set here because the core's `section:has(> .backdrop) > *`
   matches elements, and a pseudo-element is not one. It shares `z-index: -1`
   with the backdrop and simply paints after it, so the pin sits on the map
   while both stay behind the address. */
section.map:has(.backdrop)::after {
    content: "";
    grid-area: 1 / 1;
    z-index: -1;
    background: var(--accent);
    mask: url("/img/marker.svg") center / auto 4rem no-repeat;
}

@media (max-width: 55rem) {
    section.map > .container { justify-content: center; }
}

/* -- inline map -----------------------------------------------------------
   An `img.map` in running text, wrapped in a link to the mapping service —
   the elements page's plain map. The same pin as the brick's, but drawn on
   the wrapping link, since a replaced element can carry no `::after`, and in
   the theme's dark ink rather than `--accent` — the theme tints this one to
   the text color. */
a:has(> img.map) { position: relative; display: block; }
img.map {
    inline-size: 100%;
    aspect-ratio: 2.25;
    object-fit: cover;
    border-radius: var(--radius);
}
a:has(> img.map)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--textDark);
    mask: url("/img/marker.svg") center / auto 4rem no-repeat;
}
/* -- brick: payment ------------------------------------------------------
   Payment method picker.                                                 */

section.payment .methods { display: grid; gap: 0.75rem; max-inline-size: 22rem; }
/* -- brick: post ---------------------------------------------------------
   A single article at reading measure: breadcrumbs and a centred title, the
   byline, the featured image at a wider measure, then the body. The values
   are the original theme's `section.post`.                               */

section.post > .container { max-inline-size: 50rem; }
/* The picture is allowed past the reading measure, so the article opens on
   something wider than the column it is read in. */
section.post > .container.wide { max-inline-size: 62rem; }

section.post h1 { text-align: center; }
/* A post with neither a date nor tags has no byline to space the title from. */
section.post h1:last-child { margin-block-end: 3rem; }

section.post .featuredimage {
    inline-size: 100%;
    aspect-ratio: 2;
    object-fit: cover;
    border-radius: var(--radius);
    margin-block-end: 3rem;
}

/* The byline. `--textDarker` rather than the muted `--textMedium`: these are
   facts about the post, not a caption. The negative top margin pulls it up
   under the title, as in the theme. */
section.post .meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-block: -0.75rem 3rem;
    font-size: 0.9rem;
    color: var(--textDarker);
}
section.post .meta .entry { display: flex; align-items: center; gap: 0.4rem; }
/* A tag reads as part of the byline, not as a link in a sentence — the
   theme's `.meta a`. It still underlines on hover, so it is findable. */
section.post .meta a { color: inherit; text-decoration: none; }
@media (hover: hover) {
    section.post .meta a:hover { text-decoration: underline; }
}
/* `--accent` masked through the glyph, the same trick the feature icons and
   the review stars use, in place of the theme's per-palette `filter` hack. */
section.post .meta .icon {
    inline-size: 1rem;
    block-size: 1rem;
    position: relative;
    inset-block-end: 0.1rem;
    background: var(--textDarker);
    mask: var(--icon) center / contain no-repeat;
}

/* The opening paragraph is the standfirst, set larger than the body. */
section.post > .container > p:first-child,
section.post > .container > p:first-child a {
    color: var(--textDark);
    font-size: 1.52rem;
    line-height: 1.4;
}

/* Inside the article every heading drops a level. The page already has one
   display heading — the title above — and a body-face `h2` at h3's size keeps
   the article's own sections subordinate to it instead of competing. It is
   what the original theme does with `.container.post h2` and `h3`, and what it
   does for `section.docs` too.

   The space above a heading is padding rather than margin so it cannot
   collapse into the paragraph before it, which is the theme's trick as well;
   `h2 + h3` drops it, because a subheading straight under its heading needs no
   gap at all. */
section.post > article h2 {
    font-family: var(--fontBody);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--textDark);
    margin-block: 0 0.4rem;
    padding-block-start: 1.5rem;
}
section.post > article h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--textMedium);
    margin-block: 0 0.2rem;
    padding-block-start: 1rem;
}
section.post > article :is(h2, h3):first-child { padding-block-start: 0; }
section.post > article h2 + h3 { padding-block-start: 0; }
/* -- brick: posts / webshop ----------------------------------------------
   ## Heading
   Intro copy.

   - [![](/photo.jpg) **Post title**](/blog/post/) Summary.               */

:is(section.posts, section.webshop) li img {
    inline-size: 100%;
    aspect-ratio: 2;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 0 1rem;
}
/* The card title is a `<strong>` rather than a heading — a teaser is not a
   section of the page — so the base `h3`'s metrics are spelled out here. The
   face is the body one, as it is for every heading inside a card. */
:is(section.posts, section.webshop) li strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--textDark);
    margin-block-end: 0.4rem;
}
:is(section.posts, section.webshop) li > a { text-decoration: none; }

/* The card's own furniture, at the original theme's measurements —
   `bricks.css` `section.posts` and `base.css` `.meta`. `--flow` is the
   paragraph rhythm of a body of prose and far too much inside a card, so the
   card sets its own. */
section.posts li p { margin-block: 0 1rem; }
section.posts li p:last-child { margin-block-end: 0; }

/* The date. `--textDarker` rather than the muted `--textMedium`: it is a fact
   about the post, not a caption. `.meta` in the theme carries several of these
   groups 1rem apart and each one's icon 0.4rem from its text; there is only
   the date here, so the inner gap is the one that shows. */
section.posts li .meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-block: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--textDarker);
}
/* `--accent` masked through the glyph, the same trick the feature icons and
   the review stars use, in place of the theme's per-palette `filter` hack. The
   0.1rem lift is the theme's, to sit the glyph on the text's baseline. */
section.posts li .meta .icon {
    inline-size: 1rem;
    block-size: 1rem;
    position: relative;
    inset-block-end: 0.1rem;
    background: var(--textDarker);
    mask: var(--icon) center / contain no-repeat;
}

/* A wider column gutter than the shared collection grid's 1.5rem — the cards
   carry more text than a feature or a review and need the air.

   `auto-fill` rather than the shared grid's `auto-fit`, because this is the
   one grid whose items come and go: `auto-fit` collapses the tracks it has no
   item for, so filtering down to a single post would stretch that post across
   the full width. `auto-fill` keeps the empty tracks and the card keeps its
   column. It is what the original theme's two trailing `li.placeholder`
   elements were holding open, without the two empty list items. */
section.posts > .container > ul.posts {
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 1.55rem 2rem;
}

/* The tag filter sits over the grid, at the grid's right edge — `split_list`
   puts it in the wide container for exactly that. The negative top margin
   pulls it back into the 4rem the intro leaves below itself, so the filter
   rides in that space rather than pushing the grid down. It is the one control
   on the page that does nothing without `site.js`, and the page is complete
   without it: every card is visible until something hides one. */
section.posts .filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-block: -2rem 1.25rem;
}
/* The theme's own control: no fill, a hairline border, and 0.25em/0.75em of
   padding. The base control rule already puts selects at `line-height:
   normal`. */
section.posts .filter select {
    background: none;
    padding: 0.25em 0.75em;
    border: 1px solid var(--borderMedium);
    margin: 0;
}

/* The chosen tags, as chips that drop themselves. `site.js` builds them, so
   the list is empty and takes no room until one is picked. */
section.posts .filter ul.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    order: -1;
}
section.posts .filter ul.tags li { margin: 0; }
section.posts .filter ul.tags button {
    display: flex;
    align-items: center;
    block-size: 2rem;
    padding: 0 0.6rem 0 1rem;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    color: #fff;
    background: var(--textDark);
    border: 0;
    border-radius: 1.15rem;
}
/* The cross is a rotated plus, as in the theme. It is decoration: the button's
   `aria-label` names the tag it drops, and an accessible name replaces the
   content rather than adding to it, so nothing reads out a stray "+". */
section.posts .filter ul.tags button::after {
    content: "+";
    display: inline-block;
    margin-inline-start: 1rem;
    font-size: 1.5rem;
    transform: rotate(45deg);
}

/* The way on. `site.js` unhides it while cards are still held back. */
section.posts .loadmore { margin-block: 0; position: relative; inset-block-end: 1rem; }

/* -- brick: prices -------------------------------------------------------
   ## Heading
   Intro copy.

   {{< pricing >}}

   The plans come from data/<lang>/pricing.yaml; the shortcode emits one
   <article> per plan and marks the lifted one `.featured`.

   Every selector here is anchored on `> .container > ul > li`, the plan
   itself. A plan holds a second list — its features — and the card styling
   must not reach that far down.                                          */

section.prices > .container > ul { 
    max-inline-size: 70rem; 
    margin-inline: auto; 
    gap: 1.55rem 1.5rem;
}

section.prices > .container > ul > li {
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-radius: var(--radius);
}
section.prices > .container > ul > li > article {
    display: flex;
    flex-direction: column;
    block-size: 100%;
    padding: 3rem 2rem;
    text-align: center;
}

section.prices .badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    margin-block-end: 2rem;
    position: relative;
    bottom: 1rem;
}
/* The theme sets the plan title at plain heading size in the body face —
   1.25rem/700 — rather than enlarging it. Left at 1.6rem it crowds the card
   and competes with the price for the eye. */
section.prices article h3 { margin-block-start: 0; }

/* `$25/month` is three sizes on one baseline: a small raised currency sign,
   the numeral at 3rem, and the period back at title size. */
section.prices .amount {
    margin-block: 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--textDark);
}
section.prices .currency { vertical-align: top; }
section.prices .price {
    /* 900 resolves to the 600 face, the heaviest Heebo we ship — which is
       what the theme renders too, shipping the same two weights. */
    font-weight: 900;
    font-size: 3rem;
    line-height: 0.9;
    letter-spacing: -0.1rem;
    vertical-align: bottom;
    padding-inline: 0.25rem;
}

/* The feature list reads flush left, but sits centred in the card rather than
   spanning it. `align-self` does both jobs: it takes the item off the flex
   container's default `stretch`, so the list shrinks to its longest line, and
   it centres what is left. The theme gets there with `display: inline-block`,
   which cannot work here — the card is a flex container, and a flex item is
   blockified, so `inline-block` would compute to `block` and stretch anyway.

   `flex: 1` is on the main (vertical) axis and is unaffected: the list still
   takes the slack, which is what lines the buttons up across plans of
   different lengths. */
section.prices article > ul {
    flex: 1;
    align-self: center;
    text-align: start;
    margin-block: 1.5rem 2.5rem;
    padding: 0;
    list-style: none;
}
section.prices article > ul > li { margin: 0; }
section.prices article > ul > li::before {
    content: "✓";
    padding-inline-end: 0.4rem;
    color: var(--accentDarker);
}
section.prices article > p:last-child { margin: 0; }

@media (min-width: 65rem) {
    section.prices > .container > ul { grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 2rem;}
    section.prices > .container > ul > li:first-child { border-start-end-radius: 0; border-end-end-radius: 0; }
    section.prices > .container > ul > li:last-child { border-start-start-radius: 0; border-end-start-radius: 0; }

    /* The lifted plan is named by the data, not by its position in the row.
       The white halo is what separates it from the plans it overlaps: the row
       closes to `gap: 0` here, so a scaled card would otherwise sit straight
       on its neighbours' edges with nothing between them. */
    section.prices > .container > ul > li.featured {
        z-index: 2;
        transform: scale(1.08);
        border-radius: var(--radius);
        box-shadow: 0 0 0 0.25rem white;
    }
    /* `--light` is a translucent tint, so the lifted card would show the two
       plans it overlaps straight through itself. This lays an opaque white
       sheet over that tint, which is also why the card reads white rather
       than tinted: `transform` makes it a stacking context, and inside one
       the element's own background paints first, so a `z-index: -1` pseudo
       lands above the tint and not beneath it. */
    section.prices > .container > ul > li.featured::before,
    section.prices > .container > ul > li.featured::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--page);
        border-radius: inherit;
    }
    section.prices > .container > ul > li.featured::after {
        background: var(--light);
    }
}
/* -- brick: product ------------------------------------------------------
   Product gallery beside title, price and add-to-cart form.              */

section.product img { border-radius: var(--radius); }
section.product h1 { margin-block-end: 1.25rem; }
section.product h1 + h2 { margin-block-start: 0; }
section.product select { inline-size: 100%; margin-block-end: 1rem; }
/* -- brick: quote --------------------------------------------------------
   ## "The pulled quotation."
   — Attribution                                                          */

section.quote { text-align: center; }
/* `margin-block`, not `margin`: the figure is also the `.container`, and a
   shorthand here would beat its `margin-inline: auto` and jam it left. */
section.quote > figure { border-radius: 0; margin-block: 0; }
section.quote :is(h2, blockquote) {
    border: 0;
    padding: 0;
    font-style: normal;
    font-family: var(--fontTitles);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    color: var(--quotation);
    margin-block: 0 0.75rem;
}
/* The attribution is quieter than the quotation. It goes through a token
   because `> figure > p:last-child` outranks the white-on-backdrop rule
   below on specificity — dimming the token is order- and specificity-proof
   where another colour declaration would have to win that fight. */
section.quote { --quotation: var(--textDark); --attribution: var(--textMedium); }
section.quote figcaption,
section.quote > figure > p:last-child { color: var(--attribution); margin: 0; }

/* Over a backdrop the quote flips to white. The scrim, the white copy and the
   padding come from `.bgimage` in the core; only the attribution token is the
   quote's own, because its colour is quieter than the quotation's. */
section.quote.bgimage { --quotation: #fff; --attribution: white; }
/* -- brick: reviews ------------------------------------------------------
   Intro from the markdown, cards from data/<lang>/reviews.yaml.         */

section.reviews li > figure {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    block-size: 100%;
    margin: 0;
    padding: 2.25rem 2rem;
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-radius: var(--radius);
}
/* The rating. `--accent` masked through the star, the same trick the map
   marker uses, rather than the theme's `filter: contrast() sepia()
   hue-rotate()` hack respelled for each palette. */
section.reviews .stars { display: flex; gap: 0.25rem; margin: 0; }
section.reviews .stars span {
    inline-size: 1rem;
    block-size: 1rem;
    background: var(--accent);
    mask: url("/img/star.svg") center / contain no-repeat;
}
section.reviews .stars span.empty { background: var(--borderMedium); }
section.reviews blockquote {
    flex: 1;
    border: 0;
    padding: 0;
    margin: 0;
    font-style: normal;
}
section.reviews figcaption {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    font-size: 1rem;
    text-align: start;
}
/* Shape and crop come from `.avatar` in the core; only the size is the
   brick's own. */
section.reviews figcaption img { inline-size: 3.25rem; block-size: 3.25rem; margin: 0; }
section.reviews figcaption strong { display: block; font-size: 1.1rem; line-height: 1.45; }
section.reviews figcaption small { display: block; font-size: 1rem; line-height: 1.45; color: var(--textDarker); }
/* -- brick: small --------------------------------------------------------
   Plain measure brick for short forms.                                   */

section.small, section.small h1 { text-align: center; }
/* -- brick: team ---------------------------------------------------------
   Intro from the markdown, people from data/<lang>/people.yaml.         */

section.team li > article {
    display: flex;
    flex-direction: column;
    block-size: 100%;
    padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background: var(--light);
    border: 0.1rem solid var(--borderLight);
    border-radius: var(--radius);
}
/* Shape and crop come from `.avatar` in the core. */
section.team article img.avatar { inline-size: 8rem; block-size: 8rem; margin: 0.5rem auto 0.75rem; }
section.team article h3 { margin: 0; font-size: 1.25rem; }
section.team article .function { color: var(--textDark); margin-block: 0 1rem; }
section.team article > p:last-of-type { flex: 1; }
section.team article ul.buttons { justify-content: center; padding: 0; margin: 0; }
/* -- brick: title --------------------------------------------------------
   # Page title
   One paragraph of standfirst.                                           */

section.title { text-align: center; padding-block-end: 3.25rem; }
section.title > .container > :is(p, ul) { margin-inline: auto; }
/* -- brick: webshop ------------------------------------------------------
   The product grid is the post grid: the cards are styled together by the
   `:is(section.posts, section.webshop)` rules in `posts.css`. What is here
   is the list's own geometry, the same measurements `posts.css` gives
   `ul.posts` — the `products` shortcode emits `ul.products`, so the shared
   collection grid's tighter gutter would apply otherwise.                 */

section.webshop > .container > ul.products {
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    gap: 1.55rem 2rem;
}

section.webshop li p { margin-block: 0 1rem; }
section.webshop li p:last-child { margin-block-end: 0; }
/* -- brick: wide ---------------------------------------------------------
   Plain measure brick for long-form pages.                               */

section.wide h1 { text-align: center; margin-block-end: 3.75rem;}
section.wide > .container { max-inline-size: var(--measure-medium); }
