/* TaxiKompas Vacaturebank — eigen opmaak, bouwt voort op de tokens van het childtheme. */
.tkv {
    --tkv-radius: 14px;
    --tkv-gap: 16px;
    --tkv-sticky-top: 16px;
}
.tkv *,
.tkv *::before,
.tkv *::after { box-sizing: border-box; }
.tkv h1, .tkv h2, .tkv h3 { overflow-wrap: anywhere; }

/* ---------- knoppen ---------- */
.tkv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
/* Het thema kleurt alle links; daarom hier expliciet, met hogere soortelijkheid. */
.tkv a.tkv-btn--primary,
.tkv button.tkv-btn--primary,
.tkv a.tkv-btn--primary:visited {
    background: var(--tv-navy);
    color: #fff !important;
}
.tkv a.tkv-btn--primary:hover,
.tkv a.tkv-btn--primary:focus,
.tkv button.tkv-btn--primary:hover { background: #123a68; color: #fff !important; }

.tkv a.tkv-btn--yellow,
.tkv button.tkv-btn--yellow,
.tkv a.tkv-btn--yellow:visited {
    background: var(--tv-yellow);
    color: var(--tv-navy) !important;
}
.tkv a.tkv-btn--yellow:hover,
.tkv button.tkv-btn--yellow:hover { background: var(--tv-hover); color: var(--tv-navy) !important; }

.tkv a.tkv-btn--ghost,
.tkv button.tkv-btn--ghost,
.tkv a.tkv-btn--ghost:visited {
    background: #fff;
    color: var(--tv-navy) !important;
    border-color: var(--tv-line);
}
.tkv a.tkv-btn--ghost:hover { border-color: var(--tv-navy); }
.tkv-btn:focus-visible,
.tkv a:focus-visible,
.tkv input:focus-visible,
.tkv select:focus-visible,
.tkv button:focus-visible {
    outline: 3px solid var(--tv-yellow);
    outline-offset: 2px;
}

/* ---------- hero ---------- */
.tkv-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 18px;
}
.tkv-hero__text { min-width: 0; flex: 1 1 420px; }
.tkv-hero__title {
    margin: 6px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    color: var(--tv-navy);
}
.tkv-hero__lead { margin: 0; max-width: 62ch; color: var(--tv-muted); }

/* ---------- zoekpaneel ---------- */
.tkv-search {
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tkv-radius);
    box-shadow: var(--tv-shadow);
    padding: 14px;
    margin: 0 0 20px;
}
.tkv-search__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.tkv-search__divider { display: none; }
.tkv-search__field { min-width: 0; }
.tkv-search__field label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--tv-muted);
}
.tkv-search__field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--tv-line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: var(--tv-ink);
}
.tkv-search__field input::placeholder { color: #9aa7b6; }
.tkv-search__button {
    min-height: 50px;
    padding: 12px 26px;
    border: 0;
    border-radius: 10px;
    background: var(--tv-yellow);
    color: var(--tv-navy);
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background .15s;
}
.tkv-search__button:hover { background: var(--tv-hover); }

/* ---------- indeling ---------- */
.tkv-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}
.tkv-results { min-width: 0; }

/* ---------- facetten ---------- */
.tkv-facets__wrap {
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tkv-radius);
    padding: 14px 16px;
}
.tkv .tkv-facets__summary {
    font-weight: 900;
    color: var(--tv-navy);
    cursor: pointer;
    list-style: none;
}
.tkv-facets__summary::after { content: " ▾"; color: var(--tv-muted); }
.tkv-facet { margin-top: 16px; }
.tkv-facet:first-of-type { margin-top: 12px; }
.tkv .tkv-facet__title,
.tkv-facets .tkv-facet__title {
    margin: 0 0 6px;
    padding: 0;
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tv-muted);
    border: 0;
}
.tkv-facet__list { margin: 0; padding: 0; list-style: none; }
.tkv-facet__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    color: var(--tv-ink);
    font-size: 14px;
    text-decoration: none;
}
.tkv-facet__link:hover { background: var(--tv-bg); }
.tkv-facet__link.is-active {
    background: var(--tv-navy);
    color: #fff;
    font-weight: 800;
}
.tkv-facet__label { min-width: 0; overflow-wrap: anywhere; }
.tkv-facet__count {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--tv-muted);
}
.tkv-facet__link.is-active .tkv-facet__count { color: #ffffffb3; }
.tkv-facet__saved {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid var(--tv-line);
    border-radius: 9px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--tv-navy);
    cursor: pointer;
}
.tkv-facet__saved[aria-pressed="true"] {
    background: #fffaea;
    border-color: var(--tv-yellow);
}

/* ---------- resultaatbalk ---------- */
.tkv-resultbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
}
.tkv-count { margin: 0; color: var(--tv-muted); font-size: 14px; }
.tkv-count strong { color: var(--tv-ink); font-size: 16px; }
.tkv-sortform {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.tkv-sortform label { font-size: 13px; color: var(--tv-muted); }
.tkv-sortform select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--tv-line);
    border-radius: 9px;
    background: #fff;
    font: inherit;
    font-size: 14px;
}

.tkv-active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.tkv-active__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--tv-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tv-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.tkv-active__chip:hover { border-color: var(--tv-navy); }
.tkv-active__chip--clear {
    background: var(--tv-bg);
    color: var(--tv-muted);
    font-weight: 600;
}

/* ---------- kaarten ---------- */
.tkv-list {
    display: grid;
    gap: var(--tkv-gap);
    grid-template-columns: 1fr;
}
.tkv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tkv-radius);
    transition: border-color .15s, box-shadow .15s;
}
.tkv-card:hover { border-color: #c9d6e4; box-shadow: var(--tv-shadow); }
.tkv-card--featured { border-color: var(--tv-yellow); }
.tkv-card.is-hidden { display: none; }

.tkv-card__top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}
.tkv-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: hsl(var(--tkv-hue, 212) 70% 95%);
    color: hsl(var(--tkv-hue, 212) 55% 30%);
    font-weight: 900;
    font-size: 15px;
}
.tkv-card__head { min-width: 0; }
.tkv .tkv-card__title { margin: 0 0 3px; font-size: 17px !important; line-height: 1.3; font-weight: 800; }
.tkv-card__link { color: var(--tv-navy); text-decoration: none; }
.tkv-card__link:hover { text-decoration: underline; }
.tkv-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--tkv-radius);
}
.tkv-card__company {
    margin: 0;
    font-size: 14px;
    color: var(--tv-muted);
    overflow-wrap: anywhere;
}
.tkv-card__flags {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tkv-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tkv-badge--new { background: var(--tv-yellow); color: var(--tv-navy); }

.tkv-save {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tv-line);
    border-radius: 10px;
    background: #fff;
    color: var(--tv-muted);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.tkv-save[aria-pressed="true"] {
    background: #fffaea;
    border-color: var(--tv-yellow);
    color: var(--tv-navy);
}
.tkv-save[aria-pressed="true"] .tkv-save__icon { font-size: 0; }
.tkv-save[aria-pressed="true"] .tkv-save__icon::before { content: "★"; font-size: 17px; }
.tkv-save--wide { width: 100%; height: 44px; margin-top: 10px; font-size: 14px; font-weight: 800; }

.tkv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tkv-chip {
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--tv-bg);
    color: var(--tv-ink);
    font-size: 12.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.tkv-chips--lg .tkv-chip { font-size: 14px; padding: 7px 12px; }

.tkv-card__excerpt {
    margin: 0;
    color: var(--tv-muted);
    font-size: 14px;
    line-height: 1.55;
}
.tkv-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--tv-line);
}
.tkv-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12.5px;
    color: var(--tv-muted);
}
.tkv-card__cta {
    position: relative;
    z-index: 2;
    margin-left: auto;
}

/* ---------- lege staat, cta, paginering ---------- */
.tkv-empty {
    padding: 36px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tkv-radius);
}
.tkv-empty h2 { margin: 0 0 6px; color: var(--tv-navy); }
.tkv-empty p { margin: 0 0 16px; color: var(--tv-muted); }

.tkv-pagination { margin: 22px 0; }
.tkv-pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 10px 12px;
    margin: 0 4px 6px 0;
    text-align: center;
    border: 1px solid var(--tv-line);
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
    color: var(--tv-navy);
    font-weight: 700;
}
.tkv-pagination .page-numbers.current {
    background: var(--tv-navy);
    border-color: var(--tv-navy);
    color: #fff;
}

.tkv-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 10px;
    padding: 22px;
    border-radius: var(--tkv-radius);
    background: var(--tv-navy);
    color: #fff;
}
.tkv-cta h2 { margin: 0 0 4px; color: #fff; font-size: 20px; }
.tkv-cta p { margin: 0; color: #ffffffcc; max-width: 60ch; }

/* ---------- detailpagina ---------- */
.tkv-single__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}
.tkv-single__main { min-width: 0; }
.tkv-single__head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}
.tkv-single__head .tkv-avatar { width: 56px; height: 56px; font-size: 18px; }
.tkv-single__title { margin: 4px 0 2px; font-size: clamp(22px, 3.4vw, 32px); color: var(--tv-navy); }
.tkv-single__company { margin: 0; color: var(--tv-muted); font-weight: 600; }
.tkv-single__body { margin-top: 18px; }

.tkv-apply {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tkv-radius);
    box-shadow: var(--tv-shadow);
}
.tkv-apply__title { margin: 0 0 12px; font-size: 17px; color: var(--tv-navy); }
.tkv-apply__btn { width: 100%; }
.tkv-apply__note { margin: 8px 0 0; font-size: 12.5px; color: var(--tv-muted); }

.tkv-facts { margin: 0 0 14px; }
.tkv-facts__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--tv-line);
    font-size: 14px;
}
.tkv-facts__row:last-child { border-bottom: 0; }
.tkv-facts dt { margin: 0; color: var(--tv-muted); }
.tkv-facts dd { margin: 0; font-weight: 700; color: var(--tv-ink); text-align: right; overflow-wrap: anywhere; }

.tkv-notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.tkv-notice--warn { background: #fff4e5; border: 1px solid #ffd9a8; color: #7a4a00; }
.tkv-notice--ok { background: #e9f9f1; border: 1px solid #b7e7cd; color: #0b5c38; }
.tkv-notice--error { background: #fdecec; border: 1px solid #f6bcbc; color: #8a1f1f; }

.tkv-disclosure {
    margin: 18px 0 0;
    padding: 12px 14px;
    background: var(--tv-bg);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--tv-muted);
}
.tkv-disclosure__source { display: block; margin-top: 4px; font-weight: 700; }

.tkv-related { margin-top: 30px; }
.tkv-related h2 { color: var(--tv-navy); font-size: 20px; }

.tkv-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--tv-line);
    box-shadow: 0 -6px 20px #0b25451a;
}
.tkv-stickybar__title {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 14px;
    color: var(--tv-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- formulier ---------- */
.tkv-form { display: grid; gap: 14px; max-width: 760px; }
.tkv-form__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tkv-form label { display: block; font-weight: 700; font-size: 14px; color: var(--tv-ink); }
.tkv-form input[type="text"],
.tkv-form input[type="email"],
.tkv-form input[type="url"],
.tkv-form input[type="date"],
.tkv-form select,
.tkv-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid var(--tv-line);
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
.tkv-form textarea { min-height: 190px; resize: vertical; }
.tkv-form__hint { display: block; margin: 4px 0 0; font-size: 12.5px; color: var(--tv-muted); font-weight: 400; }
.tkv-form__hp { position: absolute; left: -9999px; }
.tkv-form__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
    .tkv-search__fields {
        grid-template-columns: minmax(0, 1.2fr) 1px minmax(0, 1fr) auto;
        align-items: end;
        gap: 14px;
    }
    .tkv-search__divider {
        display: block;
        align-self: stretch;
        width: 1px;
        margin-top: 18px;
        background: var(--tv-line);
    }
    .tkv-form__row--2 { grid-template-columns: 1fr 1fr; }
    .tkv-stickybar { display: none; }
}

@media (min-width: 1040px) {
    .tkv-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 24px; }
    .tkv .tkv-facets__summary { display: none; }
    .tkv-facets__wrap { position: sticky; top: var(--tkv-sticky-top); }
    .tkv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tkv-single__grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
    .tkv-apply { position: sticky; top: var(--tkv-sticky-top); }
}

@media (prefers-reduced-motion: reduce) {
    .tkv-card, .tkv-btn { transition: none; }
}
