.tsp {
    --tsp-deep: #003c4e;
    --tsp-ink: #1b1b1a;
    --tsp-teal: #22595f;
    --tsp-orange: #ea5d1c;
    --tsp-gold: #fbb908;
    --tsp-red: #e40f17;
    --tsp-paper: #fff;
    --tsp-soft: #eaf0f2;
    --tsp-edge: #c5d3d7;
    --tsp-muted: #405660;
    --tsp-corner: 4mm;
    box-sizing: border-box;
    color: var(--tsp-ink);
    font-family: Geogrotesque, "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    margin: 1.25rem auto;
    width: 100%;
    max-width: 1300px;
}

.tsp *, .tsp *::before, .tsp *::after { box-sizing: inherit; }
.tsp [hidden] { display: none !important; }
.tsp h2, .tsp h3, .tsp h4 {
    color: var(--tsp-deep);
    font-family: inherit;
    font-weight: 750;
    line-height: 1.12;
    margin: 0 0 .75rem;
}
.tsp h2 { font-size: clamp(1.9rem, 5.2vw, 3.3rem); letter-spacing: -.035em; }
.tsp h3 { font-size: clamp(1.3rem, 3vw, 1.55rem); }
.tsp h4 { font-size: 1.05rem; margin-top: 1.45rem; }
.tsp p { margin: 0 0 1rem; }
/* Native module buttons retain their own foreground and background styles. */
.tsp a:not(:is(.tsp-button,.tscan-button,.tscan-portal-screenbar__back,.tfl-pp-btn,.tfl-pp-card-action,.tfl-pp-guide-button,.tsf-tb-btn,.tsf-tb-guide-button,.tsf-tb-eval-reset-button,.tfe-btn)) {
    color: var(--tsp-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .2em;
}
.tsp :focus-visible { outline: 3px solid var(--tsp-teal); outline-offset: 3px; }

.tsp-hero {
    position: relative;
    display: flex;
    gap: 1.25rem 1.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--tsp-paper);
    border: 1px solid var(--tsp-edge);
    border-radius: var(--tsp-corner);
    margin-bottom: 1.35rem;
    padding: clamp(1.25rem, 4vw, 2.85rem);
    overflow: hidden;
}
.tsp-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: .32rem;
    content: "";
    background: linear-gradient(90deg, var(--tsp-gold), var(--tsp-orange) 65%, var(--tsp-red));
}
.tsp-hero-copy { flex: 1 1 16rem; min-width: 0; }
.tsp-hero p { max-width: 39ch; margin: 0; color: var(--tsp-muted); }
.tsp-wordmark { width: clamp(105px, 18vw, 165px); height: auto; margin: 0; }

.tsp-columns {
    display: grid;
    gap: 1.25rem;
    align-items: start;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}
.tsp-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tsp-panel, .tsp-aside {
    min-width: 0;
    background: var(--tsp-paper);
    border: 1px solid var(--tsp-edge);
    border-radius: var(--tsp-corner);
    padding: clamp(1rem, 3vw, 1.75rem);
}
.tsp-aside { background: var(--tsp-soft); border-color: transparent; }
.tsp-aside h3 { margin-bottom: .85rem; }
.tsp-steps { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; }
.tsp-steps li { padding-inline-start: .2rem; margin-bottom: .6rem; }
.tsp-steps li::marker { color: var(--tsp-teal); font-weight: 700; }
.tsp-muted, .tsp small { color: var(--tsp-muted); }
.tsp-login, .tsp-narrow { width: min(100%, 37rem); }
.tsp .tsp-login { margin-inline: auto; max-width: 100%; }

.tsp-field { display: block; margin: 0 0 .9rem; min-width: 0; }
.tsp-field > span, .tsp-login label { display: block; font-weight: 700; color: var(--tsp-deep); margin-bottom: .32rem; }
.tsp-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
.tsp .tsp-intake { max-width: 53rem; }
.tsp-intake-group { min-width: 0; margin: 0 0 1.35rem; padding: .65rem 0 0; border: 0; border-top: 1px solid var(--tsp-edge); }
.tsp-intake-group legend { color: var(--tsp-deep); font-weight: 750; font-size: 1.05rem; padding-right: .65rem; }
.tsp-intake-field { min-width: 0; }
.tsp-intake-field--wide { grid-column: 1 / -1; }
.tsp .tsp-field-error { color: #97251a; font-size: .9rem; margin: -.65rem 0 .8rem; }
.tsp-date-fields { display: flex; flex-wrap: wrap; }
.tsp-date-fields > .tsp-field { flex: 1 1 13em; }
.tsp label.tsp-field > :is(input, select, textarea),
.tsp .tsp-login input[type="text"], .tsp .tsp-login input[type="password"] {
    appearance: auto;
    /* Keep the theme's padding and border inside the field's column. */
    box-sizing: border-box !important;
    display: block;
    background: var(--tsp-paper);
    border: 1px solid #758f99;
    border-radius: .55rem;
    color: var(--tsp-ink);
    font: inherit;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 2.8rem;
    padding: .55rem .68rem;
    box-shadow: none;
}
.tsp .tsp-field textarea { resize: vertical; min-height: 5rem; }
.tsp .tsp-field input[readonly] { background: var(--tsp-soft); }
.tsp .tsp-field input[type="file"] { padding: .42rem; }
.tsp-checkbox { display: flex; align-items: center; gap: .45rem; margin-bottom: .9rem; }
.tsp form { margin: 0; }

.tsp .tsp-button, .tsp .tsp-login input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tsp-deep);
    border: 1px solid var(--tsp-deep);
    border-radius: .6rem;
    color: var(--tsp-paper);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.85rem;
    padding: .7rem 1rem;
    text-align: center;
    text-decoration: none;
    width: auto;
}
.tsp .tsp-button:hover, .tsp .tsp-login input[type="submit"]:hover { background: var(--tsp-teal); border-color: var(--tsp-teal); color: var(--tsp-paper); }
.tsp .tsp-button--secondary { background: var(--tsp-paper); color: var(--tsp-deep); }
.tsp .tsp-button--secondary:hover { background: var(--tsp-soft); color: var(--tsp-deep); }
.tsp-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; }
.tsp .tsp-mail-address { margin: .6rem 0 0; font-size: .9rem; color: var(--tsp-muted); overflow-wrap: anywhere; }
.tsp p.tsp-notice { border: 1px solid var(--tsp-edge); border-radius: .7rem; padding: .85rem 1rem; margin: 0 0 1.25rem; }
.tsp-notice--ok { background: var(--tsp-soft); border-inline-start: .35rem solid var(--tsp-teal) !important; }
.tsp-notice--error { background: #fff0e7; border-inline-start: .35rem solid #a72822 !important; }
.tsp-account-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 0 0 1rem; }
.tsp .tsp-welcome { font-size: 1.875rem; margin: 0; min-width: 0; overflow-wrap: anywhere; }

.tsp .tsp-pass {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1004 / 650;
    container-type: inline-size;
    background: var(--tsp-deep);
    border-radius: var(--tsp-corner);
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/* Give print renderers without aspect-ratio support the same 650 / 1004 sizing. */
.tsp .tsp-pass::before { content: ""; display: block; padding-top: 64.7410358566%; }
.tsp .tsp-pass::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--tsp-edge); border-radius: inherit; pointer-events: none; }
.tsp-pass-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.4%;
    background: var(--tsp-paper);
    color: var(--tsp-deep);
    font-weight: 750;
    font-size: .875rem;
}
.tsp-pass-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.3%; background: linear-gradient(90deg, var(--tsp-gold), var(--tsp-red)); }
.tsp-pass-header img { width: 26%; height: 81%; object-fit: contain; object-position: left center; margin: 0; }
.tsp-pass-body {
    position: absolute;
    top: 25.5%;
    bottom: 3.4%;
    left: 3.4%;
    right: 3.4%;
    display: flex;
    align-items: center;
    color: var(--tsp-paper);
}
.tsp-pass--with-photo .tsp-pass-body { right: 44.3%; }
.tsp-pass-body > div { width: 100%; min-width: 0; }
.tsp .tsp-pass-body p { overflow-wrap: anywhere; margin: 0 0 .2rem; }
.tsp .tsp-pass-photo {
    position: absolute;
    top: 20.5%;
    right: 3.4%;
    display: block;
    width: 37.5%;
    height: 72.4%;
    object-fit: cover;
    border-radius: .45rem;
    margin: 0;
}
.tsp .tsp-pass-label {
    color: var(--tsp-gold);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.15;
    text-transform: uppercase;
}
.tsp .tsp-pass-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 2.24em;
    font-weight: 750;
    font-size: 1rem;
    line-height: 1.12;
}
.tsp .tsp-pass-facts {
    margin: .3rem 0 0;
    font-size: .72rem;
    line-height: 1.23;
    overflow-wrap: anywhere;
}
.tsp-pass-facts > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-pass-facts > .tsp-pass-status { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 2.46em; white-space: normal; }
.tsp-pass-facts > div + div { margin-top: .14rem; }
.tsp .tsp-pass-facts dt { display: inline; font-weight: 750; }
.tsp .tsp-pass-facts dt::after { content: ": "; }
.tsp .tsp-pass-facts dd { display: inline; margin: 0; }

@supports (font-size: 1cqi) {
    .tsp-pass-header { font-size: clamp(.625rem, 3.2cqi, 1.15rem); }
    .tsp .tsp-pass-body p { margin-bottom: .8cqi; }
    .tsp .tsp-pass-photo { border-radius: 1.6cqi; }
    .tsp .tsp-pass-label { font-size: clamp(.55rem, 2.6cqi, .95rem); }
    .tsp .tsp-pass-name { font-size: clamp(.69rem, 5cqi, 1.75rem); }
    .tsp .tsp-pass-facts { margin-top: 1.2cqi; font-size: clamp(.55rem, 2.9cqi, 1rem); }
    .tsp-pass-facts > div + div { margin-top: .65cqi; }
}
.tsp-pass-history, .tsp-history { list-style: none; margin: 0; padding: 0; }
.tsp-pass-history li, .tsp-history li { border-top: 1px solid var(--tsp-edge); padding: .46rem 0; }
.tsp-pass-history strong { margin-inline-end: .45rem; }

.tsp-application-views { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.tsp .tsp-application-views a { display: inline-block; border: 1px solid var(--tsp-edge); border-radius: .5rem; padding: .35rem .65rem; }
.tsp .tsp-application-views a[aria-current="page"] { color: var(--tsp-paper); background: var(--tsp-deep); border-color: var(--tsp-deep); }
.tsp form.tsp-filter { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.15fr) minmax(0, 1.35fr) auto; align-items: end; gap: .6rem; margin-bottom: 1rem; }
.tsp-filter .tsp-field { margin: 0; }
.tsp-table-wrap { overflow-x: auto; }
.tsp-table { text-align: left; margin: 0; border-collapse: collapse; border: 0; width: 100%; }
.tsp-table th, .tsp-table td { border: 0; padding: .72rem; vertical-align: middle; overflow-wrap: anywhere; }
.tsp-table thead th { color: var(--tsp-deep); background: var(--tsp-soft); }
.tsp-table tbody tr + tr { border-top: 1px solid var(--tsp-edge); }
.tsp-table small { font-weight: 400; }
.tsp-meta { display: grid; gap: .6rem; margin: 0 0 1rem; }
.tsp-meta > div { display: grid; grid-template-columns: minmax(5.6rem, .6fr) minmax(0, 1fr); gap: .4rem; }
.tsp-meta dt { font-weight: 700; color: var(--tsp-deep); }
.tsp-meta dd { margin: 0; overflow-wrap: anywhere; }
.tsp-note { padding: .65rem .85rem; border-radius: .5rem; background: var(--tsp-soft); overflow-wrap: anywhere; }
.tsp-details { padding: .72rem 0; border-top: 1px solid var(--tsp-edge); }
.tsp-details summary { cursor: pointer; font-weight: 700; color: var(--tsp-deep); }

.tsp-dossier { container: tsp-dossier / inline-size; }
.tsp-dossier-toolbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1.25rem;
    margin-bottom: 1.25rem;
    padding: .75rem;
    background: var(--tsp-soft);
    border: 1px solid var(--tsp-edge);
    border-radius: .75rem;
}
.tsp-dossier-toolbar > a { padding-inline: .3rem; }
.tsp-dossier-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem; min-width: 0; }
.tsp-dossier-actions > :is(form, details) { max-width: 100%; }
.tsp .tsp-dossier-actions > form > button.tsp-button,
.tsp .tsp-dossier-actions > details > summary.tsp-button {
    /* Keep theme styles for summary and button from changing the toolbar height. */
    box-sizing: border-box !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.55rem !important;
    min-height: 2.55rem !important;
    margin: 0;
    padding: 0 .5rem !important;
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.2;
    white-space: nowrap;
}
.tsp-dossier-action > summary { gap: .55rem; list-style: none; }
.tsp-dossier-action > summary::-webkit-details-marker { display: none; }
.tsp-dossier-action > summary::after {
    flex: 0 0 auto;
    width: .45em;
    height: .45em;
    margin-top: -.2em;
    border-inline-end: .12em solid;
    border-block-end: .12em solid;
    content: "";
    transform: rotate(45deg);
}
.tsp .tsp-dossier-action[open] > summary { background: var(--tsp-deep); color: var(--tsp-paper); }
.tsp-dossier-action[open] > summary::after { margin-top: .2em; transform: rotate(225deg); }
.tsp-dossier-action[open] { flex: 1 1 100%; }
.tsp-dossier-action-form { margin-top: .45rem; }
.tsp-dossier-content { display: grid; gap: 1.25rem; }
.tsp-dossier-summary {
    --tsp-dossier-photo-width: 11.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: .85rem 1.5rem;
}
.tsp .tsp-dossier-summary > h3 { grid-column: 1; grid-row: 1; margin: 0; }
.tsp .tsp-dossier-photo {
    display: block;
    justify-self: start;
    width: var(--tsp-dossier-photo-width);
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin: 0;
    border-radius: .55rem;
}
.tsp .tsp-dossier-facts {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: .4rem 1.5rem;
    margin: 0;
}
.tsp-dossier-facts > div {
    display: flex;
    flex: 1 1 max(23rem, calc((100% - 1.5rem) / 2));
    min-width: 0;
}
.tsp-dossier-facts > .tsp-dossier-wide { flex-basis: 100%; flex-wrap: wrap; row-gap: .15rem; }
.tsp-dossier-facts dt { flex: 0 0 min(41%, 7rem); }
.tsp-dossier-facts dd { flex: 1; min-width: 0; }
.tsp-dossier-wide dd { flex-basis: 12rem; }
.tsp p.tsp-dossier-wait { margin: 1rem 0 0; }
.tsp .tsp-dossier-answers { margin: .8rem 0 0; }
.tsp-dossier-answers > div { display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.tsp-dossier-answers dt { flex: 0 1 max-content; min-width: min(100%, 14rem); max-width: 100%; }
.tsp-dossier-answers dd { flex: 1 1 14rem; min-width: 0; }

@container tsp-dossier (min-width: 40rem) {
    .tsp-dossier-summary--with-photo {
        grid-template-columns: minmax(0, 1fr) var(--tsp-dossier-photo-width);
        grid-template-rows: auto 1fr;
    }
    .tsp-dossier-summary--with-photo .tsp-dossier-photo { grid-column: 2; grid-row: 1 / span 2; }
    .tsp-dossier-summary--with-photo .tsp-dossier-facts { grid-column: 1; grid-row: 2; }
}
@container tsp-dossier (min-width: 45rem) {
    .tsp .tsp-dossier-actions > form > button.tsp-button,
    .tsp .tsp-dossier-actions > details > summary.tsp-button { min-width: 11.25rem; }
    .tsp-dossier-action[open] { flex: 0 1 auto; }
    .tsp-dossier-action-form {
        position: absolute;
        z-index: 2;
        inset-block-start: 100%;
        inset-inline-end: 0;
        width: min(100%, 36rem);
        box-shadow: 0 .5rem 1.5rem rgb(0 60 78 / 12%);
    }
}


.tsp .tsp-dossier-overview { display:grid; gap:1.25rem 1.5rem; align-items:start; }
.tsp .tsp-dossier-overview-main > h3 { margin:0; }
.tsp .tsp-dossier-overview-main > .tsp-muted { margin:.35rem 0 0; }
.tsp .tsp-dossier-facts--stacked { margin-top:1rem; }
.tsp .tsp-dossier-facts--stacked > div { flex-basis:100%; }
.tsp .tsp-dossier-pass-spotlight h4 { margin:0 0 .85rem; }
.tsp .tsp-dossier-pass-spotlight .tsp-pass, .tsp .tsp-dossier-pass-spotlight .tsp-dossier-photo { max-width:min(100%,27rem); }
.tsp .tsp-dossier-fonds-panel > .tsp-panel { margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.tsp .tsp-dossier-fonds-panel > .tsp-panel h3 { margin-top:0; }
@container tsp-dossier (min-width: 48rem) {
    .tsp .tsp-dossier-overview { grid-template-columns:minmax(0,1fr) minmax(18rem,27rem); }
    .tsp .tsp-dossier-pass-spotlight { justify-self:end; width:100%; }
}

@media (max-width: 45rem) {
    .tsp-columns, .tsp-dashboard { grid-template-columns: minmax(0, 1fr); }
    .tsp form.tsp-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 28rem) {
    .tsp-field-grid, .tsp form.tsp-filter { grid-template-columns: minmax(0, 1fr); }
    .tsp-hero { gap: .75rem; }
}
.tsp-print-page { width: min(34rem, 94vw); margin: 2rem auto; }
.tsp-print-page h1 { color: var(--tsp-deep); line-height: 1.1; font-size: 1.8rem; }

@media print {
    .tsp-print-page {
        width: 85.6mm;
        margin: 0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .tsp-print-controls { display: none !important; }
    .tsp .tsp-pass { border-radius: 2mm; }
    .tsp .tsp-pass-header { font-size: 10pt; }
    .tsp .tsp-pass-header img { width: 19mm; }
    .tsp .tsp-pass-name { font-size: 12pt; }
    .tsp .tsp-pass-label { font-size: 8pt; }
    .tsp .tsp-pass-facts { font-size: 7.7pt; }
}

/* Flevolands Talentenfonds */
.tsp-fonds-form{display:grid;gap:14px}.tsp-fonds-form h4{margin:23px 0 0;font-size:1.24rem}.tsp-fonds-form .tsp-field input:not([type="checkbox"]),.tsp-fonds-form .tsp-field select,.tsp-fonds-form .tsp-field textarea{max-width:100%;width:100%;box-sizing:border-box}.tsp-fonds-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}.tsp-fonds-results fieldset{border:1px solid #d5e3e9;border-radius:10px;padding:14px}.tsp-fonds-results legend{font-weight:bold;color:#003c4e;padding:0 6px}.tsp-fonds-status-row{border:1px solid #d5e3e9;border-radius:12px;padding:16px;margin:12px 0}.tsp-fonds-honeypot{position:absolute!important;width:1px;height:1px;overflow:hidden;left:-9999px}

/* Talentenfonds: compact two-column application and progressive results (v0.3.1). */
.tsp .tsp-fonds-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:20px;row-gap:14px}
.tsp .tsp-fonds-form > h4,.tsp .tsp-fonds-form > p,.tsp .tsp-fonds-form > .tsp-fonds-results,.tsp .tsp-fonds-form > .tsp-button{grid-column:1/-1}
.tsp .tsp-fonds-form > .tsp-field:has(textarea),.tsp .tsp-fonds-form > .tsp-field:has(input[type="checkbox"]){grid-column:1/-1}
.tsp .tsp-fonds-form .tsp-fonds-results{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:100%}
.tsp .tsp-fonds-form .tsp-fonds-results fieldset{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.tsp .tsp-fonds-form .tsp-fonds-results fieldset[hidden]{display:none!important}
.tsp .tsp-fonds-form .tsp-fonds-results fieldset legend{grid-column:1/-1}
@media(max-width:700px){.tsp .tsp-fonds-form{grid-template-columns:minmax(0,1fr)}.tsp .tsp-fonds-form .tsp-fonds-results fieldset{grid-template-columns:minmax(0,1fr)}}

/* 0.3.2: consolidated frontend management */
.tsp-management-tabs{display:flex;flex-wrap:wrap;gap:.6rem;border-bottom:2px solid var(--tsp-edge);margin:0 0 1.25rem}
.tsp .tsp-management-tabs a{display:inline-block;padding:.8rem 1.25rem;text-decoration:none;border:1px solid var(--tsp-edge);border-radius:.6rem .6rem 0 0;background:var(--tsp-paper);color:var(--tsp-deep)}
.tsp .tsp-management-tabs a[aria-current="page"]{background:var(--tsp-deep);color:#fff;border-color:var(--tsp-deep)}
.tsp .tsp-fonds-filters{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(12rem,2fr) auto;gap:.9rem;align-items:end;margin:1rem 0}
.tsp .tsp-fonds-filters .tsp-field{margin-bottom:0}
.tsp .tsp-fonds-filters .tsp-button{margin-bottom:0}
.tsp .tsp-fonds-review{max-width:44rem;margin-top:1rem}
.tsp .tsp-fonds-detail th{width:15rem}
@media(max-width:700px){.tsp .tsp-fonds-filters{grid-template-columns:minmax(0,1fr)}.tsp .tsp-fonds-detail th{width:auto}}

/* 0.3.4: pass management and privacy-preserving directory */
.tsp .tsp-manager-pass-preview { max-width: 34rem; }
.tsp .tsp-manager-pass-mail { max-width: 40rem; margin-top: 1rem; }
.tsp .tsp-manager-pass-mail form { margin-top: 1rem; }
.tsp .tsp-directory-preferences { margin-top: 1.25rem; }
.tsp .tsp-directory-choice { border-top: 1px solid var(--tsp-edge); padding: .7rem 0; }
.tsp .tsp-directory-choice h4 { margin: .4rem 0; }
.tsp .tsp-directory-choice form { max-width: 36rem; }
.tsp .tsp-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.tsp .tsp-directory-card { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--tsp-edge); border-radius: var(--tsp-corner); overflow: hidden; background: var(--tsp-deep); color: white; }
.tsp .tsp-directory-card header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: white; color: var(--tsp-deep); border-bottom: .25rem solid var(--tsp-gold); padding: .7rem 1rem; font-weight: bold; }
.tsp .tsp-directory-card header img { width: 100px; height: auto; margin: 0; }
.tsp .tsp-directory-card > div { padding: 1rem; }
.tsp .tsp-directory-card h3 { color: white; margin: .2rem 0 .5rem; }
.tsp .tsp-directory-card p { margin: 0 0 .25rem; }
.tsp .tsp-directory-card .tsp-directory-kicker { color: var(--tsp-gold); text-transform: uppercase; font-weight: 750; font-size: .8rem; }
.tsp .tsp-directory-caption { margin-top: 1rem; }

/* 0.3.5: frontend directory settings */
.tsp .tsp-directory-settings { margin-bottom: 1.25rem; }
.tsp .tsp-directory-state { display: inline-block; padding: .2rem .65rem; border: 1px solid var(--tsp-edge); border-radius: .45rem; background: var(--tsp-soft); color: var(--tsp-deep); }
.tsp .tsp-directory-state--on { color: #145e3a; border-color: #a8cbb8; background: #e9f4ed; }
.tsp .tsp-directory-toggle { border: 0; margin: 0; padding: 0; min-width: 0; }
.tsp .tsp-directory-toggle legend { font-weight: 700; color: var(--tsp-deep); margin-bottom: .35rem; }
.tsp .tsp-directory-toggle label { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem .4rem 0; cursor: pointer; }
.tsp .tsp-directory-toggle input { appearance: auto; accent-color: var(--tsp-deep); width: 1.15rem; height: 1.15rem; margin: 0; }
.tsp .tsp-directory-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin: 1.2rem 0 0; }
.tsp .tsp-directory-summary > div { padding: .8rem 1rem; background: var(--tsp-soft); border-radius: .6rem; }
.tsp .tsp-directory-summary dt { font-size: .9rem; color: var(--tsp-deep); }
.tsp .tsp-directory-summary dd { font-weight: 750; font-size: 1.5rem; color: var(--tsp-deep); margin: .25rem 0 0; }

/* 0.3.6: Connect brand and manager dashboard. Based on Topsport Flevoland huisstijl, pp. 2-5, 8. */
.tsp { --tsp-green: #86bc24; }
.tsp-hero::after { background: linear-gradient(90deg,var(--tsp-gold),var(--tsp-red)); }
.tsp .tsp-wordmark--business { width: clamp(150px, 25vw, 230px); }
.tsp .tsp-connect-panel + .tsp-panel, .tsp .tsp-panel + .tsp-connect-panel, .tsp .tsp-care + .tsp-care { margin-top: 1.25rem; }
.tsp .tsp-connect-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: .9rem; margin: 1.2rem 0; }
.tsp a.tsp-connect-stat { display:flex; flex-direction:column; gap:.5rem; align-items:flex-start; background:var(--tsp-soft); color:var(--tsp-deep); border:1px solid var(--tsp-edge); border-radius:var(--tsp-corner); padding:1.1rem 1.3rem; text-decoration:none; min-width:0; }
.tsp a.tsp-connect-stat:hover { border-color:var(--tsp-deep); text-decoration:underline; }
.tsp-connect-stat strong { font-size:2.3rem; line-height:1; color:var(--tsp-deep); }
.tsp-connect-stat span { font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
.tsp .tsp-connect-panel form.tsp-filter { grid-template-columns:minmax(0,1fr) auto; }
.tsp .tsp-connect-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem 1.5rem; }
.tsp .tsp-connect-facts > div { grid-template-columns:1fr; gap:.15rem; padding:.65rem 0; border-bottom:1px solid var(--tsp-edge); }
.tsp .tsp-care { margin-top:1.25rem; }
.tsp .tsp-care table { min-width: 40rem; }
.tsp .tsp-care table td { vertical-align:top; }
.tsp .tsp-care table td:nth-child(4) { min-width:12rem; white-space:normal; overflow-wrap:anywhere; }
.tsp .tsp-care form { max-width:100%; }
.tsp .tsp-care label { display:inline-flex; flex-direction:column; gap:.3rem; max-width:100%; color:var(--tsp-deep); margin:.15rem .9rem .5rem 0; }
.tsp .tsp-care input:not([type=hidden]), .tsp .tsp-care select, .tsp .tsp-care textarea { display:block; max-width:100%; min-height:2.7rem; padding:.55rem .7rem; border:1px solid #758f99; border-radius:.55rem; background:white; color:var(--tsp-ink); font:inherit; box-sizing:border-box; }
.tsp .tsp-care textarea, .tsp .tsp-care input[type=text] { width:min(100%,40rem); }
.tsp .tsp-care textarea { resize:vertical; }
.tsp .tsp-care .button-link { font:inherit; color:var(--tsp-deep); text-decoration:underline; background:transparent; border:0; cursor:pointer; }
.tsp .tsp-directory-state--on { color:var(--tsp-deep); background:#e7f2d3; border-color:var(--tsp-green); }
@media(max-width:700px){.tsp .tsp-connect-stats,.tsp .tsp-connect-facts,.tsp .tsp-connect-panel form.tsp-filter { grid-template-columns:minmax(0,1fr); } .tsp .tsp-care label { display:flex; margin-right:0; }}

/* 0.3.6.1: active passes first, compact directory settings below the list. */
.tsp .tsp-active-pass-list .tsp-directory-summary { margin: 0 0 1.25rem; }
.tsp .tsp-directory-settings { margin: 1.25rem 0 0; padding: .8rem clamp(1rem, 3vw, 1.75rem); }
.tsp .tsp-directory-settings-disclosure > summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem;
    list-style: none; cursor: pointer; color: var(--tsp-deep); padding: .25rem 0;
}
.tsp .tsp-directory-settings-disclosure > summary::-webkit-details-marker { display: none; }
.tsp .tsp-directory-settings-disclosure > summary::before {
    content: ""; width: .55rem; height: .55rem; flex: 0 0 .55rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); margin: 0 .15rem;
}
.tsp .tsp-directory-settings-disclosure[open] > summary::before { transform: rotate(45deg); }
.tsp .tsp-directory-settings-label { font-weight: 750; flex: 1 1 12rem; }
.tsp .tsp-directory-settings-disclosure:not([open]) > .tsp-directory-settings-content { display: none; }
.tsp .tsp-directory-settings-content { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--tsp-edge); }
.tsp .tsp-directory-settings > .tsp-notice { margin: .85rem 0 0; }


/* 0.3.6.3: active pass visible in central athlete dossier. */
.tsp .tsp-connect-dossier-overview { display:grid; gap:1.25rem 1.5rem; align-items:start; }
.tsp .tsp-connect-dossier-main > h3 { margin-bottom:.35rem; }
.tsp .tsp-connect-dossier-pass h4 { margin:0 0 .8rem; }
.tsp .tsp-connect-dossier-pass .tsp-pass { max-width:min(100%,27rem); }
@media(min-width:900px){ .tsp .tsp-connect-dossier-overview { grid-template-columns:minmax(0,1fr) minmax(18rem,27rem); } }

/* Connect entry and organisation module */
.tsp .tsp-connect-entry { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1.25rem; align-items:stretch; }
.tsp .tsp-connect-entry .tsp-panel { display:flex; flex-direction:column; align-items:flex-start; }
.tsp .tsp-connect-entry .tsp-button { margin-top:auto; }
.tsp .tsp-club-contact { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; padding:0.8rem 0; border-bottom:1px solid var(--tsp-edge); }
.tsp .tsp-club-contact p { margin:0; overflow-wrap:anywhere; }
.tsp .tsp-club-contact form { margin:0; }
.tsp .tsp-connect-panel details.tsp-panel { margin-top:1rem; }
.tsp .tsp-connect-panel details summary { cursor:pointer; font-weight:700; color:var(--tsp-deep); margin-bottom:0.6rem; }


/* 0.3.8: Mijn Topsportvereniging. */
.tsp .tsp-club-heading h3 { margin:0 0 .35rem; }
.tsp .tsp-club-heading p { margin:0; color:var(--tsp-muted); }
.tsp .tsp-club-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.85rem; margin:1rem 0 1.25rem; }
.tsp .tsp-club-tile { display:flex; flex-direction:column; gap:.4rem; min-width:0; padding:1rem 1.1rem; border:1px solid var(--tsp-edge); border-radius:var(--tsp-corner); background:var(--tsp-soft); color:var(--tsp-deep); overflow-wrap:anywhere; }
.tsp a.tsp-club-tile { text-decoration:none; }
.tsp a.tsp-club-tile:hover { border-color:var(--tsp-deep); text-decoration:underline; }
.tsp .tsp-club-tile h4,.tsp .tsp-club-tile strong { font-size:1.1rem; line-height:1.25; margin:0; color:var(--tsp-deep); }
.tsp .tsp-club-tile span { font-size:.95rem; line-height:1.45; }
.tsp .tsp-club-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1.5rem; margin:0 0 1.25rem; }
.tsp .tsp-club-facts > div { padding:.6rem 0; border-bottom:1px solid var(--tsp-edge); min-width:0; }
.tsp .tsp-club-facts dt { color:var(--tsp-muted); font-size:.9rem; }
.tsp .tsp-club-facts dd { margin:.2rem 0 0; font-weight:600; overflow-wrap:anywhere; }
.tsp .tsp-connect-panel form.tsp-club-filter { grid-template-columns:minmax(0,2fr) minmax(8rem,1fr) auto; }
.tsp .tsp-club-contact-actions { display:flex; align-items:end; flex-wrap:wrap; gap:.5rem; }
.tsp .tsp-club-contact-actions form:first-child { display:flex; align-items:end; flex-wrap:wrap; gap:.5rem; }
.tsp .tsp-club-contact-actions .tsp-field { margin:0; }
@media(max-width:700px) { .tsp .tsp-club-facts,.tsp .tsp-connect-panel form.tsp-club-filter { grid-template-columns:minmax(0,1fr); } .tsp .tsp-club-contact-actions { align-items:stretch; } }


/* 0.3.25: full-width dossier tabs and calmer action spacing in club details. */
.tsp .tsp-club-tabs {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:.55rem;
    align-items:end;
}
.tsp .tsp-club-tabs a {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:3.2rem;
    padding:.85rem .75rem;
    text-align:center;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
}
.tsp .tsp-club-profile-actions,
.tsp .tsp-club-archive-actions {
    display:flex;
    align-items:center;
    gap:.75rem;
}
.tsp .tsp-club-profile-actions { margin-top:1.35rem; }
.tsp .tsp-club-divider { margin:1.6rem 0 1.3rem; }
.tsp .tsp-club-archive-note { margin:0 0 1rem; }
.tsp .tsp-club-archive-actions { margin-top:.35rem; }
@media (max-width:1100px) {
    .tsp .tsp-club-tabs { grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr)); }
}
@media (max-width:700px) {
    .tsp .tsp-club-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tsp .tsp-club-profile-actions,
    .tsp .tsp-club-archive-actions { align-items:stretch; }
    .tsp .tsp-club-profile-actions .tsp-button,
    .tsp .tsp-club-archive-actions .tsp-button { width:100%; }
}

/* 0.3.13: one overview header style for all four Connect club management tabs.
   Keep the native module markup/actions and scope overrides to the staff portal. */
.tsp .tsp-club-module { display:flow-root; min-width:0; }
.tsp .tsp-club-module > :is(.tfl-pp-overview,.tsf-tb-overview-wrap,.tscan-portal) {
    width:100%; max-width:none; margin:0;
}
.tsp .tsp-club-module .tsp-club-register {
    padding:0; border-radius:15px; border-color:#d8e2e5;
    box-shadow:0 18px 55px rgba(0,60,78,.10);
}
.tsp .tsp-club-module .tsp-club-register-body { padding:20px 36px 28px; }
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) {
    display:flex; flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:nowrap;
    position:relative; isolation:isolate; overflow:hidden; box-sizing:border-box;
    width:100%; min-height:210px; gap:24px; margin:0; padding:36px 36px 32px;
    background:linear-gradient(135deg,#fff 0%,#fff 66%,#fff8e9 100%);
    color:#003c4e; border:1px solid #d8e2e5; border-radius:15px;
    font-family:Geogrotesque,"Geo Grotesque",Arial,Helvetica,sans-serif;
    font-size:16px; line-height:1.55; box-shadow:0 10px 28px rgba(0,60,78,.07);
}
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header) {
    border:0; border-radius:14px 14px 0 0; box-shadow:none;
}
.tsp .tsp-club-module :is(.tsf-tb-overview-heading,.tscan-portal__header) { margin-bottom:20px; }
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header)::before { content:none; }
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header)::after {
    content:""; position:absolute; z-index:0; inset:auto -80px -105px auto;
    width:310px; height:150px; border-radius:50%; border:12px solid rgba(234,93,28,.10);
    background:none; transform:rotate(-9deg); pointer-events:none;
}
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) > div {
    position:relative; z-index:1; min-width:0;
}
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) > div:first-child {
    flex:1 1 18rem; max-width:none; align-self:flex-start;
}
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) h2 {
    color:#003c4e; font-family:inherit; font-size:clamp(27px,3.2vw,36px); font-weight:750;
    line-height:1.16; letter-spacing:-.025em; margin:0 0 22px; overflow-wrap:break-word;
}
.tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) p {
    color:#53677e; font-family:Arial,Helvetica,sans-serif; font-size:16px; font-weight:400;
    line-height:1.5; margin:0; max-width:none;
}
.tsp .tsp-club-module :is(.tsp-club-overview-eyebrow,.tfl-pp-overview-header .tfl-pp-eyebrow,.tsf-tb-overview-heading .tsf-tb-kicker,.tscan-portal__header .tscan-public__brand) {
    display:block; font-family:Arial,Helvetica,sans-serif; color:#c84c16; font-size:13px; font-weight:800;
    line-height:1.4; text-transform:uppercase; letter-spacing:1.3px; margin:0 0 10px;
}
/* The logo already appears immediately above the tab navigation. The scan's native
   brand label becomes the eyebrow here; standalone scans keep their original logo. */
.tsp .tsp-club-module .tscan-portal__header .tscan-public__brand img { display:none; }
.tsp .tsp-club-module .tscan-portal__header .tscan-public__brand span { padding:0; border:0; color:inherit; font:inherit; }
.tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) {
    display:flex; flex:0 1 auto; flex-wrap:wrap; align-items:center; justify-content:flex-end;
    gap:10px; width:auto; max-width:56%; margin:0;
}
.tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) form { margin:0; width:auto; }
.tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) :is(a,button) {
    display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
    width:auto!important; min-width:0!important; max-width:100%!important; min-height:44px!important; height:auto!important; max-height:none!important; padding:12px 20px!important;
    background:linear-gradient(110deg,#ffb900,#f59a00)!important; color:#1b1b1a!important;
    border:1px solid transparent!important; border-radius:7px!important; box-shadow:none!important;
    font:700 14px/1.35 Arial,Helvetica,sans-serif!important; text-align:center; white-space:normal!important;
    text-decoration:none!important; text-transform:none; letter-spacing:0; cursor:pointer; transform:none!important;
}
.tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) :is(a,button):hover {
    background:#e99400!important; color:#1b1b1a!important;
}
.tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) :is(a,button):focus-visible {
    outline:3px solid #003c4e!important; outline-offset:3px!important;
}
@media(max-width:800px) {
    .tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) {
        flex-direction:column; align-items:flex-start; justify-content:center; min-height:0; gap:20px; padding:26px;
    }
    .tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) > div:first-child { flex:0 1 auto; width:100%; }
    .tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) { justify-content:flex-start; max-width:100%; width:100%; }
    .tsp .tsp-club-module .tsp-club-register-body { padding:20px 26px 24px; }
}
@media(max-width:480px) {
    .tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) { padding:22px 20px; }
    .tsp .tsp-club-module :is(.tsp-club-overview-header,.tfl-pp-overview-header,.tsf-tb-overview-heading,.tscan-portal__header) h2 { margin-bottom:12px; }
    .tsp .tsp-club-module :is(.tsp-club-overview-actions,.tfl-pp-overview-header-actions,.tsf-tb-overview-heading-actions,.tscan-portal__header-actions) :is(a,button,form) { width:100%!important; }
    .tsp .tsp-club-module .tsp-club-register-body { padding:18px 20px 22px; }
}

/* Bijeenkomsten & evaluaties: shared Connect look, scoped to employee module. */
.tsp .tsp-events-module .tfe-shell { --tfe-petrol:#003c4e; --tfe-orange:#ea5d1c; --tfe-yellow:#fbb908; --tfe-soft:#f5f8f9; --tfe-line:#c5d3d7; width:100%; max-width:none; padding:0; margin:0; font-family:inherit; }
.tsp .tsp-events-module .tfe-connect-toolbar { background:#fffaf1; border:1px solid #c5d3d7; color:#003c4e; border-radius:15px; padding:20px 28px; margin:0 0 20px; }
.tsp .tsp-events-module .tfe-connect-toolbar .tfe-brand { display:none; }
.tsp .tsp-events-module .tfe-toolbar-actions { justify-content:flex-end; width:100%; }
.tsp .tsp-events-module .tfe-btn { background:linear-gradient(110deg,#fbb908,#f59b00); color:#1b1b1a!important; border-radius:7px; border:0; padding:12px 17px; min-height:44px; font-family:inherit; font-weight:600; text-decoration:none!important; }
.tsp .tsp-events-module .tfe-btn-secondary { background:#003c4e; color:#fff!important; }
.tsp .tsp-events-module .tfe-pagehead { padding:24px 28px; background:linear-gradient(115deg,#fff 58%,#fff8e9); border:1px solid #c5d3d7; border-radius:15px; align-items:center; }
.tsp .tsp-events-module .tfe-pagehead h1 { color:#003c4e; font-family:inherit; font-size:clamp(1.55rem,3vw,2rem); line-height:1.2; margin:0; }
.tsp .tsp-events-module .tfe-pagehead p { color:#405660; }
@media(max-width:760px) { .tsp .tsp-events-module .tfe-pagehead { flex-direction:column; align-items:flex-start; padding:20px; } .tsp .tsp-events-module .tfe-toolbar-actions { justify-content:flex-start; } .tsp .tsp-events-module .tfe-connect-toolbar { padding:16px; } }

/* 0.3.18: central employee rights. The later media rule also fixes the previous grid cascade. */
.tsp .tsp-connect-entry .tsp-panel h3 { max-width:100%; overflow-wrap:anywhere; }
@media(max-width:700px){ .tsp .tsp-connect-entry { grid-template-columns:minmax(0,1fr); } }
.tsp .tsp-staff-search { display:flex; flex-wrap:wrap; gap:.75rem; align-items:flex-end; margin:1.1rem 0; }
.tsp .tsp-staff-search .tsp-field { flex:1 1 18rem; margin:0; }
.tsp .tsp-staff-search > a { align-self:center; }
.tsp .tsp-staff-scroll { max-width:100%; }
.tsp .tsp-staff-table { min-width:49rem; font-size:.91rem; }
.tsp .tsp-staff-table th, .tsp .tsp-staff-table td { padding:.65rem .4rem; }
.tsp .tsp-staff-table tbody th { text-align:left; font-weight:normal; min-width:10rem; max-width:16rem; }
.tsp .tsp-staff-table tbody th small { display:block; margin-top:.18rem; overflow-wrap:anywhere; }
.tsp .tsp-staff-table th:not(:first-child),.tsp .tsp-staff-table td { text-align:center; }
.tsp .tsp-staff-table input[type="checkbox"] { appearance:auto; accent-color:var(--tsp-deep); width:1.25rem; height:1.25rem; margin:0; cursor:pointer; }
.tsp .tsp-staff-table input[type="checkbox"]:disabled { cursor:default; }
.tsp .tsp-staff-table .tsp-button { font-size:.9rem; padding:.55rem .7rem; min-height:2.5rem; }
.tsp .tsp-staff-pagination { display:flex; gap:1rem; justify-content:center; align-items:center; margin:1rem 0; }
.tsp .tsp-staff-footnote { font-size:.88rem; margin:1rem 0 0; }


/* 0.3.19 - shared 1300px content width and readable embedded modules.
   Do not enlarge the theme, login forms, pass previews or printed passes. */
.tsp :is(.tfl-pp-shell,.tsf-tb-wrap,.tsf-tb-eval-dashboard,.tsf-tb-eval-form,.tscan-portal,.tscan-public,.tscan-portal-questionnaire,.tscan-portal-questionnaire__back,.tfe-shell) {
    width:100%; max-width:100%; min-width:0; margin-inline:auto;
}
.tsp .tsp-intake { max-width:100%; }

/* Restore the scan module's light foreground on its dark action buttons.
   The orange overview-header controls keep their more specific shared style. */
.tsp .tscan-portal .tscan-button--primary { color:#fff!important; }
.tsp .tscan-portal .tscan-button { text-decoration:none; }
.tsp .tscan-portal :is(.tscan-portal-screenbar h2,.tscan-public__header h2) { color:#fff; }
.tsp .tscan-portal a.tscan-portal-screenbar__back { color:#fff; }
.tsp .tscan-portal a.tscan-portal-screenbar__back:hover,
.tsp .tscan-portal a.tscan-portal-screenbar__back:focus-visible { color:var(--tscan-brand-yellow,#fbb908); }

/* Fit the seven overview columns in the available module width. */
.tsp .tscan-portal-table-wrap { max-width:100%; min-width:0; container:tscan-connect-table / inline-size; }
.tsp .tscan-portal-table { width:100%; table-layout:fixed; }
.tsp .tscan-portal-table :is(th,td) { padding:12px 9px; overflow-wrap:anywhere; white-space:normal; }
.tsp .tscan-portal-table__actions { min-width:0; text-align:left!important; white-space:normal; }
.tsp .tscan-portal-progress { max-width:100%; }
.tsp .tscan-portal-actions-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; align-items:stretch; justify-content:stretch; }
.tsp .tscan-portal-actions-group .tscan-button {
    width:100%; min-width:0; max-width:100%; min-height:38px; height:auto; margin:0;
    padding:8px 9px; font-size:13px; text-align:center; white-space:normal; overflow-wrap:anywhere;
}
.tsp .tscan-portal-actions-group .tscan-button--primary { grid-column:1/-1; }
@media(min-width:901px) {
    .tsp .tscan-portal-table th:nth-child(1) { width:17%; }
    .tsp .tscan-portal-table th:nth-child(2) { width:14%; }
    .tsp .tscan-portal-table th:nth-child(3) { width:12%; }
    .tsp .tscan-portal-table th:nth-child(4) { width:13%; }
    .tsp .tscan-portal-table th:nth-child(5) { width:10%; }
    .tsp .tscan-portal-table th:nth-child(6) { width:10%; }
    .tsp .tscan-portal-table th:nth-child(7) { width:24%; }
}
/* Card layout also when a narrow theme column constrains a desktop viewport. */
@container tscan-connect-table (max-width:940px) {
    .tsp .tscan-portal-table,
    .tsp .tscan-portal-table tbody,
    .tsp .tscan-portal-table tr,
    .tsp .tscan-portal-table td { display:block; width:100%; }
    .tsp .tscan-portal-table thead { position:absolute; overflow:hidden; width:1px; height:1px; clip:rect(0 0 0 0); white-space:nowrap; }
    .tsp .tscan-portal-table tr { margin-bottom:15px; padding:14px; border:1px solid var(--tscan-border); border-radius:10px; }
    .tsp .tscan-portal-table td { padding:9px 0; }
    .tsp .tscan-portal-table td::before { display:block; margin-bottom:4px; content:attr(data-label); color:var(--tscan-muted); font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
    .tsp .tscan-portal-table td:last-child { border-bottom:0; }
}
@container tscan-connect-table (max-width:500px) {
    .tsp .tscan-portal-actions-group { grid-template-columns:minmax(0,1fr); }
}
/* Fallback for browsers without container queries. */
@media(max-width:900px) {
    .tsp .tscan-portal-table td { display:block; padding:9px 0; }
    .tsp .tscan-portal-table td::before { display:block; margin-bottom:4px; }
}
@media(max-width:680px) {
    .tsp .tscan-portal-actions-group { grid-template-columns:minmax(0,1fr); }
    .tsp .tscan-portal-card { padding:clamp(12px,3vw,20px); }
}

/* 0.3.20: seasonal athlete-club relations */
.tsp .tsp-relation-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:flex-start; }
.tsp .tsp-relation-actions form { margin:0; }
.tsp .tsp-relation-result { border-top:1px solid var(--tsp-edge); padding:.85rem 0; margin-top:.65rem; overflow-wrap:anywhere; }
.tsp .tsp-relations-table td { vertical-align:top; overflow-wrap:anywhere; }
.tsp .tsp-relations-table td:last-child { width:36%; }
.tsp .tsp-relation-form .tsp-checkbox { margin:.6rem 0; }
@media(max-width:700px) { .tsp .tsp-relations-table td:last-child { width:auto; } .tsp .tsp-relation-actions { flex-direction:column; } }

/* 0.3.23: a distinct first-level navigation for the four club modules.
   Dossier tabs retain their existing tsp-management-tabs presentation. */
.tsp .tsp-club-primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    padding: .65rem;
    margin: 0 0 1.5rem;
    background: var(--tsp-deep);
    border-radius: .8rem;
    align-items: stretch;
    min-width: 0;
}
.tsp .tsp-club-primary-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 3.5rem;
    padding: .85rem .6rem;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: .5rem;
    background: transparent;
    color: var(--tsp-paper);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.tsp .tsp-club-primary-nav > a:hover {
    background: var(--tsp-teal);
    color: var(--tsp-paper);
    border-color: var(--tsp-paper);
    text-decoration: none;
}
.tsp .tsp-club-primary-nav > a[aria-current="page"],
.tsp .tsp-club-primary-nav > a[aria-current="page"]:hover {
    background: var(--tsp-gold);
    color: var(--tsp-deep);
    border-color: var(--tsp-gold);
    text-decoration: none;
}
.tsp .tsp-club-primary-nav > a:focus-visible {
    outline: 3px solid var(--tsp-paper);
    outline-offset: 2px;
}
@media (max-width: 850px) {
    .tsp .tsp-club-primary-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .tsp .tsp-club-primary-nav { grid-template-columns: minmax(0, 1fr); }
    .tsp .tsp-club-primary-nav > a { min-height: 3rem; }
}


/* 0.3.26: dossier hero on all association tabs + more breathing room in the data form. */
.tsp .tsp-management-tabs.tsp-club-tabs { margin: 0 0 1.35rem; }
.tsp .tsp-club-dossier-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.4rem;
    margin: 0 0 1.75rem;
    padding: 1.35rem 1.55rem 1.55rem;
    background: var(--tsp-deep);
    border-radius: .95rem;
    border-bottom: 4px solid var(--tsp-gold);
    color: #fff;
    overflow: hidden;
}
.tsp .tsp-club-dossier-hero::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -2.5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    border: 10px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.tsp .tsp-club-dossier-hero > div { min-width: 0; }
.tsp .tsp-club-dossier-kicker {
    display: block;
    margin: 0 0 .45rem;
    color: rgba(255,255,255,.78);
    font-size: .84rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tsp .tsp-club-dossier-hero h2 {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3rem);
}
.tsp .tsp-club-dossier-hero p {
    margin: 0;
    max-width: 44rem;
    color: rgba(255,255,255,.88);
}
.tsp .tsp-club-dossier-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 2.4rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: rgba(251,185,8,.16);
    border: 1px solid rgba(251,185,8,.42);
    color: #f7f2db;
    font-weight: 700;
    white-space: nowrap;
}
.tsp .tsp-club-profile-actions { margin: 1.55rem 0 1.4rem; }
.tsp .tsp-club-divider { margin: 1.95rem 0 1.55rem; }
.tsp .tsp-club-archive-note { margin: 0 0 1.15rem; }
.tsp .tsp-club-archive-actions { margin-top: .85rem; }
@media (max-width: 760px) {
    .tsp .tsp-club-dossier-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem 1.15rem 1.3rem;
    }
}
