/* ==========================================================================
   Mediquipt - Site stylesheet
   Base + shared components. Consumes tokens.css and reuses the grid and
   utility classes from utility.css (.container, .row, .col-*, spacing).
   Page-specific rules live in assets/css/pages/<page>.css, not here.

   Contents
    1. Reset & base
    2. Typography
    3. Layout helpers (section, stack, measure)
    4. Accessibility helpers
    5. Buttons & links
    6. Brand shape
    7. Header & navigation
    8. Hero & page header
    9. Section intro & split
   10. Panels (feature panel, media panel, CTA block, contact block)
   11. Icon tiles & icon carousel
   12. Cards
   13. Tiles (category, product)
   14. Logos
   15. Stats
   16. Team
   17. Timeline
   18. Carousel chrome (Swiper)
   19. Breadcrumb, badge, pagination
   20. Tables & lists
   21. Documents
   22. Forms
   23. Media (video frame, product stage)
   24. Footer
   25. Reveal on scroll
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-base);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Sticky footer: short pages keep the footer at the bottom of the viewport. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

#main {
    flex: 1 0 auto;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-link-hover);
}

/* Component lists drop the marker and the indent. Lists in running copy
   (editor content in .stack, a plain <ul> in a paragraph block) keep the
   browser markers. Zero specificity, so a component can add its own
   marker (.list-dot). Add a new list component here. */
:where(.nav__list, .site-footer__links, .site-footer__legal, .breadcrumb__list,
    .card-grid, .tile-grid, .product-grid, .product-gallery__thumbs, .logo-grid,
    .icon-row, .doc-list, .link-columns ul, .pagination, .list-dot) {
    padding: 0;
    list-style: none;
}

.stack :is(ul, ol) {
    padding-left: 1.4em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

/* --------------------------------------------------------------------------
   2. Typography
   Every heading in the design is Montserrat Black (900). Sizes are fluid.
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display {
    color: var(--color-heading);
    font-weight: var(--weight-black);
    line-height: var(--leading-heading);
    margin-bottom: var(--space-4);
    text-wrap: balance;
}

h1,
.h1,
.display {
    font-size: var(--text-display);
    line-height: var(--leading-tight);
}

h2,
.h2 {
    font-size: var(--text-h2);
}

/* On a phone a long compound word in a heading ("handbeademingssystemen")
   or a long button label wraps instead of making the page wider. */
@media (max-width: 767.98px) {
    h1,
    h2,
    h3,
    h4,
    .h1,
    .h2,
    .h3,
    .h4 {
        hyphens: auto;
        overflow-wrap: anywhere;
    }
}

h3,
.h3 {
    font-size: var(--text-h3);
}

h4,
.h4 {
    font-size: var(--text-h4);
}

/* "Specificaties:", "Beschikbare configuraties": bold sub heading, not black */
.h-sub {
    font-size: var(--text-h4);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading);
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
.h-sub:last-child {
    margin-bottom: 0;
}

/* Paragraphs wrap greedily, word by word, like the design tool. "pretty"
   moves words to avoid a short last line, so the copy got an extra line
   on several pages and every block below shifted down. */
p {
    text-wrap: wrap;
}

p + p,
p + ul,
ul + p,
p + ol {
    margin-top: var(--stack);
}

strong,
b {
    font-weight: var(--weight-bold);
}

/* bold run-in line directly above a paragraph ("Nauwkeurige regeling ...") */
.lead-in {
    display: block;
    font-weight: var(--weight-bold);
}

/* bold heading in body size that sits directly on its paragraph
   ("Monitoring en patiëntveiligheid"). Same look as .lead-in, but a real
   heading, so long product and news copy keeps an outline. */
.run-in-heading {
    font-size: inherit;
    font-weight: var(--weight-bold);
    line-height: var(--leading-body);
    margin-bottom: 0;
    text-wrap: wrap; /* the design breaks these line by line, not balanced */
}

* + .run-in-heading {
    margin-top: var(--stack);
}

.run-in-heading + p {
    margin-top: 0;
}

.eyebrow {
    display: block;
    font-size: var(--text-eyebrow);
    font-weight: var(--weight-regular);
    line-height: var(--leading-snug);
    color: var(--color-blue);
    margin-bottom: var(--space-2);
}

.eyebrow--bold {
    font-weight: var(--weight-semibold);
}

.text-lead {
    font-size: var(--text-lead);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-muted {
    color: var(--color-muted);
}

.text-green {
    color: var(--color-green-text);
}

.text-blue {
    color: var(--color-blue-text);
}

/* sub- and superscript inside running copy (O2, CO2) without line jumps */
sub,
sup {
    font-size: 0.7em;
    line-height: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   .container (1640 px) and .container--narrow (1364 px) come from
   utility.css and are sized by tokens.css.
   -------------------------------------------------------------------------- */
/* utility.css steps the container through fixed Bootstrap widths (540, 720,
   960, 1140, 1560). The design is fluid up to 1640 px of content, so the
   token width wins at every breakpoint. */
.container {
    max-width: var(--container-max);
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: calc(var(--section-y) * 0.6);
}

/* the wider gap above big blocks on Homepage, Over ons and Partners:
   about 125 px (--loose) and 150 px (--looser) at 1920 instead of 88 px.
   Only the top padding changes, so each gap is set once; combine with
   .section--flush-bottom when the next block brings its own gap. */
.section--loose {
    padding-top: calc(var(--section-y) * 1.4);
}

.section--looser {
    padding-top: calc(var(--section-y) * 1.7);
}

.section--flush-top {
    padding-top: 0;
}

/* a page that opens with a panel instead of a title (Contact,
   Contactformulier): a smaller gap under the site header */
.page--panel-first {
    padding-top: calc(var(--section-y) * 0.6 + var(--space-2));
}

.section--flush-bottom {
    padding-bottom: 0;
}

.measure {
    max-width: var(--measure);
    margin-inline: auto;
}

.stack > * + * {
    margin-top: var(--stack);
}

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 1000;
    padding: var(--space-3) var(--space-5);
    background: var(--color-ink);
    color: var(--color-white);
    font-weight: var(--weight-bold);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--space-4);
    color: var(--color-white);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   Primary: green pill, white bold label, white arrow at the right.
   Outline: green border, green label. Height 48-50 px at 1920.
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--color-cta);
    --btn-fg: var(--color-white);
    --btn-border: var(--color-cta);
    --btn-bg-hover: var(--color-cta-hover);
    --btn-fg-hover: var(--color-white);
    --btn-border-hover: var(--color-cta-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
    min-height: 3rem;
    padding: 0.55em 1.05em 0.55em 1.25em;
    font-size: var(--text-body);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    text-align: left;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    /* A label that fits stays on one line: in a flex row the button does
       not shrink below its label. A label wider than its column wraps
       inside the pill, at every width. With "nowrap" it stuck out of the
       pill on a laptop, white on white. */
    flex-shrink: 0;
    max-width: 100%;
    transition: background-color var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition);
}

.btn:hover {
    color: var(--btn-fg-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
}

.btn:active {
    background: var(--color-cta-active);
    border-color: var(--color-cta-active);
}

.btn:focus-visible {
    outline-offset: 3px;
    border-radius: var(--radius-pill);
}

/* trailing arrow drawn with a mask so it takes the label colour */
.btn__icon,
.link-arrow::after,
.btn-round::before,
.carousel__btn::before {
    content: "";
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h21'/%3E%3Cpath d='M15.5 4l8.5 8-8.5 8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h21'/%3E%3Cpath d='M15.5 4l8.5 8-8.5 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn__icon {
    width: 1.35em;
    height: 1.15em;
    transition: transform var(--transition);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

/* leading icon (download): sits before the label */
.btn__icon--download {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M6.5 10L12 15.5 17.5 10'/%3E%3Cpath d='M4 20.5h16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M6.5 10L12 15.5 17.5 10'/%3E%3Cpath d='M4 20.5h16'/%3E%3C/svg%3E");
    width: 1.2em;
}

.btn:hover .btn__icon--download {
    transform: translateY(2px);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--color-green-text);
    --btn-border: var(--color-green);
    --btn-bg-hover: var(--color-green-13);
    --btn-fg-hover: var(--color-green-text);
    --btn-border-hover: var(--color-green-text);
}

.btn--outline:active {
    background: var(--color-green-20);
}

/* "Download PDF": light-blue pill with ink label and a leading icon */
.btn--soft {
    --btn-bg: var(--color-blue-10);
    --btn-fg: var(--color-ink);
    --btn-border: var(--color-blue-line);
    --btn-bg-hover: var(--color-blue-line);
    --btn-fg-hover: var(--color-ink);
    --btn-border-hover: var(--color-blue-line);
    font-size: var(--text-lead);
    padding-inline: 1em 1.1em;
    gap: 0.6em;
}

.btn--soft:active {
    background: var(--color-blue-line);
}

/* white button for dark media (hero) */
.btn--light {
    --btn-bg: var(--color-white);
    --btn-fg: var(--color-green-text);
    --btn-border: var(--color-white);
    --btn-bg-hover: var(--color-green-13);
    --btn-fg-hover: var(--color-green-text);
    --btn-border-hover: var(--color-green-13);
}

.btn--sm {
    font-size: var(--text-xs);
    min-height: 2.5rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

/* horizontal row of buttons (contact block) and vertical stack (CTA block) */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.btn-row--center {
    justify-content: center;
}

.btn-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1rem, 0.6rem + 0.6vw, 1.375rem);
}

/* text link with a trailing arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: var(--weight-bold);
    color: var(--color-green-text);
}

.link-arrow::after {
    width: 1.15em;
    height: 1em;
    transition: transform var(--transition);
}

.link-arrow:hover {
    color: var(--color-ink);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* round green arrow button (card action, 42 px at 1920) */
.btn-round {
    display: inline-grid;
    place-items: center;
    width: clamp(2.25rem, 1.9rem + 0.5vw, 2.625rem);
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-cta);
    transition: background-color var(--transition), transform var(--transition);
}

.btn-round::before {
    width: 55%;
    height: 50%;
}

.btn-round:hover {
    color: var(--color-white);
    background: var(--color-cta-hover);
    transform: translateX(2px);
}

.btn-round:focus-visible {
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   6. Brand shape
   One very large rounded corner pair: top-right and bottom-left.
   .shape            container with the shape (blocks, panels)
   .shape--blue      light-blue surface with a 2 px edge
   .shape--green     light-green surface with a 2 px edge
   .shape--white     white surface with a soft shadow
   .shape--outline   2 px outline only (decorative, hero and page header)
   .shape--mirror    top-left and bottom-right instead
   .shape-media      photo masked into the shape. Set --focus to move the
                     focal point, for example style="--focus: 30% 20%".
   Override the radius per instance with --shape-r.
   -------------------------------------------------------------------------- */
.shape {
    border-radius: 0 var(--shape-r) 0 var(--shape-r);
}

.shape--mirror {
    border-radius: var(--shape-r) 0 var(--shape-r) 0;
}

.shape--blue {
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
}

.shape--green {
    background: var(--color-green-13);
    border: var(--border-w) solid var(--color-green-line);
}

.shape--white {
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.shape--outline {
    border: var(--border-w) solid var(--color-green);
    background: transparent;
}

.shape-media {
    --focus: 50% 50%;
    position: relative;
    overflow: hidden;
    border-radius: 0 var(--shape-media-rx) 0 var(--shape-media-rx) / 0 var(--shape-media-ry) 0 var(--shape-media-ry);
    background: var(--color-blue-10);
    /* Safari: keep the rounded clip while the image transforms */
    isolation: isolate;
}

.shape-media > img,
.shape-media > video,
.shape-media > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus);
}

.shape-media--mirror {
    border-radius: var(--shape-media-rx) 0 var(--shape-media-rx) 0 / var(--shape-media-ry) 0 var(--shape-media-ry) 0;
}

/* common photo proportions from the design */
.ratio-photo {
    aspect-ratio: 604 / 518;
}

.ratio-card {
    aspect-ratio: 322 / 280;
}

.ratio-wide {
    aspect-ratio: 746 / 444;
}

.ratio-square {
    aspect-ratio: 1;
}

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.site-header.is-stuck {
    box-shadow: var(--shadow-header);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    min-height: var(--header-h);
}

.brand-logo {
    display: inline-block;
    flex: none;
}

.brand-logo img {
    width: auto;
    height: clamp(2.75rem, 1.6rem + 2.4vw, 4.5rem); /* 72 px at 1920 */
}

.nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, -0.5rem + 2.5vw, 2.8rem); /* 45 px at 1920 */
}

.nav__link {
    display: block;
    padding-block: var(--space-2);
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    color: var(--color-ink);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-green-text);
}

.nav__link[aria-current="page"],
.nav__link.is-active {
    color: var(--color-nav-active);
}

/* hamburger: hidden on desktop */
.nav-toggle {
    display: none;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-ink);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    position: absolute;
    left: 50%;
    width: 1.6rem;
    height: 2.5px;
    margin-left: -0.8rem;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bar {
    top: 50%;
    margin-top: -1.25px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    left: 0;
    margin-left: 0;
}

.nav-toggle__bar::before {
    transform: translateY(-8px);
}

.nav-toggle__bar::after {
    transform: translateY(8px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--color-white);
        box-shadow: var(--shadow-header);
        border-top: 1px solid var(--color-blue-line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear 180ms;
    }

    .nav-open .nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity var(--transition), transform var(--transition);
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-3) var(--container-pad) var(--space-6);
    }

    .nav__link {
        padding-block: var(--space-4);
        font-size: 1.125rem;
        border-bottom: 1px solid var(--color-blue-10);
    }
}

/* --------------------------------------------------------------------------
   8. Hero & page header
   .hero            full-bleed video or photo, dark scrim, white copy, green
                    brand outline behind the copy (homepage, Partners).
   .hero--compact   shorter variant (Partners: 634 px instead of 794 px).
   .page-header     light-green band with a white outline (category grid).
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--hero-h);
    padding-block: clamp(3rem, 2rem + 4vw, 6.7rem);
    color: var(--color-white);
    background: var(--color-ink);
    isolation: isolate;
    overflow: hidden;
}

.hero--compact {
    min-height: clamp(26rem, 16rem + 24vw, 39.625rem);
    padding-block: clamp(2.5rem, 2rem + 1.5vw, 3rem);
}

.hero__media,
.hero__media > img,
.hero__media > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    z-index: -2;
}

/* scrim: darker at the copy side; raise --hero-scrim if a video is light */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--color-scrim) calc((var(--hero-scrim, 0.55) + 0.1) * 100%), transparent) 0%,
            color-mix(in srgb, var(--color-scrim) calc(var(--hero-scrim, 0.55) * 100%), transparent) 45%,
            color-mix(in srgb, var(--color-scrim) calc((var(--hero-scrim, 0.55) - 0.2) * 100%), transparent) 100%);
}

.hero__inner {
    position: relative;
    width: 100%;
}

.hero__outline {
    position: absolute;
    left: var(--container-pad); /* content edge of the container */
    top: 50%;
    width: min(41%, 666px);
    height: clamp(18rem, 10rem + 24vw, 36.25rem); /* 580 px at 1920 */
    transform: translateY(-50%);
    pointer-events: none;
}

.hero--compact .hero__outline {
    width: min(38%, 616px);
    height: clamp(16rem, 9rem + 21vw, 33.5rem);
}

/* The inset and the text measures are separate: the copy starts 108 px
   inside the outline (x 248 at 1920), the title wraps within 1108 px and
   the intro runs up to 1216 px (x 1465 in the render). */
.hero__content {
    position: relative;
    /* the copy does not sit in the exact middle of the hero: at 1920 the
       title ink starts 141 px (homepage) and 165 px (compact) below the
       top of the outline */
    top: var(--hero-offset, clamp(0rem, -1rem + 2.1vw, 1.5rem));
    padding-left: clamp(1.25rem, -1rem + 6.5vw, 6.75rem);
}

.hero--compact {
    --hero-offset: clamp(-0.6rem, 0.5rem - 0.9vw, 0rem);
    --hero-title-gap: -0.1875rem;
}

.hero__title {
    max-width: 69.25rem;
    color: var(--color-white);
    line-height: 1.31; /* 92 px between the two title lines in the render (70 px title) */
    margin-bottom: var(--hero-title-gap, 0.375rem);
}

.hero__text {
    max-width: 76rem;
    font-size: var(--text-lead);
    font-weight: var(--weight-light);
    line-height: 1.5; /* 36 px on 24 px in the render */
    color: var(--color-white);
}

.hero__actions {
    margin-top: clamp(1.25rem, 0.45rem + 1.1vw, 1.825rem);
}

@media (max-width: 767.98px) {
    .hero__outline {
        width: 78%;
        height: 82%;
    }
}

.page-header {
    position: relative;
    background: var(--color-green-13);
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.9rem) clamp(2.5rem, 1.5rem + 4.8vw, 6.85rem);
    overflow: hidden;
}

/* breadcrumb as the first row of the band: the band starts directly under
   the site header, the crumbs sit top-left above the eyebrow */
.page-header:has(> .breadcrumb) {
    padding-top: 0;
}

.page-header > .breadcrumb {
    position: relative;
    z-index: 1;
    padding-block: clamp(0.75rem, 0.5rem + 0.6vw, 1.15rem) 2.6rem;
}

.page-header__inner {
    position: relative;
}

.page-header__outline {
    position: absolute;
    left: var(--container-pad);
    top: clamp(-2.5rem, -1rem - 1.5vw, -2.25rem);
    width: clamp(10rem, 6rem + 12vw, 20.375rem);  /* 326 px */
    height: clamp(9rem, 5rem + 11vw, 17.75rem);   /* 284 px */
    border-color: var(--color-white);
    --shape-r: clamp(3rem, 1.5rem + 5vw, 8.5rem);
    pointer-events: none;
}

.page-header__content {
    position: relative;
    padding-left: clamp(1.25rem, -1rem + 6.5vw, 6.75rem);
}

.page-header__title {
    /* below 520 px the size follows the viewport, so one long word
       ("nekpositionering") keeps clear of the container padding */
    font-size: min(var(--text-display), 8.5vw);
    margin-bottom: 0;
    max-width: 16ch;
    /* no automatic hyphens here: with the 16ch limit the browser would
       hyphenate short words ("pro-duct") on a tablet. On a phone the
       heading rule above hyphenates a long compound word. */
    overflow-wrap: break-word;
}

/* A word longer than 16ch ("schouderpositionering") widens the title
   instead of breaking at a random letter. Below 768 px the heading rule
   above hyphenates it. */
@media (min-width: 768px) {
    .page-header__title {
        min-width: min-content;
    }
}

/* --------------------------------------------------------------------------
   9. Section intro & split
   -------------------------------------------------------------------------- */
.section-intro {
    max-width: var(--measure);
    margin-inline: auto;
    text-align: center;
}

.section-intro > h2,
.section-intro > .h2 {
    margin-bottom: var(--space-5);
}

.section-intro--start {
    margin-inline: 0;
    text-align: left;
}

.section-intro + * {
    margin-top: clamp(2rem, 1.2rem + 2vw, 3.5rem);
}

/* copy blocks leave one blank line between paragraphs, as in the design */
.section-intro p + p,
.split__body p + p,
.media-panel__body p + p,
.cta-block p + p {
    margin-top: 1.65em;
}

/* a second text block under a button row (Homepage "Documentatie en downloads") */
.split__body > .btn-row + p {
    margin-top: 2.45rem;
}

.section-intro .btn-row {
    margin-top: clamp(1.5rem, 1rem + 1vw, 2.2rem);
}

/* Text left and media right. At 1920 inside .container--narrow: text
   column 672 px (x 278 to 950), 70 px gap, media column 622 px (x 1020 to
   1642, the NKV-330 portrait of the render). Below 1920 both columns
   scale in the same ratio. Add .split--reverse to mirror. */
.split {
    display: grid;
    /* minmax(0, ...) keeps a Swiper inside a column from growing without limit */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    align-items: center;
}

.split--top {
    align-items: start;
}

.split__body > .btn-row,
.split__body > .btn,
.split__body > .link-arrow {
    margin-top: clamp(1.25rem, 0.9rem + 0.8vw, 2rem);
}

@media (min-width: 992px) {
    .split {
        --split-gap: clamp(2rem, -0.25rem + 3.85vw, 4.375rem); /* 70 px */
        grid-template-columns: minmax(0, 672fr) minmax(0, 622fr);
        column-gap: var(--split-gap);
    }

    .split--reverse {
        grid-template-columns: minmax(0, 622fr) minmax(0, 672fr);
    }

    /* The designer's standard photo (.ratio-photo) is 604 x 518 and sits
       on the outer side of the 622 px column (x 278 to 881 on the left,
       up to x 1642 on the right). Zero specificity, so page CSS can size
       a photo differently. */
    :where(.split) > :where(.split__media.ratio-photo) {
        width: 100%;
        max-width: 37.75rem;
        justify-self: end;
    }

    :where(.split--reverse) > :where(.split__media.ratio-photo) {
        justify-self: start;
    }

    /* The media column runs 51 px past the narrow container (x 1071 to
       1693 at 1920): Homepage "Documentatie en downloads", Flowmeters
       "Toepassingen". The text column keeps its place and width. Media
       right only. The bleed shrinks to 0 before it reaches the viewport. */
    .split--bleed {
        --split-bleed: clamp(0rem, (100vw - var(--container-narrow)) / 2, 3.1875rem);
        margin-right: calc(-1 * var(--split-bleed));
        column-gap: calc(var(--split-gap) + var(--split-bleed));
    }

    .split--bleed > .split__media {
        max-width: none;
        justify-self: stretch;
    }

    .split--reverse > .split__media {
        order: -1;
    }

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

    /* inside the wide .container: the copy starts at the narrow container
       edge (x 278 at 1920) and the media runs to the outer edge (x 1780).
       Columns 672 / 746 px at 1920 (Homepage "Ons assortiment"). */
    .split--wide {
        padding-left: var(--panel-pad);
        grid-template-columns: minmax(0, 672fr) minmax(0, 746fr);
        column-gap: clamp(2rem, 1rem + 4vw, 5.25rem); /* 84 px */
    }

    /* A split with the text as its only child: a visitor gets no slot for
       a missing image. The text then spans both columns in the reading
       measure, so no empty half stays beside it. */
    .split > .split__body:only-child {
        grid-column: 1 / -1;
        max-width: var(--measure);
    }
}

/* --------------------------------------------------------------------------
   10. Panels
   .panel           a shape block with the 138 px inset of the design; put a
                    .split or any content inside. Combine with .shape and a
                    surface modifier: <section class="panel shape shape--blue">
   .media-panel     "Wie zijn wij?" / Contact: coloured shape with a photo
                    centred inside it, text on the other side.
   .cta-block       "Niet gevonden wat je zoekt?": green shape, copy left,
                    a column of buttons right.
   .contact-block   centered title, text and two buttons.
   -------------------------------------------------------------------------- */
.panel {
    padding: clamp(2.5rem, 1.5rem + 4.5vw, 8.75rem) var(--panel-pad);
}

.panel--tight {
    padding: clamp(1rem, 0.5rem + 3vw, 4.4rem);
}

.panel--compact {
    padding-block: clamp(2rem, 1rem + 4vw, 6.25rem);
}

.media-panel {
    grid-template-columns: minmax(0, 1fr);
    --media-panel-bg: var(--color-blue-10);
    /* inset around the photo: the same as the "Ons team" panel on Over ons
       (66 px at 1920). The designer asked for a centred photo instead of
       the overhang of the render. */
    --media-panel-inset: clamp(1rem, 0.5rem + 3vw, 4.4rem);
    position: relative;
    display: grid;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5) 0;
}

.media-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--media-panel-bg);
    border-radius: 0 var(--shape-r) 0 var(--shape-r);
}

.media-panel {
    isolation: isolate;
}

.media-panel--green {
    --media-panel-bg: var(--color-green-13);
}

.media-panel__body {
    padding-bottom: var(--space-6);
}

/* at 1920 the same geometry as the "Ons team" block below it on Over ons
   (about-us.css), as the designer asked: photo 622 px wide from x 208,
   text column from x 975 to 1640, 68 px above, below and left of the
   photo. The team block has a 2 px edge and this panel has none, so the
   padding adds the edge width. The gap follows the layout scale (144 px
   at 1920, 108 px at 1440), so the text column keeps its share of the
   panel on a laptop. */
@media (min-width: 992px) {
    .media-panel {
        --media-panel-pad: calc(var(--media-panel-inset) + var(--border-w));
        grid-template-columns: minmax(0, 622fr) minmax(0, 664fr);
        column-gap: clamp(3rem, 7.5vw, 9rem);
        align-items: center;
        padding: var(--media-panel-pad) calc(var(--panel-pad) + var(--border-w)) var(--media-panel-pad) var(--media-panel-pad);
    }

    .media-panel__body {
        padding-bottom: 0;
    }
}

.cta-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding: clamp(2rem, 1rem + 4vw, 6.25rem) clamp(1.5rem, 0.5rem + 4.5vw, 7.4rem);
}

/* at 1920: copy column 660 px wide from x 402, buttons from x 1182. The
   buttons do not shrink with the layout, so on a laptop the gap gives its
   width to the copy: 120 px at 1920, 78 px at 1440, 64 px at 1280. The
   copy column then keeps at least its share of the design (48 %). */
@media (min-width: 992px) {
    .cta-block {
        grid-template-columns: minmax(0, 41.25rem) auto;
        column-gap: clamp(2.5rem, 8.75vw - 3rem, 7.5rem);
        align-items: start;
        padding-left: clamp(1.5rem, 0.5rem + 5.9vw, 7.625rem);
    }
}

.cta-block .btn-stack {
    padding-top: var(--space-1);
}

/* the block brings its own gutter, so every page uses the same markup
   (no .container inside) and the copy never touches the screen edge */
.contact-block {
    max-width: calc(var(--measure) + 2 * var(--container-pad));
    margin-inline: auto;
    padding-inline: var(--container-pad);
    text-align: center;
}

.contact-block .btn-row {
    justify-content: center;
    margin-top: clamp(1.5rem, 1rem + 1vw, 2.2rem);
}

/* "Praktische informatie": small green shape with labelled lines */
.info-panel {
    padding: clamp(1.75rem, 1rem + 2.5vw, 4.5rem);
    --shape-r: clamp(3rem, 1.5rem + 5vw, 8.5rem);
}

/* --------------------------------------------------------------------------
   11. Icon tiles & icon carousel
   .icon-tile         circle with a line icon and a label below
   .icon-tile--green  light-green disc (Over ons "Daarom Mediquipt")
   .icon-panel        light-blue rounded box that holds the carousel
   .icon-row          static row (5-up on desktop)
   -------------------------------------------------------------------------- */
.icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 0.5rem + 0.6vw, 1.15rem);
    text-align: center;
    color: var(--color-ink);
}

.icon-tile__disc {
    display: grid;
    place-items: center;
    width: clamp(6rem, 4.5rem + 3vw, 8.75rem); /* 140 px */
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.icon-tile__disc img {
    width: 66%; /* every icon file is cropped to its drawing, so the icon fills about 62 % of the disc */
    height: auto;
}

.icon-tile__label {
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    text-wrap: balance;
}

.icon-tile--green .icon-tile__disc {
    background: var(--color-green-20);
}

.icon-tile--green .icon-tile__label {
    font-weight: var(--weight-bold);
    max-width: 14ch;
}

a.icon-tile:hover .icon-tile__disc {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

a.icon-tile:hover {
    color: var(--color-green-text);
}

/* The tiles sit in the vertical centre of the panel: the same padding at
   the top and the bottom. From 768 px a label adds one line to the slide
   height. A second label line ("Spoedeisende hulp") runs into the bottom
   padding, so a row of one-line labels leaves no empty band below. A
   phone keeps the full label height: its padding is too small for that. */
.icon-panel {
    --icon-pad-y: clamp(2rem, 1rem + 2.5vw, 4rem);
    --icon-label-line: calc(var(--text-body) * var(--leading-snug));
    position: relative;
    padding: var(--icon-pad-y) clamp(1rem, 0.5rem + 1vw, 1.75rem);
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
    border-radius: 0 var(--radius-xl) 0 var(--radius-xl);
}

@media (min-width: 768px) {
    .icon-panel .icon-tile__label {
        height: var(--icon-label-line);
    }

    /* room for the second label line inside the clipped slider, without
       changing the panel height. Two classes: it extends the ".carousel
       .swiper" room for the lifted tiles further down in this file. */
    .icon-panel.carousel .swiper {
        padding-bottom: calc(var(--space-2) + var(--icon-label-line));
        margin-bottom: calc(-1 * (var(--space-2) + var(--icon-label-line)));
    }
}

.icon-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6) clamp(1rem, 0.5rem + 2.5vw, 3.75rem);
}

.icon-row > .icon-tile {
    flex: 0 0 auto;
    width: clamp(8.5rem, 7rem + 4vw, 12rem);
}

/* single icon above a card title (Partners "Waarom fabrikanten"):
   the drawing is about 60 px at 1920 */
.icon-inline {
    width: clamp(2.75rem, 2.2rem + 1.4vw, 3.875rem);
    height: auto;
}

/* coloured icon through a mask: <span class="icon-mask" style="--icon: url('/assets/img/icons/icu.svg')"></span> */
.icon-mask {
    display: inline-block;
    width: 3rem;
    aspect-ratio: 1;
    color: var(--color-green);
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.icon-tile__disc .icon-mask {
    width: 66%;
}

.icon-mask--blue {
    color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   12. Cards
   .card              light-blue card, 24 px radius, 2 px edge
   .card__media       shape photo that sticks out 56 px above the card top
   .card--icon        icon top-left instead of a photo (Partners)
   .card--text        wide text card (Service & training "Trainingsaanbod")
   -------------------------------------------------------------------------- */
.card {
    --card-pad-x: clamp(1.25rem, 0.8rem + 1.2vw, 2.25rem);
    --media-lift: clamp(2rem, 1.2rem + 1.8vw, 3.5rem); /* 56 px */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 1rem + 1.5vw, 3.8rem) var(--card-pad-x) clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
    border-radius: var(--radius-card);
    color: var(--color-ink);
}

.card--media {
    margin-top: var(--media-lift);
    padding-top: 0;
}

.card__media {
    /* 322 x 280 photo, 8 px right of the text column, as in the design */
    margin: calc(-1 * var(--media-lift) - var(--border-w)) calc(var(--card-pad-x) * -0.22) clamp(1.5rem, 1rem + 1.2vw, 3rem) calc(var(--card-pad-x) * 0.22);
    aspect-ratio: 322 / 280;
}

.card__date {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-light);
    color: var(--color-blue-text);
    margin-bottom: var(--space-2);
}

.card__title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-3);
}

.card__title a {
    color: inherit;
}

/* whole card clickable through the title link (the arrow included) */
.card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card__text {
    flex: 1 0 auto;
    line-height: 1.3;
}

/* the arrow is decoration on top of the stretched title link: clicks pass
   through to the link */
.card__action {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    margin-top: var(--space-5);
    pointer-events: none;
}

.card:has(.card__title a) {
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:has(.card__title a):hover {
    border-color: var(--color-green);
    box-shadow: var(--shadow);
}

.card:has(.card__title a:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.card__title a:focus-visible {
    outline: none;
}

.card--icon {
    padding-top: clamp(1.75rem, 1rem + 2vw, 3.8rem);
    padding-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
}

.card--icon .icon-inline {
    margin-bottom: var(--space-4);
}

.card--text {
    padding: clamp(1.5rem, 1rem + 2vw, 3.75rem);
}

.card--text .card__title {
    font-size: var(--text-h2);
}

/* News card (Homepage carousel, Nieuws, Nieuwsbericht): a "NIEUWS" chip on
   the bottom edge of the photo, then the date. --card-media-gap equals the
   bottom margin of .card__media, so the chip follows the photo. */
.card__meta {
    --card-media-gap: clamp(1.5rem, 1rem + 1.2vw, 3rem);
    position: relative;
}

.card__badge {
    position: absolute;
    bottom: calc(100% + var(--card-media-gap));
    left: clamp(0rem, -1rem + 3.4vw, 4rem);
    z-index: 1;
    transform: translateY(50%);
    font-weight: var(--weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--color-white);
}

/* the design does not balance news titles: they fill the line first.
   Rhythm measured on the Nieuws render at 1920: title 27 px below the
   date, 32 px between title lines, text 39 px below the last title line,
   the arrow almost on the last text line (the card is 646 px high). */
.card--news .card__date {
    margin-bottom: var(--space-1);
}

.card--news .card__title {
    line-height: 1.1;
    margin-bottom: var(--space-2);
    text-wrap: wrap;
}

.card--news .card__action {
    margin-top: var(--space-1);
}

.card--news .card__text {
    overflow-wrap: break-word;
}

/* Wide media card (Vernevelsysteem): half the container wide, the shape
   photo is 60 % of the card and sticks out 146 px above it at 1920 */
.card--wide {
    --card-pad-x: clamp(1.25rem, 0.5rem + 2.4vw, 3.4rem);
    --media-lift: clamp(4rem, 2rem + 5.5vw, 9.125rem);
    padding-bottom: clamp(1.5rem, 1rem + 2vw, 3.4rem);
}

.card--wide .card__media {
    /* 400 px wide and 137 px from the card edge on a 672 px card */
    width: calc((100% + 2 * var(--card-pad-x)) * 0.6);
    margin: calc(-1 * var(--media-lift) - var(--border-w)) 0 clamp(1.5rem, 1rem + 2vw, 4.25rem) calc((100% + 2 * var(--card-pad-x)) * 0.2 - var(--card-pad-x));
    aspect-ratio: 8 / 7;
}

/* a cut-out photo on a white shape instead of a full-bleed photo */
.card__media--white {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.card__text > p + ul {
    margin-top: 0;
}

.card__text + .btn-row {
    margin-top: var(--space-5);
}

/* grids of cards: 4-up news, 3-up values and icon cards */
.card-grid {
    display: grid;
    gap: var(--space-5) clamp(1rem, 0.6rem + 1vw, 2.3rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.card-grid--3 {
    max-width: 79rem; /* 1264 px: three 397 px cards */
    margin-inline: auto;
}

@media (min-width: 992px) {
    .card-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* four columns need about 1200 px: below that a long word in a card
       ("positioneringsmaterialen") does not fit, so two columns */
    .card-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .card-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: clamp(1rem, 0.5rem + 0.5vw, 1.1rem);
    }
}

/* two wide cards side by side (Vernevelsysteem) */
.card-grid--2 {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-9) var(--space-4);
    align-items: stretch;
}

@media (min-width: 768px) {
    .card-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* button to the overview, centred under a card grid or carousel */
.cards-more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   13. Tiles
   .tile            category tile: light-blue, product cut-out centred, bold
                    label bottom-left. Up to four images: .tile__media--multi
   .tile--product   product tile in a category grid: SKU, title, meta line
   -------------------------------------------------------------------------- */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
    padding: clamp(1rem, 0.7rem + 0.8vw, 1.6rem);
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
    border-radius: var(--radius-card);
    color: var(--color-ink);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.tile:hover,
.tile:has(.tile__title a:hover) {
    color: var(--color-ink);
    border-color: var(--color-green);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

a.tile:hover .tile__media img {
    transform: scale(1.04);
}

a.tile:focus-visible {
    border-radius: var(--radius-card);
}

/* the image area spans the tile width (252 of 260 px at 1920), wider than
   the text inset of the tile */
.tile__media {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: clamp(8rem, 6rem + 4vw, 12.5rem);
    margin-inline: calc(var(--space-4) * -1);
}

.tile__media img {
    width: 100%;
    max-height: clamp(8rem, 6rem + 4vw, 12rem);
    object-fit: contain;
    transition: transform 300ms var(--ease);
}

/* 2, 3 or 4 images in one tile (designer: "a must, max 4"). The crops are
   wide with much tile colour around the product, so each fills its cell. */
.tile__media--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
    margin-inline: 0;
}

.tile__media--multi img {
    max-height: none;
}

/* the placeholder keeps the tile inset, so its dashed edge stays inside */
.tile__media:has(.tile__placeholder) {
    margin-inline: 0;
}

.tile__media--multi > :first-child:nth-last-child(3) {
    grid-column: 1 / -1;
}

/* one line when the label fits ("Vacuumregelaars", "Gasafnamepunten") */
/* A long compound word in a narrow tile on a phone ("Universele
   positionering") breaks at a Dutch syllable with a hyphen, not before
   its last letter. */
.tile__label {
    font-size: var(--text-body);
    font-weight: var(--weight-black);
    line-height: 1.2;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* a tile without an image (a visitor gets no placeholder): the label
   stays at the bottom, in line with the labels of the other tiles */
.tile > .tile__label:first-child {
    margin-top: auto;
}

/* placeholder while an image is "TBD" */
.tile__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    font-size: var(--text-xs);
    color: var(--color-muted);
    border: 1.5px dashed var(--color-blue-line);
    border-radius: var(--radius);
}

/* a split whose photo or product image is still to come: "Beeld volgt"
   fills the shape or the product stage, without the dashed tile edge */
.split__media > .tile__placeholder {
    border: 0;
    min-height: 0;
}

.shape-media > .tile__placeholder {
    position: absolute;
    inset: 0;
}

.product-stage > .tile__placeholder {
    position: relative;
}

.tile-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* category tiles: 260 x 300 px at 1920, 18 px apart in a row and 30 px
   between rows, centred rows (a row of 3 stays centred) */
@media (min-width: 768px) {
    .tile-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-6) var(--space-4);
        max-width: var(--measure);
        margin-inline: auto;
    }

    .tile-grid > * {
        flex: 0 0 calc((100% - 3 * var(--space-4)) / 4);
        min-height: clamp(15rem, 9.5rem + 7.7vw, 18.75rem);
    }
}

/* Rhythm measured on the category grid render at 1920 (tile 411 px high
   with a two-line title and a two-line meta): article number 22 px below
   the product, 27 px between title lines, 32 px below the last line. */
.tile--product {
    gap: 0;
    padding: clamp(1.25rem, 0.8rem + 1vw, 2.25rem);
    padding-top: clamp(1.5rem, 1.2rem + 1vw, 3rem);
    padding-bottom: clamp(1.125rem, 0.75rem + 0.7vw, 1.625rem);
}

/* the product image spans almost the full tile width (382 of 397 px at
   1920). Article number and title start right below it, so they line up
   across a row; the free space stays at the bottom of the tile. */
.tile--product .tile__media {
    flex: 0 0 auto;
    min-height: 0;
    margin-inline: calc(var(--space-2) * -1);
    margin-bottom: var(--space-1);
}

.tile--product .tile__media img {
    max-height: none;
}

/* the tile padding grows to 36 px at 1920, so the image may reach further */
@media (min-width: 1200px) {
    .tile--product .tile__media {
        margin-top: calc(var(--space-3) * -1);
        margin-inline: calc(var(--space-5) * -1);
    }
}

.tile__sku {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-green-text);
    margin-bottom: 0.375rem;
}

.tile__title {
    font-size: var(--text-h4);
    line-height: 1.04;
    margin-bottom: var(--space-2);
}

.tile__title a {
    color: inherit;
}

.tile__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.tile__meta {
    font-size: var(--text-sm);
    line-height: 1.45;
}

.product-grid {
    display: grid;
    gap: var(--space-6) var(--space-4); /* 30 px between rows */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* list toolbar: "18 artikelen" left, download right */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: clamp(1.5rem, 0.6rem + 3vw, 4.25rem); /* first tile 108 px below the count text */
    font-size: var(--text-lead);
}

/* --------------------------------------------------------------------------
   14. Logos
   .logo-grid   two columns of logos on a surface (homepage partners panel)
   .logo-card   white rounded card with a logo (Partners carousel)
   -------------------------------------------------------------------------- */
/* Every logo gets a definite width (the cell width): an SVG logo without
   width and height attributes in its file has no intrinsic size and would
   render at 0 x 0 in a shrink-to-fit cell. object-fit keeps the ratio. */
.logo-grid {
    --logo-col-gap: clamp(1.5rem, 1rem + 3vw, 5rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 0.6rem + 0.9vw, 1.5rem) var(--logo-col-gap);
    align-items: center;
}

.logo-grid > li {
    display: flex;
    justify-content: center;
}

.logo-grid img {
    width: 100%;
    height: auto;
    max-height: clamp(2.5rem, 2rem + 1.25vw, 3.75rem); /* 60 px */
    object-fit: contain;
}

/* an odd last logo sits in the middle of its row, one column wide
   (Nihon Kohden in the design) */
.logo-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--logo-col-gap)) / 2);
}

.logo-card {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 12%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), transform var(--transition);
}

.logo-card img {
    width: 100%;
    height: auto;
    max-height: 5.5rem;
    object-fit: contain;
}

a.logo-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. Stats ("Mediquipt at a glance")
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 1rem + 2vw, 3.5rem) var(--space-5);
    text-align: center;
}

.stat {
    /* markup keeps dt before dd; the figure shows above its caption */
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.stat__value {
    display: block;
    margin: 0;
    font-size: var(--text-stat);
    font-weight: var(--weight-black);
    line-height: 1;
    color: var(--color-blue);
    margin-bottom: var(--space-2);
}

.stat__label {
    display: block;
    font-size: var(--text-lead);
    line-height: 1.3;
    color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   16. Team (Over ons "Ons team")
   A white shape card inside a green panel, one person per slide.
   -------------------------------------------------------------------------- */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: clamp(2rem, 1rem + 3vw, 5.75rem) var(--space-5) clamp(2.5rem, 1.5rem + 3vw, 5.5rem);
    text-align: center;
    background: var(--color-white);
    border-radius: 0 var(--shape-r) 0 var(--shape-r);
}

.team-card__photo {
    width: clamp(10rem, 4rem + 14.4vw, 21.25rem); /* 340 px at 1920 */
    aspect-ratio: 1;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    object-fit: cover;
    object-position: var(--focus, 50% 30%);
    background: var(--color-blue-10);
}

.team-card__name {
    font-size: var(--text-h2);
    margin-bottom: 0;
}

.team-card__role {
    color: var(--color-green-text);
}

.team-card__text {
    max-width: 36ch;
    margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   17. Timeline (Over ons "Onze geschiedenis")
   One image of the designer's infographic (timeline.webp, from the complete
   PNG export). Below 768 px it scrolls sideways so the labels stay readable.
   A hidden list repeats the content for screen readers.
   -------------------------------------------------------------------------- */
.timeline {
    max-width: 64rem;
    margin-inline: auto;
}

.timeline__scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.timeline__scroller:focus-visible {
    border-radius: var(--radius-sm);
}

.timeline img {
    width: 100%;
    min-width: 44rem;
}

@media (min-width: 768px) {
    .timeline img {
        min-width: 0;
    }
}

/* --------------------------------------------------------------------------
   18. Carousel chrome (Swiper 11, see main.js)
   Markup: .carousel[data-carousel="icons|cards|team|logos"] > .swiper,
   .carousel__btn--prev, .carousel__btn--next, .carousel__pagination
   -------------------------------------------------------------------------- */
.carousel {
    position: relative;
    min-width: 0;
}

.carousel .swiper {
    /* room so card shadows and the lifted card photos are not cut off */
    padding-block: var(--space-2);
    margin-block: calc(-1 * var(--space-2));
}

.carousel .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* cards and tiles fill the slide, so all cards in a row share one height */
.carousel .swiper-slide > * {
    flex: 1 0 auto;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 2.2rem + 0.5vw, 2.75rem);
    aspect-ratio: 1;
    margin-top: calc(clamp(2.5rem, 2.2rem + 0.5vw, 2.75rem) / -2);
    border-radius: 50%;
    color: var(--color-ink);
    background: var(--color-white);
    box-shadow: var(--shadow-control);
    transition: color var(--transition), background-color var(--transition), opacity var(--transition);
}

.carousel__btn::before {
    width: 56%;
    height: 50%;
}

.carousel__btn--prev {
    left: calc(-1 * clamp(0.5rem, 0.2rem + 0.6vw, 1.375rem));
}

.carousel__btn--prev::before {
    transform: scaleX(-1);
}

.carousel__btn--next {
    right: calc(-1 * clamp(0.5rem, 0.2rem + 0.6vw, 1.375rem));
}

.carousel__btn:hover {
    color: var(--color-white);
    background: var(--color-cta);
}

.carousel__btn:focus-visible {
    border-radius: 50%;
}

.carousel__btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.carousel__btn.swiper-button-lock {
    display: none;
}

/* the arrows of the icon carousel sit on the panel edge */
.carousel--icons .carousel__btn {
    top: 42%;
}

.carousel__pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.5rem);
}

.carousel__pagination.swiper-pagination-lock {
    display: none;
}

.carousel__pagination .swiper-pagination-bullet {
    width: 0.875rem;
    height: 0.875rem;
    margin: 0 !important;
    opacity: 1;
    background: var(--color-dot);
    transition: background-color var(--transition), transform var(--transition);
}

.carousel__pagination .swiper-pagination-bullet:hover {
    background: var(--color-ink);
}

.carousel__pagination .swiper-pagination-bullet-active {
    background: var(--color-dot-active);
}

.carousel__pagination .swiper-pagination-bullet:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* pause / resume for an autoplaying carousel (Partners logos), on the
   right end of the dot row. aria-pressed="true" means paused: the icon
   then shows "play". main.js removes [hidden] only while autoplay runs. */
.carousel__pause {
    --pause-size: 2rem;
    position: absolute;
    right: 0;
    bottom: calc((0.875rem - var(--pause-size)) / 2);
    z-index: 5;
    display: grid;
    place-items: center;
    width: var(--pause-size);
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--color-ink);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: color var(--transition), background-color var(--transition);
}

.carousel__pause::before {
    content: "";
    width: 40%;
    height: 40%;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 0h3v12h-3zM7.5 0h3v12h-3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 0h3v12h-3zM7.5 0h3v12h-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.carousel__pause[aria-pressed="true"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 0l10 6-10 6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 0l10 6-10 6z'/%3E%3C/svg%3E");
}

.carousel__pause:hover {
    color: var(--color-white);
    background: var(--color-cta);
}

.carousel__pause:focus-visible {
    border-radius: 50%;
}

.carousel__pause[hidden] {
    display: none;
}

/* the dots keep clear of the pause button: room on both sides (so they
   stay centred) and a smaller gap on a narrow screen */
.carousel:has(> .carousel__pause:not([hidden])) .carousel__pagination {
    padding-inline: 2.75rem;
    gap: clamp(0.5rem, 0.2rem + 1vw, 0.75rem);
}

/* static fallback before Swiper starts (and without JS): a scrollable row */
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   19. Breadcrumb, badge, pagination
   -------------------------------------------------------------------------- */
.breadcrumb {
    padding-block: clamp(1.25rem, 1rem + 1vw, 2.6rem) clamp(1rem, 0.8rem + 1vw, 2.5rem);
    /* The design sets the breadcrumb at the menu size. */
    font-size: var(--text-nav);
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: ">";
    margin-right: 0.35em;
    color: var(--color-ink);
}

.breadcrumb__item a {
    color: var(--color-ink);
}

.breadcrumb__item a:hover {
    color: var(--color-green-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.3em 0.85em;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    color: var(--color-blue-text);
    background: var(--color-blue-10);
    border: 1px solid var(--color-blue-line);
    border-radius: var(--radius-pill);
}

.badge--green {
    color: var(--color-green-text);
    background: var(--color-green-13);
    border-color: var(--color-green-line);
}

.badge--solid {
    color: var(--color-white);
    background: var(--color-blue-text);
    border-color: var(--color-blue-text);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.pagination__link {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding-inline: var(--space-3);
    font-weight: var(--weight-semibold);
    color: var(--color-ink);
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
    border-radius: var(--radius-pill);
}

.pagination__link:hover {
    color: var(--color-green-text);
    border-color: var(--color-green);
}

.pagination__link[aria-current="page"] {
    color: var(--color-white);
    background: var(--color-cta);
    border-color: var(--color-cta);
}

/* --------------------------------------------------------------------------
   20. Tables & lists
   -------------------------------------------------------------------------- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.spec-table caption {
    text-align: left;
    caption-side: top;
}

.spec-table th,
.spec-table td {
    padding: 0.6em 1em 0.6em 0;
    font-weight: var(--weight-regular);
    vertical-align: top;
    line-height: 1.25;
    /* long compound values ("hoge-vacuümtoepassingen") wrap on a 360 px
       screen instead of making the table wider than the viewport */
    overflow-wrap: anywhere;
}

/* A long Dutch value ("Overdrukveiligheidsklep") hyphenates at a syllable.
   Only words of 12 letters or more hyphenate, so a product name
   ("BasicFLOW") stays whole. Safari before version 26 knows only the
   -webkit- limits: at least 5 letters on each side has the same effect
   for a 9-letter name. */
.spec-table td {
    -webkit-hyphens: auto;
    hyphens: auto;
    -webkit-hyphenate-limit-before: 5;
    -webkit-hyphenate-limit-after: 5;
    hyphenate-limit-chars: 12 5 5;
}

.spec-table th {
    width: 36%;
    /* a label is a Dutch word, not a product name: it never breaks at a
       random letter ("Vacuümkrac-ht"). The column grows to the longest
       word. */
    overflow-wrap: break-word;
}

/* On a phone a long label hyphenates at a syllable */
@media (max-width: 575.98px) {
    .spec-table th {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}

.spec-table tr + tr > * {
    border-top: 1px solid var(--spec-rule, var(--color-green-20));
}

/* the rules follow the surface: blue rules on a blue block, green on green
   (designer feedback of 3 November) */
.shape--blue {
    --spec-rule: var(--color-blue-line);
}

.shape--green {
    --spec-rule: var(--color-green-20);
}

/* clickable rows: the value is a link, the whole row reacts */
.spec-table a {
    color: var(--color-green-text);
    font-weight: var(--weight-semibold);
}

.spec-table--links tr {
    transition: background-color var(--transition);
}

.spec-table--links tr:hover {
    background: var(--color-green-13);
}

.spec-table--links td a::after {
    content: " >";
}

/* "Art. nr: 800.001" and "Artikel nummer via configurator >" */
.art-nr {
    display: inline-block;
    font-size: var(--text-art-nr);
    font-weight: var(--weight-bold);
    color: var(--color-green-text-lg);
}

a.art-nr:hover {
    color: var(--color-ink);
}

/* middle-dot bullet list from the design */
.list-dot > li {
    position: relative;
    padding-left: 1.2em;
}

.list-dot > li::before {
    content: "\00B7";
    position: absolute;
    left: 0.25em;
    font-weight: var(--weight-bold);
}

/* label / value pairs (Contact: "Klantenservice  0251 316 358") */
.dl-inline {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 clamp(1rem, 0.6rem + 0.6vw, 1.4rem);
}

/* a long e-mail address wraps on a 360 px screen */
.dl-inline dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dl-inline dd a {
    color: inherit;
}

.dl-inline dd a:hover {
    color: var(--color-green-text);
}

/* run-in labels in green ("Voor wie: medisch technici") */
.info-list > div + div {
    margin-top: 0.15em;
}

.info-list dt {
    display: inline;
    font-weight: var(--weight-bold);
    color: var(--color-green-text);
}

/* the colon is set like the value: ink, regular weight */
.info-list dt::after {
    content: ": ";
    font-weight: var(--weight-regular);
    color: var(--color-ink);
}

.info-list dd {
    display: inline;
    margin: 0;
}

/* --------------------------------------------------------------------------
   21. Documents (Documentatie)
   .link-columns  brand index: one <ul> per column. Each column keeps the
                  width of its longest name and the columns may differ in
                  length (5, 4 and 3 brands), centred as a block. Below
                  768 px the lists merge into one list in two columns.
   .doc-card      light-blue card with a title and rows of documents; each
                  row ends in one flag link per language
   -------------------------------------------------------------------------- */
.link-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 clamp(2rem, 1rem + 3.5vw, 4.5rem);
    font-size: var(--text-h4);
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

.section-intro + .link-columns {
    margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.5rem);
}

.link-columns a {
    color: var(--color-ink);
}

.link-columns a:hover,
.link-columns a:focus-visible {
    color: var(--color-green-text);
}

@media (max-width: 767.98px) {
    .link-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: center;
        column-gap: var(--space-6);
    }

    .link-columns ul {
        display: contents;
    }

    .link-columns a {
        overflow-wrap: anywhere;
    }
}

.doc-card {
    padding: clamp(1.5rem, 1rem + 1.6vw, 3rem);
    background: var(--color-blue-10);
    border-radius: var(--radius-lg);
}

.doc-card:has(.doc-list) {
    padding-bottom: clamp(1rem, 0.6rem + 0.8vw, 2rem);
}

/* on a 360 px screen the card title and the flags wrap onto two lines */
.doc-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.doc-card__title {
    font-size: var(--text-h4);
    margin-bottom: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.doc-card__head + .doc-list {
    margin-top: var(--space-2);
}

/* rows are 54 px high at 1920 */
.doc-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: 0.64em;
    font-size: var(--text-sm);
    line-height: 1.3;
}

.doc-list > li + li {
    border-top: 1px solid var(--color-rule-doc);
}

.flags {
    display: flex;
    flex: none;
    gap: clamp(0.6rem, 0.4rem + 0.5vw, 1.15rem);
}

.flags a {
    display: block;
    border-radius: 50%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.flags a:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px var(--color-green-20);
}

.flags img {
    width: clamp(1.5rem, 1.3rem + 0.4vw, 1.875rem);
    height: auto;
}

/* Link column: every row of a card reserves room for the widest row. The
   links sit at the right end, so the view and download links of all rows
   line up and the flags stand before them. Set the number of slots (flags
   plus links) of the widest row on the list or the card head:
   <ul class="doc-list" style="--flag-slots: 3">. Flags are 30 px, about
   17 px apart at 1920. */
.doc-list,
.doc-card__head .flags {
    --flag-slots: 1;
}

.doc-card .flags {
    --flag-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
    --flag-gap: clamp(0.6rem, 0.4rem + 0.65vw, 1.1rem);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--flag-gap);
    width: calc(var(--flag-slots) * var(--flag-size) + (var(--flag-slots) - 1) * var(--flag-gap));
    max-width: 100%;
}

/* A row keeps half of its width for the title. Links that do not fit
   wrap onto more lines: first whole files (flags, view, download), then
   the flags of one file above its view and download links. */
.doc-list .flags {
    --flag-slots: inherit;
    max-width: 50%;
}

.doc-file {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--flag-gap);
    max-width: 100%;
}

.doc-actions {
    display: flex;
    gap: var(--flag-gap);
}

.doc-card .flags img {
    width: var(--flag-size);
}

.flags a:focus-visible {
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   22. Forms (Contactformulier, Configurator)
   -------------------------------------------------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 0.8rem + 0.6vw, 1.75rem) var(--space-4);
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid > .field--full {
        grid-column: 1 / -1;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.field__label {
    font-size: var(--text-body);
    line-height: 1.3;
}

.field__hint,
.form-note {
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.form-note {
    font-size: var(--text-body);
    color: var(--color-ink);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 2.95rem; /* 47 px */
    padding: 0.55em 1em;
    font-size: var(--text-body);
    font-weight: var(--weight-light);
    line-height: 1.3;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid var(--color-green-text-lg);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* on a light-green panel the fields keep the panel colour, as designed */
.shape--green .input,
.shape--green .select,
.shape--green .textarea {
    background-color: transparent;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: var(--color-green-text);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--color-green-text);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--color-error);
}

.textarea {
    min-height: 7.75rem;
    resize: vertical;
}

/* the chevron colour in the data URI is --color-cta-hover (#008f58);
   custom properties do not work inside a data URI */
.select {
    appearance: none;
    padding-right: 3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14' fill='none' stroke='%23008f58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l10 10L22 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1em center;
    background-size: 1.3em auto;
}

.select:invalid {
    color: var(--color-muted);
}

/* checkbox: 22 px rounded square, green tick when checked */
.check {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.check input,
.choice input {
    appearance: none;
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0;
    background: var(--color-white);
    border: 1px solid var(--color-green-text-lg);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.check input:checked,
.choice input:checked {
    background: var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat;
    border-color: var(--color-green);
}

.check input:focus-visible,
.choice input:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* configurator option: a full-width chip with a checkbox or radio */
.choice {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 2.95rem;
    padding: 0.45em 1em 0.45em 0.5rem;
    font-size: var(--text-body);
    line-height: 1.25;
    background: var(--color-white);
    border: 1px solid var(--color-green-text-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition);
}

/* 29 px box with a light-green fill and white tick, as in the design */
.choice input {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 6px;
}

.choice input:checked {
    background-color: var(--color-dot-active);
    border-color: var(--color-dot-active);
}

.choice:hover {
    background: var(--color-green-13);
}

.choice:has(input:checked) {
    background: var(--color-green-20);
}

.choice:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

/* configurator row: label column left, options right */
.choice-row {
    display: grid;
    gap: var(--space-3) var(--space-5);
}

.choice-row + .choice-row {
    margin-top: clamp(1.25rem, 1rem + 0.6vw, 1.75rem);
}

.choice-row__label {
    float: left; /* lets a legend sit in a grid cell */
    padding-top: 0.55em;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .choice-row {
        grid-template-columns: minmax(10rem, 15.9rem) 1fr;
    }
}

.choice-group {
    --choice-gap: 0.625rem;
    display: grid;
    gap: var(--choice-gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

/* mixed row ("Soort Wandaansluiting"): chips with .choice--col sit on the
   3-column grid, the long labels that follow keep the width of their text */
.choice-group--mixed {
    display: flex;
    flex-wrap: wrap;
}

.choice-group--mixed .choice--col {
    flex: 0 0 calc((100% - 2 * var(--choice-gap)) / 3);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
}

/* --------------------------------------------------------------------------
   23. Media
   .media-frame    rounded photo or video poster (no brand shape)
   .video-frame    .media-frame with a play button on top
   .product-stage  transparent product cut-out on top of a shape surface
   -------------------------------------------------------------------------- */
.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-blue-10);
}

.media-frame > img,
.media-frame > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
}

.video-frame__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--color-white);
}

.video-frame__play::before {
    content: "";
    width: clamp(3.5rem, 2.5rem + 2.5vw, 5.9rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 46% no-repeat,
        var(--color-play-disc);
    box-shadow: 0 0 0 0.6rem var(--color-play-ring);
    transition: transform var(--transition), background-color var(--transition);
}

.video-frame__play:hover::before {
    transform: scale(1.06);
}

.video-frame__play:focus-visible {
    outline-offset: -6px;
    border-radius: var(--radius-card);
}

.product-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}

.product-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--stage-bg, var(--color-green-13));
    border-radius: 0 var(--shape-media-rx) 0 var(--shape-media-rx) / 0 var(--shape-media-ry) 0 var(--shape-media-ry);
}

.product-stage--blue {
    --stage-bg: var(--color-blue-10);
}

.product-stage img {
    position: relative;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Product detail (both product detail pages): gallery left, product
   information right. At 1920 the gallery runs from x 278 to 900 and the
   information from x 966 to 1720.
   Product images have the light-blue tile colour baked in (no alpha). The
   gallery frames use --color-blue-10, one step lighter than the baked
   colour, so the image edge does not show. */
.product__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
    padding-top: var(--space-5);
}

@media (min-width: 992px) {
    .product__inner {
        grid-template-columns: minmax(0, 620fr) minmax(0, 754fr);
        column-gap: clamp(2rem, 0.5rem + 3vw, 4.125rem);
        align-items: start;
        /* extra inset on top of the container padding: 0 at 992 px,
           138 px left and 60 px right at 1920 px */
        padding-inline:
            calc(var(--container-pad) + clamp(0rem, 14.87vw - 9.22rem, 8.625rem))
            calc(var(--container-pad) + clamp(0rem, 6.47vw - 4rem, 3.75rem));
    }
}

/* gallery: light-blue rounded frames, the main image above two square
   thumbnails */
.product-gallery {
    display: grid;
    gap: var(--space-5);
}

.product-gallery__main,
.product-gallery__thumb {
    display: grid;
    /* One cell with the size of the frame. In an auto row a square image
       kept its own height, ran out of the frame and lost its bottom. */
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
    background: var(--color-blue-10);
    border: var(--border-w) solid var(--color-blue-line);
    border-radius: var(--radius-card);
}

.product-gallery__main {
    aspect-ratio: 620 / 494;
    padding: var(--space-4);
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.product-gallery__thumb {
    aspect-ratio: 1;
}

.product-gallery__main img,
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

/* "Beeld volgt" slot: no dashed edge, the frame already shows the slot */
.product-gallery__thumb .tile__placeholder {
    border: 0;
}

.product__body {
    padding-top: clamp(0rem, -1rem + 2.5vw, 2.5rem);
}

.product__category {
    color: var(--color-blue);
}

.product__category:hover {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.product__title {
    max-width: 15ch;
    margin-bottom: var(--space-4);
}

.product__specs-title {
    margin-top: var(--space-7);
    margin-bottom: var(--space-2);
}

.product__text {
    margin-top: var(--space-7);
}

/* Configuration panel (Flowmeters, Configurator result): product cut-out
   left, a title, spec table or description and buttons right. Combine
   with a shape: <div class="config-panel shape shape--blue"> */
.config-panel {
    display: grid;
    gap: var(--space-6);
    padding: var(--space-7) var(--space-5);
}

.section-intro + .config-panel {
    margin-top: var(--space-7);
}

.config-panel__media {
    display: grid;
    place-items: center;
}

/* The product image never grows past its own size. On a phone the panel is
   one column and the image is at most 320 px high. The result card of the
   configurator sizes its own photo (pages/configurator.css). */
.config-panel:not(.config-result) .config-panel__media img {
    width: auto;
    max-height: 20rem;
    object-fit: contain;
}

.config-panel__body .spec-table {
    margin-top: var(--space-5);
}

.config-panel__body .spec-table th {
    width: 41%;
}

/* on a desktop the label column stays close to its values: a wide gap
   between "Toepassing" and its text left a lot of empty blue (designer
   feedback of 3 November) */
@media (min-width: 768px) {
    .config-panel__body .spec-table th {
        width: 30%;
    }
}

.config-panel__body .btn-row {
    margin-top: var(--space-5);
}

@media (min-width: 768px) {
    .config-panel {
        grid-template-columns: minmax(0, 340fr) minmax(0, 812fr);
        align-items: center;
        padding: var(--space-9) clamp(var(--space-5), 1rem + 5vw, 8.875rem) var(--space-9) var(--space-5);
    }

    /* The image follows the layout scale: 317 px high at 1920 px, as the
       cut-out in the render (16.5vw). A fixed height stayed the same while
       the panel shrank with the viewport. Below 1212 px it keeps 200 px. */
    .config-panel:not(.config-result) .config-panel__media img {
        max-height: clamp(12.5rem, 16.5vw, 19.8125rem);
    }

    /* a panel without a product image: the table uses the full width */
    .config-panel--text {
        grid-template-columns: minmax(0, 1fr);
        padding-left: clamp(var(--space-5), 1rem + 5vw, 8.875rem);
    }
}

/* --------------------------------------------------------------------------
   24. Footer
   Light-blue block with a large rounded top-right corner, then a white bar
   with the legal links. .site-footer--green swaps the surface (Partners,
   Vernevelsysteem and the product grid use the green variant).
   -------------------------------------------------------------------------- */
.site-footer {
    --footer-bg: var(--color-blue-10);
    margin-top: auto;
}

.site-footer--green {
    --footer-bg: var(--color-green-13);
}

.site-footer__main {
    background: var(--footer-bg);
    border-top-right-radius: clamp(4rem, 2rem + 9vw, 13.75rem);
    padding-block: clamp(2.5rem, 2rem + 1.5vw, 3.6rem) clamp(2.5rem, 2rem + 1.5vw, 3.6rem);
}

.site-footer__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: var(--text-lead);
    font-weight: var(--weight-regular);
    line-height: 1.5;
}

.site-footer__brand {
    grid-column: 1 / -1;
}

.site-footer__brand img {
    width: auto;
    height: clamp(4.5rem, 3.5rem + 2.5vw, 7.15rem); /* 114 px */
}

/* The e-mail line ("info@mediquipt.nl" at 24 px) is the widest item of
   the footer. Below 576 px the two contact blocks get the full width;
   from 768 px the last column takes the width of its content, so the
   address never pushes the page wider than the viewport. */
@media (max-width: 575.98px) {
    .site-footer__contact {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) max-content;
    }
}

@media (min-width: 1200px) {
    .site-footer__grid {
        /* logo 140-554, then four columns starting at 554, 831, 1106, 1382 */
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.45fr;
        column-gap: 0;
    }

    .site-footer__brand {
        grid-column: auto;
    }
}

/* one landmark, two link columns */
.site-footer__nav {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
}

@media (min-width: 1200px) {
    .site-footer__nav {
        gap: 0;
    }
}

.site-footer__links a {
    color: var(--color-ink);
}

.site-footer__links a:hover {
    color: var(--color-green-text);
}

.site-footer address {
    font-style: normal;
}

/* green contact lines: large text, so the 3:1 shade is enough */
.site-footer__contact,
.site-footer__contact a {
    color: var(--color-green-text-lg);
    font-weight: var(--weight-light);
}

.site-footer__contact a:hover {
    color: var(--color-ink);
}

.site-footer__nen {
    display: block;
    margin-top: var(--space-4);
    width: clamp(10rem, 8rem + 4vw, 13.5rem);
    height: auto;
}

.site-footer__bar {
    padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.9rem);
    background: var(--color-white);
    font-size: var(--text-lead);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) clamp(1.5rem, 1rem + 1.5vw, 3.75rem);
}

.site-footer__legal a {
    color: var(--color-ink);
}

.site-footer__legal a:hover {
    color: var(--color-green-text);
}

/* --------------------------------------------------------------------------
   25. Reveal on scroll
   Only hidden when JS runs and the visitor accepts motion, so content never
   stays invisible.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 600ms var(--ease), transform 600ms var(--ease);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}
