/*vacatures*/

/* Page shell, wrapper width, title, lead and focus ring come from base.css */

.werk-main {
    min-height: calc(100vh - var(--nav-offset, var(--navbar-height)) - 50px);
    min-height: calc(100svh - var(--nav-offset, var(--navbar-height)) - 50px);
}

header.intro {
    padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
    margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
    border-bottom: 1px solid var(--line-on-dark);
}

h1.title { margin: 0 0 1rem; }

.vacature-grid-container ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(1.5rem, 4vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacature-grid-container ul li {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
}
.vacature-content,
.flex-top { display: contents; }

.flex-top h3 {
    margin: 0;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--cream);
}

.flex-top p {
    margin: 0.85rem 0 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cream-dim);
}

/*btn*/
.hero-btn {
    align-self: start;
    justify-self: start;
    margin-top: 1.75rem;
    padding: 14px 28px;
    border: 3px solid white;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero-btn:hover {
    background: var(--cream);
    color: #0a6c83;   /* almost --rem-teal (#0b6f82): merge? */
}

/*Browser*/
@supports not (grid-template-rows: subgrid) {
    .vacature-grid-container ul li { display: flex; flex-direction: column; }
    .vacature-content { display: flex; flex-direction: column; height: 100%; }
    .flex-top { display: block; }
    .hero-btn { margin-top: auto; }
    .flex-top p { margin-bottom: 1.75rem; }
}


/*Tablet*/
@media (max-width: 860px) {
    .vacature-grid-container ul {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .vacature-grid-container ul li + li {
        margin-top: 2.25rem;
        padding-top: 2.25rem;
        border-top: 1px solid var(--line-on-dark);
    }
}

@media (max-width: 400px) {
    .hero-btn {
        width: 100%;
        justify-self: stretch;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
}
