.modern .brand img { width: auto; max-width: 60px; max-height: 44px; object-fit: contain; }
.modern .categories .cat { min-width: 0; white-space: normal; }
.modern .cat img { width: 38px; height: 36px; object-fit: cover; border-radius: 6px; }
.modern .search-section .rmf { margin: 12px 0; }
.modern .search-section > h2 { margin: 14px 0; }
.designer .crumb { font-size: 1rem; }
.designer .block-list { list-style: none; padding: 0; }
.modern .search-section .rmf { --rmf-accent: var(--button) !important; --rmf-on-accent: var(--on) !important; }

.designer .palette-swatches { margin: -3px 0 10px; }
.designer .palette-swatches > div:not([hidden]) { display: flex; gap: 4px; }
.designer .palette-swatches span { width: 20px; height: 20px; border: 1px solid #718994; border-radius: 50%; }
.designer .card-editor { margin: 8px 0; padding: 8px; border: 1px solid #7dacc440; border-radius: 8px; }
.designer .card-editor summary { cursor: pointer; overflow-wrap: anywhere; }

.modern .site-cards {
    --tracks: var(--site-columns);
    display: grid;
    grid-template-columns: repeat(var(--tracks), minmax(0, 1fr));
    gap: 12px;
    margin-block: 12px 0;
}
.modern .site-card {
    grid-column: span min(var(--site-span), var(--tracks));
    min-width: 0;
    overflow-wrap: anywhere;
    padding: clamp(10px, 1.5vw, 22px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}
.modern .site-card h3 { margin: 8px 0 0; font-size: 1rem; }
.modern .site-card p { margin-bottom: 0; font-size: .9rem; }
.modern .site-card-icon {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    min-height: 2rem;
    border-radius: 8px;
    background: var(--design-accent, var(--line));
    color: #172731;
    font-size: 1.15rem;
}
.modern .wrap > [data-site-size="compact"]:not(.surface) { max-width: 48rem; margin-inline: auto; }
.modern .wrap > [data-site-size="roomy"]:not(.surface) { padding-block: clamp(25px, 5vw, 60px); }
.modern .wrap > .surface[data-site-size="compact"] { min-height: 320px; }
.modern .wrap > .surface[data-site-size="roomy"] { min-height: 570px; }
.modern > .wrap:has(> [data-site-size="full"]) { width: calc(100% - 28px); }
.modern > .wrap:has(> [data-site-size="full"]) > :not([data-site-size="full"]) {
    width: min(1160px, 100%);
    margin-inline: auto;
}

.modern[data-site-layout]:not([data-site-layout="theme"]) .wrap > .surface {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0;
    color: var(--ink);
    background: var(--hero);
}
.modern[data-site-layout]:not([data-site-layout="theme"]) .surface::after { display: none; }
.modern[data-site-layout]:not([data-site-layout="theme"]) .surface > .feature {
    width: auto;
    max-width: none;
    margin: 0;
    padding: clamp(22px, 4vw, 58px);
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.modern[data-site-layout]:not([data-site-layout="theme"]) .surface > .art-frame {
    position: relative;
    inset: auto;
    z-index: auto;
    min-height: 260px;
    width: 100%;
}
.modern[data-site-layout]:not([data-site-layout="theme"]) .feature h1 { font-size: clamp(34px, 5vw, 72px); }
.modern[data-site-layout="reverse"] .surface > .art-frame { grid-column: 1; grid-row: 1; }
.modern[data-site-layout="reverse"] .surface > .feature { grid-column: 2; grid-row: 1; }
.modern[data-site-layout="stacked"] .wrap > .surface,
.modern[data-site-layout="cover"] .wrap > .surface { grid-template-columns: minmax(0, 1fr); }
.modern[data-site-layout="stacked"] .feature { text-align: center; }
.modern[data-site-layout="stacked"] .feature p { margin-inline: auto; }
.modern[data-site-layout="cover"] .surface > .art-frame,
.modern[data-site-layout="cover"] .surface > .feature { grid-area: 1 / 1; }
.modern[data-site-layout="cover"] .surface > .feature {
    justify-self: start;
    margin: clamp(12px, 3vw, 42px);
    border-radius: var(--edge);
    background: var(--panel);
    max-width: min(36rem, calc(100% - 24px));
}
@media (max-width: 820px) {
    .modern .site-cards { --tracks: var(--site-tablet-columns); }
}
@media (max-width: 640px) {
    .modern .site-cards { --tracks: min(2, var(--site-columns)); }
    .modern[data-site-layout]:not([data-site-layout="theme"]) .wrap > .surface { grid-template-columns: minmax(0, 1fr); }
    .modern[data-site-layout="reverse"] .surface > .feature { grid-column: 1; grid-row: 2; }
}

.designer [data-preview-frame][hidden], .designer [data-canvas][hidden] { display: none; }
.designer .rental-canvas { position: relative; height: 620px; border: 1px solid #d5e7e7; border-radius: 14px; overflow: hidden; }
.designer .rental-canvas .gjs-cv-canvas { top: 0; width: 100%; height: 100%; }
.designer [data-canvas-blocks] { margin-block: 12px; }
.designer [data-canvas-blocks][hidden] { display: none; }
.designer [data-canvas-blocks] .gjs-block { min-height: 44px; flex: 1 1 100%; width: 100%; padding: 8px; }
.designer .gjs-one-bg { background: #17343f; }
.designer .gjs-two-color { color: #f7fffd; }
.designer .gjs-four-color-h:hover { color: #83f4df; }

/* Gekozen kleurenpalet (test-126): de kleuren van het palet gaan voor de vaste kleuren van het thema,
   zodat tekst ook bij een donker palet leesbaar blijft. */
.modern[data-site-palette] { background: var(--base); color: var(--ink); }
.modern[data-site-palette] .bar, .modern[data-site-palette] .brand, .modern[data-site-palette] .languages a { color: var(--ink); }
.modern[data-site-palette][data-site-layout="theme"] .surface > .feature {
    background: color-mix(in srgb, var(--panel) 90%, transparent) !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}
.modern[data-site-palette] .feature h1, .modern[data-site-palette] .feature p { color: var(--ink) !important; }
.modern[data-site-palette] .feature .kicker { color: var(--design-accent, var(--button)) !important; }
.modern[data-site-palette] .btn { background: var(--button) !important; color: var(--on) !important; }
.modern[data-site-palette] .cat, .modern[data-site-palette] .site-card, .modern[data-site-palette] .plain-section {
    background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.modern[data-site-palette] .site-card-icon { background: color-mix(in srgb, var(--design-accent, var(--button)) 22%, transparent); color: var(--ink); }
.modern[data-site-palette] .public-footer { color: var(--ink); }
