/* =====================================================================
   bestfrit.be: base.css
   Structure shared by both redesign themes: the layout shell (header,
   main, footer, cookie notice), the shared components mapped onto the
   Bootstrap 5.1 markup, the test marker and the A|C review pill.
   Colours, fonts, radii, shadows and sizes are tokens that theme-a.css and
   theme-c.css set on html[data-theme]; this file gives them no fallback
   values, so a token a theme forgets shows up at once. Nothing in this file
   names a theme: removing one means deleting its theme-<x>.css, its UiTheme
   option and its font line in _Layout (keep data-theme on <html>).

   Components (same names as fritkotactie.be):
     .site-header > .site-nav, .site-brand, .lang-toggle   .site-footer
     .page-header (h1 / .page-header__title + p / .page-header__lead)
     .section, .section--tint
     .btn + .btn-primary-ui | .btn-secondary-ui | .btn-ghost-ui | .btn-accent-ui
     .card-ui (--flush), .chip, .badge-ui (--ok = --live, --warm, --plain, --accent, --brand)
     .form-field (> label | .form-label | .form-field__label), .alert-ui (--success, --danger)
     .accordion-ui, .prose
     .cookie-notice (#cookiesModal: __title, __body), .review-bar > .test-marker + .theme-review-pill
     .frituur-card (the business-card Vue template), .news-card (_BlogItem)
     home page only: .home-top (Vue root; .has-cards once cards are listed)
     > .home-hero + .home-near/.frituur-grid, .home-about, .home-news
     inner pages: .page-header--lift + .section--lift, .section__title/__text/__actions,
     .content-panel, .media-frame (--tile, --placeholder), .video-frame (_EmbedVideo),
     .news-grid, .news-block, .partner-tile, .contact-form, .faq-group, .legal, .notice,
     .blog-post, .blog-gallery
     frituren: .frituren-tools (.frituren-search with __clear, .open-switch > .switch/.slider),
     .frituur-list, .frituren-loading(--more), .frituren-empty, .frituren-sentinel;
     .frituur-detail (__head, __title, __links, __map),
     .frituur-hours, .frituur-gallery (_ImageCarousel)
   Modifiers fritkotactie.be also has (--live, --warm, --flush, __label) are
   aliased here so markup copied between the sites stays styled. Only on
   fritkotactie.be: .page-header__inner and .lang-toggle__btn (this site's
   toggle keeps .language-option for site.js and _SetLanguage).
   Breakpoints: phone < 576px, collapsed nav < 992px, desktop >= 992px.
   ===================================================================== */

/* ---------- page ---------- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main {
  flex: 1 0 auto;
}

@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    --bs-gutter-x: var(--page-gutter);
  }
}

/* A .row.g-lg-5 (48px gutter) hangs 12px past the container on each side: half its gutter minus the
   container's 12px padding. At 992-999px with a classic scrollbar, the 960px lg container left less than
   that to the window edge and the page scrolled sideways, so the lg container keeps a 12px margin. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: min(960px, 100% - 24px);
  }
}

a {
  color: var(--link);
  text-decoration-thickness: from-font;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  color: var(--heading-ink, inherit);
  text-wrap: balance;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- focus: one visible ring everywhere, yellow on the red surfaces ---------- */
.site-header,
.page-header,
.site-footer {
  --focus: var(--focus-on-brand);
}

:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.accordion-button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline-offset: 1px;
}

/* Bootstrap's blue focus glows give way to the ring above */
.btn:focus,
.navbar-toggler:focus,
.accordion-button:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: none;
}

/* =====================================================================
   Header and navigation
   ===================================================================== */
.site-header {
  position: relative;
  z-index: 1030;
  background: var(--nav-bg, var(--brand));
  color: var(--nav-ink, #fff);
}

.site-nav {
  padding: 0;
}

/* The DOM runs brand, toggler, menu, language toggle (see _Layout), as on fritkotactie.be: the desktop
   order in every browser. Below 992px the order rules further down show the language toggle before the
   toggler; reading-flow makes focus follow that where it is supported (elsewhere Tab goes toggler, menu,
   language toggle there). */
.site-nav > .container {
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  min-height: var(--nav-h);
  reading-flow: flex-visual;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 0;
  font-size: inherit;
  line-height: 1;
}

.site-brand img {
  display: block;
  width: auto;
  height: var(--brand-h);
}

.site-nav__toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.site-nav .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus {
  color: inherit;
}

/* collapsed: the menu drops under the bar as a full-width list. Once it wraps onto a second flex line, the
   first line shrinks to its tallest item, so the brand keeps the bar height: the bar doesn't jump when
   the menu opens. */
@media (max-width: 991.98px) {
  .site-brand {
    min-height: var(--nav-h);
  }

  /* brand, language toggle and toggler on the bar; the menu wraps below them */
  .site-nav .lang-toggle {
    order: 1;
  }

  .site-nav__toggler {
    order: 2;
  }

  .site-nav__menu {
    order: 3;
  }

  .site-nav__links {
    gap: 4px;
    padding: 8px 0 20px;
  }

  .site-nav .navbar-nav .nav-link {
    font-size: 18px;
  }

  .site-nav__pro {
    margin-top: 8px;
  }
}

@media (min-width: 992px) {
  .site-nav > .container {
    flex-wrap: nowrap;
    column-gap: 20px;
  }

  .site-nav__menu {
    justify-content: flex-end;
  }

  .site-nav__links {
    align-items: center;
    gap: 2px;
  }

  .site-nav .navbar-nav .nav-link {
    min-height: 44px;
    padding: 0 16px;
    font-size: 16px;
    white-space: nowrap;
  }
}

/* ---------- language toggle (two forms posting to Index?handler=SetLanguage) ---------- */
.lang-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
}

.lang-toggle form {
  display: flex;
  margin: 0;
}

.lang-toggle .language-option {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 992px) {
  .lang-toggle {
    padding: 4px;
  }

  .lang-toggle .language-option {
    height: 36px;
  }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  margin-top: var(--footer-gap);
  background: var(--footer-bg, var(--brand-deep));
  color: var(--footer-ink, #fff);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 36px;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  flex: none;
}

.site-footer__brand img {
  display: block;
  width: auto;
  height: var(--footer-logo-h, 64px);
}

.site-footer__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer a:not(.site-footer__brand) {
  color: var(--footer-link, #fff);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Privacy is the only route to its page from the chrome: a 48px hit area, the line box unchanged */
.site-footer__text a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
  }

  .site-footer__text {
    text-align: right;
  }
}

/* =====================================================================
   Cookie notice: site.js shows #cookiesModal until bfCookiesAccepted is set
   ===================================================================== */
.cookie-notice {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.cookie-notice__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "text" "btn";
  gap: 6px 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-cookie, 20px);
  box-shadow: var(--shadow-float);
}

.cookie-notice__icon {
  grid-area: ico;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-notice__text {
  display: contents;
}

.cookie-notice__text p {
  grid-area: text;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}

.cookie-notice__text .cookie-notice__title {
  grid-area: title;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.cookie-notice__btn {
  grid-area: btn;
  width: 100%;
  margin-top: 6px;
}

@media (min-width: 768px) {
  .cookie-notice {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .cookie-notice__inner {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "ico title btn" "ico text btn";
    align-items: center;
    gap: 4px 22px;
    padding: 20px 24px;
  }

  .cookie-notice__icon {
    display: inline-flex;
  }

  .cookie-notice__text p {
    font-size: 16px;
    line-height: 1.55;
  }

  .cookie-notice__text .cookie-notice__title {
    align-self: end;
    font-size: 17px;
    line-height: 1.4;
  }

  .cookie-notice__btn {
    width: auto;
    min-width: 180px;
    margin: 0;
  }
}

/* =====================================================================
   Test marker + A|C review pill (non-production only, first thing in the header), as on fritkotactie.be
   One band in normal flow at every width: the hazard stripe with the pill at its right end (44px tall
   with the pill, the stripe's 8px once only one theme is left and the layout drops the pill). It is
   never fixed, so it never covers page content (the home page's card row runs to the window edge) or
   the cookie notice.
   ===================================================================== */
.review-bar {
  display: flex;
  background: #151515;
}

.test-marker {
  flex: 1 1 auto;
  min-height: 8px;
  background: repeating-linear-gradient(-45deg, #ffd500 0 10px, #151515 10px 20px);
}

.theme-review-pill {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 0 6px 0 8px;
  background: #151515;
  font: 800 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-review-pill a {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  text-decoration: none;
}

/* the visible key sits inside the 44px target */
.theme-review-pill a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 4px;
  border-radius: 9px;
}

.theme-review-pill a:hover {
  color: #fff;
}

.theme-review-pill a:hover::before {
  background: rgba(255, 255, 255, .16);
}

.theme-review-pill a.is-active,
.theme-review-pill a.is-active:hover {
  color: #151515;
}

.theme-review-pill a.is-active::before {
  background: #ffd500;
}

.theme-review-pill a:focus-visible {
  outline: 3px solid #ffd500;
  outline-offset: -3px;
  border-radius: 10px;
}

@media print {
  .review-bar,
  .cookie-notice {
    display: none !important;
  }
}

/* =====================================================================
   Page header and sections
   ===================================================================== */
.page-header {
  position: relative;
  padding: var(--page-header-pt, 32px) 0 var(--page-header-pb, 40px);
  background: var(--page-header-bg, var(--brand));
  color: var(--page-header-ink, #fff);
}

.page-header h1,
.page-header .page-header__title {
  margin: 0;
}

/* headings on the red stay white, whatever colour a theme gives headings on the canvas */
html .page-header :is(h1, h2, h3, h4, h5, h6, .page-header__title) {
  color: inherit;
}

.page-header p,
.page-header .page-header__lead {
  max-width: 60ch;
  margin: 14px 0 0;
  font-size: var(--lead-size, 18px);
  line-height: 1.5;
  color: inherit;
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--tint {
  background: var(--section-tint);
}

.section:not(.section--tint) + .section:not(.section--tint) {
  padding-top: 0;
}

/* =====================================================================
   Buttons: Bootstrap .btn plus one -ui variant
   ===================================================================== */
.btn:is(.btn-primary-ui, .btn-secondary-ui, .btn-ghost-ui, .btn-accent-ui) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--btn-h);
  padding: 8px var(--btn-px, 24px);
  border: 0;
  border-radius: var(--r-ctl);
  font-family: var(--font-body);
  font-size: var(--btn-size, 17px);
  font-weight: var(--btn-weight, 700);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  /* a label that wraps (long FR labels in narrow columns) splits evenly instead of leaving one word,
     such as the "Frit" of Best-Frit, alone on the second line */
  text-wrap: balance;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn:is(.btn-primary-ui, .btn-secondary-ui, .btn-ghost-ui, .btn-accent-ui) i {
  font-size: .95em;
}

.btn.btn-primary-ui {
  background: var(--brand);
  color: #fff;
}

.btn.btn-primary-ui:hover,
.btn.btn-primary-ui:active {
  background: var(--brand-deep);
  color: #fff;
}

.btn.btn-accent-ui {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.btn-accent-ui:hover,
.btn.btn-accent-ui:active {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn.btn-secondary-ui,
.btn.btn-secondary-ui:hover,
.btn.btn-secondary-ui:active {
  color: var(--ink);
}

.btn.btn-ghost-ui,
.btn.btn-ghost-ui:hover,
.btn.btn-ghost-ui:active {
  background: transparent;
  color: inherit;
}

.btn:is(.btn-primary-ui, .btn-secondary-ui, .btn-ghost-ui, .btn-accent-ui):disabled,
.btn:is(.btn-primary-ui, .btn-secondary-ui, .btn-ghost-ui, .btn-accent-ui).disabled {
  opacity: .55;
}

/* =====================================================================
   Card, chip, badge
   ===================================================================== */
.card-ui {
  position: relative;
  padding: var(--card-pad);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.card-ui > :last-child {
  margin-bottom: 0;
}

/* image-led cards: the content brings its own padding */
.card-ui--flush {
  padding: 0;
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.chip i {
  font-size: .875em;
  color: var(--brand);
}

.badge-ui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge-ui--ok,
.badge-ui--live {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.badge-ui--ok::before,
.badge-ui--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-dot);
  box-shadow: 0 0 0 3px rgba(44, 154, 88, .18);
}

.badge-ui--warm {
  background: var(--warm-bg);
  color: var(--warm-ink);
}

.badge-ui--plain {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--chip-line);
}

.badge-ui--accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.badge-ui--brand {
  background: var(--brand);
  color: #fff;
}

/* =====================================================================
   Forms
   ===================================================================== */
.form-field {
  margin-bottom: 20px;
}

.form-field > label,
.form-field .form-label,
.form-field .form-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.form-field .form-control,
.form-field .form-select,
.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: var(--field-border, 1.5px) solid var(--field-line, var(--chip-line));
  border-radius: var(--r-ctl);
  background-color: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-field .form-control::placeholder,
.form-field textarea::placeholder,
.form-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-field .form-control:focus,
.form-field .form-select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
}

/* an empty required field after a submit attempt (jQuery unobtrusive validation, which shows no
   message text on Contact, or the browser's own check): a heavier red edge. !important: the
   field rule above carries a long :not() chain. Two rules, not one list: an engine without
   :user-invalid drops every selector of the rule it sits in, and would lose the class one too. */
.form-field .input-validation-error {
  border-color: var(--danger-ink) !important;
  box-shadow: inset 0 0 0 1px var(--danger-ink);
}

.form-field :is(input, textarea, select):user-invalid {
  border-color: var(--danger-ink) !important;
  box-shadow: inset 0 0 0 1px var(--danger-ink);
}

/* ...and a warning mark after its label, so the state doesn't rest on colour alone (the field itself carries
   aria-invalid). A mask, so the mark takes the theme's danger colour and adds nothing to the label's text */
.form-field:has(> :is(.input-validation-error, :user-invalid)) > label::after {
  --invalid-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 0 0 20a10 10 0 1 0 0-20zM8.7 4.6h2.6l-.45 7.4h-1.7zM10 13.4a1.45 1.45 0 1 0 0 2.9a1.45 1.45 0 1 0 0-2.9z'/%3E%3C/svg%3E");
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-left: .4em;
  vertical-align: -.17em;
  background-color: var(--danger-ink);
  -webkit-mask: var(--invalid-mark) center / contain no-repeat;
  mask: var(--invalid-mark) center / contain no-repeat;
}

.form-field .field-validation-error,
.form-field .text-danger,
.form-field .invalid-feedback {
  display: block;
  margin-top: 6px;
  color: var(--danger-ink) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================================
   Alert
   ===================================================================== */
.alert-ui {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: var(--r-panel);
  background: var(--info-bg);
  color: var(--info-ink);
  font-size: 16px;
  line-height: 1.5;
}

.alert-ui > i:first-child {
  flex: none;
  margin-top: .2em;
}

.alert-ui > :last-child {
  margin-bottom: 0;
}

.alert-ui--success {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.alert-ui--danger {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

/* =====================================================================
   Accordion on the Bootstrap 5 accordion markup (ids, data-bs-* unchanged)
   ===================================================================== */
.accordion-ui .accordion-item {
  overflow: hidden;
  border: 0;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.accordion-ui .accordion-item + .accordion-item {
  margin-top: 12px;
}

.accordion-ui .accordion-item:first-of-type,
.accordion-ui .accordion-item:last-of-type,
.accordion-ui .accordion-item:not(:first-of-type) {
  border-radius: var(--r-panel);
}

.accordion-ui .accordion-header {
  margin: 0;
}

.accordion-ui .accordion-button {
  gap: 16px;
  min-height: 64px;
  padding: 14px 16px 14px 20px;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}

.accordion-ui .accordion-button:not(.collapsed) {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line);
}

.accordion-ui .accordion-button::after {
  content: "\f078";
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--chip);
  background-image: none;
  color: var(--ink);
  font: var(--fa-font-solid, normal 900 1em/1 "Font Awesome 6 Free");
  font-size: 13px;
}

.accordion-ui .accordion-button:not(.collapsed)::after {
  background-image: none;
}

/* The item clips its rounded corners (overflow: hidden) and the button fills it, so the global ring, drawn
   outside the button, was cut off on all four sides. Here it sits just inside the edge and follows the
   item's corners (square at the bottom while the answer is open below). (0,4,0) beats Bootstrap's corner
   radii on the first and last buttons. */
.accordion-ui .accordion-item .accordion-button:focus-visible {
  outline-offset: -3px;
  border-radius: var(--r-panel);
}

.accordion-ui .accordion-item .accordion-button:not(.collapsed):focus-visible {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.accordion-ui .accordion-body {
  padding: 18px 20px 22px;
  color: var(--ink-2);
}

.accordion-ui .accordion-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .accordion-ui .accordion-button {
    padding: 16px 20px 16px 28px;
    font-size: 18px;
  }

  .accordion-ui .accordion-body {
    padding: 22px 28px 26px;
  }
}

/* =====================================================================
   Prose: admin-written rich text (FAQ answers, blog posts, actions)
   ===================================================================== */
.prose {
  color: var(--ink-2);
  font-size: var(--text-body);
  line-height: 1.65;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose :is(h1, h2, h3, h4, h5, h6) {
  margin: 1.4em 0 .5em;
  color: var(--ink);
}

.prose :is(p, ul, ol, blockquote, table) {
  margin: 0 0 1em;
}

.prose :is(ul, ol) {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: .35em;
}

.prose :is(strong, b) {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-tile);
}

/* pasted editor styles (fonts, sizes) fall back to the theme */
.prose :not(h1, h2, h3, h4, h5, h6)[style] {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.prose :is(h1, h2, h3, h4, h5, h6)[style] {
  font-family: var(--font-display) !important;
}

/* colours: the backend editor's text and background colour buttons write a span that sets colours only
   (style="color: rgb(…);", "background-color: …"), and older texts have <font color>; those colours show.
   Pasted text sets fonts as well, so a style with a font in it keeps the theme's colours (a paste from a
   dark-mode page would otherwise bring grey text on a black box). */
.prose :not(h1, h2, h3, h4, h5, h6)[style*="font"],
.prose font[face],
.prose font[size] {
  color: inherit !important;
  background-color: transparent !important;
}

.prose :is(h1, h2, h3, h4, h5, h6)[style*="font"] {
  color: var(--ink) !important;
  background-color: transparent !important;
}

/* pasted bold keeps the prose bold colour, not the paragraph's */
.prose :is(strong, b)[style*="font"] {
  color: var(--ink) !important;
}

/* bold text inside an editor colour takes that colour, not the prose bold colour */
.prose [style*="color"]:not([style*="font"]) :is(strong, b),
.prose font[color] :is(strong, b) {
  color: inherit;
}

.prose font {
  font-family: inherit;
  font-size: inherit;
}

/* =====================================================================
   Frituur card (.frituur-card: the business-card Vue template on the home
   page; the frituren list reuses it). The photo link is stretched over the
   whole card; the online-order link sits above it. Tokens a theme may set:
   --card-photo-ratio, --frituur-card-pad, --card-focus, --placeholder-bg.
   ===================================================================== */
.frituur-card {
  /* a white card: dark rings inside it, whatever the red block around it sets (the card's own ring is --card-focus) */
  --focus: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
}

.frituur-card__media {
  display: block;
  flex: none;
  aspect-ratio: var(--card-photo-ratio, 16 / 10);
  overflow: hidden;
  background: var(--chip);
}

.frituur-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.frituur-card__media:focus-visible {
  outline: none;
}

/* the card's own outline: an outline on the stretched link would be clipped by the rounded card */
.frituur-card:has(.frituur-card__media:focus-visible) {
  outline: 3px solid var(--card-focus, var(--focus));
  outline-offset: 3px;
}

@supports not selector(:has(*)) {
  .frituur-card__media:focus-visible::after {
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px var(--ink);
  }
}

/* a photo that fails to load swaps to the placeholder (Vue); until then the tile stays a neutral box */
.frituur-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

.frituur-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--placeholder-bg, var(--tint));
}

.frituur-card__placeholder img {
  display: block;
  width: auto;
  height: 66%;
  max-height: 112px;
  filter: drop-shadow(0 10px 12px rgba(90, 20, 0, .22));
}

.frituur-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: auto;
  height: 32px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
  pointer-events: none;
}

.frituur-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--frituur-card-pad, 20px);
}

html .frituur-card__name {
  margin: 0;
  overflow-wrap: anywhere;
}

/* an h3 under the home page's h2, an h2 right under the h1 on the frituren list: either way the ink colour,
   as a theme may colour h1/h2 */
html .frituur-card .frituur-card__name {
  color: var(--ink);
}

.frituur-card__addr {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}

.frituur-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
}

.frituur-card__sign {
  display: block;
  width: auto;
  height: 44px;
  pointer-events: none;
}

.frituur-card__order {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--tint);
}

.frituur-card__order img {
  display: block;
  width: auto;
  height: 30px;
}

.frituur-card__go {
  display: none;
}

/* =====================================================================
   News card (_BlogItem: home page and the blog lists). Uploaded images
   have any shape, so they sit whole on a fixed-ratio white tile.
   ===================================================================== */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

/* overflow:hidden drops the automatic min-height, so a tall upload can't stretch the 2:1 tile.
   Colour, size and no underline only show when an upload is missing: the alt text stays quiet on the white tile */
.news-card__media {
  display: block;
  flex: none;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: var(--news-media-line, 1px) solid var(--line);
  background: #fff;
}

.news-card__media:focus-visible {
  outline-offset: -4px;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* no picture of its own: the backend's default (fka-logo.png) or an upload that fails to load gets the cone
   tile, like .frituur-card__placeholder. A broken <img> renders its pseudo-elements in Chrome and Firefox
   (a loaded one never does); elsewhere the quiet alt text above stays */
.news-card__media {
  position: relative;
}

.news-card__media img::after,
.news-card__media:has(> img[src$="/images/logo/fka-logo.png" i])::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/logo/fritkotactie-cone-256.png") center / auto 50% no-repeat, var(--placeholder-bg, var(--tint));
}

/* the tile paints over the link's inset focus ring, so it carries the same ring itself */
.news-card__media:focus-visible img::after,
.news-card__media:focus-visible:has(> img[src$="/images/logo/fka-logo.png" i])::after {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}

.news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

html .news-card__title {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}

/* the title is an h3, or an h2 on the blog lists (see _BlogItem): either way it keeps the ink colour, as
   a theme may colour h1/h2 */
html .news-card .news-card__title {
  color: var(--ink);
}

.news-card__intro {
  margin-top: 10px;
}

.news-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* =====================================================================
   Home page (Pages/Index): search hero + nearby frituren (the Vue root
   #consumer-index), About, News. Same markup in both themes; each theme
   sets the sizes, colours and how About and News are laid out.
   ===================================================================== */
.home-top,
.home-about,
.home-news {
  padding: 0;
}

.home-hero {
  position: relative;
  color: #fff;
  --focus: var(--focus-on-brand);
}

.home-hero__text {
  min-width: 0;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1;
}

/* white on the red, whatever colour a theme gives h1 on the canvas */
html .home-hero .home-hero__title {
  margin: 0;
  color: inherit;
  overflow-wrap: break-word;
}

.home-hero__art {
  display: none;
}

.home-search {
  --focus: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
}

.home-search__field {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  cursor: text;
}

.home-search__field > i {
  flex: none;
  font-size: 18px;
  color: var(--muted);
}

.home-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: var(--search-h, 52px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--search-size, 17px);
}

.home-search__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* the ring goes on the field (phone) or the whole panel (wider) instead */
.home-search__input:focus,
.home-search__input:focus-visible {
  outline: none;
}

.home-search__field:focus-within {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn.home-search__btn {
  flex: 1 1 100%;
  min-height: var(--search-h, 52px);
}

@media (min-width: 576px) {
  .home-search {
    flex-wrap: nowrap;
  }

  .home-search__field {
    flex-basis: auto;
  }

  .home-search__field:focus-within {
    box-shadow: none;
  }

  .home-search:focus-within {
    outline: var(--search-ring, 3px) solid var(--focus-on-brand);
    outline-offset: 0;
  }

  .btn.home-search__btn {
    flex: none;
  }
}

/* nearby frituren: a swipe row on phones and tablets, a 4-column grid on desktop */
.home-near {
  position: relative;
  z-index: 1;
}

/* below 992px the row runs edge to edge; the inset lines its first card up with the container's content */
.frituur-grid {
  --near-inset: var(--bs-gutter-x, .75rem);
  display: flex;
  gap: var(--near-gap, 12px);
  margin: 0;
  padding: 0 var(--near-inset) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--near-inset);
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
  list-style: none;
}

.home-top:not(.has-cards) .frituur-grid {
  padding-bottom: 0;
}

/* touch screens swipe the row, so the scrollbar goes; a mouse can't swipe, so it keeps a thin one and the
   cards past the edge stay reachable */
@media (hover: none), (pointer: coarse) {
  .frituur-grid {
    scrollbar-width: none;
  }

  .frituur-grid::-webkit-scrollbar {
    display: none;
  }
}

.frituur-grid__item {
  display: flex;
  flex: 0 0 var(--near-card-w, 296px);
  scroll-snap-align: start;
}

@media (max-width: 991.98px) {
  .home-near > .container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .frituur-grid {
    --near-inset: calc((100% - 540px) / 2 + .75rem);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .frituur-grid {
    --near-inset: calc((100% - 720px) / 2 + .75rem);
  }

  .frituur-grid__item {
    flex-basis: var(--near-card-w-md, 316px);
  }
}

@media (min-width: 992px) {
  .frituur-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    overflow: visible;
  }
}

/* About: head (title + rule), lead, facts and the placemat; the themes place them with grid areas */
.home-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "lead" "media" "facts";
}

.home-about__head {
  grid-area: head;
}

html .home-about__title {
  margin: 0;
}

.home-about__rule {
  display: flex;
  gap: 6px;
}

.home-about__rule i {
  display: block;
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #151515;
}

.home-about__rule i:nth-child(2) {
  background: var(--accent);
}

.home-about__rule i:nth-child(3) {
  background: var(--brand);
}

.home-about__lead {
  grid-area: lead;
  margin: 0;
  color: var(--ink);
}

.home-about__facts {
  grid-area: facts;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-about__fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.home-about__fact p {
  margin: 0;
}

.home-about__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}

.home-about__media {
  grid-area: media;
  margin: 0;
}

.home-about__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* News: title, cards, "Meer nieuws" */
.home-news__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "grid" "more";
}

html .home-news__title {
  grid-area: title;
  margin: 0;
}

.home-news__grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--news-gap, 16px);
}

/* the partial keeps its Bootstrap column (and mb-3 utility) for the blog lists; here the grid places it */
.home-news__grid > .news-col {
  width: auto;
  max-width: 640px;
  margin: 0 !important;
  padding: 0;
}

.home-news__more {
  grid-area: more;
}

@media (max-width: 575.98px) {
  .home-news__more .btn {
    width: 100%;
  }
}

/* =====================================================================
   Inner pages (over ons, voor professionals, contact, FAQ, privacy, blog,
   error): a .page-header, then sections. Same markup in both themes.
   Tokens a theme may set: --lift (how far the first block overlaps the
   header's foot; 0 = no overlap) and --lift-pt (that section's top padding),
   --title-gap, --panel-pad.
   ===================================================================== */
.page-header__title {
  overflow-wrap: break-word;
}

.page-header--lift {
  padding-bottom: calc(var(--page-header-pb, 40px) + var(--lift, 0px));
}

.section--lift {
  position: relative;
  margin-top: calc(var(--lift, 0px) * -1);
  padding-top: var(--lift-pt, var(--section-y));
}

/* the footer's own gap closes the page; a white band keeps its padding so it doesn't end flush.
   The last section may be followed by the page's inline scripts (the frituren pages): the second rule
   looks past them; the first is for browsers without :has(). */
#main > .section:last-child:not(.section--tint) {
  padding-bottom: 0;
}

#main > .section:not(.section--tint):not(:has(~ :not(script, style, template))) {
  padding-bottom: 0;
}

html .section__title {
  margin: 0 0 var(--title-gap, 24px);
}

.section__text {
  color: var(--ink-2);
}

.section__text p {
  max-width: 68ch;
  margin-bottom: 1em;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* after a paragraph, whose own 1em margin already opens the gap */
.section__text > p + .section__actions {
  margin-top: 12px;
}

@media (max-width: 575.98px) {
  .section__actions .btn {
    width: 100%;
  }
}

/* the page's main block: a card in one theme, open on the page in the other */
.content-panel {
  position: relative;
}

.content-panel > :last-child,
.section__text > :last-child {
  margin-bottom: 0;
}

/* images and videos beside text */
.media-frame {
  margin: 0;
}

.media-frame > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-panel);
}

/* uploads (any shape, often a logo on white) sit whole on a framed white tile */
.media-frame--tile {
  overflow: hidden;
  background: #fff;
  border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 var(--tile-line, 1px) var(--line);
}

.media-frame--tile > img {
  border-radius: 0;
}

.media-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--placeholder-bg, var(--tint));
  box-shadow: none;
}

.media-frame--placeholder > img {
  width: auto;
  height: 50%;
  max-height: 128px;
  filter: drop-shadow(0 10px 12px rgba(90, 20, 0, .22));
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: #151515;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* blog lists and Voor professionals: news cards in 1, 2 or 3 columns */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--news-gap, 16px);
}

.news-grid > .news-col {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Voor professionals: title, cards and "Meer nieuws" in source order; the themes place the button */
.news-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "grid" "more";
}

.news-block__title {
  grid-area: title;
}

.news-block__grid {
  grid-area: grid;
}

.news-block__more {
  grid-area: more;
  margin-top: 24px;
}

@media (max-width: 575.98px) {
  .news-block__more .btn {
    width: 100%;
  }
}

/* partner logos; the name is the link text, shown on the tile only when the logo is missing */
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 14px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-panel);
  text-decoration: none;
}

.partner-tile:hover {
  color: var(--ink);
}

.partner-tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-tile);
}

.partner-tile__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.partner-tile.is-missing img {
  display: none;
}

.partner-tile.is-missing .partner-tile__name {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Contact: name, phone, e-mail and message in source order; phone + e-mail pair up on tablets,
   and on desktop the three fields stack beside a tall message */
.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "name" "phone" "email" "msg" "send";
  column-gap: 24px;
}

.contact-form__name {
  grid-area: name;
}

.contact-form__phone {
  grid-area: phone;
}

.contact-form__email {
  grid-area: email;
}

.contact-form__message {
  grid-area: msg;
  display: flex;
  flex-direction: column;
}

.contact-form__message textarea {
  flex: 1 1 auto;
}

.contact-form__send {
  grid-area: send;
  margin-top: 4px;
}

.contact-card > .alert-ui {
  margin-bottom: 24px;
}

.contact-card .alert-ui p {
  margin: 0;
}

@media (max-width: 575.98px) {
  .contact-form__send .btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "name name" "phone email" "msg msg" "send send";
  }
}

@media (min-width: 992px) {
  .contact-form {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "name msg" "phone msg" "email msg" "send send";
    column-gap: 32px;
  }
}

/* FAQ: the group title beside its subjects on desktop */
.faq-group + .faq-group {
  margin-top: 56px;
}

html .faq-group__subject {
  margin: 32px 0 14px;
}

.faq-group__body > .faq-group__subject:first-child {
  margin-top: 0;
}

@media (min-width: 992px) {
  .faq-group {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 48px;
    align-items: start;
  }

  html .faq-group__title {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
  }

  .faq-group + .faq-group {
    margin-top: 72px;
    padding-top: 72px;
    border-top: var(--faq-rule, 1px) solid var(--line);
  }
}

/* Privacy: one readable column. The measure sits on the blocks, not on .legal, so a theme that makes
   .legal a panel lets it span the container like the other pages' main blocks. 40rem keeps a line
   near 72 characters at the body size; a theme may set --legal-measure */
.legal > * {
  max-width: var(--legal-measure, 40rem);
}

.legal :is(h2, h3) {
  overflow-wrap: break-word;
}

html .legal h2 {
  margin: 1.8em 0 .5em;
}

html .legal h3 {
  margin: 1.5em 0 .4em;
}

html .legal > :first-child {
  margin-top: 0;
}

/* Error: an icon tile beside the message */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 820px;
}

.notice__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-tile);
  background: var(--warm-bg);
  color: var(--warm-ink);
  font-size: 21px;
}

.notice__text {
  min-width: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.notice__text p:last-child {
  margin-bottom: 0;
}

/* Blog post: the text beside its image, further images in a row under it */
.blog-post__body {
  overflow-wrap: break-word;
}

.blog-gallery {
  padding-top: 24px;
}

.blog-gallery .media-frame--tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.blog-gallery .media-frame--tile > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =====================================================================
   Frituren (Areas/Frituren). The list: a .page-header, then the Vue root
   #frituren-index with the search panel (.frituren-tools: the postcode
   search with its clear button, and the "open now" switch), the
   .frituur-card grid, the spinner while more cards load and the no-result
   notice; .frituren-sentinel after the root loads the next cards as it
   nears the screen. A frituur (.frituur-detail): the header with
   the open/closed sign and the Best-Frit label, the opening hours beside
   the photos (_ImageCarousel: flexslider #slider + #carousel), the info,
   the links and the HERE map (#mapid).
   Tokens a theme may set: --tools-pad, --list-gap, --list-top, --sign-h,
   --label-h, --hours-gap, --hours-line, --today-bg, --today-ink,
   --switch-off, --switch-on, --thumb-ring, --map-h.
   ===================================================================== */
.frituren-tools {
  --focus: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--tools-pad, 12px);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.frituren-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* the field: the label (icon and input) and, while there is text, the clear button */
.frituren-search__field {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 4px 0 0;
  border-radius: var(--r-ctl);
  background: var(--chip);
  box-shadow: inset 0 0 0 var(--field-border, 1.5px) var(--field-line, var(--chip-line));
}

.frituren-search__label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 12px 0 16px;
  cursor: text;
}

.frituren-search__label > i {
  flex: none;
  font-size: 18px;
  color: var(--ink-2);
}

.frituren-search__clear {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.frituren-search__clear:hover {
  background: var(--line);
  color: var(--ink);
}

.frituren-search__clear:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.frituren-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: var(--search-h, 52px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--search-size, 17px);
}

.frituren-search__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* the ring goes round the whole field (icon and input) instead */
.frituren-search__input:focus,
.frituren-search__input:focus-visible {
  outline: none;
}

.frituren-search__field:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn.frituren-search__btn {
  flex: 1 1 100%;
  min-height: var(--search-h, 52px);
}

/* the "open now" switch: .switch > checkbox + .slider (the track), and the text as a second label */
.open-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 4px;
}

.open-switch__label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 52px;
  height: 32px;
  margin: 0;
}

/* a 44px hit area round the 32px track */
.switch::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background-color: var(--switch-off, var(--muted));
  cursor: pointer;
  transition: background-color .2s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}

.switch input:checked + .slider {
  background-color: var(--switch-on, var(--ok-dot));
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:focus-visible + .slider {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (min-width: 576px) {
  .frituren-search {
    flex-wrap: nowrap;
  }

  .frituren-search__field {
    flex-basis: auto;
  }

  .btn.frituren-search__btn {
    flex: none;
  }
}

/* desktop: the search and the switch on one line */
@media (min-width: 992px) {
  .frituren-tools {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .frituren-search {
    flex: 0 1 600px;
  }

  .open-switch {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* results: the home page's frituur card in 1, 2 or 3 columns */
.frituren-loading {
  padding: 56px 0 24px;
  color: var(--brand);
  text-align: center;
}

.frituur-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--list-gap, 16px);
  margin: var(--list-top, 24px) 0 0;
  padding: 0;
  list-style: none;
}

.frituur-list__item {
  display: flex;
  min-width: 0;
}

@media (min-width: 576px) {
  .frituur-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .frituur-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.frituren-loading--more {
  padding: 32px 0 0;
}

/* a 1px mark under the list (its -1px margin takes no room) for the IntersectionObserver */
.frituren-sentinel {
  height: 1px;
  margin-top: -1px;
}

/* when cards are added while the footer is in view, they push the footer down instead of the browser's
   scroll anchoring keeping the footer (and the visitor) in place below them */
.site-footer {
  overflow-anchor: none;
}

.frituren-empty {
  margin-top: 24px;
}

.frituren-empty .alert-ui p {
  margin: 0;
}

/* ---------- a frituur: header ---------- */
.frituur-detail__head-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.frituur-detail__id {
  min-width: 0;
}

.page-header .frituur-detail__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.frituur-detail__address > i {
  flex: none;
  margin-top: .2em;
  color: var(--accent);
}

.frituur-detail__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* the closed sign is Best-Frit red: a white die-cut edge keeps it (and the green one) off the red header */
.frituur-detail__sign {
  --sign-edge: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
  display: block;
  width: auto;
  height: var(--sign-h, 72px);
  filter: var(--sign-edge);
}

.frituur-detail__label {
  display: block;
  width: auto;
  height: var(--label-h, 64px);
}

@media (min-width: 768px) {
  .frituur-detail__head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
  }

  .frituur-detail__status {
    flex-wrap: nowrap;
  }
}

/* ---------- opening hours ---------- */
html .frituur-detail__title {
  margin: 0 0 var(--hours-gap, 16px);
  overflow-wrap: break-word;
}

.frituur-hours {
  margin: 0;
}

.frituur-hours__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  column-gap: 16px;
  align-items: baseline;
  padding: 12px 12px;
  border-top: var(--hours-line, 1px) solid var(--line);
}

.frituur-hours__row:first-child {
  border-top-color: transparent;
}

.frituur-hours dt {
  color: var(--ink);
  font-weight: 700;
}

.frituur-hours dd {
  margin: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* a step smaller than the hours where they are larger than 16px, never below the 16px body text floor */
.frituur-hours__pause {
  display: block;
  color: var(--muted);
  font-size: max(16px, .9375em);
}

.frituur-hours__row.is-closed dd {
  color: var(--muted);
}

.frituur-hours__row.is-today {
  border-top-color: transparent;
  border-radius: var(--r-tile);
  background: var(--today-bg, var(--tint));
}

.frituur-hours__row.is-today :is(dt, dd, .frituur-hours__pause) {
  color: var(--today-ink, var(--ink));
}

.frituur-hours__row.is-today + .frituur-hours__row {
  border-top-color: transparent;
}

/* phones: a narrower day column, so the hours keep to one line down to 360px */
@media (max-width: 575.98px) {
  .frituur-hours__row {
    grid-template-columns: 6em minmax(0, 1fr);
    column-gap: 12px;
    padding-inline: 10px;
  }
}

/* ---------- photos: flexslider's frame, arrows and fixed heights give way to rounded 3:2 tiles ---------- */
.frituur-gallery .flexslider {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.frituur-gallery .flex-viewport {
  border-radius: var(--r-panel);
}

.frituur-gallery .slides img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--chip);
  color: var(--muted);
  font-size: 14px;
}

/* a photo that fails to load: the cone on the theme tile (a broken <img> renders its pseudo-elements in
   Chrome and Firefox; a loaded one never does) */
.frituur-gallery .slides img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/logo/fritkotactie-cone-256.png") center / auto 40% no-repeat, var(--placeholder-bg, var(--tint));
}

/* a photo link's own ring would be hidden (under the photo, or clipped by the viewport): the ring goes round
   the photo frame instead, as round a frituur card; without :has(), an inset ring over the photo */
.frituur-gallery__main .slides a:focus-visible {
  outline: none;
}

.frituur-gallery__main .flex-viewport:has(.slides a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@supports not selector(:has(*)) {
  .frituur-gallery__main .slides a {
    display: block;
    position: relative;
  }

  .frituur-gallery__main .slides a:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 6px #fff;
  }
}

.frituur-gallery .frituur-gallery__thumbs {
  margin-top: 10px;
}

.frituur-gallery__thumbs .flex-viewport {
  border-radius: var(--r-tile);
}

.frituur-gallery__thumbs .slides li {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-tile);
  cursor: pointer;
}

.frituur-gallery__thumbs .slides li.flex-active-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--thumb-ring, var(--brand));
}

.frituur-gallery .flexslider .flex-direction-nav a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
  color: transparent;
  font-size: 0;
  text-shadow: none;
  opacity: 1;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
}

.frituur-gallery .flexslider .flex-direction-nav a::before,
.frituur-gallery .flexslider .flex-direction-nav a.flex-next::before {
  content: "\f053";
  font: var(--fa-font-solid, normal 900 1em/1 "Font Awesome 6 Free");
  font-size: 16px;
  color: var(--ink);
  text-shadow: none;
}

.frituur-gallery .flexslider .flex-direction-nav a.flex-next::before {
  content: "\f054";
}

.frituur-gallery .flexslider .flex-direction-nav .flex-prev,
.frituur-gallery .flexslider:hover .flex-direction-nav .flex-prev {
  left: 12px;
  opacity: 1;
}

.frituur-gallery .flexslider .flex-direction-nav .flex-next,
.frituur-gallery .flexslider:hover .flex-direction-nav .flex-next {
  right: 12px;
  opacity: 1;
}

/* flexslider hides the arrow at either end itself (.flex-disabled, opacity 0 !important) */
.frituur-gallery .flexslider .flex-direction-nav a:hover {
  background: var(--accent);
}

/* no photos: a lower tile under the hours (phones, tablets), the photos' 3:2 beside them (desktop) */
.frituur-gallery__placeholder {
  aspect-ratio: 2 / 1;
}

@media (min-width: 992px) {
  .frituur-gallery__placeholder {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- info, links and map ---------- */
.frituur-detail__info .prose {
  overflow-wrap: break-word;
}

.frituur-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.frituur-detail__link--facebook i {
  color: #1877f2;
}

.frituur-detail__order img {
  display: block;
  flex: none;
  width: auto;
  height: 32px;
  margin: -4px 0;
}

@media (max-width: 575.98px) {
  .frituur-detail__links .btn {
    width: 100%;
  }
}

.frituur-detail__map {
  position: relative;
  isolation: isolate;
  height: var(--map-h, 300px);
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--chip);
}

/* =====================================================================
   Third-party
   ===================================================================== */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* =====================================================================
   Motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
