.byou-cp {
    --ink: #141414;
    --paper: #fff;
    --blue: #1d3fbf;
    width: min(1180px, calc(100vw - 32px));
    max-width: 100%;
    margin-inline: auto;
    padding: 18px clamp(12px, 2vw, 24px) 30px;
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
}

.byou-cp, .byou-cp *, .byou-cp *::before, .byou-cp *::after {
    box-sizing: border-box;
}

.byou-cp .byou-cp-roles,
.byou-cp .byou-cp-picker {
    margin: 0;
    padding: 0;
    border: 0;
    min-inline-size: 0;
}

.byou-cp .byou-cp-picker {
    display: none;
    text-align: center;
}

.byou-cp .byou-cp-picker legend {
    margin-inline: auto;
    padding: 0 0 8px;
    font: 700 15px/1.4 Manrope, system-ui, sans-serif;
}

.byou-cp .byou-cp-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 32px;
}

.byou-cp .byou-cp-pills label {
    position: relative;
    cursor: pointer;
}

.byou-cp .byou-cp-pills input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.byou-cp .byou-cp-pills label span {
    display: grid;
    place-items: center;
    min-height: 50px;
    padding: 6px clamp(15px, 4vw, 28px);
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    background: var(--paper);
    font: 800 clamp(15px, 2vw, 19px)/1.2 Manrope, system-ui, sans-serif;
}

.byou-cp .byou-cp-pills input:checked + span {
    border-color: var(--blue);
    color: var(--paper);
    background: var(--blue);
}

.byou-cp .byou-cp-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px 20px;
}

.byou-cp .byou-cp-panel + .byou-cp-panel {
    margin-top: 32px;
}

@supports selector(:has(*)) {
    .byou-cp .byou-cp-picker {
        display: block;
    }

    .byou-cp .byou-cp-panel + .byou-cp-panel {
        margin-top: 0;
    }

    .byou-cp .byou-cp-roles:has(input[value="jongerenwerk"]:checked) .byou-cp-panel--sport,
    .byou-cp .byou-cp-roles:has(input[value="sport"]:checked) .byou-cp-panel--jongerenwerk {
        display: none;
    }
}

.byou-cp .byou-cp-town--bergen { --town: #E95C0C; --on-town: #141414; }
.byou-cp .byou-cp-town--uitgeest { --town: #E90C0C; --on-town: #ffffff; }
.byou-cp .byou-cp-town--castricum { --town: #7CB826; --on-town: #141414; }
.byou-cp .byou-cp-town--heiloo { --town: #A22785; --on-town: #ffffff; }

.byou-cp .byou-cp-town {
    position: relative;
    min-width: 0;
    padding: 10px;
    border-radius: 21px;
    color: var(--on-town);
    background: var(--town);
}

.byou-cp .byou-cp-sticker {
    position: relative;
    z-index: 1;
    display: table;
    max-width: calc(100% - 8px);
    margin: -24px 0 9px 3px;
    padding: 5px 13px 7px;
    border: 2px solid var(--paper);
    border-radius: 11px;
    transform: rotate(-4deg);
    color: var(--on-town);
    background: var(--town);
    font: 400 clamp(24px, 3.2vw, 42px)/1.05 "Permanent Marker", cursive;
    text-transform: uppercase;
    white-space: nowrap;
}

.byou-cp .byou-cp-sticker::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 13px;
    width: 46px;
    height: 12px;
    transform: rotate(-9deg);
    background: url("tape.png") center / 100% 100%;
    pointer-events: none;
}

.byou-cp .byou-cp-track {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 5px;
    padding: 5px 5px 14px;
    border-radius: 13px;
}

/* Eigen scrollbalk: witte schuif op een doorzichtige baan, zichtbaar op elke gemeentekleur. */
.byou-cp .byou-cp-track::-webkit-scrollbar {
    height: 8px;
}

.byou-cp .byou-cp-track::-webkit-scrollbar-track {
    margin-inline: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
}

.byou-cp .byou-cp-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #fff;
}

.byou-cp .byou-cp-track::-webkit-scrollbar-thumb:hover {
    background: #f2f2f2;
}

.byou-cp .byou-cp-track::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

@supports not selector(::-webkit-scrollbar) {
    .byou-cp .byou-cp-track {
        scrollbar-width: thin;
        scrollbar-color: #fff rgba(0, 0, 0, .22);
    }
}

.byou-cp .byou-cp-cards {
    --gap: 10px;
    --card-width: clamp(142px, 64%, 410px);
    display: flex;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.byou-cp .byou-cp-card {
    flex: 0 0 var(--card-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 6px;
    border-radius: 13px;
    scroll-snap-align: start;
    color: var(--ink);
    background: var(--paper);
}

.byou-cp .byou-cp-photo {
    position: relative;
    aspect-ratio: 1.12;
    overflow: hidden;
    border-radius: 8px;
    background: var(--town);
}

.byou-cp .byou-cp-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin-inline: auto;
    border-radius: 0;
    object-fit: cover;
    object-position: 50% 0%;
}

.byou-cp .byou-cp-panel--jongerenwerk .byou-cp-photo img {
    width: 68%;
    object-position: 50% 4%;
}

.byou-cp .byou-cp-name {
    margin: 9px 3px 8px;
    font: 400 clamp(25px, 5vw, 33px)/1.05 Anton, Impact, sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.byou-cp .byou-cp-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    margin: auto 0 0;
}

.byou-cp .byou-cp-app,
.byou-cp .byou-cp-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.byou-cp .byou-cp-app {
    gap: 5px;
    padding: 0 7px;
    color: var(--paper);
    background: var(--ink);
    font: 800 13px/1 Manrope, system-ui, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.byou-cp .byou-cp-more {
    width: 44px;
}

.byou-cp .byou-cp-icon {
    flex: none;
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: var(--icon) center / contain no-repeat;
}
.byou-cp .byou-cp-icon--wa { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%202a10%2010%200%200%200-8.6%2015.1L2%2022l5-1.3A10%2010%200%201%200%2012%202Zm0%2018.2a8.2%208.2%200%200%201-4.2-1.2l-.3-.2-3%20.8.8-2.9-.2-.3A8.2%208.2%200%201%201%2012%2020.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8%201-.3.2-.5.1a6.7%206.7%200%200%201-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2%200-.3%200-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1%201%200%200%200-.7.3%203%203%200%200%200-.9%202.2%205.2%205.2%200%200%200%201.1%202.8%2011.9%2011.9%200%200%200%204.6%204c1.7.7%202.4.8%203.2.7a2.8%202.8%200%200%200%201.8-1.3%202.3%202.3%200%200%200%20.2-1.3c-.1-.1-.3-.2-.6-.3Z%22%2F%3E%3C%2Fsvg%3E"); }
.byou-cp .byou-cp-icon--ig { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%207a5%205%200%201%200%200%2010%205%205%200%200%200%200-10Zm0%208.2a3.2%203.2%200%201%201%200-6.4%203.2%203.2%200%200%201%200%206.4ZM17.3%205.5a1.2%201.2%200%201%200%200%202.4%201.2%201.2%200%200%200%200-2.4ZM12%203.8c2.7%200%203%200%204%20.1%202.7.1%204%201.4%204.1%204.1.1%201%20.1%201.3.1%204s0%203-.1%204c-.1%202.7-1.4%204-4.1%204.1-1%20.1-1.3.1-4%20.1s-3%200-4-.1c-2.7-.1-4-1.4-4.1-4.1-.1-1-.1-1.3-.1-4s0-3%20.1-4C4%205.3%205.3%204%208%203.9c1-.1%201.3-.1%204-.1ZM12%202c-2.7%200-3.1%200-4.1.1C4.2%202.2%202.2%204.2%202.1%207.9%202%208.9%202%209.3%202%2012s0%203.1.1%204.1c.1%203.7%202.1%205.7%205.8%205.8%201%20.1%201.4.1%204.1.1s3.1%200%204.1-.1c3.7-.1%205.7-2.1%205.8-5.8.1-1%20.1-1.4.1-4.1s0-3.1-.1-4.1c-.1-3.7-2.1-5.7-5.8-5.8C15.1%202%2014.7%202%2012%202Z%22%2F%3E%3C%2Fsvg%3E"); }
.byou-cp .byou-cp-icon--mail { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M3%205h18a1%201%200%200%201%201%201v12a1%201%200%200%201-1%201H3a1%201%200%200%201-1-1V6a1%201%200%200%201%201-1Zm1%202.4V17h16V7.4l-8%205.3-8-5.3ZM5.2%207%2012%2011.5%2018.8%207H5.2Z%22%2F%3E%3C%2Fsvg%3E"); }

.byou-cp .byou-cp-app:hover,
.byou-cp .byou-cp-more:hover {
    border-color: var(--blue);
    color: var(--paper);
    background: var(--blue);
}

.byou-cp .byou-cp-pills input:focus-visible + span,
.byou-cp .byou-cp-actions a:focus-visible,
.byou-cp .byou-cp-track:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--paper);
}

.byou-cp .byou-cp-track:focus-visible {
    outline-offset: -2px;
    box-shadow: inset 0 0 0 4px var(--paper);
}

.byou-cp .byou-cp-empty {
    margin: 0;
    padding: 12px 0;
    font-weight: 700;
}

@media (min-width: 1600px) {
    .byou-cp .byou-cp-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-items: stretch;
    }

    .byou-cp .byou-cp-panel .byou-cp-name {
        font-size: clamp(18px, 1.35vw, 26px);
    }
}

@media (min-width: 700px) {

    .byou-cp .byou-cp-cards {
        --gap: 8px;
        --card-width: clamp(142px, calc((100% - 3 * var(--gap)) / 4), 200px);
    }

    .byou-cp .byou-cp-cards {
        justify-content: safe center;
    }

    .byou-cp .byou-cp-panel--jongerenwerk .byou-cp-photo img {
        width: 84%;
    }

    .byou-cp .byou-cp-name {
        font-size: clamp(20px, 1.75vw, 31px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .byou-cp .byou-cp-track {
        scroll-behavior: auto !important;
        scroll-snap-type: none;
    }
}
