/* Meynendonckx BV, the site's own design.

   Source: getComputedStyle measurements taken off the LIVE
   www.meynendonckx.be at 1280px and 390px. An earlier revision of this file
   was written against ~/dev/mdx-sites/meynendonckx.be/, which turned out to
   be a hand-rebuilt proposal rather than a mirror of the real site; where
   the two disagree the live measurements win. The live markup uses its own
   Squarespace class names, so this file re-expresses the measured visual
   system against MdxWeb.Site.Components' class vocabulary.

   LAYERING RULE: priv/cms_assets/site.css is linked first and stays
   unchanged. It owns the complete section-settings vocabulary
   (.width-narrow|normal|wide|full, .spacing-compact|normal|spacious,
   .bg-default|subtle|contrast|image and every per-kind variant class).
   Rob changes those from dropdowns, so this file only overrides tokens and
   restyles components. It never blanks a baseline rule and never leaves a
   settings value unstyled. */

/* --- Webfonts -----------------------------------------------------------
   Self-hosted, deliberately: no request to fonts.gstatic.com from a Belgian
   site. See fonts/README.md for provenance. */

@font-face {
  font-family: "Adamina";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/adamina-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/muli-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/muli-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Muli";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/muli-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/alegreya-sans-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/alegreya-sans-700-latin.woff2") format("woff2");
}

/* Measured live: the desktop navigation is Lato 13px, uppercase, 1px
   tracking, black. brandon-grotesque (a commercial Adobe Fonts face we cannot
   licence for self-hosting) appears on the live phone title bar only, not in
   the desktop nav. Montserrat remains the site's substitute for that
   brandon-grotesque look in the other nav-face places (wordmark text, hero
   and media+text eyebrows, action links) through --font-nav. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-700-latin.woff2") format("woff2");
}

/* --- Tokens -------------------------------------------------------------
   Left column: the baseline's token names. Right column: the capture's
   values. Site-local tokens the baseline has no name for are added below
   the overrides. */

:root {
  --font-body: "Adamina", Georgia, "Times New Roman", serif;
  --font-heading: "Muli", "Segoe UI", Arial, sans-serif;

  /* capture --max-width: 1280px. --width-wide is raised so "wide" stays a
     visibly different choice from "normal" in the dropdown; the baseline's
     80rem happens to equal 1280px. */
  --width-normal: 1280px;
  --width-wide: 1600px;

  /* The capture's sections are padding: 4rem 0. Compact and spacious keep
     the baseline values, which stay correctly ordered either side of it. */
  --space-normal: 4rem;

  --color-text: #1a1a1a;
  --color-text-muted: #969696;
  --color-bg: #f7f7f7;
  --color-bg-subtle: #ffffff;
  --color-link: #1a1a1a;
  --color-border: #e6e6e6;

  /* The capture has no dark surface other than the hero gradient, so
     bg-contrast borrows the gradient's dark stop instead of the baseline's
     near-black. --color-text-on-contrast stays the baseline's white. */
  --color-bg-contrast: #3a2c0a;

  /* Site-local, no baseline equivalent. Montserrat stands in for the live
     site's brandon-grotesque, which is not licensable for self-hosting;
     see the @font-face note above. The desktop nav links use Lato instead,
     through --font-nav-links, because that is what the live nav measures. */
  --font-nav: "Montserrat", Arial, sans-serif;
  --font-nav-links: "Lato", Arial, sans-serif;
  --font-display: "Alegreya Sans", Arial, sans-serif;
  --color-brand: #b58e0d;
  --color-brand-dark: #8a6c09;
  --radius: 4px;

  /* Headings are pure black while body copy is grey, so the heading colour
     is a token of its own: a section on a dark background flips it once,
     below, instead of every heading rule needing an override.
     Measured live: rgb(0, 0, 0). */
  --color-heading: #000000;

  /* Measured live: section headings are 27px. */
  --size-heading: 27px;
}

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

html {
  scroll-behavior: smooth;
}

/* Measured live: 14px Adamina, line-height 25.2px (= 1.8), rgb(150,150,150). */
body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
}

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

a:hover,
a:focus {
  color: var(--color-brand);
  text-decoration: none;
}

/* The two baseline backgrounds that carry their own text colour: keep the
   baseline's white body text and re-point the heading token at it, so no
   heading rule in this file has to know about dark sections. */
.bg-contrast,
.bg-image {
  --color-heading: var(--color-text-on-contrast);
  --color-link: var(--color-text-on-contrast);
}

.bg-contrast a:hover,
.bg-contrast a:focus,
.bg-image a:hover,
.bg-image a:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* The capture's .container is padding: 0 1.25rem around a centred
   max-width; the baseline's .section gutter is 1rem. */
.section {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- Header, wordmark, nav -----------------------------------------------
   The renderer emits <header class="site-header"> with the wordmark and nav
   as direct children, so there is no inner element to cap. The header stays
   full-bleed white and the row inside it is centred with a padding clamp
   instead.

   Measured live at 1280: the logo starts at x=241 and is 58px wide, the nav
   runs from x=357 to x=979, so the logo-plus-nav group spans roughly
   x=241 to x=979, about 740px wide, sitting near the middle of the
   viewport rather than spanning it edge to edge. Our nav carries longer
   Dutch link labels in a wider substitute font (Montserrat for the
   unlicensable brandon-grotesque), so the live measurement's own 740px
   wraps our nav onto a second line; 850px is the narrowest row that keeps
   the same "centred group, not edge to edge" shape without wrapping.
   --header-row-width is a site-local token, no baseline equivalent, used
   only for this padding clamp. */

.site-header {
  --header-row-width: 850px;
  background: var(--color-bg-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  padding-left: max(1.25rem, (100% - var(--header-row-width)) / 2);
  padding-right: max(1.25rem, (100% - var(--header-row-width)) / 2);
}

.site-wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

/* Task 6's <img>. It carries width/height attributes from the asset's own
   dimensions (472x472 here), so width: auto lets CSS drive the displayed
   size while the browser keeps its aspect-ratio reservation.
   Measured live: the logo renders 58x58. */
.site-wordmark__image {
  height: 58px;
  width: auto;
}

.site-header nav {
  gap: 1.6rem;
}

/* Measured live: Lato 13px, weight 400, letter-spacing 1px, uppercase,
   rgb(0, 0, 0). */
.site-header nav a {
  font-family: var(--font-nav-links);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000000;
}

.site-header nav a:hover,
.site-header nav a:focus {
  color: var(--color-brand);
}

/* The baseline underlines the current page; the live site colours it gold. */
.site-header nav a[aria-current="page"] {
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: none;
}

/* --- Hamburger menu ------------------------------------------------------
   Progressive enhancement, and the order of the rules is the point.

   The baseline sets .site-nav-toggle { display: none }, which is the
   no-JavaScript rendering: no button, and the nav stays the wrapping row
   it has always been. At 390px that row wraps onto three lines, which is
   ugly but entirely usable, and it is the fallback on purpose.

   app.js puts .has-js on <html> as its first action. Everything below is
   behind that marker, so nothing here can ever hide the navigation from a
   visitor whose JavaScript did not run. Above 900px the marker changes
   nothing at all: the nav is the ordinary horizontal row and the button
   stays hidden.

   The live site puts the hamburger on the left at mobile, so the button
   takes order: -1 and the wordmark is pushed off the left edge. */

@media (max-width: 899px) {
  .has-js .site-header {
    justify-content: flex-start;
  }

  /* Live's phone title bar is about 52px tall; ours was 103px (a 58px logo
     plus 1.4rem of padding either side). A smaller logo and tighter padding
     bring it to about 56px. */
  .site-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-wordmark__image {
    height: 40px;
  }

  .has-js .site-nav-toggle {
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: 0;
    color: var(--color-text);
    cursor: pointer;
  }

  .has-js .site-nav-toggle:hover,
  .has-js .site-nav-toggle:focus-visible {
    color: var(--color-brand);
  }

  /* The wordmark sits between the button and the right edge; the auto
     margins centre it in what is left over - which is NOT the same as
     centred in the header, since only the toggle's width is subtracted
     from one side. A phantom spacer the same width as the toggle balances
     it on the right, so the free space split by the auto margins is even
     on both sides and the logo lands in the true horizontal centre. */
  .has-js .site-header .site-wordmark {
    margin-left: auto;
    margin-right: auto;
  }

  .has-js .site-header::after {
    content: "";
    order: 1;
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Three bars drawn from one span plus its two pseudo-elements. The span
     is aria-hidden in the markup, so this is decoration only. */
  .has-js .site-nav-toggle__bars {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .has-js .site-nav-toggle__bars::before,
  .has-js .site-nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .has-js .site-nav-toggle__bars::before {
    top: -7px;
  }

  .has-js .site-nav-toggle__bars::after {
    top: 7px;
  }

  /* The word "Menu" stays in the accessibility tree as the button's name,
     it is only the visible label that goes: the live site shows the icon
     alone. Never display: none here. */
  .has-js .site-nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .has-js .site-header nav {
    display: none;
  }

  /* order: 2 keeps this after the phantom spacer in flex order. Without
     it, nav (default order 0, same tier as the wordmark) sorts BEFORE the
     spacer (order 1) despite the spacer being visually to its right - so
     when open, row 1 wraps as [toggle, wordmark, nav] and the spacer gets
     shoved onto its own row 3, losing the balance that centres the logo. */
  .has-js .site-header nav.site-nav--open {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    order: 2;
    gap: 0.9rem;
    padding-top: 1.2rem;
  }
}

/* --- Headings ------------------------------------------------------------
   One heading treatment across every section kind. Measured live off the
   section headings (h3 there, card titles here): Muli, weight 300, 27px,
   uppercase, rgb(0,0,0), letter-spacing effectively 0.

   Rich-text h2 is the exception and is styled on its own further down: the
   live site sets it 22px in sentence case, not 27px uppercase. */

.hero__heading,
.pagetitle__inner h1,
.mediatext__heading,
.cta__heading,
.location__heading,
.card__title,
.richtext__inner h1,
.richtext__inner h3,
.richtext__inner h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-heading);
}

/* --- Hero ----------------------------------------------------------------
   Three treatments, told apart by the settings vocabulary rather than by
   markup, since every hero variant shares the same class skeleton:

   - media_background: the home page's full-bleed seasonal banner. All of
     its text is baked into the picture, so nothing is drawn over it.
   - bg-contrast: the gold panel.
   - bg-default: the quiet page-intro treatment other pages use.

   The gold and page-intro treatments are kept as they were; only the
   media_background one is reworked to match the live banner. */

.hero__inner {
  gap: 0.6rem;
}

.hero__heading {
  margin: 0;
  font-size: 1.9rem;
}

.hero__body {
  margin: 0;
  max-width: 60ch;
}

.hero__eyebrow {
  font-family: var(--font-nav);
  letter-spacing: 0.07em;
  margin: 0;
}

.hero.bg-contrast {
  background: linear-gradient(135deg, #3a2c0a 0%, var(--color-brand) 100%);
}

.hero.bg-contrast .hero__heading {
  font-size: 2.2rem;
  letter-spacing: 0.03em;
}

.hero.bg-contrast .hero__body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
}

.hero.bg-contrast .hero__eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.hero.bg-default .hero__body {
  color: var(--color-text-muted);
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

/* --- Hero: media_background (the home banner) ----------------------------
   The banner carries its own headline, subline and logo baked into the
   picture, exactly as the live site does, and the promotional text runs
   close to both edges of the image. Live holds the band at a FIXED HEIGHT
   rather than an aspect ratio: 449px tall down to a 641px viewport, 228px
   below that, breakpoint found by probing the live site (449px still held
   at 645px and 641px, already 228px at 640px and 480px). Because the image
   is cover-cropped, a fixed height means the browser crops the sides at
   narrow widths instead of growing the band taller, and growing taller is
   exactly what used to crop the French half of the text away. An
   aspect-ratio box does the opposite: it gets taller as the viewport
   widens, which is what was cropping the sides too far on this wide image
   at desktop widths. Height, not ratio, is the fix.

   The baseline parks .hero__media at z-index: -1, and because the section
   itself is not a stacking context that puts the picture behind the
   section's own bg-image background colour, which hides it completely.
   isolation: isolate makes the section a stacking context so the negative
   layer stays inside it, above the background and below the text. */

.hero--media_background {
  padding-top: 0;
  padding-bottom: 0;
  height: 228px;
  isolation: isolate;
}

@media (min-width: 641px) {
  .hero--media_background {
    height: 449px;
  }
}

.hero--media_background .hero__media {
  border-radius: 0;
  overflow: hidden;
}

.hero--media_background .hero__inner {
  height: 100%;
  justify-content: center;
}

/* The section still emits an h1 because the page needs exactly one for SEO
   and for screen readers, but the banner already shows that headline as
   pixels, so a second copy on top would be wrong. The live site solves this
   by rendering its h1 at 8px in rgba(0,0,0,0); we hide ours properly, with
   the standard visually-hidden clip, which keeps it in the accessibility
   tree. Never display: none, visibility: hidden or font-size: 0 here. */
.hero--media_background .hero__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Fallback page title -------------------------------------------------
   Task 5's hook, emitted when no hero claimed the h1 (on this site that is
   /eigen-productieatelier/ only). Same treatment as .hero.bg-default so the
   page reads like every other one. */

.pagetitle__inner h1 {
  font-size: 1.9rem;
}

/* --- Rich text -----------------------------------------------------------
   The capture's two-column .lang-blocks grid is a Dutch/French pair that
   the CMS models as two separate rich_text sections, so the stacked pair is
   correct here and the grid is not reproduced. */

.richtext__inner {
  gap: 1.2rem;
}

.richtext__inner > * {
  margin-top: 0;
  margin-bottom: 0;
}

.richtext__inner > h1:not(:first-child),
.richtext__inner > h2:not(:first-child),
.richtext__inner > h3:not(:first-child),
.richtext__inner > h4:not(:first-child) {
  margin-top: 1.2rem;
}

/* Measured live: rich-text h2 is 22px Muli weight 300, dark, and carries no
   text-transform, so it reads in sentence case. It is deliberately not the
   27px uppercase treatment the shared heading block gives every other
   heading; h3 is that treatment and is left alone. */
.richtext__inner h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-heading);
}

.richtext__inner h3 {
  font-size: 1.3rem;
}

.richtext__inner h4 {
  font-size: 1.1rem;
}

.richtext__inner ul,
.richtext__inner ol {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
}

/* The capture's service list uses gold bullets. */
.richtext__inner li::marker {
  color: var(--color-brand);
}

blockquote {
  border-left-color: var(--color-brand);
}

/* --- Media + Text --------------------------------------------------------
   The baseline's flex row at min-width 48rem already matches the capture's
   rhythm; only the rounded image corners are added. */

.mediatext__media picture {
  border-radius: var(--radius);
  overflow: hidden;
}

.mediatext__heading {
  font-size: var(--size-heading);
  margin: 0 0 0.8rem;
}

.mediatext__eyebrow {
  font-family: var(--font-nav);
  letter-spacing: 0.07em;
}

.mediatext__body {
  margin: 0 0 1.2rem;
}

.mediatext__action {
  margin: 0;
}

/* --- Gallery -------------------------------------------------------------
   Measured live at 1280: the row is 1232px wide and holds five 246px cells,
   edge to edge with no gap (5 x 246 = 1230). Each <img> renders 328px wide
   inside its 246px cell, so it is scaled up and cropped horizontally by
   about 25 percent, and the cell height matches the width at 246px, so the
   cells are square. That cropping is the point: the source photographs
   carry their own white margin, and cropping it away is what makes the five
   photos read as one continuous white band against the grey page rather
   than five separate white rectangles. Two columns on narrow viewports,
   which is what the live site does at 390.

   The baseline's auto-fit minmax and its gap are both replaced.

   Every gallery section carries bg-default (see the carousel comment
   below), which the baseline turns into a white section background - right
   for the carousel's light panel, but live's five-across home row sits
   directly on the page's own grey, with no box around it at all. */

.section.hero + .gallery.bg-default {
  background: transparent;
}

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

@media (min-width: 900px) {
  .gallery__inner {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery__item {
  background: none;
  border: 0;
  border-radius: 0;
  align-self: center;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* --- Gallery: single item --------------------------------------------
   A gallery with exactly one item is not the five-across product row: on
   the contact page it is one landscape photo of the building (asset 98).
   The fixed columns and square cover-crop above are correct for the
   multi-item row, cropping away each photo's white margin so the row
   reads as one continuous band, but the same treatment turns a single
   building photo into a tiny cropped square, which is the bug. This
   undoes the square crop for the single-item case only: the live
   contact page shows the photo about 940px wide inside the 1232px
   content column, left-aligned, at its own aspect ratio. */

.gallery__inner:has(.gallery__item:only-child) {
  grid-template-columns: 1fr;
  justify-items: start;
}

.gallery__item:only-child {
  width: 100%;
  max-width: 940px;
}

.gallery__item:only-child img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}

/* --- Gallery: carousel ---------------------------------------------------
   The live site presents the /producten/ and /eigen-productieatelier/
   galleries as a true one-at-a-time slideshow: a single centred photo,
   prev/next arrows, and a row of dot thumbnails below, while the home
   page's five product photos stay a static row.

   Telling them apart is a heuristic, and it needs saying plainly: every
   gallery on this site renders with the identical class list
   (gallery gallery--grid width-normal spacing-normal bg-default), and the
   settings resource has exactly one variant (:grid) - a real
   section-settings carousel variant would be the correct fix but is a
   renderer change out of scope here. So the signal is structural: the home
   gallery is the one sitting directly under the hero, the carousels follow
   a rich text or media+text block. If Rob ever puts a gallery straight
   under a hero on a subpage it will render as a static row, and a gallery
   under a rich text block on the home page would become a carousel.

   The same selector is used in app.js to decide which sections get arrows.
   Change one, change both.

   The strip is a scroll-snap carousel in CSS alone, so with JavaScript off
   it still swipes and scrolls; app.js only adds the arrows on top. */

.section:not(.hero) + .gallery {
  position: relative;
}

.section:not(.hero) + .gallery .gallery__inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--color-bg-subtle, #fbfbfb);
}

/* One slide fills the strip - live shows a single centred product photo
   with prev/next arrows and a row of dot thumbnails below, not a peek of
   the next item. */
.section:not(.hero) + .gallery .gallery__item {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

/* The square cover-crop above is right for the home page's five-across
   band, but live's slideshow shows each photo whole, contained, on its own
   light panel - not cropped to a square. */
.section:not(.hero) + .gallery .gallery__item img {
  aspect-ratio: auto;
  height: 32rem;
  max-height: 60vh;
  object-fit: contain;
}

/* The strip carries tabindex="0" from app.js so the arrow keys the browser
   already handles reach it. That focus has to be visible. */
.section:not(.hero) + .gallery .gallery__inner:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* --- Gallery: carousel dots ------------------------------------------------
   Created by app.js alongside the arrows, one button per slide. */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0 0;
}

.gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
}

.gallery__dot:hover,
.gallery__dot:focus-visible {
  background: var(--color-brand-dark, var(--color-brand));
}

.gallery__dot[aria-current="true"] {
  background: var(--color-brand);
}

/* The arrows are created by app.js and only exist under it, so no
   no-JavaScript rendering is affected. They carry the hidden attribute
   when there is nothing to scroll to in that direction, and display: flex
   would otherwise beat it. */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
}

.gallery__arrow[hidden] {
  display: none;
}

.gallery__arrow:hover,
.gallery__arrow:focus-visible {
  color: var(--color-brand);
}

/* A chevron drawn from two borders on an empty box. The button's
   accessible name is its aria-label ("Vorige" / "Volgende"), set in
   app.js, so this shape is decoration and carries no text. */
.gallery__arrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.gallery__arrow--prev {
  left: 0.5rem;
}

.gallery__arrow--prev::before {
  transform: rotate(-135deg);
  margin-left: 0.25rem;
}

.gallery__arrow--next {
  right: 0.5rem;
}

.gallery__arrow--next::before {
  transform: rotate(45deg);
  margin-right: 0.25rem;
}

.gallery__item figcaption {
  margin: 0;
  padding: 0.6rem 0;
  line-height: 1.5;
  text-align: center;
}

/* --- Cards ---------------------------------------------------------------
   The bilingual welcome block on the home page is a two-column cards
   section. The live equivalent has no card chrome at all: no border, no
   background panel, no radius, the columns just sit on the page. */

.card {
  background: none;
  border: 0;
  border-radius: 0;
  gap: 0;
}

.card__media {
  margin-bottom: 1rem;
}

/* Typography comes from the shared heading block above. */
.card__title {
  font-size: var(--size-heading);
  margin: 0 0 1.2rem;
}

/* .card__body renders as a single <p>, and the authored content puts blank
   lines between its paragraphs on purpose. Without pre-line those blank
   lines collapse and the four paragraphs run together as one wall of text.
   pre-line keeps the breaks and still lets each paragraph wrap normally. */
.card__body {
  white-space: pre-line;
  margin: 0;
}

.card__action {
  margin: 1.2rem 0 0;
}

.cards__intro {
  margin-top: 0;
}

/* --- CTA -----------------------------------------------------------------
   Unused by site 6 today. The baseline's rules stand; only the accent
   colour follows from the token change, since --color-link is now
   near-black and a near-black rule is not the brand. */

.cta__heading {
  font-size: var(--size-heading);
  margin: 0;
}

.cta--media_accent {
  border-top-color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

/* --- Action links --------------------------------------------------------
   Hero, media+text, card and CTA all render an optional action link. The
   live site has no buttons, so these stay links, in the nav face. */

.hero__action a,
.mediatext__action a,
.card__action a,
.cta__action a {
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-brand);
  padding-bottom: 0.15rem;
}

/* --- Location ------------------------------------------------------------
   The capture's .contact-details is a dl grid the CMS does not emit; the
   renderer emits .location__address with span children. The typography is
   matched instead of the layout: phone and email in Alegreya Sans, labels
   in Muli 700.

   Live shows, in order: email, street, postcode/city, phone, VAT, then a
   bulleted opening-hours list, with no repeat of the company name (it is
   already the h3 heading right above) and no country line. The renderer's
   span order cannot change, but .location__address is a flex column, so
   reordering is a per-site override, not a renderer change. The company
   name is hidden with CSS (order stays a layout concern); the country
   line needs none - this site's SiteIdentity.country is blank, so the
   renderer skips the span on its own. */

.location__heading {
  font-size: var(--size-heading);
  margin: 0;
}

.location__address {
  gap: 0.4rem;
}

/* The baseline sets display: block on .location__address span, which
   outranks a bare class selector here, so the selector carries
   .location__address too (same trick as .site-footer__vat below).
   Country has no CSS rule of its own: this site's SiteIdentity.country
   is blank, so the renderer already skips the span. */
.location__address .location__name {
  display: none;
}

.location__email {
  order: 1;
}

.location__street {
  order: 2;
}

.location__locality {
  order: 3;
}

.location__phone {
  order: 4;
}

.location__vat {
  order: 5;
}

.location__hours {
  order: 6;
}

/* The capture's dt labels are Muli 700 near-black. These spans are short
   labelled data; opening hours is a whole block, so it stays ordinary body
   copy rather than becoming a bold paragraph. */
.location__phone,
.location__vat {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

/* opening_hours is authored as one string with real newlines (one line per
   day plus the phone-availability note). HTML collapses newlines by
   default, which is exactly why this used to read as one run-together
   sentence; pre-line keeps them as separate visual lines while still
   wrapping normally, same technique as .card__body above. Live renders
   this as a real bulleted <ul>/<li> list; ours is lines of text in one
   span, so the content, order and grouping match but there are no bullet
   glyphs. */
.location__hours {
  margin-top: 0.8rem;
  white-space: pre-line;
}

.location__address a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text);
}

.location__address a:hover,
.location__address a:focus {
  color: var(--color-brand);
}

.location__maps a {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* --- Location: map -------------------------------------------------------
   Measured live: the address and the map sit side by side on the contact
   page, address left and map right, roughly half and half, the map about
   460px wide as displayed. The baseline lays .location__inner out as a
   vertical flex column; this turns it into a two-column row at desktop
   widths and stacks it again below 700px, where the vertical baseline
   rhythm (gap: 1rem) already reads correctly. */

@media (min-width: 700px) {
  .location__inner {
    flex-direction: row;
    align-items: start;
    gap: 2rem;
  }

  .location__address {
    flex: 1 1 0;
  }

  .location__maps {
    flex: 1 1 0;
    max-width: 460px;
  }
}

.location__map {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.location__map-credit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Footer -------------------------------------------------------------
   Measured live: one block set in Alegreya Sans, 27px, weight 400,
   letter-spacing 3px. The address text is grey (rgb(150,150,150)) and only
   the email link is near-black (rgb(18,18,18)). Everything runs inline on
   one line at 1440 (legal name, street, postcode and city, phone, email)
   and wraps normally on a phone.

   The baseline lays .site-footer__address out as a vertical flex column, so
   this turns it back into a centred wrapping row. */

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  padding-left: max(1.25rem, (100% - var(--width-normal)) / 2);
  padding-right: max(1.25rem, (100% - var(--width-normal)) / 2);
  border-top: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Our legal name reads "BV/SRL" where live has "BV", which is wider than the
   1280px row at live's 27px and 3px tracking, so the desktop footer is set a
   little smaller and tighter instead of wrapping. */
@media (min-width: 900px) {
  .site-footer {
    font-size: 24px;
    letter-spacing: 2px;
  }
}

.site-footer__address {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em 0.35em;
}

.site-footer__address span {
  display: inline;
}

/* The renderer hardcodes the literal "Tel. " ahead of the number; the live
   footer shows "TEL.", so uppercase the whole span. */
.site-footer__phone {
  text-transform: uppercase;
}

/* The live footer carries no VAT number. Hiding it is a presentation choice
   for this site only: the number stays in the site's identity data and
   still renders anywhere else that asks for it.

   The selector carries .site-footer__address because the baseline sets
   display: block on that descendant, which would otherwise outrank a bare
   class selector here. */
.site-footer__address .site-footer__vat {
  display: none;
}

.site-footer a {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Live greys the phone number with the rest of the address; only the email
   is near-black. */
.site-footer__email a {
  color: #121212;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-brand);
}

/* --- Chocolatier page ------------------------------------------------------
   Page-scoped through the body class derived from the path (/chocolatier).
   The live page runs a 756px content column with the large photo above two
   equal columns (NL and FR) and the carousel below; here the column is
   centred. --width-normal is re-pointed on the sections only, so the header
   and footer, which also read it, stay full width. Compact sections give
   the roughly 35px gaps live has. */

.chocolatier .section {
  --width-normal: 756px;
  --space-compact: 1.1rem;
}

/* Live card titles on this page: Muli 22px, weight 400, sentence case. */
.chocolatier .card__title {
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
}

/* The single-item gallery is capped at 940px and left-aligned for the
   contact page; here the photo fills the column, square-cornered. */
.chocolatier .gallery__item:only-child {
  max-width: none;
}

.chocolatier .gallery__item:only-child,
.chocolatier .gallery__item:only-child img {
  border-radius: 0;
}

/* Chocolatier carousel: photos fill a 3:2 frame (live is about 752x503 at
   1440 and 327x218 at 375) instead of sitting contained on a light panel. */
.chocolatier .section:not(.hero) + .gallery .gallery__inner {
  background: transparent;
}

.chocolatier .section:not(.hero) + .gallery .gallery__item img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* The arrows are positioned against the full-width section; pull them onto
   the photo's left and right edges inside the centred column, vertically
   centred on the photo (section padding plus half the 3:2 frame height). */
.chocolatier .section:not(.hero) + .gallery .gallery__arrow {
  top: calc(var(--space-compact) + min(756px, 100vw - 2.5rem) / 3);
}

.chocolatier .section:not(.hero) + .gallery .gallery__arrow--prev {
  left: calc(max(1.25rem, (100% - 756px) / 2) + 0.5rem);
}

.chocolatier .section:not(.hero) + .gallery .gallery__arrow--next {
  right: calc(max(1.25rem, (100% - 756px) / 2) + 0.5rem);
}

/* About 35px between the hero and the building photo, like the other gaps. */
.chocolatier .hero + .gallery {
  padding-top: 35px;
}
