/* =====================================================================================================
   08 · Partners in the spotlight (homepage, alle talen)

   Een rustige rij partnerkaarten in plaats van de Finsweet-slider fs-slider-1 (vraag van de eigenaar,
   29-11-2026). Markup: src/lib/partners-spotlight.mjs (bij de build, ook na mirror.mjs). Gedrag:
   initSpotlight() in src/scripts/componenten/slider.ts (native scroll-snap, geen autoplay, geen loop).

   Elke regel staat onder .section.ps-sectie; die klasse zet alleen partners-spotlight.mjs. De markup heeft
   geen fs-slider-1_*-klassen meer, dus de oude regels in 01/02/03 raken deze sectie niet.
   !important alleen waar eniris-stijl.css of 00–03 h2, p, a of de sectiepadding al met !important zetten.
   ===================================================================================================== */

/* ---------- Tokens (huisstijl) ---------- */
.section.ps-sectie {
  --ps-ink: #231f20;
  --ps-ink-muted: #5c5657;
  --ps-red: #9b1915;
  --ps-surface: #ffffff;
  --ps-surface-soft: #f7f4f4;
  --ps-line: #e6e2e2;
  --ps-radius: 8px;
  --ps-shadow: 6px 8px 24px rgba(35, 31, 32, 0.10);
}

/* ---------- Sectie: Surface soft, 112 px ruimte, niets horizontaal laten uitsteken ----------
   (zwaarder dan het sectieritme in 01-raster §5, html:not([data-wf-page]) .section:not(.hero, .brands)) */
.section.ps-sectie { background: var(--ps-surface-soft) !important; overflow-x: clip; }
html body section.section.bg-red.ps-sectie {
  padding-top: 112px !important;
  padding-bottom: 112px !important;
}

/* ---------- Raster: kop (tekst, alle partners, navigatie) en daaronder de baan ---------- */
.section.ps-sectie .ps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "tekst alle nav" "baan baan baan";
  column-gap: 0;
  row-gap: 48px;
  align-items: end;
}
.section.ps-sectie .ps-kop { display: contents; }
.section.ps-sectie .ps-tekst { grid-area: tekst; max-width: 640px; padding-right: 32px; }
.section.ps-sectie .ps-tekst h2 {
  font: 700 39px/1.15 Sora, Arial, sans-serif !important;
  letter-spacing: -0.01em !important;
  color: var(--ps-ink) !important;
  margin: 0 !important;
  max-width: none !important;
  text-wrap: balance;
}
.section.ps-sectie .ps-tekst p {
  font: 400 18px/28px Inter, Arial, sans-serif !important;
  color: var(--ps-ink-muted) !important;
  margin: 12px 0 0 !important;
  max-width: none !important;
}

/* "Bekijk alle partners": tekstlink in Eniris Red, zonder pijl, 48 px raakvlak */
.section.ps-sectie .ps-alle {
  grid-area: alle;
  font: 600 16px/24px Inter, Arial, sans-serif !important;
  color: var(--ps-red) !important;
  text-decoration: underline !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 4px;
  transition: text-decoration-color 250ms;
  padding: 12px 0;
  white-space: nowrap;
}
/* enirisaccessiblesmallcontrols zet op telefoons padding 8px 12px !important op elke link naar /network/partners;
   de tekst moet op de goot staan, het raakvlak blijft 48 px hoog */
.section.ps-sectie .ps-alle.ps-alle { padding: 12px 0 !important; display: inline-block !important; }
.section.ps-sectie .ps-alle:hover { text-decoration-color: currentColor !important; }
.section.ps-sectie .ps-alle:focus-visible,
.section.ps-sectie .ps-knop:focus-visible {
  outline: 2px solid var(--ps-ink);
  outline-offset: 3px;
}
.section.ps-sectie .ps-alle:focus-visible { border-radius: 4px; }

/* ---------- Navigatie: telling en twee vierkante knoppen (48 px, 8 px hoeken) ---------- */
.section.ps-sectie .ps-nav { grid-area: nav; display: flex; align-items: center; gap: 8px; margin-left: 32px; }
.section.ps-sectie .ps-telling {
  font: 500 14px/20px Inter, Arial, sans-serif !important;
  color: var(--ps-ink-muted) !important;
  margin: 0 8px 0 0 !important;
  font-variant-numeric: tabular-nums;
  min-width: 4.5em;
  text-align: right;
  white-space: nowrap;
}
.section.ps-sectie .ps-knop {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: var(--ps-surface);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  box-shadow: none;
  transition: border-color 250ms, opacity 250ms;
}
.section.ps-sectie .ps-knop svg { width: 20px; height: 20px; display: block; }
.section.ps-sectie .ps-knop:hover:not([aria-disabled="true"]) { border-color: var(--ps-ink); }
.section.ps-sectie .ps-knop[aria-disabled="true"] { opacity: .35; cursor: default; }
/* Past alles (2 kaarten op >= 992 px), dan geen navigatie; puur CSS, zodat er na het laden niets verschuift */
@media (min-width: 992px) {
  .section.ps-sectie .ps:not(:has(.ps-kaart:nth-child(3))) .ps-nav { display: none; }
}
.section.ps-sectie .ps:not(:has(.ps-kaart:nth-child(2))) .ps-nav { display: none; }

/* ---------- Baan: native horizontaal scrollen met snap (vegen en trackpad werken zonder JS) ---------- */
.section.ps-sectie .ps-baan {
  grid-area: baan;
  position: relative; /* offsetLeft van de kaarten = plaats in de baan (slider.ts) */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* ruimte voor de kaartschaduw, de kaarten blijven op de container uitgelijnd */
  margin: -24px 0 -40px;
  padding: 24px 0 40px;
}
.section.ps-sectie .ps-baan::-webkit-scrollbar { display: none; }
/* focusring van de baan: op desktop net buiten de baan (de goot is breed genoeg), op tablet en telefoon in de
   zijpadding waarmee de baan tot de schermrand loopt */
.section.ps-sectie .ps-baan:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 991px) {
  .section.ps-sectie .ps-baan:focus-visible { outline-offset: -12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .section.ps-sectie .ps-baan { scroll-behavior: smooth; }
}
.section.ps-sectie .ps-lijst { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }

/* ---------- Kaart: wit, 8 px hoeken, één schaduw, geen rand; de hele kaart is klikbaar ---------- */
.section.ps-sectie .ps-kaart {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--ps-surface);
  border: 0;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  overflow: hidden;
}
.section.ps-sectie .ps-beeld { background: var(--ps-surface-soft); margin: 0; }
.section.ps-sectie .ps-beeld img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 0;
}
.section.ps-sectie .ps-inhoud { display: flex; flex-direction: column; flex: 1; padding: 28px 32px 32px; }
.section.ps-sectie .ps-inhoud h3 {
  font: 700 24px/1.25 Sora, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  color: var(--ps-ink) !important;
  margin: 0 !important;
  max-width: none !important;
  text-wrap: balance;
}
.section.ps-sectie .ps-inhoud p {
  font: 400 16px/26px Inter, Arial, sans-serif !important;
  color: var(--ps-ink-muted) !important;
  margin: 12px 0 0 !important;
  max-width: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* De link onderaan: links van kaarten naast elkaar staan op dezelfde lijn */
.section.ps-sectie .ps-link {
  margin-top: auto;
  padding-top: 24px;
  align-self: flex-start;
  font: 600 16px/24px Inter, Arial, sans-serif !important;
  color: var(--ps-red) !important;
  text-decoration: underline !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 4px;
  transition: text-decoration-color 250ms;
}
.section.ps-sectie .ps-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--ps-radius); }
.section.ps-sectie .ps-kaart:hover .ps-link { text-decoration-color: currentColor !important; }
.section.ps-sectie .ps-link:focus-visible { outline: none; }
/* focusring binnen de kaart: de baan knipt alles wat er horizontaal buiten valt */
.section.ps-sectie .ps-kaart:has(.ps-link:focus-visible) { outline: 2px solid var(--ps-ink); outline-offset: -2px; }

/* ---------- Tablet: de tweede kaart piept ---------- */
@media (max-width: 991px) {
  .section.ps-sectie .ps-kaart { flex-basis: calc((100% - 24px) / 1.6); }
  /* de baan loopt tot de schermrand (goot 24 px), zodat de volgende kaart niet recht wordt afgesneden */
  .section.ps-sectie .ps-baan { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
}

/* ---------- Telefoon: één kolom, baan tot de schermrand, navigatie onder de kaarten ---------- */
@media (max-width: 767px) {
  html body section.section.bg-red.ps-sectie { padding-top: 72px !important; padding-bottom: 72px !important; }
  .section.ps-sectie .ps {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tekst" "alle" "baan" "nav";
    row-gap: 0;
  }
  .section.ps-sectie .ps-tekst { padding-right: 0; }
  .section.ps-sectie .ps-tekst h2 { font-size: 28px !important; line-height: 1.2 !important; }
  .section.ps-sectie .ps-tekst p { font-size: 16px !important; line-height: 26px !important; margin-top: 8px !important; }
  .section.ps-sectie .ps-alle { justify-self: start; margin-top: 8px; }
  .section.ps-sectie .ps-baan { margin: 8px -20px -32px; padding: 24px 20px 32px; scroll-padding-inline: 20px; }
  .section.ps-sectie .ps-lijst { gap: 16px; }
  .section.ps-sectie .ps-kaart { flex-basis: 86%; }
  .section.ps-sectie .ps-inhoud { padding: 20px 20px 24px; }
  .section.ps-sectie .ps-inhoud h3 { font-size: 20px !important; }
  .section.ps-sectie .ps-inhoud p { font-size: 15px !important; line-height: 24px !important; }
  .section.ps-sectie .ps-link { padding-top: 20px; }
  .section.ps-sectie .ps-nav { margin: 8px 0 0; }
  .section.ps-sectie .ps-telling { margin-right: auto !important; text-align: left; }
}
