/*
Theme Name: TOP Medical Team
Theme URI: https://lefcreative.nl/
Author: Lef Creative
Author URI: https://lefcreative.nl/
Description: Thema voor TOP Medical Team
Version: 1.0.0
License: /
License URI: /
Template: leflite
*/

/* ---------- tokens ---------- */
:root {
    --tmt-strong: var(--black);
    --tmt-muted: var(--darkgray);
    --tmt-hairline: #cfd5df;
    --tmt-rule: #e3e7ee;
    --tmt-header-inset: clamp(12px, 2.5vw, 32px);
    --tmt-radius-header: 16px;
    --tmt-shadow-header: 0 10px 30px rgba(var(--black-rgb), 0.12);
    --tmt-shadow-photo: 0 24px 50px rgba(0, 0, 0, 0.35);
    --tmt-shadow-hover: 0 18px 40px rgba(var(--primary-rgb), 0.25);
    --tmt-overlap: 90px;
}
/* logo height as in the design, clamp(56px, 5vw, 68px); header height and the first section's top
   padding (fixed header) follow it. html:root, because the theme prints its :root inline after this sheet. */
html:root {
    --logo-height: clamp(56px, 5vw, 68px);
    --fake-menu-height: calc(var(--logo-height) + 2 * var(--padding-inner-navigation-y));
    --transparent-top-section-padding: calc(var(--fake-menu-height) + var(--section-padding));
}
/* dark surfaces: muted text and hairlines switch to their light variant */
/* (.lef-backend-section is the same section in the editor canvas) */
section:is(.lef-section, .lef-backend-section):is(.bg-black, .bg-secondary),
#footer {
    --tmt-strong: var(--white);
    --tmt-muted: rgba(255, 255, 255, 0.85);
    --tmt-hairline: rgba(255, 255, 255, 0.16);
}
/* ...and back again on light surfaces inside a dark one: a white card, the agenda calendar and list items */
.col-card.bg-white,
.ehbo-agenda__calendar,
.ehbo-agenda .ehbo-agenda__item {
    --tmt-strong: var(--black);
    --tmt-muted: var(--darkgray);
    --tmt-hairline: #cfd5df;
}

/* ---------- basis ---------- */
body {
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    text-wrap: balance;
}
h2, h3, h4 {
    letter-spacing: -0.02em;
}
h1 {
    letter-spacing: -0.035em;
    line-height: 1.02;
}
/* h6 = kicker */
h6 {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}
p {
    color: var(--tmt-muted);
    text-wrap: pretty;
}
.content-wrapper p:last-child {
    margin-bottom: 0;
}
.content-wrapper a:not(.btn),
.content-wrapper .lef-cookie-settings,
section.lef-section .col-card.bg-white .content-wrapper a:not(.btn) {
    color: var(--primary);
}
.content-wrapper a:not(.btn):hover,
.content-wrapper .lef-cookie-settings:hover {
    color: var(--black);
}
/* no outline after a pointer click; keyboard focus keeps its ring */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
.accordion-title:focus:not(:focus-visible) {
    outline: none;
}
a,
button,
.accordion-title,
.popup-close {
    -webkit-tap-highlight-color: transparent;
}

/* ---------- sections ---------- */
section.lef-section.bg-black h2,
section.lef-section.bg-secondary h1,
section.lef-backend-section.bg-black h2,
section.lef-backend-section.bg-secondary h1,
section.lef-section:is(.bg-black, .bg-secondary) .content-wrapper a:not(.btn) {
    color: var(--white);
}
section.lef-section.bg-white + section.lef-section.bg-white,
section.lef-section.bg-gray + section.lef-section.bg-gray {
    padding-top: 0;
}
/* ...and the upper one of such a pair gives up half its bottom padding, so both read as one block */
section.lef-section.bg-white:has(+ section.lef-section.bg-white),
section.lef-section.bg-gray:has(+ section.lef-section.bg-gray) {
    padding-bottom: calc(var(--section-padding) / 2);
}
/* anchor targets clear the fixed header */
section.lef-section[id] {
    scroll-margin-top: 100px;
}
.video-outer iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--media-border-radius);
}
/* two columns that share a height: the image fills its column */
.row.align-stretch .image-outer,
.row.align-stretch .image-holder {
    height: 100%;
}
.row.align-stretch .image-holder img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

/* section with class "section-hero": dark band under the floating header, red glow on the right.
   A background image, not a ::before: the editor uses the section's ::before for its label. */
section.section-hero {
    overflow: hidden;
    background-image: radial-gradient(ellipse 35% 70% at 75% 50%, rgba(var(--primary-rgb), 0.35), rgba(var(--primary-rgb), 0));
}

/* a hero with a screen-high minimum (section setting in vh) stops growing past a 1080px-high screen,
   the design's height. The setting is an inline style, so the cap needs !important.
   Keep the 92 in step with the home hero's setting (92vh). */
@media (min-height: 1081px) {
    section.section-hero[style*="vh"] {
        min-height: calc(1080px * 0.92) !important;
    }
}

/* text block with class "text-hero": kicker with a red dash, large intro */
.content-wrapper.text-hero h6 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tmt-strong);
    margin-bottom: 22px;
}
.content-wrapper.text-hero h6::before {
    content: "";
    flex: 0 0 28px;
    height: 3px;
    background: var(--primary);
}
.content-wrapper.text-hero h1 {
    margin-bottom: 24px;
}
.content-wrapper.text-hero p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 480px;
}
/* ...and "text-hero-small" for the subpage heroes: smaller h1, wider intro */
.content-wrapper.text-hero-small h1 {
    font-size: clamp(36px, 4vw, 52px);
}
.content-wrapper.text-hero-small p {
    max-width: 640px;
}
/* the carousel word gets its own line in a hero heading, as in the design */
.content-wrapper.text-hero h1 .tmt-word-carousel {
    display: block;
}

/* breadcrumbs block (Yoast), on any surface */
#breadcrumbs {
    display: block;
    margin-bottom: 18px;
    font-size: var(--tiny-font-size);
    font-weight: 600;
    color: var(--tmt-muted);
}
#breadcrumbs a {
    color: var(--tmt-strong);
}
#main #breadcrumbs a {
    text-decoration: none;
}
#main #breadcrumbs a:hover {
    text-decoration: underline;
}

/* word carousel: shortcode [woord_carousel words=...], functions/woord-carousel.php + js/woord-carousel.js */
.tmt-word-carousel {
    color: var(--primary);
}
.tmt-word-carousel.is-rotating {
    display: inline-block;
    height: 1.12em;
    overflow: hidden;
    vertical-align: bottom;
}
.tmt-word-carousel-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}
.tmt-word-carousel-track span {
    height: 1.12em;
    line-height: 1.12em;
}

/* ---------- block: photo collage (components/tmt-photo-collage) ---------- */
.tmt-photo-collage {
    position: relative;
    height: clamp(420px, 44vw, 560px);
}
.tmt-photo-collage-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: var(--tmt-radius-header);
    box-shadow: var(--tmt-shadow-photo);
}
.tmt-photo-collage-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* the large photo top left, two smaller prints over its bottom corners */
.tmt-photo-collage-photo:nth-child(1) {
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    left: 8%;
    top: 0;
    width: 78%;
    height: 74%;
    transform: rotate(-2deg);
}
.tmt-photo-collage-photo:nth-child(2) {
    left: 0;
    bottom: 0;
    width: 44%;
    height: 40%;
    transform: rotate(3deg);
}
.tmt-photo-collage-photo:nth-child(3) {
    right: 0;
    bottom: 6%;
    width: 40%;
    height: 36%;
    transform: rotate(-4deg);
}
.tmt-photo-collage-photo:nth-child(n+2) {
    border: 5px solid var(--secondary);
}
.tmt-photo-collage-badge {
    position: absolute;
    right: 4%;
    top: 6%;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 210px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    transform: rotate(2deg);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
}
.tmt-photo-collage-badge .icon {
    flex: 0 0 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* a section that renders as a floating card overlapping the section above it */
section.lef-section:has(+ section.section-card) {
    padding-bottom: calc(var(--section-padding) + var(--tmt-overlap) - 28px);
}
section.lef-section.section-card {
    background-color: transparent;
    padding: 0;
    margin-top: calc(var(--tmt-overlap) * -1);
    position: relative;
    z-index: 2;
}
section.section-card > .container {
    background: var(--black);
    border-radius: var(--general-border-radius);
    padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 37px);
    width: calc(100% - 56px);
    max-width: calc(var(--container-width) * 1px - 30px);
}
/* text block with class "heading-sm": a compact h2 (the intro card) */
.content-wrapper.heading-sm h2 {
    font-size: clamp(21px, 2vw, 26px);
    line-height: 1.15;
}
/* list block with class "list-chips": items as chips */
.icons-list.list-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}
.icons-list.list-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border-radius: var(--general-border-radius-small);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.icons-list.list-chips .icon {
    margin: 0;
}

/* column classes for an intro column beside two card columns, the second one a step lower:
   "col-intro" (sticky on desktop), "col-cards" (stacked cards), "col-cards-offset" (the lower one) */
.col-intro .content-wrapper {
    max-width: 440px;
}
.col-intro p {
    margin-top: 20px;
}
.col-cards > .card + .card {
    margin-top: 16px;
}
/* alternate the photo heights over the two columns: tall, short / short, tall */
.col-cards:not(.col-cards-offset) > .card:first-child .image-holder,
.col-cards-offset > .card:last-child .image-holder {
    height: 220px;
}

/* masonry gallery block with class "gallery-photo-columns": fixed tile heights, columns starting at different depths */
.gallery-outer--masonry.gallery-photo-columns {
    column-gap: 14px;
}
.gallery-outer--masonry.gallery-photo-columns .gallery-item {
    margin-bottom: 14px;
    border-radius: 0;
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer {
    height: 190px;
    overflow: hidden;
    border-radius: var(--media-border-radius);
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer img {
    height: 100%;
    aspect-ratio: auto;
}
/* hover: the tile lifts with a red ring and glow, the photo zooms (below); the item may not clip that */
.gallery-outer--masonry.gallery-photo-columns .gallery-item {
    overflow: visible;
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer {
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 4px transparent;
    transition: box-shadow 0.3s;
    pointer-events: none;
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer:hover {
    transform: translateY(-4px);
    box-shadow: var(--tmt-shadow-hover);
}
.gallery-outer--masonry.gallery-photo-columns a.image-gallery-outer:hover::after {
    box-shadow: inset 0 0 0 4px var(--primary);
}
.gallery-photo-columns .gallery-item:nth-child(5n+1) a.image-gallery-outer {
    height: 250px;
}
.gallery-photo-columns .gallery-item:nth-child(5n+2) a.image-gallery-outer {
    height: 170px;
}
.gallery-photo-columns .gallery-item:nth-child(5n+4) a.image-gallery-outer {
    height: 240px;
}
.gallery-photo-columns .gallery-item:nth-child(5n) a.image-gallery-outer {
    height: 280px;
}

/* column with class "col-step": numbered step, the number comes from a counter per row */
.row:has(> .col-step) {
    counter-reset: tmt-step;
    row-gap: 16px;
    margin-inline: -8px;
}
.row:has(> .col-step) > * {
    padding-inline: 8px;
}
.wp-block-custom-section-block-col.col-step .content-wrapper {
    border-top: 4px solid var(--primary);
    padding-top: 22px;
}
.wp-block-custom-section-block-col.col-step .content-wrapper::before {
    counter-increment: tmt-step;
    content: counter(tmt-step);
    display: block;
    margin-bottom: 12px;
    font-family: var(--heading-font);
    font-weight: var(--h-font-weight);
    font-size: 36px;
    line-height: 1;
    color: var(--primary);
}
.wp-block-custom-section-block-col.col-step h3 {
    font-size: var(--h5-size);
    margin-bottom: 12px;
}
.wp-block-custom-section-block-col.col-step p,
.col-text-card p {
    font-size: 15px;
    line-height: 1.65;
}

/* column with class "col-band-copy": centred copy, contact line and button of a closing band */
.row:has(> .col-band-copy) {
    row-gap: 40px;
}
.col-band-copy h2 {
    margin-bottom: 18px;
}
.col-band-copy p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--tmt-strong);
}
.col-band-copy p:nth-child(2) {
    max-width: 520px;
    margin-inline: auto;
}
.col-band-copy p + p {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
}
.col-band-copy p a {
    margin-right: 28px;
}
#main .col-band-copy p a:not(.btn) {
    text-decoration: none;
}
.col-band-copy p a:last-child {
    margin-right: 0;
}
.col-band-copy .buttons-holder {
    margin-top: 32px;
    text-align: center;
    justify-content: center;
}
/* EHBO Software request form (iframe, sized by its loader script) */
.ehbo-embed-form {
    display: block;
    min-height: 480px;
}
section.lef-section .col-card {
    height: 100%;
    padding: clamp(24px, 3vw, 32px);
}
section.lef-section .col-card.bg-white {
    padding: clamp(24px, 4vw, 44px);
}
/* card column with class "col-text-card": title + short text, in a grid */
.row:has(> .col-text-card) {
    row-gap: 30px;
}
.col-text-card h3 {
    margin-bottom: 10px;
}
.content-wrapper p + h3,
.content-wrapper ul + h3 {
    margin-top: 32px;
}

/* ---------- header ---------- */
body.fixed-header header.navigation {
    width: auto;
    left: var(--tmt-header-inset);
    right: var(--tmt-header-inset);
    border-radius: 0 0 var(--tmt-radius-header) var(--tmt-radius-header);
    box-shadow: var(--tmt-shadow-header);
    transition-property: box-shadow;
}
/* the skip link hides off the left edge of the header, which no longer touches the viewport edge */
body header.navigation .accessibility-button:not(:focus) {
    transform: translateX(calc(-100% - var(--tmt-header-inset) - 10px));
}
body header.navigation > .container-fluid {
    padding-inline: clamp(18px, 3vw, 36px);
}
/* logo | menu + CTA on the right */
body .navigation .navigation-inner.display-logo-menu-menu.alignment-left-right .nav-holder-primary-1 {
    margin-left: auto;
    margin-right: 40px;
}
body .main-nav-menu > li > a {
    color: var(--black);
}
body .main-nav-menu li a:hover,
body .main-nav-menu > li.current-menu-item > a,
body .main-nav-menu > li.current-menu-ancestor > a {
    color: var(--primary);
}
body .main-nav-menu li .sub-menu {
    min-width: 230px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
}
body .main-nav-menu .sub-menu li a {
    display: block;
    border-radius: 8px;
    color: var(--black);
}
body .main-nav-menu .sub-menu li a:hover {
    background: var(--gray);
    color: var(--primary);
}
body li.menu-item-has-button > a {
    padding: 0 !important;
}

/* mobile menu: red panel, white links (selectors mirror the theme's nav.mobile-navigation depth) */
body nav.mobile-navigation {
    background: var(--primary);
}
body nav.mobile-navigation .menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
body nav.mobile-navigation .menu > li:last-child {
    border-bottom: 0;
    padding-top: 16px;
}
body nav.mobile-navigation .menu a,
body nav.mobile-navigation .menu ul.sub-menu a {
    color: var(--white);
    font-weight: 600;
}
body nav.mobile-navigation .menu ul.sub-menu {
    background-color: transparent;
}
body nav.mobile-navigation .menu ul.sub-menu a {
    font-size: 15px;
    opacity: 0.9;
}
body nav.mobile-navigation button.sub-menu-toggle {
    background-color: transparent;
}
body nav.mobile-navigation .hamburger-icon span {
    background-color: var(--white);
}
body nav.mobile-navigation .menu .menu-item-button,
body nav.mobile-navigation .menu .menu-item-button:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ---------- buttons ---------- */
/* (the Complianz banner buttons share these rules: accept = the red main button, deny = the outline button) */
body .btn,
body .menu-item-button,
body .gform_wrapper .gform_button,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
body .ehbo-agenda__calendar.fc .fc-button {
    font-family: var(--btn-font);
    font-weight: var(--btn-font-weight);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    border-radius: var(--btn-border-radius);
    border: 2px solid transparent;
}
body .btn .icon {
    font-size: 0.82em;
}
body .menu-item-button {
    display: inline-block;
    padding: 9px 18px;
    font-size: var(--btn-small-font-size);
    color: var(--primary-content);
    white-space: nowrap;
}
body .btn.bg-primary:hover,
body .menu-item-button:hover,
section.lef-section .col-card.bg-white .btn.bg-primary:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
    background-color: var(--black);
    color: var(--white);
}
section.lef-section:is(.bg-black, .bg-secondary) .btn.bg-primary:hover,
#footer .btn.bg-primary:hover {
    background-color: var(--white);
    color: var(--primary);
}
/* transparent = outline button; it follows the text colour of its surface */
/* (the idle view switch and the calendar buttons of the EHBO agenda are outline buttons too) */
body .btn.bg-transparent,
section.lef-section .col-card.bg-white .btn.bg-transparent,
body .ehbo-agenda__switch .btn:not(.is-active),
body .ehbo-agenda__calendar.fc .fc-button,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:is(.cmplz-deny, .cmplz-save-preferences) {
    background-color: transparent;
    color: var(--black);
    border-color: var(--black);
}
body .btn.bg-transparent:hover,
section.lef-section .col-card.bg-white .btn.bg-transparent:hover,
body .ehbo-agenda__switch .btn:not(.is-active):hover,
body .ehbo-agenda__calendar.fc .fc-button:not(:disabled):hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:is(.cmplz-deny, .cmplz-save-preferences):hover {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
}
section.lef-section:is(.bg-black, .bg-secondary) .btn.bg-transparent {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}
section.lef-section:is(.bg-black, .bg-secondary) .btn.bg-transparent:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--black);
}
.wp-block-custom-section-block-col > .buttons-holder:first-child {
    margin-top: 0;
}

/* ---------- cards ---------- */
body .card.card-default {
    position: relative;
    background-color: var(--gray);
    overflow: hidden;
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
body .card.card-default:hover {
    background-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--tmt-shadow-hover);
}
body .card.card-default .image-holder {
    height: 160px;
    padding: 0;
    border-radius: 0;
}
body .card.card-default .image-holder img {
    border-radius: 0;
}
body .card.card-default .content-outer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--card-content-padding) var(--card-content-padding) 24px;
}
/* the tag line is an h6 in the excerpt; lift it above the title */
body .card.card-default .excerpt-holder {
    display: contents;
}
body .card.card-default .excerpt-holder h6 .icon {
    font-size: 17px;
}
body .card.card-default .excerpt-holder h6 {
    order: -1;
    display: flex;
    align-items: center;
    gap: var(--icon-text-spacing);
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
    color: var(--primary);
}
body .card.card-default h4 {
    margin: 0;
    line-height: 1.15;
    color: var(--black);
}
body .card.card-default .excerpt-holder p {
    margin: 0;
    font-size: var(--card-excerpt-font-size);
    line-height: 1.6;
}
body .card.card-default h4,
body .card.card-default .excerpt-holder h6,
body .card.card-default .excerpt-holder p {
    transition: color 0.25s;
}
body .card.card-default:hover h4,
body .card.card-default:hover .excerpt-holder h6,
body .card.card-default:hover .excerpt-holder p {
    color: var(--white);
}
/* the card's read-more button is stretched over the card: the whole card is the link */
body .card.card-default .buttons-holder {
    margin: 0;
}
body .card.card-default .buttons-holder .btn {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* ---------- gallery ---------- */
body .gallery-outer--masonry .gallery-item,
body .gallery-outer--mosaic .gallery-item {
    overflow: hidden;
    border-radius: var(--media-border-radius);
}
body .gallery-outer--masonry a.image-gallery-outer img,
body .gallery-outer--mosaic a.image-gallery-outer img {
    border-radius: 0;
    transition: transform 0.5s;
}
body .gallery-outer--masonry a.image-gallery-outer:hover img,
body .gallery-outer--mosaic a.image-gallery-outer:hover img {
    transform: scale(1.06);
}

/* ---------- EHBO Software agenda (plugin block / [ehbosoftware_agenda]) ----------
   The plugin only does layout and reads --ehbo-agenda-*; everything visual is here. The calendar
   and the list items carry their own light surface, so they read the same on any section. */
.ehbo-agenda,
.ehbo-agenda__popup {
    --ehbo-agenda-accent: var(--primary);
    --ehbo-agenda-line: var(--black);
}
/* the theme underlines every link in #main; the calendar's day numbers and headers are links too */
#main .ehbo-agenda a:not(.btn) {
    text-decoration: none;
}
.ehbo-agenda .ehbo-agenda__switch {
    gap: 6px;
    margin-bottom: 24px;
}
/* the view switch matches the calendar's Maand/Week buttons; no theme .btn outer margin,
   so it lines up with the calendar's left edge */
body .ehbo-agenda .ehbo-agenda__switch .btn,
body .ehbo-agenda__calendar.fc .fc-button {
    padding: 9px 16px;
    font-size: var(--tiny-font-size);
}
body .ehbo-agenda .ehbo-agenda__switch .btn {
    margin: 0;
}

/* calendar: toolbar */
.ehbo-agenda .ehbo-agenda__calendar {
    --fc-border-color: var(--tmt-rule);
    --fc-today-bg-color: rgba(var(--primary-rgb), 0.05);
    --fc-neutral-bg-color: var(--gray);
    font-size: 15px;
}
.ehbo-agenda__calendar.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 20px;
    gap: 12px;
}
.ehbo-agenda__calendar.fc .fc-toolbar-title {
    font-family: var(--heading-font);
    font-weight: var(--h-font-weight);
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: var(--tmt-strong);
}
body .ehbo-agenda__calendar.fc .fc-button,
body .ehbo-agenda__calendar.fc .fc-button:focus:not(:focus-visible) {
    box-shadow: none;
}
body .ehbo-agenda__calendar.fc .fc-button:disabled {
    opacity: 0.35;
}
/* prev / next: square icon buttons */
body .ehbo-agenda__calendar.fc .fc-prev-button,
body .ehbo-agenda__calendar.fc .fc-next-button {
    width: 42px;
    padding: 9px 0;
}
.ehbo-agenda__calendar.fc .fc-button-group {
    gap: 6px;
}
body .ehbo-agenda__calendar.fc .fc-button-group > .fc-button {
    border-radius: var(--btn-border-radius);
    margin: 0;
}
.ehbo-agenda__calendar.fc .fc-toolbar-chunk:first-child {
    display: flex;
    gap: 6px;
}
body .ehbo-agenda__calendar.fc .fc-today-button {
    margin-left: 0;
}
/* the chosen view: a filled button, like the active view switch */
body .ehbo-agenda__calendar.fc .fc-button.fc-button-active,
body .ehbo-agenda__calendar.fc .fc-button.fc-button-active:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* calendar: the grid as a white card */
.ehbo-agenda__calendar .fc-view-harness {
    background: var(--white);
    border: 1px solid var(--fc-border-color);
    border-radius: var(--general-border-radius);
    overflow: hidden;
}
.ehbo-agenda__calendar.fc .fc-scrollgrid {
    border: 0;
}
.ehbo-agenda__calendar.fc tbody tr,
.ehbo-agenda__calendar.fc tbody td {
    background-color: transparent;
}
.ehbo-agenda__calendar.fc .fc-col-header-cell {
    background: var(--gray);
}
.ehbo-agenda__calendar.fc .fc-col-header-cell-cushion {
    display: block;
    padding: 12px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tmt-muted);
}
.ehbo-agenda__calendar.fc .fc-daygrid-day-frame {
    min-height: 104px;
}
.ehbo-agenda__calendar.fc .fc-daygrid-day-number {
    padding: 8px 10px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tmt-strong);
}
.ehbo-agenda__calendar.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.35;
}
/* week view: quiet hour labels */
.ehbo-agenda__calendar.fc .fc-timegrid-slot-label-cushion,
.ehbo-agenda__calendar.fc .fc-timegrid-axis-cushion {
    font-size: 12px;
    font-weight: 600;
    color: var(--tmt-muted);
}
/* today: the date in a red disc */
.ehbo-agenda__calendar.fc .fc-day-today .fc-daygrid-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 6px 6px 0 0;
    padding: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
}

/* calendar: events as red labels; past ones step back */
.ehbo-agenda__calendar.fc .fc-daygrid-event,
.ehbo-agenda__calendar.fc .fc-timegrid-event {
    margin: 2px 6px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    transition: background-color 0.2s;
}
.ehbo-agenda__calendar.fc .fc-event .fc-event-main {
    color: inherit;
}
.ehbo-agenda__calendar.fc .fc-event:hover {
    background: var(--black);
}
.ehbo-agenda__calendar.fc .fc-event.fc-event-past {
    background: #dfe3ea; /* a step darker than --tmt-rule, so a past event still reads as a block */
    color: var(--black);
}
.ehbo-agenda__calendar.fc .fc-event.fc-event-past:hover {
    background: var(--black);
    color: var(--white);
}
.ehbo-agenda__calendar.fc .fc-daygrid-more-link {
    margin: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

/* list: every activity a light card, the date as a red tag line above the name */
.ehbo-agenda .ehbo-agenda__list {
    gap: 12px;
}
.ehbo-agenda .ehbo-agenda__item,
.ehbo-agenda .ehbo-agenda__item:last-child,
.ehbo-agenda .ehbo-agenda__empty {
    padding: 22px 24px;
    border-radius: var(--general-border-radius);
    background: var(--gray);
}
.ehbo-agenda .ehbo-agenda__item,
.ehbo-agenda .ehbo-agenda__item:last-child {
    gap: 8px;
    border: 0;
}
.ehbo-agenda .ehbo-agenda__meta {
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    opacity: 1;
    font-size: var(--tiny-font-size);
    font-weight: 700;
    color: var(--tmt-muted);
}
.ehbo-agenda .ehbo-agenda__when {
    color: var(--primary);
}
/* date · type · place: a dot between the parts, not before the "Geweest" label */
.ehbo-agenda .ehbo-agenda__meta > span:not(:first-child):not(.ehbo-agenda__badge)::before {
    content: "·";
    margin-right: 8px;
    color: var(--tmt-muted);
}
.ehbo-agenda .ehbo-agenda__item .ehbo-agenda__heading {
    font-size: var(--h4-size);
    line-height: 1.2;
    color: var(--tmt-strong);
}
.ehbo-agenda .ehbo-agenda__summary {
    margin: 0;
    font-size: 15px;
}
.ehbo-agenda .ehbo-agenda__item.is-past {
    opacity: 0.65;
}
.ehbo-agenda .ehbo-agenda__item.is-past .ehbo-agenda__when {
    color: var(--tmt-muted);
}
/* "Geweest": a quiet navy label, not the alarm colour */
.ehbo-agenda .ehbo-agenda__badge,
.ehbo-agenda__popup .ehbo-agenda__badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--black-rgb), 0.08);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
}
.ehbo-agenda .ehbo-agenda__spots {
    font-size: var(--small-font-size);
    font-weight: 600;
    opacity: 1;
    color: var(--tmt-muted);
}
.ehbo-agenda .ehbo-agenda__actions .btn {
    margin: 0;
}
.ehbo-agenda .ehbo-agenda__pagination a {
    font-weight: 700;
    color: var(--primary);
}

/* popup of an activity (a leflite .lef-popup): the facts as a ruled list */
body .ehbo-agenda__popup .ehbo-agenda__heading {
    font-size: clamp(22px, 2.2vw, 28px);
    color: var(--black);
}
body .ehbo-agenda__popup .popup-content {
    gap: 16px;
}
.ehbo-agenda__popup .ehbo-agenda__facts {
    gap: 0 24px;
    border-top: 1px solid var(--tmt-rule);
}
.ehbo-agenda__popup .ehbo-agenda__facts dt,
.ehbo-agenda__popup .ehbo-agenda__facts dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--tmt-rule);
    font-size: 15px;
}
.ehbo-agenda__popup .ehbo-agenda__facts dt {
    font-weight: 700;
    color: var(--black);
}
.ehbo-agenda__popup .ehbo-agenda__facts dd {
    color: var(--darkgray);
}
.ehbo-agenda__popup .ehbo-agenda__summary {
    color: var(--darkgray);
    line-height: 1.7;
}

/* ---------- popups (theme .lef-popup): the site's card look ---------- */
body .lef-popup.popup-opened {
    background: rgba(var(--secondary-rgb), 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
body .lef-popup.popup-opened .popup-inner {
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 30px 60px rgba(var(--secondary-rgb), 0.35);
}
body .lef-popup.popup-opened .popup-inner .popup-close {
    top: 16px;
    right: 16px;
    transition: background-color 0.2s;
}
body .lef-popup.popup-opened .popup-inner .popup-close:hover {
    background: var(--black);
}

/* ---------- accordion: hairline list instead of boxed cards ---------- */
body .accordion,
body .tmt-ia-item {
    background-color: transparent;
    color: inherit;
    border: 0;
    border-top: 1px solid var(--tmt-hairline);
    border-radius: 0;
}
body .accordion .accordion-title,
body .tmt-ia-title {
    padding: 17px 0;
    font-family: var(--heading-font);
    font-weight: var(--h-font-weight);
    font-size: 20px;
}
body .accordion .accordion-toggle .icon {
    font-size: 13px;
    opacity: 0.7;
}
body .accordion .accordion-content {
    padding: 0 0 20px;
    border-top: 0;
}
body .accordion .accordion-content p {
    font-size: 15px;
    line-height: 1.6;
}
.content-wrapper + .accordions,
.content-wrapper + .tmt-ia-items {
    margin-top: 28px;
}

/* ---------- image accordion block: image of the open item left, items right ---------- */
.tmt-image-accordion {
    display: flex;
    gap: 48px;
    align-items: stretch;
}
.tmt-ia-media,
.tmt-ia-body {
    flex: 1 1 0;
    min-width: 0;
}
.tmt-ia-media {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--media-border-radius);
    background: var(--secondary);
}
.tmt-ia-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.tmt-ia-image.is-active {
    opacity: 1;
}
.tmt-ia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tmt-ia-body h2 {
    margin-bottom: 14px;
}
body .tmt-ia-title {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
/* the theme paints buttons on hover/focus; this one is a plain row */
body .tmt-image-accordion .tmt-ia-title,
body .tmt-image-accordion .tmt-ia-title:hover,
body .tmt-image-accordion .tmt-ia-title:focus,
body .tmt-image-accordion .tmt-ia-title:active {
    background: transparent;
    color: inherit;
}
.tmt-ia-title .icon {
    flex: 0 0 28px;
    margin: 0;
    font-size: 18px;
    text-align: center;
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}
.tmt-ia-item.is-open .tmt-ia-title .icon {
    color: var(--primary);
    opacity: 1;
}
.tmt-ia-title .title {
    flex: 1;
}
/* plus that folds into a minus */
.tmt-ia-toggle {
    position: relative;
    flex: 0 0 13px;
    height: 13px;
    opacity: 0.7;
}
.tmt-ia-toggle::before,
.tmt-ia-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
}
.tmt-ia-toggle::after {
    transform: rotate(90deg);
    transition: transform 0.3s;
}
.tmt-ia-item.is-open .tmt-ia-toggle::after {
    transform: rotate(0deg);
}
.tmt-ia-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.tmt-ia-item.is-open .tmt-ia-content {
    grid-template-rows: 1fr;
}
.tmt-ia-content-inner {
    overflow: hidden;
}
body .tmt-ia-content p {
    margin: 0;
    padding: 0 0 20px 44px;
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- forms (Gravity Forms) ---------- */
body .gform_wrapper .gform_required_legend {
    display: none;
}
body .gform_wrapper .gfield_required {
    margin-left: 3px;
    color: var(--primary);
}
body .gform_wrapper .gfield_label {
    font-size: var(--small-font-size);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}
body .gform_wrapper input:not([type="submit"]):not([type="checkbox"]),
body .gform_wrapper textarea,
body .gform_wrapper select {
    border: 1px solid var(--tmt-hairline);
    background: var(--white);
    color: var(--black);
    font-size: 15px;
}
body .gform_wrapper input:not([type="submit"]):focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
    outline: none;
    border-color: var(--black);
}
body .gform_wrapper .gfield--type-html {
    font-size: var(--small-font-size);
    color: var(--tmt-muted);
}
body .gform_wrapper .gform_button {
    padding: var(--btn-big-padding);
    font-size: var(--btn-big-font-size);
    background-color: var(--black);
    color: var(--white);
    cursor: pointer;
}
body .gform_wrapper .gform_button:hover {
    background-color: var(--primary);
}

/* ---------- footer ---------- */
#footer .footer-inner {
    padding-block: clamp(56px, 7vw, 88px) 28px;
}
#footer .footer-inner > .container > .row {
    row-gap: clamp(40px, 5vw, 64px);
    align-items: flex-end;
}
#footer h6 {
    color: var(--tertiary);
    margin-bottom: 10px;
}
/* contact row: the phone number is the headline */
#footer .col-lg-8 h2 {
    margin-bottom: 10px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.04em;
}
#footer .col-lg-8 a {
    color: var(--white);
    text-decoration: none;
}
#footer .col-lg-8 h2 ~ a {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.02em;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
#footer .col-lg-8 a:hover {
    color: var(--tertiary);
}
#footer .buttons-holder {
    margin-top: 0;
}
/* the three link columns form one white panel */
#footer .row > .col-lg-4:nth-child(n+3) {
    --tmt-muted: var(--darkgray);
    align-self: stretch;
    padding: clamp(24px, 3vw, 36px);
    background: var(--white);
    color: var(--black);
}
#footer .row > .col-lg-4:nth-child(n+3) h6 {
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 14px;
}
#footer .row > .col-lg-4:nth-child(n+3) img {
    width: 96px;
    height: auto;
}
#footer .row > .col-lg-4:nth-child(n+3) p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 260px;
}
#footer .widget-menu ul {
    margin: 0;
    padding: 0;
}
#footer .widget-menu ul li {
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.2;
}
#footer .widget-menu ul li:last-child {
    margin-bottom: 0;
}
#footer .widget-menu ul li a {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
}
#footer .widget-menu ul li a:hover {
    color: var(--primary);
}
/* social links as round outline buttons */
#footer a.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
#footer a.social-link .icon {
    margin: 0;
}
#footer a.social-link:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}
body .socket.bg-transparent {
    padding: 12px 0 28px;
    font-size: var(--tiny-font-size);
    color: var(--tmt-muted);
}
body .socket.bg-transparent a,
body .socket.bg-transparent .lef-cookie-settings {
    color: var(--tmt-muted);
    text-decoration: none;
}
body .socket.bg-transparent a:hover,
body .socket.bg-transparent .lef-cookie-settings:hover {
    color: var(--white);
}
/* socials left; on the right the socket menu with the credit line under it */
body .socket .socket-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
}
body .socket .tmt-socials {
    display: flex;
    gap: 10px;
}
body .socket .socket-half,
body .socket .socket-half ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* copyright | credit: the separator is its own item, so half the gap on either side of it */
body .socket .socket-half + .socket-half {
    column-gap: 12px;
}

/* ---------- cookie banner (Complianz, ~/build/avg/complianz.php) ---------- */
/* Complianz reads these --cmplz_* variables; the colours saved in the plugin are only fallbacks. The buttons share
   the site's button rules above (accept = red main button, deny and "save" = outline button). */
body .cmplz-cookiebanner {
    --cmplz_banner_background_color: var(--white);
    --cmplz_banner_border_color: var(--tmt-hairline);
    --cmplz_banner_border_width: 1px;
    --cmplz_banner_border_radius: var(--general-border-radius);
    --cmplz_banner_margin: 16px;
    --cmplz_text_color: var(--black);
    --cmplz_hyperlink_color: var(--black);
    --cmplz_text_font_size: 14px;
    --cmplz_text_line_height: 1.55;
    --cmplz_title_font_size: 20px;
    --cmplz_link_font_size: 13px;
    --cmplz_button_font_size: 14px;
    --cmplz_button_border_radius: var(--btn-border-radius);
    --cmplz_slider_active_color: var(--primary);
    --cmplz_slider_inactive_color: var(--tmt-hairline);
    --cmplz_slider_bullet_color: var(--white);
    --cmplz_category_header_always_active_color: var(--succes);
    padding: 22px 22px 18px;
    box-shadow: var(--tmt-shadow-header);
    font-family: var(--body-font);
    color: var(--black);
}
/* title on the left like the site's cards (Complianz centres it between an empty logo and the close button) */
body .cmplz-cookiebanner .cmplz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body .cmplz-cookiebanner .cmplz-logo:empty {
    display: none;
}
body .cmplz-cookiebanner .cmplz-title {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 800;
    color: var(--black);
    text-align: left;
}
body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-message p {
    color: var(--tmt-muted);
}
/* the uppercase site buttons don't fit three in a row in the preferences view: "save" wraps to its own row */
body .cmplz-cookiebanner .cmplz-buttons {
    flex-wrap: wrap;
    gap: 8px;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    flex: 1 1 auto;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    box-shadow: none;
    font-size: var(--btn-small-font-size);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept {
    background-color: var(--primary);
    color: var(--white);
}
/* "Voorkeuren" is the quiet third choice: a text button (the theme gives every button:hover the primary colour) */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
    background-color: transparent;
    border-color: transparent;
    color: var(--black);
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
    color: var(--primary);
}
/* Complianz moves the focus into the banner: a ring for the keyboard only */
body .cmplz-cookiebanner :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
body .cmplz-cookiebanner :focus:not(:focus-visible) {
    outline: none;
}
body .cmplz-cookiebanner .cmplz-links .cmplz-link {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body .cmplz-cookiebanner .cmplz-links .cmplz-link:hover {
    color: var(--primary);
}
body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
    border-radius: var(--btn-border-radius);
    background: var(--gray);
}
body .cmplz-cookiebanner .cmplz-category .cmplz-category-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--black);
}
body .cmplz-cookiebanner .cmplz-category .cmplz-description {
    color: var(--tmt-muted);
}
/* "Cookie-instellingen" (socket menu + cookie statement) reopens the banner: looks like the links around it */
body .lef-cookie-settings {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}
.content-wrapper .lef-cookie-settings {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* cookie table on the cookie statement (~/build/avg/legal.php) */
body .lef-cookie-table {
    width: 100%;
    margin: 8px 0 24px;
    border-collapse: collapse;
    font-size: var(--small-font-size);
    line-height: 1.5;
}
body .lef-cookie-table th {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--black);
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--black);
    text-align: left;
}
body .lef-cookie-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--tmt-rule);
    color: var(--tmt-muted);
    vertical-align: top;
}
body .lef-cookie-table td:first-child {
    color: var(--black);
    word-break: break-word;
}

/* ---------- desktop only ---------- */
@media (min-width: 992px) {
    .wp-block-custom-section-block-col.col-intro {
        position: sticky;
        top: 130px;
    }
    .col-cards:not(.col-cards-offset) {
        padding-right: 8px;
    }
    .col-cards-offset {
        padding-left: 8px;
        padding-top: 56px;
    }
    /* photo columns: second column starts 48px lower, third 96px */
    .gallery-photo-columns .gallery-item:nth-child(5n+3) {
        break-before: column;
        padding-top: 48px;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n) {
        break-before: column;
        padding-top: 96px;
    }
    /* image beside copy: keep the copy away from the image */
    section.half-background-half-overlay .row > .wp-block-custom-section-block-col:last-child,
    .row > .col-lg-6:has(> .image-outer) + .col-lg-6 {
        padding-left: clamp(28px, 5vw, 72px);
    }
    section.half-overlay-half-background .row > .wp-block-custom-section-block-col:first-child,
    .row > .col-lg-6:has(+ .col-lg-6 > .image-outer) {
        padding-right: clamp(28px, 5vw, 72px);
    }
    /* photo columns beside copy (two equal columns): the design's gap of clamp(32px, 5vw, 72px) */
    .row > .col-lg-6:has(.gallery-photo-columns) {
        padding-right: clamp(16px, 2.5vw, 36px);
    }
    .row > .col-lg-6:has(.gallery-photo-columns) + .col-lg-6 {
        padding-left: clamp(16px, 2.5vw, 36px);
    }
    /* footer: the three link columns side by side form one white panel */
    #footer .row > .col-lg-4:nth-child(n+3) {
        flex: 0 0 calc((100% - 30px) / 3);
        max-width: calc((100% - 30px) / 3);
    }
    /* the panel columns meet on a sub-pixel edge; cover the seam */
    #footer .row > .col-lg-4:nth-child(3),
    #footer .row > .col-lg-4:nth-child(4) {
        box-shadow: 1px 0 0 var(--white);
    }
    #footer .row > .col-lg-4:nth-child(3) {
        margin-left: 15px;
        border-radius: var(--general-border-radius) 0 0 var(--general-border-radius);
    }
    #footer .row > .col-lg-4:nth-child(5) {
        border-radius: 0 var(--general-border-radius) var(--general-border-radius) 0;
    }
    /* socket: socials on the left, menu and credit stacked on the right */
    body .socket .socket-inner {
        align-items: flex-end;
        gap: 8px;
        padding-left: 230px;
    }
    body .socket .tmt-socials {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    body .socket .socket-half,
    body .socket .socket-half ul {
        justify-content: flex-end;
    }
}

/* ---------- mobile ---------- */
@media (max-width: 991px) {
    html:root {
        --section-padding: 56px;
    }
    /* spacer columns only make sense side by side; stacked they just add row gaps */
    .row > .wp-block-custom-section-block-col:empty {
        display: none;
    }
    /* stacked columns (image above text, heading above copy) need air between them;
       :where() keeps this below the rows that set their own gap (col-step, col-text-card, ...) */
    :where(.lef-section) .row {
        row-gap: 24px;
    }
    /* half photo / half copy: the photo goes on top, full width, instead of under the copy */
    section.half-background-half-overlay,
    section.half-overlay-half-background {
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0 !important; /* the desktop min-height (inline) would centre a gap above the photo */
        padding-top: 0;
    }
    section.half-background-half-overlay > .background-image-wrapper,
    section.half-overlay-half-background > .background-image-wrapper {
        order: -1;
        flex: 0 0 auto;
        width: 100%;
        height: clamp(220px, 62vw, 360px);
        margin: 0 0 40px; /* the theme gives the stacked photo a top margin */
    }
    section.half-background-half-overlay > .background-image-wrapper img,
    section.half-overlay-half-background > .background-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* the card section lines up with the content gutters */
    section.section-card > .container {
        width: calc(100% - 30px);
    }
    /* mosaic gallery with an odd number of photos: the first one spans both columns */
    body .gallery-outer--mosaic .gallery-item:first-child:nth-last-child(odd) {
        grid-column: span 2;
    }
    /* hamburger: a 44px tap target */
    body .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    .tmt-photo-collage {
        margin-top: 40px;
        height: clamp(320px, 80vw, 480px);
    }
    #footer .row > .col-lg-4:nth-child(n+3) {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-left: 15px;
    }
    #footer .row > .col-lg-4:nth-child(3) {
        border-radius: var(--general-border-radius) var(--general-border-radius) 0 0;
    }
    #footer .row > .col-lg-4:nth-child(5) {
        border-radius: 0 0 var(--general-border-radius) var(--general-border-radius);
    }
    #footer .footer-inner > .container > .row {
        row-gap: 0;
    }
    /* stacked footer panel: cover the seam under each part instead of beside it */
    #footer .row > .col-lg-4:nth-child(3),
    #footer .row > .col-lg-4:nth-child(4) {
        box-shadow: 0 1px 0 var(--white);
    }
    #footer .row > .col-lg-8,
    #footer .row > .col-lg-4:nth-child(2) {
        margin-bottom: 32px;
    }
    #footer .buttons-holder.alignment-right {
        text-align: left;
    }
    .tmt-image-accordion {
        flex-direction: column;
        gap: 32px;
    }
    .tmt-ia-media {
        flex: none;
        min-height: 260px;
    }
    body .socket .socket-inner {
        align-items: flex-start;
        gap: 16px;
    }
    /* Complianz hides the banner title below 768px but keeps its (empty) header row */
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header .cmplz-title {
        display: block;
    }
}
/* cookie banner on tablets: a card like on desktop instead of Complianz's full-width bar */
@media (min-width: 576px) and (max-width: 991px) {
    #cmplz-cookiebanner-container .cmplz-cookiebanner {
        left: 16px;
        bottom: 16px;
    }
}
/* from tablet up: a 440px card (the preferences view would otherwise grow to fit its buttons on one row) with the
   buttons side by side; Complianz stacks them at 100% width below 992px, on phones they stay stacked */
@media (min-width: 576px) {
    #cmplz-cookiebanner-container .cmplz-cookiebanner {
        max-width: 440px;
    }
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons {
        flex-direction: row;
    }
    #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
        width: auto;
    }
}
@media (max-width: 575px) {
    /* the cookie table scrolls sideways on a phone instead of squeezing four columns */
    body .lef-cookie-table {
        display: block;
        overflow-x: auto;
    }
    body .lef-cookie-table th,
    body .lef-cookie-table td {
        min-width: 140px;
    }
    /* copyright and credit don't fit on one phone line: stack them, without a dangling separator */
    body .socket .tmt-socket-sep {
        display: none;
    }
    body .socket .socket-half + .socket-half {
        flex-direction: column;
        align-items: flex-start;
    }
    .ehbo-agenda__calendar.fc .fc-toolbar.fc-header-toolbar {
        align-items: center;
    }
    .ehbo-agenda__calendar.fc .fc-daygrid-day-frame {
        min-height: 64px;
    }
    .ehbo-agenda__calendar.fc .fc-daygrid-day-number {
        padding: 6px 6px 2px;
        font-size: 13px;
    }
    /* a phone's day cell is ~45px wide: one line per event, no time, the name cut off with an
       ellipsis (the plugin lets it wrap anywhere, which stacks it letter by letter) */
    .ehbo-agenda__calendar.fc .fc-daygrid-event {
        margin: 2px 3px;
        padding: 2px 4px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
    }
    .ehbo-agenda__calendar.fc .fc-daygrid-event .fc-event-time {
        display: none;
    }
    .ehbo-agenda__calendar.fc .fc-daygrid-event .fc-event-title {
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }
    /* popup facts stack on a phone (plugin): the label sits on its value, one rule per pair */
    .ehbo-agenda__popup .ehbo-agenda__facts dt {
        padding-bottom: 0;
        border-bottom: 0;
    }
    .ehbo-agenda__popup .ehbo-agenda__facts dd {
        padding-top: 2px;
        margin: 0;
    }
    .ehbo-agenda .ehbo-agenda__item,
    .ehbo-agenda .ehbo-agenda__item:last-child,
    .ehbo-agenda .ehbo-agenda__empty {
        padding: 18px;
    }
    .gallery-outer--masonry.gallery-photo-columns {
        columns: 2;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n+1) a.image-gallery-outer {
        height: 170px;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n+2) a.image-gallery-outer {
        height: 115px;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n+3) a.image-gallery-outer {
        height: 130px;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n+4) a.image-gallery-outer {
        height: 165px;
    }
    .gallery-photo-columns .gallery-item:nth-child(5n) a.image-gallery-outer {
        height: 190px;
    }
}
