/* GKR Metal — site styles. Mobile-first; min-width breakpoints only: 576, 768, 1024, 1280, 1600px
   (plus the old Bootstrap container steps 992, 1200, 1400px for --container). */
@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
  ul[class], ol[class] { padding: 0; list-style: none; }
  img, svg, video, iframe { display: block; max-width: 100%; }
  img, video { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
}

@layer base {
  :root {
    --font: 'Kanit', 'Kanit Fallback', system-ui, sans-serif;
    --orange: #f8b600;
    --dark-blue: #222b60;
    --navy: #232c61;
    --dirty-white: #f7fbff;
    --sector-bg: #f3faff;
    --gray: #7188a4;
    --gray-on-solid: #546983; /* --gray darkened to 4.5:1 contrast on --solid-gray (WCAG AA) */
    --solid-gray: #e6e6e6;
    --teal: #339999;
    --brown: #5f4f3a;
    --black: #141414;
    --white: #fff;
    --gradient-brand: linear-gradient(277deg, rgb(27 131 133) 23%, rgb(35 44 97) 100%);
    --gradient-overlay: linear-gradient(to top, rgb(35 45 97 / .6) 0%, rgb(21 131 133 / .5) 78%);
    --shadow: rgb(0 0 0 / .1) 0 10px 15px -3px, rgb(0 0 0 / .05) 0 4px 6px -2px;
    --shadow-hover: rgb(0 0 0 / .1) 0 20px 25px -5px, rgb(0 0 0 / .04) 0 10px 10px -5px;
    --radius: 8px;
    --gutter: clamp(16px, 4vw, 24px);
    --container: 100%;
    --section-space: clamp(40px, 5vw, 60px);
    --fs-text: clamp(16px, 13px + .5vw, 20px); /* body text of content sections: 16px on phones, 20px from 1400px */
  }
  /* Content width follows the steps of the original Bootstrap 5 layout (container minus its 12px padding),
     so the page keeps the old proportions on every screen. */
  @media (min-width: 576px) { :root { --container: 516px; } }
  @media (min-width: 768px) { :root { --container: 696px; } }
  @media (min-width: 992px) { :root { --container: 936px; } }
  @media (min-width: 1200px) { :root { --container: 1116px; } }
  @media (min-width: 1400px) { :root { --container: 1296px; } }
  body {
    font-family: var(--font);
    font-size: clamp(16px, 13.7px + .77vw, 26px);
    line-height: 1.5;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-decoration: none; transition: color .3s ease; }
  p { line-height: 1.4; }
  h1, h2, h3 { line-height: 1.1; overflow-wrap: break-word; } /* long words (e.g. "Kırklareli/Kıyıköy’de") wrap on narrow phones */
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
  ::selection { background: #b3d4fc; }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
}

@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .section { margin-block: var(--section-space); }
}

@layer components {
  .icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

  .skip-link {
    position: absolute; top: -100px; left: 8px; z-index: 100;
    padding: 8px 16px; border-radius: var(--radius); background: var(--dark-blue); color: var(--white);
  }
  .skip-link:focus { top: 8px; }

  .section-label { font-size: clamp(16px, 9px + 1.7vw, 36px); font-weight: 100; line-height: 1.1; }
  .section-label--small { font-size: 18px; }
  .section-title { font-size: clamp(24px, 17px + 1.6vw, 40px); font-weight: 500; line-height: 1.1; }

  .btn-pill {
    display: inline-flex; align-items: center; min-height: 44px; padding: 7px 24px;
    border: 3px solid var(--orange); border-radius: 22px; color: var(--white);
    font-size: clamp(15px, 13px + .4vw, 20px); font-weight: 700; text-shadow: 0 2px 2px rgb(0 0 0 / .2);
    transition: background-color .3s;
  }
  .btn-pill:hover { background-color: var(--orange); }
  @media (prefers-reduced-motion: no-preference) {
    .btn-pill { animation: pill-glow 2s infinite alternate; }
  }
  @keyframes pill-glow { from { background-color: transparent; } to { background-color: var(--orange); } }

  .link-underline { position: relative; }
  .link-underline::before {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease-in-out;
  }
  a:hover > .link-underline::before, a.link-underline:hover::before { transform: scaleX(1); transform-origin: left; }

  /* Carousel (assets/js/modules/carousel.js) */
  .carousel { position: relative; }
  /* Sideways only: a taller item must not add a vertical scroll. */
  .carousel__track {
    display: grid; grid-auto-flow: column; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track > * { scroll-snap-align: start; }
  @media (prefers-reduced-motion: no-preference) {
    .carousel__track { scroll-behavior: smooth; }
  }
  /* data-drag (mouse): snapping is off while dragging so the track follows the pointer. */
  .carousel[data-drag] .carousel__track { user-select: none; }
  .carousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
  .carousel__track.is-dragging, .carousel__track.is-dragging * { cursor: grabbing; }
  /* Dots come from carousel.js; their height is reserved (no shift). */
  .carousel__dots { display: flex; justify-content: center; gap: 10px; min-height: 10px; margin-top: 16px; }
  .carousel__dot {
    width: 14px; height: 10px; padding: 0; border: 0; border-radius: 8px; background: var(--gray);
    transition: width .3s, background-color .3s;
  }
  .carousel__dot[aria-current="true"] { width: 21px; background: var(--brown); }
  .carousel__dots[hidden] { display: none; }
}

@layer utilities {
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

/* ---------- Header ---------- */
@layer components {
  /* --lme-width: desktop price box (136px content + 12px padding). */
  .masthead { position: relative; z-index: 5; --lme-width: 160px; }
  .masthead__bar { display: grid; grid-template-columns: 2fr 3fr; background: var(--dirty-white); }

  .zero-waste {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
    color: var(--dark-blue); font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center;
  }
  .zero-waste img { width: 64px; }

  .lme {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; padding: 10px 12px;
    background: var(--orange); color: var(--black); font-size: 12px; line-height: 1.3;
  }
  /* Phones: subgrid keeps both groups' rows (and dotted lines) level. */
  .lme__group { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .lme__title { font-weight: 700; }
  .lme__head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
  /* The 24px target overhangs its line, so both titles line up. */
  .lme__toggle {
    display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-block: -5px; padding: 0; border: 0;
    background: none; color: var(--black); font-size: 14px;
  }
  .lme__toggle .icon { transition: transform .3s; }
  .lme__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
  .lme.is-open .lme__row--extra { display: grid; }
  /* Below 360px the date goes under the label (TR would overflow). */
  .lme__row {
    display: grid; column-gap: 8px;
    margin-top: .4em; padding-top: .4em; border-top: 1px dotted #454545;
  }
  @media (min-width: 360px) { .lme__row { grid-template-columns: auto 1fr; } }
  .lme__row dt { font-weight: 700; }
  .lme__row dd { display: flex; flex-direction: column; align-items: flex-end; }
  .lme__value { font-weight: 700; white-space: nowrap; }
  .lme__row--extra { display: none; }

  .site-header { position: absolute; top: 100%; left: 0; right: 0; }
  .site-header__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

  .brand {
    display: block; width: 100px; padding: 10px; border-radius: 0 0 8px 8px; background: var(--dirty-white);
  }
  .brand img { width: 70px; margin-inline: auto; filter: drop-shadow(3px 5px 2px rgb(0 0 0 / .1)); }

  .nav { display: none; }

  .site-header__tools { display: flex; flex-direction: column; align-items: flex-end; padding-top: 4px; }
  .lang-switch {
    display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; justify-content: flex-end;
    color: var(--white); font-size: 14px; text-shadow: 0 2px 2px rgb(0 0 0 / .2);
  }
  .lang-switch .icon { font-size: 16px; }
  .menu-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none;
    color: var(--white); font-size: 40px; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .3));
  }

  /* 19px fits the 1116px container, 22px the 1296px one (EN is longer). */
  .nav__list { display: flex; justify-content: flex-end; gap: 16px; }
  .nav__item { position: relative; }
  .nav__link {
    position: relative; display: inline-block; padding: 4px 0; border: 0; background: none; white-space: nowrap;
    color: var(--white); font-size: 19px; font-weight: 700; text-shadow: 0 2px 2px rgb(0 0 0 / .2);
  }
  .nav__link::before {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
    background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .3s ease-in-out;
  }
  .nav__link:hover::before, .nav__link[aria-expanded="true"]::before { transform: scaleX(1); transform-origin: left; }
  .nav__link:focus-visible { outline-color: var(--white); }

  .dropdown {
    position: absolute; top: 100%; left: 50%; z-index: 2; padding-top: 18px;
    opacity: 0; visibility: hidden; transform: translate(-50%, -.5rem);
    transition: opacity .3s cubic-bezier(.25, .46, .45, .94), transform .4s ease, visibility .3s;
  }
  .nav__item--dropdown:hover > .dropdown,
  .nav__item--dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dropdown__panel {
    position: relative; width: 740px; padding: 30px; border-radius: .4rem;
    background: var(--white); box-shadow: 0 .4rem .5rem rgb(0 0 0 / .14);
  }
  .dropdown__panel::before {
    content: ''; position: absolute; top: -.6rem; left: 50%; transform: translateX(-50%);
    border: .6rem solid transparent; border-top: 0; border-bottom-color: var(--white);
  }

  @media (min-width: 1024px) {
    .masthead { position: absolute; top: 0; left: 0; right: 0; }
    .masthead__bar { display: block; height: 0; background: none; }
    .zero-waste {
      position: absolute; top: 300px; right: 0; flex-direction: column; justify-content: center; gap: 4px;
      width: 90px; height: 100px; padding: 10px; border-radius: 8px 0 0 8px;
      background: var(--dirty-white); box-shadow: rgb(149 157 165 / .2) 0 8px 24px;
      font-weight: 400; text-align: center;
    }
    .lme {
      position: absolute; top: 56px; right: max(var(--gutter), (100% - var(--container)) / 2);
      grid-template-columns: 1fr; gap: 10px; width: var(--lme-width); padding: 12px; border-radius: 11px; font-size: 14px;
    }
    .lme__group { display: block; grid-row: auto; }
    .lme__title { white-space: nowrap; }
    /* The price may reach under the label; label + date set the width. */
    .lme__row dd { min-width: 0; }
    .lme:hover .lme__row--extra { display: grid; }
    .lme__value { font-size: 15px; }
    .site-header { position: relative; top: auto; }
    .brand { width: 140px; padding: 21px; }
    .brand img { width: 80px; }
    .site-header__tools { position: relative; width: calc(var(--lme-width) + 16px); }
    .menu-toggle { position: absolute; top: 52px; right: calc(var(--lme-width) + 10px); }
  }

  @media (min-width: 1280px) {
    .nav { display: block; flex: 1; margin-top: 64px; }
    .menu-toggle { display: none; }
  }

  @media (min-width: 1400px) {
    .nav__list { gap: 20px; }
    .nav__link { font-size: 22px; }
  }
}

/* ---------- Dialogs (mega menu, mobile menu, video) ---------- */
@layer components {
  .dialog {
    width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
    overflow: auto; background: transparent; color: var(--dirty-white);
  }
  .dialog::backdrop { background: var(--gradient-overlay); }
  :root:has(dialog[open]) { overflow: hidden; }
  @media (prefers-reduced-motion: no-preference) {
    .dialog[open] { animation: dialog-in .3s cubic-bezier(.25, .46, .45, .94); }
  }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(-.5rem); } }

  .dialog__close {
    position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgb(255 255 255 / .12); color: var(--white); font-size: 26px; transition: background-color .3s;
  }
  .dialog__close:hover { background: rgb(255 255 255 / .25); }

  .dialog--mega { height: auto; background: var(--gradient-brand); border-bottom: 12px solid var(--teal); }
  .mega { position: relative; display: grid; gap: 30px; padding-block: 80px 40px; }
  .mega__heading { margin-bottom: 30px; font-size: 28px; font-weight: 700; line-height: 1.2; }
  .mega__intro p:not(.mega__heading) { font-size: 18px; }
  .mega__title { margin-bottom: 15px; font-size: clamp(36px, 24px + 2vw, 54px); font-weight: 500; line-height: 1.1; }
  .mega__grid { display: grid; gap: 10px 20px; }
  .mega__box {
    position: relative; height: 140px; padding: 22px; overflow: hidden;
    border-bottom: 10px solid var(--dark-blue); border-radius: 5px 5px 0 0;
    background: var(--dirty-white); box-shadow: var(--shadow); color: var(--dark-blue); transition: box-shadow .5s;
  }
  .mega__box:hover { box-shadow: var(--shadow-hover); }
  .mega__box-title { margin-bottom: 10px; font-size: clamp(22px, 14px + 1vw, 31px); font-weight: 700; line-height: 1.1; }
  .mega__box-title a { transition: color .3s; }
  .mega__box-title a::after { content: ''; position: absolute; inset: 0; }
  .mega__box:hover .mega__box-title a { color: var(--teal); }
  .mega__box p:last-child {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 14px;
  }
  .mega__more {
    display: flex; justify-content: flex-end; max-width: 920px; margin-block: 30px 10px; padding: 15px;
    border-radius: var(--radius); background: var(--dark-blue); color: var(--white); font-size: 18px;
    transition: background-color .3s;
  }
  .mega__more:hover { background: var(--teal); }
  @media (min-width: 768px) {
    .mega__grid { grid-template-columns: repeat(2, minmax(0, 450px)); }
  }
  @media (min-width: 1024px) {
    .mega { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
    .mega__video { grid-column: 1 / -1; }
  }

  .dialog--mobile { background: var(--gradient-brand); }
  .mobile-nav { min-height: 100%; padding: 32px var(--gutter); border-bottom: 12px solid var(--teal); }
  .mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
  .mobile-nav__head img { width: 50px; }
  .mobile-nav .dialog__close { position: static; }
  .mobile-nav__list > li > a, .mobile-nav__list > li > button {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px;
    padding: 5px; border: 0; background: none; color: var(--dirty-white); font-size: 20px; text-align: left;
  }
  .mobile-nav__list .icon { font-size: 22px; }
  .mobile-nav .lang-switch { margin-top: 16px; justify-content: flex-start; padding-left: 5px; }
  .mobile-nav__back {
    display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 20px; padding: 0;
    border: 0; background: none; color: var(--dirty-white); font-size: 32px; font-weight: 700;
  }

  .dialog--video {
    width: min(100% - 2 * var(--gutter), 900px); height: fit-content; margin: auto; overflow: visible;
    border-radius: var(--radius); background: var(--dirty-white); color: var(--black);
  }
  .video-dialog { padding: 56px 16px 16px; }
  .video-dialog iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 5px; }
  .dialog--video .dialog__close { top: 4px; right: 4px; background: none; color: #333; }
  @media (min-width: 768px) {
    .video-dialog { padding: 60px 30px 30px; }
  }

  /* Video banner (inc/partials/video-banner.php) */
  .video-banner {
    position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 140px;
    padding: 16px 20px; overflow: hidden; border: 0; border-radius: var(--radius);
    background: var(--gradient-brand); box-shadow: var(--shadow); color: var(--white); text-align: left;
    transition: box-shadow .5s;
  }
  .video-banner::before {
    content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
    background: url("../img/deco/repeat-bg.svg") center / cover no-repeat; pointer-events: none;
  }
  .video-banner:hover { box-shadow: rgb(0 0 0 / .1) -4px 9px 25px -6px; }
  .video-banner img { position: relative; width: 48px; height: 48px; }
  .video-banner__text { position: relative; display: grid; font-size: 15px; font-weight: 500; line-height: 1.3; }
  @media (min-width: 768px) {
    .video-banner { min-height: 100px; padding-left: 40px; }
    .video-banner::before { right: 54px; }
    .video-banner img { width: 36px; height: 36px; }
    .video-banner__text { font-size: 16px; }
  }

  /* Sector cards (inc/partials/sector-list.php) */
  .sector-list {
    display: flex; gap: .5rem; margin-top: 20px; padding: 4px 2px 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .sector-list::-webkit-scrollbar { display: none; }
  .sector-list > li { flex: 0 0 200px; scroll-snap-align: start; }
  .sector-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px;
    height: 100%; min-height: 130px; padding: 16px; border-radius: var(--radius);
    background: var(--sector-bg); box-shadow: rgb(0 0 0 / .1) 0 2px 2px -3px, rgb(0 0 0 / .05) 0 4px 6px -2px;
    color: var(--gray); text-align: center; letter-spacing: 2px; transition: color .5s;
  }
  .sector-card:hover { color: var(--dark-blue); }
  .sector-card .icon { font-size: 48px; }
  .sector-card span { font-size: 18px; font-weight: 700; line-height: 1.2; }
  .sector-list--compact { margin: 0; padding: 0; overflow: visible; }
  .sector-list--compact > li { flex: 1 1 0; min-width: 120px; }
  .sector-list--compact .sector-card { min-height: 120px; padding: 10px; box-shadow: none; letter-spacing: 1px; }
  .sector-list--compact .sector-card span { font-size: 15px; }
  @media (min-width: 1024px) {
    .sector-list--section { overflow: visible; }
    .sector-list--section > li { flex: 1 1 0; }
  }
}

/* ---------- Footer ---------- */
@layer components {
  .site-footer { margin-top: var(--section-space); background: var(--navy); color: var(--white); }
  .site-footer__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "nav social" "legal legal";
    gap: 24px; padding-bottom: 30px;
  }
  .site-footer__brand { grid-area: brand; }
  .site-footer__logo {
    display: block; width: 130px; margin: 0 auto 16px; padding: 12px; border-radius: 0 0 10px 10px;
    background: var(--white); box-shadow: 0 9px 12px -4px rgb(48 48 48);
  }
  .site-footer__logo img { width: 70px; margin-inline: auto; }
  .site-footer__brand p { font-size: clamp(12px, 10px + .35vw, 15px); line-height: 1.9; }
  .site-footer__nav { grid-area: nav; justify-self: end; }
  /* Line height on the list: inline-block links sit in its line box. */
  .site-footer__nav ul {
    margin: 0; padding: 0 24px 0 0; list-style: none; border-right: 1px solid var(--white); text-align: right;
    font-size: clamp(14px, 12px + .35vw, 17px); line-height: 1.3;
  }
  .site-footer__nav a { display: inline-block; padding-block: 3px; }
  .site-footer__social { grid-area: social; align-self: end; display: grid; gap: 2px; }
  .site-footer__social a { display: flex; align-items: center; width: fit-content; min-height: 24px; padding-block: 5px; } /* 24px+ targets */
  .site-footer__social img { width: 70px; }
  .site-footer__legal { grid-area: legal; margin-top: 16px; text-align: center; font-size: clamp(14px, 12px + .35vw, 17px); }
  .site-footer__legal a:hover { color: var(--orange); }
  /* Desktop: menu and social links flush with the content's right edge. */
  @media (min-width: 768px) {
    .site-footer__inner {
      grid-template-columns: 1fr auto auto; grid-template-areas: "brand nav social" "legal legal legal"; align-items: end;
    }
    .site-footer__brand { max-width: 300px; align-self: start; }
    .site-footer__nav { margin-top: 48px; } /* keeps the menu off the footer's top edge when it is the tallest column */
    .site-footer__brand p { margin-bottom: 16px; }
    .site-footer__logo { margin-left: 0; }
  }
  @media (min-width: 1024px) {
    .site-footer__logo img { width: 90px; }
    .site-footer__nav a { padding-block: 2px; } /* keeps each link at least 24px tall (WCAG target size) */
    .site-footer__social img { width: 80px; }
  }
}

/* ---------- Reveal on scroll (assets/js/modules/reveal.js) ---------- */
@layer components {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
    :is(.reveal-pending, .reveal-active) [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(60px); }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 576px) {
    :is(.reveal-pending, .reveal-active) [data-reveal]:not(.is-visible) { filter: blur(5px); }
  }
}

/* ---------- Homepage ---------- */
@layer components {
  .hero { position: relative; height: 340px; overflow: hidden; background: var(--navy); color: var(--dirty-white); }
  /* Stacked slides in a fixed 100% cell (fader.js); the old one stays opaque until the new one has faded in. */
  .hero__slides { display: grid; grid-template: 100% / 100%; height: 100%; isolation: isolate; }
  .hero__slide { grid-area: 1 / 1; opacity: 0; transition: opacity 0s 1.2s; }
  .hero__slide.is-active { z-index: 1; opacity: 1; transition: opacity 1.2s ease-in-out; }
  .hero__slide :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
  .hero__overlay { position: absolute; inset: 0; background: var(--gradient-overlay); pointer-events: none; }
  .hero__content {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 90px var(--gutter) 70px; text-align: center; pointer-events: none;
  }
  .hero__content a { pointer-events: auto; }
  .hero__title {
    font-size: clamp(28px, 12px + 4.2vw, 76px); font-weight: 700; color: var(--dirty-white);
    text-shadow: 2px 2px rgb(0 0 0 / .5);
  }
  .hero__line {
    display: block; width: clamp(160px, 30vw, 480px); height: clamp(3px, .35vw, 5px); margin: 10px auto 20px;
    border-radius: 2px; background: var(--orange);
  }
  .hero__dots {
    position: absolute; left: 0; right: 0; bottom: clamp(64px, 9vw, 150px); z-index: 2; gap: .75rem; margin: 0;
  }
  .hero .carousel__dot {
    width: 48px; height: 24px; padding: 10px 0; background: rgb(255 255 255 / .35); background-clip: content-box; border-radius: 2px;
  }
  .hero .carousel__dot[aria-current="true"] { width: 48px; background-color: var(--orange); }
  @media (min-width: 576px) { .hero { height: 520px; } }
  @media (min-width: 768px) { .hero { height: 600px; } .hero__content { padding: 110px var(--gutter) 120px; } }
  @media (min-width: 1024px) { .hero { height: 640px; } .hero__content { padding-top: 140px; } }
  @media (min-width: 1280px) { .hero { height: 700px; } }
  @media (min-width: 1600px) {
    .hero { height: 800px; }
    .hero .carousel__dot, .hero .carousel__dot[aria-current="true"] { width: 68px; padding-block: 9px; }
  }

  .product-strip { position: relative; z-index: 2; margin: -60px 0 0 3%; --fade: 32px; }
  .product-strip__track {
    grid-auto-columns: min(400px, 85%); gap: 20px; padding: 6px var(--fade) 30px 6px; scroll-padding-left: 6px;
  }
  /* Edge fade while more cards follow: a mask, so the hero photo behind stays visible. */
  .product-strip__track:not([data-at-end]) {
    -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fade));
    mask-image: linear-gradient(to left, transparent, #000 var(--fade));
  }
  /* Cards slide in on load; snapping waits for [data-ready] (moving snap targets drag the scroll along). */
  @media (prefers-reduced-motion: no-preference) {
    .product-strip__track:not([data-ready]) { scroll-snap-type: none; }
    .product-card { animation: product-card-in .9s cubic-bezier(.22, .61, .36, 1) .15s both; }
    .product-card:nth-child(2) { animation-delay: .27s; }
    .product-card:nth-child(3) { animation-delay: .39s; }
    .product-card:nth-child(n + 4) { animation-delay: .51s; }
  }
  @keyframes product-card-in { from { opacity: 0; transform: translateX(min(60vw, 480px)); } }
  .product-card {
    position: relative; height: 200px; padding: 20px; overflow: hidden;
    border-bottom: 10px solid var(--dark-blue); border-radius: 5px 5px 0 0;
    background: var(--dirty-white); box-shadow: var(--shadow); color: var(--dark-blue); transition: box-shadow .5s;
  }
  .product-card:hover { box-shadow: var(--shadow-hover); }
  .product-card__title { margin-bottom: 10px; font-size: clamp(22px, 14px + 1vw, 31px); font-weight: 700; line-height: 1.1; }
  .product-card__title a::after { content: ''; position: absolute; inset: 0; }
  .product-card:hover .product-card__title a { color: var(--teal); }
  .product-card p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
    font-size: clamp(16px, 14px + .3vw, 19px);
  }
  /* The strip's shadow padding already spaces it from the banner. */
  .product-strip + .section { margin-top: 12px; }
  @media (min-width: 768px) {
    .product-strip { margin: -120px 0 0 10%; --fade: 72px; }
    .product-card { height: 190px; padding: 30px; }
  }

  .about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about__title, .news-article__title { margin-bottom: 8px; font-size: clamp(31px, 21px + 1.875vw, 48px); font-weight: 700; line-height: 1.2; }
  .about__text p, .news-article__text p { margin-bottom: 16px; font-size: var(--fs-text); line-height: 1.5; }
  .about__text p:not(.about__emphasis), .news-article__text p { padding-top: 10px; }
  .about__link, .about__emphasis {
    display: inline-block; color: var(--black);
    font-size: 22px; font-style: italic; font-weight: 700; line-height: 1.3;
  }
  .about__link:hover { color: var(--gray); }
  .about__image {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 20px;
    border-bottom: 10px solid var(--dark-blue); border-radius: var(--radius);
  }
  .about__image--photo { aspect-ratio: 4 / 3; }
  @media (min-width: 768px) {
    .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
    /* --fill (homepage): the photo takes the text column's height (contain: size). */
    .about__image--fill { align-self: stretch; height: auto; aspect-ratio: auto; contain: size; }
  }

  .feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .split-card { align-self: start; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
  .split-card__top {
    display: grid; align-content: end; justify-items: end; min-height: 140px; padding: 30px;
    background: var(--teal); color: var(--white); text-align: right;
  }
  .split-card__bottom {
    display: block; padding: 20px 30px; background: var(--dark-blue); color: var(--white);
    font-size: clamp(16px, 14px + .4vw, 22px); text-align: right;
  }
  @media (min-width: 1024px) {
    .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .split-card__top { min-height: 300px; }
    /* feature--match (homepage): the right side takes the split card's height. */
    .feature--match { align-items: stretch; }
    .feature--match > :last-child { contain: size; }
  }

  .gallery__track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; align-items: start; }
  .gallery__pair { display: grid; gap: 16px; }
  .gallery__item {
    display: block; height: 190px; overflow: hidden; border: 1px solid rgb(0 0 0 / .05); border-radius: 5px;
    box-shadow: 0 0 3px rgb(0 0 0 / .06); transition: box-shadow .3s, outline-color .3s;
    outline: 2px solid transparent; outline-offset: -2px;
  }
  .gallery__item:hover { outline-color: var(--teal); box-shadow: 0 0 10px rgb(0 0 0 / .1); }
  .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
  /* Desktop: odd columns at the top, even ones --stagger lower. */
  @media (min-width: 1024px) {
    .gallery__track { --stagger: 56px; grid-auto-columns: calc((100% - 32px) / 3); grid-template-rows: 100%; height: 100%; }
    .gallery__pair { grid-template-rows: repeat(2, minmax(0, 1fr)); height: calc(100% - var(--stagger)); }
    .gallery__pair:nth-child(even) { align-self: end; }
    .gallery__item { height: auto; }
  }

  .sectors .section-title, .construction .section-title { margin-top: 4px; }

  .cert-list {
    display: flex; gap: 16px; padding: 4px 2px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .cert-list::-webkit-scrollbar { display: none; }
  .cert-list > li { flex: 0 0 min(260px, 55%); scroll-snap-align: start; }
  .cert-card {
    position: relative; /* contains the visually-hidden PDF label inside the scrolling list */
    display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 20px;
    border-radius: var(--radius); background: var(--solid-gray); color: var(--gray-on-solid); text-align: center;
  }
  .cert-card__image { display: block; width: 100%; overflow: hidden; }
  .cert-card__image img { width: 100%; aspect-ratio: 856 / 1188; object-fit: contain; }
  .cert-card__title { font-size: clamp(21px, 20px + .3vw, 24px); font-weight: 500; }
  .cert-card__pdf {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    color: var(--dark-blue); font-weight: 500;
  }
  .cert-card__pdf:hover { color: var(--teal); }
  @media (min-width: 768px) {
    .cert-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  }
  /* Homepage: cards fill the split card's height; the preview scales. */
  @media (min-width: 1024px) {
    .feature--match .cert-list { padding: 0; }
    .feature--match .cert-card__image { flex: 1; min-height: 0; }
    .feature--match .cert-card__image img { height: 100%; aspect-ratio: auto; }
  }

  /* Edge + shadow: the image's white top band would hide its corners. */
  .climate a {
    display: block; overflow: hidden; border: 1px solid rgb(0 0 0 / .06); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 20px -8px rgb(0 0 0 / .12);
  }
  .climate img { width: 100%; }

  /* 8px padding/margin pair: room for the card shadows. */
  .news-list {
    display: flex; gap: 16px; margin-inline: -8px; padding: 20px 12px 40px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .news-list::-webkit-scrollbar { display: none; }
  .news-list > li { display: flex; flex: 0 0 min(320px, 82%); scroll-snap-align: start; }
  /* Equal-height cards, "Read more" at the bottom; hairline edge + soft shadow. */
  .news-card {
    position: relative; /* contains the visually-hidden title of the "Read more" link inside the scrolling list */
    display: flex; flex-direction: column; flex: 1; padding: 30px; border: 1px solid rgb(0 0 0 / .06);
    border-radius: var(--radius); background: var(--white);
    box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 20px -8px rgb(0 0 0 / .12);
  }
  .news-card:hover { box-shadow: 0 2px 4px rgb(0 0 0 / .05), 0 16px 28px -10px rgb(0 0 0 / .18); }
  @media (prefers-reduced-motion: no-preference) {
    .news-card { transition: transform .5s, box-shadow .5s; }
    .news-card:hover { transform: scale(.98); }
  }
  .news-card__image { width: 100%; height: 240px; object-fit: cover; margin-bottom: 30px; border-radius: var(--radius); }
  .news-card__title { margin-bottom: 20px; font-size: clamp(21px, 20px + .3vw, 24px); font-weight: 500; line-height: 1.2; }
  .news-card__title a { color: var(--black); }
  .news-card__title a:hover { color: var(--gray); }
  .news-card p { margin-bottom: 24px; font-size: var(--fs-text); line-height: 1.4; }
  .news-card .btn-small { margin-top: auto; }
  .btn-small {
    display: inline-flex; align-items: center; align-self: center; min-height: 38px; padding: 0 10px;
    border-radius: var(--radius); background: var(--dark-blue); color: var(--white); font-size: 12px;
  }
  @media (pointer: coarse) {
    .btn-small { min-height: 44px; padding-inline: 16px; }
  }
  .btn-small:hover { background: var(--teal); }
  .news__all { margin-top: 20px; text-align: center; }
  .link-muted { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gray); }
  .link-muted:hover { color: var(--dark-blue); }
  @media (min-width: 1024px) {
    .news-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: visible; }
  }

  .blog-teaser { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
  .blog-teaser__main { display: grid; background: var(--teal); }
  .blog-teaser__text {
    display: grid; align-content: center; justify-items: end; padding: 30px; color: var(--white); text-align: right;
  }
  .blog-teaser__label { font-size: clamp(20px, 13px + 1.2vw, 32px); font-weight: 100; line-height: 1.1; }
  .blog-teaser__title { font-size: clamp(32px, 22px + 2vw, 52px); font-weight: 500; line-height: 1; }
  .blog-teaser__plus {
    display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-top: 10px;
    color: var(--dark-blue); font-size: clamp(30px, 22px + 1.2vw, 42px);
  }
  .blog-teaser__plus:hover { color: var(--white); }
  .blog-teaser__media { position: relative; }
  .blog-teaser__media video { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(50%); }
  .blog-teaser__bottom { display: block; padding: 20px 30px; background: var(--dark-blue); color: var(--white); font-weight: 700; }
  @media (min-width: 768px) {
    .blog-teaser__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 320px; }
    .blog-teaser__bottom { padding: 30px 30px 30px calc(50% + 12px); }
  }
}

/* ---------- Sub pages (inc/partials/page-hero.php, inc/sections/*.php) ---------- */
@layer components {
  /* Banner under the header; the header (masthead) overlaps its top, the content sits at the bottom. */
  /* The teal line takes no room (negative margin), as the old absolutely positioned line did. */
  .page-hero {
    position: relative; display: flex; align-items: flex-end; min-height: 224px; margin-bottom: -12px; padding: 112px 0 35px;
    overflow: hidden; border-bottom: 12px solid var(--teal); background: var(--navy); color: var(--white);
    text-shadow: 0 1px 3px #2a211d;
  }
  /* Top-aligned like the old background image, so the glowing horizon shows */
  .page-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .page-hero__inner { position: relative; }
  .page-hero__title { font-size: clamp(24px, 20px + 1.1vw, 36px); font-weight: 500; line-height: 1.2; }
  .breadcrumb ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 0; list-style: none; }
  .breadcrumb li { font-size: 18px; line-height: 1.5; }
  .breadcrumb li:not(:last-child)::after { content: '>>'; margin-left: 6px; font-size: 13px; }
  .breadcrumb a { color: var(--white); }
  .breadcrumb a:hover { text-decoration: underline; }
  .breadcrumb a:focus-visible { outline-color: var(--white); }
  @media (min-width: 1024px) {
    .page-hero { min-height: 332px; padding-bottom: 51px; }
  }

  .infographic__link { display: block; }
  .infographic img { width: 100%; }
  .infographic--framed img { margin-top: 20px; border-bottom: 10px solid var(--dark-blue); border-radius: var(--radius); }

  /* Text column + photo grid (technologies, product pages), laid out like .about */
  .text-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .text-media__label { margin-bottom: 16px; font-size: var(--fs-text); font-weight: 500; line-height: 1.5; }
  .text-media__label:not(:first-child) { margin-top: 48px; }
  .text-media__title { margin-bottom: 8px; color: var(--dark-blue); font-size: clamp(31px, 21px + 1.875vw, 48px); font-weight: 700; line-height: 1.2; }
  .text-media__text > p:not(.text-media__label) { margin-bottom: 16px; font-size: var(--fs-text); line-height: 1.5; }
  .text-media__text > p { padding-top: 10px; }
  @media (min-width: 768px) {
    .text-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  }

  .photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4%; }
  .photo-grid__wide { grid-column: 1 / -1; }
  .photo-grid a { display: block; }
  .photo-grid img { margin-top: 20px; border-bottom: 10px solid var(--dark-blue); border-radius: var(--radius); }
  .photo-grid:not(.photo-grid--natural) img, .photo-grid--natural li:not(.photo-grid__wide) img { width: 100%; }
  .photo-grid:not(.photo-grid--natural) li:not(.photo-grid__wide) img { aspect-ratio: 4 / 3; object-fit: cover; }

  .spec-card { margin-top: 24px; }
  .spec-card__head { padding: 20px; border-radius: var(--radius) var(--radius) 0 0; background: var(--teal); color: var(--white); }
  .spec-card__head p { margin-bottom: 16px; font-size: var(--fs-text); line-height: 1.5; }
  .spec-card__title { font-size: clamp(24px, 17px + 1.6vw, 40px); font-weight: 500; line-height: 1.1; }
  .spec-card__body { padding: 20px; overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); background: var(--solid-gray); }
  .spec-table { width: 100%; border-collapse: collapse; color: #212529; font-size: 16px; line-height: 1.5; }
  .spec-table th, .spec-table td { padding: 8px; border-bottom: 1px solid #dee2e6; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .spec-table thead th { font-weight: 100; }
  .spec-table tbody th { font-weight: 400; }
  /* Same stripes as the old table, whose header row was its first (striped) row */
  .spec-table thead tr, .spec-table tbody tr:nth-child(even) { background: rgb(0 0 0 / .05); }
  .spec-table__marker { color: #008615; font-size: 12px; }

  .cert-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; overflow: visible; }
  /* Landscape permits keep their own shape at the top of the card, as before */
  .cert-list--grid .cert-card { justify-content: flex-start; }
  .cert-list--grid .cert-card__image img { aspect-ratio: auto; }
  @media (min-width: 768px) {
    .cert-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
}

/* ---------- Product pages (inc/sections/products.php, product.php) ---------- */
@layer components {
  .product-list { display: grid; gap: 40px; }
  .product-card--wide { height: auto; padding: 30px; }
  .product-card--wide .product-card__title { margin-bottom: 30px; font-size: 31px; }
  .product-card--wide p {
    display: block; overflow: visible; -webkit-line-clamp: none; line-clamp: none;
    font-size: var(--fs-text); line-height: 1.4;
  }
  @media (min-width: 768px) {
    .product-card--wide { height: auto; }
  }
  @media (min-width: 1024px) {
    .product-card--wide .product-card__title { font-size: 32px; }
  }

  .spec-card--spaced { margin-top: 48px; }
  /* 24px target with a mouse keeps the old compact rows; 44px on touch screens */
  .spec-table__pdf {
    display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: var(--dark-blue); font-weight: 500;
    white-space: nowrap; overflow-wrap: normal; /* the cells break long alloy names anywhere; "PDF" must stay whole */
  }
  @media (pointer: coarse) {
    .spec-table__pdf { min-height: 44px; }
  }
  .spec-table__pdf:hover { color: var(--teal); }

}

/* ---------- News (inc/sections/news.php, news-article.php) ---------- */
@layer components {
  /* Rows of cards (the homepage list flows into one row of columns on wide screens) */
  .news-list--grid { display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-inline: 0; padding: 20px 0 40px; overflow: visible; }
  @media (min-width: 768px) {
    .news-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 992px) {
    .news-list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  .news-article__link { color: var(--dark-blue); overflow-wrap: anywhere; }
  .news-article__link:hover { color: var(--teal); }
  /* Square film: full width on phones, capped at 600px high (letterboxed in black) on wide screens, as before */
  .news-article__video { display: block; width: 100%; height: auto; max-height: 600px; aspect-ratio: 1; margin-top: 20px; background: #000; }
}

/* ---------- Contact (inc/sections/contact.php, partials/contact-form.php, modules/map.js) ---------- */
@layer components {
  .contact__label, .contact__title { color: var(--dark-blue); }
  .contact__grid { margin-top: 60px; }
  .contact .split-card__top { min-height: 267px; }

  .dept-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dept-card {
    display: grid; align-content: center; justify-items: center; min-height: 160px; padding: 40px;
    border-radius: var(--radius); background: var(--solid-gray); color: var(--gray-on-solid); text-align: center;
  }
  .dept-card__title { margin-bottom: 8px; font-size: clamp(21px, 20px + .3vw, 24px); font-weight: 500; }
  /* Darker than the old #999, which had 2.3:1 contrast on the grey card */
  .dept-card a { color: #5f5f5f; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
  .dept-card a:hover { color: var(--dark-blue); }
  @media (min-width: 768px) {
    .dept-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
    .dept-list > :first-child { grid-column: 1 / -1; }
  }

  .contact-form { margin-top: 94px; padding: 60px 20px 30px; border: 1px solid var(--dark-blue); border-radius: var(--radius); }
  /* The title sits on the top border, as before */
  .contact-form__title {
    width: 200px; margin: -94px auto 30px; padding: 20px; background: var(--white);
    font-size: 33px; font-weight: 400; line-height: 24px; text-align: center;
  }
  .contact-form__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-form__lead { margin-bottom: 16px; color: var(--dark-blue); font-size: clamp(31px, 20px + 1.7vw, 44px); line-height: 1.1; }
  .contact-form__text { margin-bottom: 16px; line-height: 1.4; }
  .contact-form__address { color: var(--gray); font-size: 24px; line-height: 1.5; }
  .contact-form__body { color: var(--dark-blue); text-align: center; }
  .contact-form__call { margin-bottom: 30px; font-size: clamp(28px, 20px + 1.25vw, 38px); line-height: 1.4; }
  .contact-form__call a { color: inherit; font-weight: 700; white-space: nowrap; }
  .contact-form__call .icon, .contact-form__write .icon { margin-right: 6px; vertical-align: -.1em; }
  .contact-form__or { display: flex; align-items: center; margin: 20px auto; }
  .contact-form__or::before, .contact-form__or::after { content: ''; flex: 1; height: 1px; border-radius: 8px; background: var(--dark-blue); }
  .contact-form__or span { width: 80px; padding: 5px; border-radius: var(--radius); background: var(--dark-blue); color: var(--white); font-size: 16px; }
  .contact-form__write { margin-bottom: 30px; font-size: 24px; line-height: 1.4; }
  .contact-form__form { display: grid; gap: 15px; width: 100%; max-width: 510px; margin-inline: auto; text-align: left; }
  .contact-form__row { display: grid; gap: 15px; }
  .contact-form__field {
    width: 100%; height: 55px; padding: 0 20px; border: 0; border-radius: 5px; background: var(--white);
    box-shadow: rgb(99 99 99 / .2) 0 2px 8px; color: var(--black); font-size: 22px;
  }
  .contact-form__field::placeholder { color: #6f6f6f; }
  .contact-form__submit {
    width: 100%; min-height: 44px; border: 0; border-radius: var(--radius);
    background: var(--dark-blue); color: var(--white); font-size: 20px; transition: background-color .3s;
  }
  .contact-form__submit:hover { background: var(--teal); }
  .contact-form__status { color: var(--dark-blue); font-size: 16px; }
  .contact-form__status:empty { display: none; }
  @media (min-width: 576px) {
    .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-form__submit { justify-self: start; width: 150px; }
  }
  @media (min-width: 768px) {
    .contact-form { padding: 60px; }
    .contact-form__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  }

  .map { position: relative; }
  .map__card {
    position: absolute; z-index: 2; top: 80px; left: 12px; width: min(390px, calc(100% - 24px)); padding: 30px;
    border-radius: var(--radius); background: var(--dirty-white); box-shadow: rgb(149 157 165 / .2) 0 8px 24px;
  }
  .map__card p { font-size: 14px; line-height: 1.4; }
  .map__card .map__name { color: var(--gray); font-size: 28px; }
  .map__card .map__address { font-size: 12px; }
  .map__frame {
    position: relative; height: 500px; overflow: hidden; border-bottom: 20px solid var(--dark-blue);
    border-radius: 0 0 var(--radius) var(--radius); background: #e5e3df;
  }
  .map__canvas { position: absolute; inset: 0; z-index: 1; }
  .map__canvas:empty { display: none; }
  /* Shown until the map is ready, and instead of Google's error box if the API key is refused */
  .map__fallback {
    position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border-radius: var(--radius); background: var(--dark-blue); color: var(--white);
  }
  .map__frame.is-loaded .map__fallback { display: none; }
  .map-info { width: 222px; }
  .map-info img { float: left; margin-right: 10px; }
}

/* ---------- Legal texts (inc/sections/policy.php, inc/content/*.php) and the quality page ---------- */
@layer components {
  .prose__title { margin-bottom: 16px; color: var(--dark-blue); }
  .prose p, .prose li { font-size: var(--fs-text); line-height: 1.5; }
  .prose p { padding-top: 10px; margin-bottom: 16px; }
  .prose h3 { padding-top: 10px; margin-bottom: 16px; font-size: var(--fs-text); font-weight: 700; line-height: 1.5; }
  .prose ul { padding-left: 1.25em; margin-bottom: 16px; }
  .prose a { color: var(--dark-blue); text-decoration: underline; overflow-wrap: anywhere; }
  .table-scroll { max-width: 100%; margin-bottom: 16px; overflow-x: auto; }
  .prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
  .prose td, .prose th { padding: 4px 8px; vertical-align: top; }
  .prose th { font-weight: 400; text-align: left; } /* header cells keep the old plain look */
  .prose th p { padding: 0; margin: 0 0 8px; font-size: 16px; }
  .prose td p { padding: 0; margin: 0 0 8px; font-size: 16px; }

  .policy-download {
    margin-block: 20px; padding: 20px; background: #eaeaea; color: #6a6a6a; font-size: 20px; font-weight: 700; text-align: right;
  }
  .policy-download a { color: var(--dark-blue); font-style: italic; }
  .policy-pdf { display: block; width: 100%; height: 700px; border: 0; }
  .policy-pdf-link { margin-top: 8px; font-size: 16px; }
}
