/* Plain CSS added next to the compiled tailwind.css (no build step needed). Uses the theme's design tokens. */

/* No lavender strip between a white last section and the footer: the footer's top margin goes when the page ends in a white section. */
div:has(> section.bg-white:last-child) + footer > .mt-section {
    margin-top: 0;
}

/* Paritaire comités overview */
.pd-pc__search {
    display: block;
    margin-bottom: 20px;
}
.pd-pc__search input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-primary);
    font: inherit;
}
.pd-pc__search input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.pd-pc__card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--color-white);
}
.pd-pc__table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.pd-pc__table th {
    padding: 16px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
}
.pd-pc__table td {
    padding: 14px 24px;
    border-top: 1px solid var(--color-surface);
    vertical-align: top;
}
.pd-pc__table td:first-child {
    white-space: nowrap;
    color: var(--color-primary);
}
.pd-pc__table [hidden] {
    display: none !important;
}
.pd-pc__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.875em;
    white-space: nowrap;
}
.pd-pc__badge--yes {
    background: color-mix(in srgb, var(--color-success) 15%, white);
    color: #1d6a35;
}
.pd-pc__badge--no {
    background: color-mix(in srgb, var(--color-error) 12%, white);
    color: #a02828;
}
.pd-pc__empty {
    margin: 0;
    padding: 24px;
    text-align: center;
}
@media (max-width: 768px) {
    .pd-pc__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
    .pd-pc__table,
    .pd-pc__table tbody,
    .pd-pc__table tr,
    .pd-pc__table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .pd-pc__table tr {
        padding: 14px 20px;
        border-top: 1px solid var(--color-surface);
    }
    .pd-pc__table tr:first-child {
        border-top: 0;
    }
    .pd-pc__table td {
        padding: 2px 0;
        border: 0;
        white-space: normal;
    }
    .pd-pc__table td:last-child:not(:empty) {
        padding-top: 6px;
    }
}

/* USP slider, option "Afbeelding passend": the whole screenshot, uncropped, inside the same frame. */
.pd-usp-card__img--fit {
    object-fit: contain;
}

/* Hero, option "Afbeelding niet meerekken met tekst": the photo keeps its own shape, sits at the top of its column
   (sticky) and never gets taller than 650px, instead of stretching along the text. Side by side only. */
@media (min-width: 962px) {
    .pd-hero--compact > [data-hero-animate] {
        align-self: flex-start;
        position: sticky;
        top: 120px;
    }
    .pd-hero--compact > [data-hero-animate] > .absolute {
        position: relative;
        inset: auto;
        max-height: 650px;
        aspect-ratio: var(--photo-aspect);
        margin-inline: auto;
    }
    .pd-hero--compact > [data-hero-animate] > .absolute img.object-cover {
        height: 100%;
        width: 100%;
    }
}

/* Spotify, layout "Afbeelding boven": the photo is half as tall as its natural shape (full width, cropped), with
   clear space before the player. */
.pd-spotify__top-image {
    height: auto;
    aspect-ratio: 8 / 3;
    object-fit: cover;
}
.pd-spotify__embed--after-image {
    margin-top: 50px;
}
@media (max-width: 767px) {
    .pd-spotify__embed--after-image { margin-top: 40px; }
}
