/*
 * Wedstrijdteam: the Bleau Competition Team look on top of Pico.
 * Colours come from the team gear: the purple hoodie, the cream print on it, the charcoal t-shirt and the orange of
 * harness and helmet straps. The climbing-hold colours (red, yellow, green, blue) are only for small playful accents.
 * Every Pico component picks the colours up through its own variables, so templates need no theme classes.
 */

:root {
    --wt-purple: #5d2a96;
    --wt-purple-dark: #46207a;
    --wt-purple-ink: #3b1966;
    --wt-cream: #f1e9da;
    --wt-charcoal: #3a3b45;
    --wt-orange: #f07d1a;
    --wt-hold-red: #e5484d;
    --wt-hold-yellow: #f5c518;
    --wt-hold-green: #2fa84f;
    --wt-hold-blue: #2f6fd6;
    --wt-hold-stripe: linear-gradient(90deg,
        var(--wt-orange) 0 20%, var(--wt-hold-yellow) 20% 40%, var(--wt-hold-green) 40% 60%,
        var(--wt-hold-blue) 60% 80%, var(--wt-hold-red) 80% 100%);
    --wt-tabbar-height: 4rem;
}

/* Light (Pico's own selector, so these win over its defaults). */
[data-theme=light],
:root:not([data-theme=dark]) {
    --pico-font-family-sans-serif: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, "Segoe UI", Roboto, sans-serif, var(--pico-font-family-emoji);
    --pico-border-radius: 0.75rem;
    --pico-font-weight: 400;
    --pico-background-color: #faf6ef;
    --pico-color: #2c2a33;
    --pico-muted-color: #6b6676;
    --pico-muted-border-color: #e7dfd1;
    --pico-h1-color: var(--wt-purple-ink);
    --pico-h2-color: var(--wt-purple-ink);
    --pico-h3-color: #2c2a33;
    --pico-primary: var(--wt-purple);
    --pico-primary-background: var(--wt-purple);
    --pico-primary-border: var(--wt-purple);
    --pico-primary-underline: rgba(93, 42, 150, 0.45);
    --pico-primary-hover: var(--wt-purple-dark);
    --pico-primary-hover-background: var(--wt-purple-dark);
    --pico-primary-hover-border: var(--wt-purple-dark);
    --pico-primary-hover-underline: var(--wt-purple-dark);
    --pico-primary-focus: rgba(93, 42, 150, 0.3);
    --pico-primary-inverse: #fff;
    --pico-secondary: var(--wt-charcoal);
    --pico-secondary-background: var(--wt-charcoal);
    --pico-secondary-border: var(--wt-charcoal);
    --pico-secondary-underline: rgba(58, 59, 69, 0.45);
    --pico-secondary-hover: #24252c;
    --pico-secondary-hover-background: #24252c;
    --pico-secondary-hover-border: #24252c;
    --pico-secondary-focus: rgba(58, 59, 69, 0.25);
    --pico-secondary-inverse: #fff;
    --pico-card-background-color: #fff;
    --pico-card-border-color: #ece4d6;
    --pico-card-sectioning-background-color: #f7f2fc;
    --pico-card-box-shadow: 0 1px 0 rgba(58, 59, 69, 0.04), 0 6px 20px -8px rgba(59, 25, 102, 0.18);
    --pico-form-element-background-color: #fff;
    --pico-form-element-border-color: #d8cfbf;
    --pico-del-color: #b3261e;
    --wt-header-background: var(--wt-purple);
    --wt-header-color: var(--wt-cream);
    --wt-tag-background: #f1ebe0;
    --wt-tag-color: #4a4752;
    --wt-tag-strong-background: #ece2f8;
    --wt-tag-strong-color: var(--wt-purple-ink);
    --wt-tag-warning-background: #fde3e1;
    --wt-tag-warning-color: #9c2019;
    --wt-proposed: var(--wt-orange);
    --wt-treffer-background: #f6e7a8;
    --wt-treffer-color: #1d1a22;
}

/* Dark: deep purple-charcoal instead of grey, the purple lifted so it stays readable. */
@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --pico-font-family-sans-serif: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, "Segoe UI", Roboto, sans-serif, var(--pico-font-family-emoji);
        --pico-border-radius: 0.75rem;
        --pico-background-color: #16131c;
        --pico-color: #ece8f2;
        --pico-muted-color: #a8a1b4;
        --pico-muted-border-color: #332b3f;
        --pico-h1-color: #e3d4fb;
        --pico-h2-color: #e3d4fb;
        --pico-h3-color: #ece8f2;
        --pico-primary: #c8acf7;
        --pico-primary-background: #7b47c7;
        --pico-primary-border: #7b47c7;
        --pico-primary-underline: rgba(200, 172, 247, 0.5);
        --pico-primary-hover: #dccaf9;
        --pico-primary-hover-background: #8d5bd9;
        --pico-primary-hover-border: #8d5bd9;
        --pico-primary-hover-underline: #dccaf9;
        --pico-primary-focus: rgba(200, 172, 247, 0.35);
        --pico-primary-inverse: #fff;
        --pico-secondary: #c9c6d2;
        --pico-secondary-background: #4a4a57;
        --pico-secondary-border: #4a4a57;
        --pico-secondary-hover-background: #5a5a69;
        --pico-secondary-hover-border: #5a5a69;
        --pico-secondary-inverse: #fff;
        --pico-card-background-color: #211c2a;
        --pico-card-border-color: #2f2839;
        --pico-card-sectioning-background-color: #2a2335;
        --pico-card-box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
        --pico-form-element-background-color: #1c1824;
        --pico-form-element-border-color: #3d3449;
        --pico-del-color: #f2837b;
        --wt-header-background: #2e1650;
        --wt-header-color: var(--wt-cream);
        --wt-tag-background: #2c2636;
        --wt-tag-color: #d4cfdc;
        --wt-tag-strong-background: #3a2a55;
        --wt-tag-strong-color: #e3d4fb;
        --wt-tag-warning-background: #4a2222;
        --wt-tag-warning-color: #f6a8a1;
        --wt-proposed: #f5934a;
        --wt-treffer-background: #6b5a12;
        --wt-treffer-color: #fff7d6;
    }
}

/* Type: rounded and a bit bold, like the print on the hoodie. */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
}

h1::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 0.35rem;
    margin-top: 0.4rem;
    border-radius: 1rem;
    background: var(--wt-hold-stripe);
}

/* Buttons: pill-shaped and bold. */
button,
[role="button"],
input[type="submit"] {
    border-radius: 2rem;
    font-weight: 700;
}

article {
    border: 1px solid var(--pico-card-border-color);
    border-radius: 1rem;
}

/* Header: purple bar, hold-coloured stripe underneath. */
.wt-header {
    background: var(--wt-header-background);
    color: var(--wt-header-color);
    margin-bottom: calc(var(--pico-spacing) * 1.5);
}

.wt-header::after {
    content: "";
    display: block;
    height: 0.3rem;
    background: var(--wt-hold-stripe);
}

.wt-header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.wt-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
    color: var(--wt-header-color);
    text-decoration: none;
}

.wt-brand:hover {
    color: #fff;
}

.wt-brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    flex: none;
    color: var(--wt-cream);
}

/* The club icon as printed on the hoodie: cream shapes, the purple shows through as the lines. */
.wt-brand:hover .wt-brand-mark {
    transform: rotate(-8deg);
}

.wt-brand-mark {
    transition: transform 0.2s ease;
}

.wt-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.wt-brand-text strong {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wt-brand-text span {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Main menu, wide screens: tabs in the purple bar. */
.wt-nav,
.wt-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.wt-nav ul {
    gap: 0.25rem;
}

.wt-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    color: var(--wt-header-color);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.wt-tab svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wt-tab svg .wt-fill {
    fill: currentColor;
    stroke: none;
}

.wt-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.wt-tab[aria-current="page"],
.wt-tab--current {
    background: var(--wt-cream);
    color: var(--wt-purple-ink);
}

/* "Beheer": a details menu, so it works without JavaScript. Pico colours a summary through its accordion variables. */
.wt-menu {
    position: relative;
    margin: 0;
    --pico-accordion-close-summary-color: var(--wt-header-color);
    --pico-accordion-active-summary-color: var(--wt-header-color);
    --pico-accordion-open-summary-color: var(--wt-purple-ink);
}

.wt-menu:has(> .wt-tab--current) {
    --pico-accordion-close-summary-color: var(--wt-purple-ink);
    --pico-accordion-active-summary-color: var(--wt-purple-ink);
}

/* Pico styles every summary as an accordion title; the menu's summary is a tab like the links next to it. */
.wt-menu > summary.wt-tab {
    list-style: none;
    line-height: inherit;
    color: var(--wt-header-color);
}

/* Pico gives an open accordion's title room below it: that pushed the open tab above its neighbours. */
.wt-menu[open] > summary.wt-tab {
    margin-bottom: 0;
}

.wt-menu > summary.wt-tab:hover {
    color: #fff;
}

.wt-menu > summary.wt-tab.wt-tab--current,
.wt-menu[open] > summary.wt-tab {
    color: var(--wt-purple-ink);
    background: var(--wt-cream);
}

.wt-menu summary::-webkit-details-marker,
.wt-menu summary::after {
    display: none;
}

.wt-menu > ul {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 14rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem;
    border: 1px solid var(--pico-card-border-color);
    border-radius: 1rem;
    background: var(--pico-card-background-color);
    box-shadow: 0 12px 32px -10px rgba(30, 10, 60, 0.45);
}

.wt-menu > ul a {
    display: block;
    /* Pico pulls a nav link outside its line with negative margins: the items overlapped each other */
    margin: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    color: var(--pico-color);
    text-decoration: none;
}

.wt-menu > ul .wt-menu-heading {
    padding: 0.5rem 0.8rem 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pico-muted-color);
}

.wt-menu > ul a:hover {
    background: var(--pico-card-sectioning-background-color);
    color: var(--pico-primary);
}
/* the page you are on (Mijn gezin, Agenda): marked like a hovered item, a bit bolder */
.wt-menu > ul a[aria-current="page"] {
    background: var(--pico-card-sectioning-background-color);
    color: var(--pico-primary);
    font-weight: 600;
}

.wt-logout {
    margin: 0;
}

/* The round "?" next to Uitloggen: opens the manual at the chapter for this page. */
.wt-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: -0.75rem;
    border: 1px solid rgba(241, 233, 218, 0.55);
    border-radius: 50%;
    color: var(--wt-header-color);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.wt-help:hover {
    border-color: var(--wt-cream);
    background: rgba(255, 255, 255, 0.12);
    color: var(--wt-header-color);
}

.wt-logout-button {
    margin: 0;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(241, 233, 218, 0.55);
    background: transparent;
    color: var(--wt-header-color);
    font-size: 0.85rem;
}

.wt-logout-button:hover {
    border-color: var(--wt-cream);
    background: rgba(255, 255, 255, 0.12);
}

.wt-header .wt-impersonation {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--pico-color);
}

/* Leden and Instellingen are two dropdowns on a wide screen; the phone has one Beheer tab instead. */
@media (min-width: 768px) {
    .wt-nav li.wt-phone-only {
        display: none;
    }
}

/* Phone: the main menu becomes a tab bar fixed to the bottom of the screen. */
@media (max-width: 767px) {
    .wt-nav li.wt-desktop-only {
        display: none;
    }

    body:has(.wt-nav) {
        padding-bottom: calc(var(--wt-tabbar-height) + env(safe-area-inset-bottom));
    }

    .wt-brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .wt-nav {
        position: fixed;
        z-index: 30;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--pico-card-border-color);
        background: var(--pico-card-background-color);
        box-shadow: 0 -6px 20px -10px rgba(30, 10, 60, 0.35);
    }

    .wt-nav > ul {
        width: 100%;
        justify-content: space-around;
    }

    .wt-nav > ul > li {
        flex: 1;
    }

    .wt-tab {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.3rem 0.25rem;
        border-radius: 1rem;
        color: var(--pico-muted-color);
        font-size: 0.72rem;
        text-align: center;
    }

    .wt-tab svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .wt-tab:hover {
        background: transparent;
        color: var(--pico-primary);
    }

    .wt-tab[aria-current="page"],
    .wt-tab--current,
    .wt-menu > summary.wt-tab.wt-tab--current,
    .wt-menu[open] > summary.wt-tab {
        background: var(--pico-card-sectioning-background-color);
        color: var(--pico-primary);
    }

    .wt-menu {
        --pico-accordion-close-summary-color: var(--pico-muted-color);
        --pico-accordion-active-summary-color: var(--pico-primary);
        --pico-accordion-open-summary-color: var(--pico-primary);
    }

    .wt-menu:has(> .wt-tab--current) {
        --pico-accordion-close-summary-color: var(--pico-primary);
        --pico-accordion-active-summary-color: var(--pico-primary);
    }

    .wt-menu > summary.wt-tab {
        color: var(--pico-muted-color);
    }

    .wt-menu > summary.wt-tab:hover {
        color: var(--pico-primary);
    }

    .wt-menu > ul {
        position: fixed;
        top: auto;
        right: 0.75rem;
        bottom: calc(var(--wt-tabbar-height) + env(safe-area-inset-bottom) + 0.5rem);
    }
}

.wt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: calc(var(--pico-spacing) * 3);
    padding-bottom: var(--pico-spacing);
    color: var(--pico-muted-color);
}

/* The data disclaimer: its own line under the holds and the team name. */
.wt-disclaimer {
    flex-basis: 100%;
    margin: 0;
}

/* Five little climbing holds. */
.wt-holds {
    display: inline-flex;
    gap: 0.25rem;
}

.wt-holds i {
    width: 0.6rem;
    height: 0.5rem;
    border-radius: 50% 50% 45% 55%;
    background: var(--wt-orange);
}

.wt-holds i:nth-child(2) { background: var(--wt-hold-yellow); }
.wt-holds i:nth-child(3) { background: var(--wt-hold-green); }
.wt-holds i:nth-child(4) { background: var(--wt-hold-blue); }
.wt-holds i:nth-child(5) { background: var(--wt-hold-red); }

/* A competition card shows the trainers' choice as a coloured edge: purple official, orange proposed. */
.wt-card:has(.wt-keuze[data-choice="OFFICIAL"]) {
    border-left: 0.4rem solid var(--wt-purple);
}

.wt-card:has(.wt-keuze[data-choice="PROPOSED"]) {
    border-left: 0.4rem solid var(--wt-proposed);
}

.wt-keuze[data-choice="OFFICIAL"] .wt-keuze-tekst {
    color: var(--pico-primary);
    font-weight: 700;
}

.wt-narrow {
    max-width: 36rem;
}

.wt-notice {
    padding: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    border-left: 0.3rem solid var(--pico-primary-background);
    background: var(--pico-card-background-color);
    box-shadow: var(--pico-card-box-shadow);
}

.wt-notice--warning {
    border-left-color: var(--pico-del-color);
}

/* Competition pages: mobile-first, no wide tables. */

.wt-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-bottom: calc(var(--pico-spacing) * 0.5);
}

/* facts as one running line with middle dots */
.wt-facts--line {
    display: block;
}

/* the hall in one line, right above the distances */
.wt-zaal {
    margin-bottom: calc(var(--pico-spacing) * 0.5);
}

/* Vanaf Bleau, Vanaf thuis and the Route button on one line, wrapping on a phone */
.wt-afstand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.wt-afstand .wt-route {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* on a phone the button is tapped while walking to the car: a full-size target (44px) */
@media (max-width: 767px) {
    .wt-afstand .wt-route {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}

.wt-competition header a,
.wt-info dd,
.wt-change {
    overflow-wrap: anywhere;
}

.wt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--pico-spacing);
}

.wt-actions form,
.wt-actions button,
.wt-actions [role="button"] {
    margin: 0;
}

.wt-info dt {
    font-weight: bold;
}

.wt-info dd {
    margin: 0 0 var(--pico-spacing) 0;
}

.wt-info dd form,
.wt-change form {
    margin: 0.25rem 0 0 0;
}

.wt-info dd button,
.wt-change button {
    margin: 0;
    padding: 0.25rem 0.75rem;
}

.wt-bands {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 0.5rem;
    align-items: center;
}

.wt-bands input {
    margin-bottom: 0.5rem;
}

/* Date fields open their calendar on click (js/wt.js). */
input[type="date"] {
    cursor: pointer;
}

/* "Bekijk als": banner while an admin views the app as someone else, and the small button that starts it. */
.wt-impersonation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    border-left: 0.25rem solid var(--pico-del-color);
    background: var(--pico-card-background-color);
}

.wt-impersonation p,
.wt-impersonation form,
.wt-impersonation button {
    margin: 0;
}

.wt-inline {
    display: inline;
    margin: 0;
}

button.wt-small {
    width: auto;
    margin: 0 0 0 0.5rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.8em;
}

/* Text for screen readers only (e.g. a legend the heading above already shows). */
.wt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The choice block of a competition: radios on one line, compact toggle. */
.wt-keuze fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    margin-bottom: 0.5rem;
    border: 0;
    padding: 0;
}

.wt-keuze-melding {
    color: var(--pico-del-color);
}

/* Kalender: filter chips and one card per competition (stacked, so nothing scrolls sideways on a phone). */
.wt-toolbar {
    display: block;
}

.wt-toolbar ul,
.wt-switches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 var(--pico-spacing) 0;
    padding: 0;
    list-style: none;
}

.wt-toolbar li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-chip {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border: 1.5px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: var(--pico-card-background-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
}

.wt-chip:hover {
    border-color: var(--pico-primary-background);
}

.wt-chip--active {
    background: var(--pico-primary-background);
    border-color: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}

.wt-small-link {
    margin-left: 0.25rem;
    font-size: 0.75em;
}

.wt-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--pico-spacing);
}

.wt-inline-form button {
    margin: 0;
}

.wt-card header a {
    overflow-wrap: anywhere;
}

.wt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-bottom: calc(var(--pico-spacing) * 0.5);
}

.wt-tag {
    padding: 0.05rem 0.6rem;
    border-radius: 1rem;
    background: var(--wt-tag-background);
    color: var(--wt-tag-color);
    font-size: 0.8em;
    font-weight: 600;
}

.wt-tag--strong {
    background: var(--wt-tag-strong-background);
    color: var(--wt-tag-strong-color);
    font-weight: 800;
}

.wt-tag--warning {
    background: var(--wt-tag-warning-background);
    color: var(--wt-tag-warning-color);
}

a.wt-small {
    width: auto;
    margin: 0;
    padding: 0.2rem 0.75rem;
    font-size: 0.9em;
}

/* Maandweergave: seven columns on a desktop; on a phone coloured dots, and the day list below shows via :target. */
.wt-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.wt-month-nav h2 {
    margin: 0;
    font-size: 1.25rem;
    text-transform: capitalize;
}

/* Weekdays are nearly always empty: narrow columns for Monday to Friday, wide ones for the weekend. */
.wt-month-head,
.wt-week {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 2.5fr));
    gap: 2px;
}

.wt-month-head {
    text-align: center;
    font-size: 0.8em;
    color: var(--pico-muted-color);
}

.wt-week {
    margin-bottom: 2px;
}

.wt-day {
    min-height: 3rem;
    padding: 0.2rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.6rem;
    background: var(--pico-card-background-color);
    overflow: hidden;
}

.wt-day--outside {
    opacity: 0.55;
}

.wt-day--today {
    border-color: var(--pico-primary-background);
    border-width: 2px;
}

.wt-day-number {
    font-size: 0.8em;
    text-decoration: none;
}

a.wt-day-number {
    font-weight: 600;
}

.wt-day-number--selected {
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
    border-radius: 999px;
    color: var(--pico-primary-inverse);
    background: var(--pico-primary-background);
}

.wt-day-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-day-items li {
    margin: 0;
    padding: 0;
    font-size: 0.75em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.wt-official a {
    font-weight: bold;
    color: var(--pico-primary-inverse);
    background: var(--pico-primary-background);
    display: block;
    padding: 0 0.25rem;
    border-radius: 0.2rem;
}

.wt-proposed a {
    display: block;
    padding: 0 0.25rem;
    border-left: 3px solid var(--wt-proposed);
    border-radius: 0.2rem;
}

.wt-other a {
    color: var(--pico-muted-color);
    font-size: 0.9em;
}

/* One line per competition: the hall, cut off with an ellipsis; the full name is the link's title. */
.wt-item-short {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wt-daylist h3 {
    margin-top: var(--pico-spacing);
    font-size: 1.1rem;
    text-transform: capitalize;
}

/* Weekweergave: week per week, only the days that have something; readable on a phone with the full names. */
.wt-weekblock h3 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1rem;
    color: var(--pico-muted-color);
}

.wt-weekblock--current h3 {
    color: var(--pico-primary);
}

.wt-weekblock--empty {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.75rem;
}

.wt-weekblock--empty h3 {
    margin-bottom: 0;
}

.wt-week-none {
    margin: 0;
    font-size: 0.9em;
    color: var(--pico-muted-color);
}

.wt-agenda-day {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.wt-agenda-date {
    padding-top: 0.35rem;
    font-size: 0.9em;
    color: var(--pico-muted-color);
}

.wt-agenda-day--today .wt-agenda-date {
    font-weight: bold;
    color: var(--pico-primary);
}

.wt-agenda-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wt-agenda-items li {
    margin: 0 0 0.4rem;
    list-style: none;
}

.wt-agenda-item a {
    display: block;
    padding: 0.35rem 0.6rem;
    border-left: 4px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
    background: var(--pico-card-background-color);
    color: var(--pico-color);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.wt-agenda-item strong {
    display: block;
    line-height: 1.25;
}

.wt-agenda-item small {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.6rem;
    color: var(--pico-muted-color);
}

.wt-agenda-official a {
    border-left-color: var(--pico-primary-background);
}

.wt-agenda-proposed a {
    border-left-color: var(--wt-proposed);
}

.wt-agenda-tag {
    font-weight: 600;
}

.wt-agenda-official .wt-agenda-tag {
    color: var(--pico-primary);
}

.wt-agenda-proposed .wt-agenda-tag {
    color: var(--wt-proposed);
}

/* The tap button of the week view sits right of the link; the stripe follows the button's state after a tap. */
.wt-agenda-item:has(.wt-weekkeuze) {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.wt-agenda-item:has(.wt-weekkeuze) > a {
    flex: 1 1 auto;
    min-width: 0;
}

.wt-agenda-item:has(.wt-weekkeuze--official) > a {
    border-left-color: var(--pico-primary-background);
}

.wt-agenda-item:has(.wt-weekkeuze--proposed) > a {
    border-left-color: var(--wt-proposed);
}

.wt-agenda-item:has(.wt-weekkeuze--none) > a {
    border-left-color: var(--pico-muted-border-color);
}

.wt-weekkeuze {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
}

.wt-weekkeuze-knop {
    margin: 0;
    padding: 0.3rem 0.6rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--pico-muted-border-color);
    background: var(--pico-card-background-color);
    color: var(--pico-muted-color);
}

.wt-weekkeuze--official .wt-weekkeuze-knop {
    color: var(--pico-primary);
    border-color: var(--pico-primary-background);
}

.wt-weekkeuze--proposed .wt-weekkeuze-knop {
    color: var(--wt-proposed);
    border-color: var(--wt-proposed);
}

.wt-weekkeuze-melding {
    max-width: 10rem;
    font-size: 0.75rem;
    color: var(--pico-del-color);
    text-align: right;
}

.wt-more {
    margin: 1.25rem 0;
    text-align: center;
}

/* On a phone a day box is about 48px wide: each competition is a small coloured label with its hall. */
@media (max-width: 767px) {
    .wt-day {
        padding: 0.15rem 0.1rem;
    }

    .wt-day-number {
        display: block;
        text-align: center;
    }

    .wt-item-full,
    .wt-day-items small {
        display: none;
    }

    .wt-item-short {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .wt-day-items li {
        font-size: 0.62rem;
        line-height: 1.35;
        margin-top: 2px;
        overflow-wrap: normal;
    }

    .wt-day-items a {
        display: block;
        padding: 0 0.15rem;
        border-radius: 0.25rem;
        text-decoration: none;
    }

    .wt-proposed a {
        border-left: 0;
        background: var(--wt-proposed);
        color: #fff;
    }

    .wt-other a {
        font-size: 1em;
        background: var(--pico-muted-border-color);
        color: var(--pico-color);
    }
}

/* Kalender head: title with the Lijst/Maand switch, then the actions, then the grouped filters. */
.wt-pagehead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.wt-pagehead h1 {
    margin: 0;
}

.wt-segment {
    display: inline-flex;
    margin: 0;
    padding: 0.2rem;
    border-radius: 2rem;
    background: var(--wt-tag-background);
}

.wt-segment a {
    padding: 0.25rem 0.9rem;
    border-radius: 2rem;
    color: var(--pico-muted-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.wt-segment a.wt-segment--active {
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}

.wt-actionbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.wt-actionbar .wt-import {
    flex: 1 1 auto;
    margin: 0;
}

.wt-actionbar a.wt-create {
    margin: 0;
}

/*
 * The filters fold into one line on every width: "Filters (n)" as the open/close button (a hidden checkbox's label),
 * the active filters as chips beside it, and the groups below when opened.
 */
.wt-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-bottom: var(--pico-spacing);
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--pico-card-border-color);
    border-radius: 1rem;
    background: var(--pico-card-background-color);
}

.wt-filters .wt-filters-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.2rem 0;
    min-height: 2.75rem;
    color: var(--pico-primary);
    cursor: pointer;
}

.wt-filters .wt-filters-summary::after {
    content: "";
    display: block;
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.1rem) rotate(45deg);
    transition: transform 0.2s ease;
}

.wt-filters .wt-filters-toggle:checked + .wt-filters-summary::after {
    transform: translateY(0.15rem) rotate(-135deg);
}

.wt-filters-toggle:focus-visible + .wt-filters-summary {
    outline: 2px solid var(--pico-primary-focus);
    border-radius: 1rem;
}

.wt-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Two classes: .wt-toolbar li (same weight, later in this file) would otherwise take the padding away. */
.wt-active-filters .wt-active-filter {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 0 0 0.7rem;
    list-style: none;
    font-size: 0.85em;
    border-radius: 999px;
    color: var(--pico-primary-inverse);
    background: var(--pico-primary-background);
}

.wt-active-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.wt-choose-all {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.wt-choose-all-buttons {
    display: inline-flex;
    gap: 0.35rem;
}

.wt-filters-body {
    display: none;
    flex-basis: 100%;
    padding: 0 0 0.6rem;
}

.wt-filters-toggle:checked ~ .wt-filters-body {
    display: block;
}

.wt-filter-group {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
}

.wt-filter-group + .wt-filter-group {
    margin-top: 0.4rem;
}

.wt-filter-name {
    color: var(--pico-muted-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.wt-filters .wt-chips {
    margin: 0;
    gap: 0.35rem;
}

.wt-filters .wt-chip {
    padding: 0.1rem 0.7rem;
    font-size: 0.85em;
}

/* The hall search: a field with suggestions and its button joined to it, as compact as the chips. */
.wt-search-row {
    display: flex;
    max-width: 24rem;
}

.wt-search-row input,
.wt-search-row button {
    margin: 0;
}

/* field and button are one control: no gap, the inner corners square, the borders overlapping */
.wt-search-row input {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.wt-search-row button {
    width: auto;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.wt-zaal-zoek {
    margin-bottom: 1rem;
}

/* Pico draws a role="search" form as one rounded group with a ring around the whole form, also on focus; here the
   form is the full line, so only the field shows its own focus ring, like every other field */
.wt-zaal-zoek[role="search"],
.wt-hall-search[role="search"] {
    display: block;
    box-shadow: none;
    border-radius: 0;
}

/* on a wide screen the hall search may take more room than a phone-sized field */
@media (min-width: 768px) {
    .wt-zaal-zoek .wt-search-row {
        max-width: 44rem;
    }
}

.wt-hall-search input,
.wt-hall-search button {
    padding-block: 0.25rem;
    font-size: 0.85rem;
}

/* the reset above makes the form a block; in the filters it is a filter group like the others: the name in the left
   column, the field in line with the chips */
.wt-filter-group.wt-hall-search[role="search"] {
    display: grid;
    align-items: center;
}

.wt-hall-search .wt-filter-name {
    margin: 0;
}

@media (max-width: 767px) {
    .wt-filter-group {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .wt-filter-group + .wt-filter-group {
        margin-top: 0.6rem;
    }
}

/* Compact cards: less padding, the coloured header stays. On a wide screen the choice sits on the right. */
.wt-card {
    --pico-block-spacing-vertical: 0.65rem;
    --pico-block-spacing-horizontal: 1rem;
}

.wt-card p,
.wt-card .wt-keuze fieldset {
    margin-bottom: 0.3rem;
}

.wt-card .wt-tags:empty {
    display: none;
}

.wt-card-body > :last-child > :last-child,
.wt-card-keuze .wt-keuze > :last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    /* the choice column has one width on every card, so the radio buttons line up from card to card;
       a long "Voorgesteld door …" wraps instead of widening it */
    .wt-card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 14rem;
        gap: 0 1.5rem;
        align-items: start;
    }

    .wt-card-keuze .wt-keuze-tekst {
        font-size: 0.9rem;
    }

    .wt-card-keuze {
        padding-left: 1rem;
        border-left: 1px solid var(--pico-muted-border-color);
    }

    .wt-card-keuze .wt-keuze fieldset {
        flex-direction: column;
        gap: 0.15rem;
    }

    .wt-card-keuze label {
        margin: 0;
        font-size: 0.9rem;
    }
}

/* "Voor wie" on the competition page: a small inline select. */
.wt-voor-wie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin-bottom: var(--pico-spacing);
}

.wt-voor-wie label {
    margin: 0;
    font-weight: 700;
}

.wt-voor-wie select {
    width: auto;
    margin: 0;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.wt-actionbar .wt-import {
    flex-wrap: nowrap;
}

.wt-actionbar .wt-import button {
    flex: none;
    width: auto;
    margin: 0;
}

/* ---------------------------------------------------------------- practical info and notes */
.wt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wt-notes section + section { margin-top: 1rem; }
.wt-notes-from { font-size: .9rem; margin-bottom: .35rem; color: var(--pico-muted-color); }
.wt-notes ul, .wt-notes ol { padding-left: 1.25rem; }
.wt-notes-field { margin-bottom: var(--pico-spacing); }
.wt-notes-field .tox-tinymce { border-radius: var(--pico-border-radius); margin-bottom: .25rem; }
.wt-notes-field small { display: block; margin-top: 0; }

/* ---------------------------------------------------------------- etto (staff) */
/* ---------------------------------------------------------------- deelname per kind */
.wt-grijs { color: var(--pico-muted-color); }

.wt-kind {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: .6rem .9rem;
    margin-bottom: .6rem;
}
.wt-kind-regel { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.wt-kind-regel .wt-stap { color: var(--pico-muted-color); }
/* the main controls (an "Ingeschreven:" label and its buttons, or a link) stay together on the right */
.wt-kind-knoppen { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wt-kind-acties { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wt-kind-actie { margin: 0; }
.wt-stapknop { margin: 0; width: auto; white-space: nowrap; padding: .35rem .8rem; font-size: .9rem; line-height: 1.3; }
/* Pico makes every submit button full width with button[type=submit], which outweighs the class alone */
button.wt-stapknop { width: auto; }
.wt-kind details { margin: .4rem 0 0; }
.wt-kind details > summary { font-size: .9rem; }
.wt-kind details .wt-kind-acties { margin-top: .4rem; }
.wt-inschrijflijn { margin: .25rem 0 .6rem; }
/* in a card the children are flat rows divided by a line; the competition page keeps its boxes */
.wt-card-keuze .wt-kind {
    border: 0;
    border-top: 1px solid var(--pico-muted-border-color);
    border-radius: 0;
    padding: .35rem 0;
    margin: 0;
}

.wt-card-keuze .wt-kind:first-child { border-top: 0; padding-top: 0; }
/* On a wide screen the children's column has one width on every card, and name, step and button each their own
   column: they line up under each other, within a card and from card to card. */
@media (min-width: 768px) {
    .wt-card-body:has(.wt-card-keuze .wt-kind) { grid-template-columns: minmax(0, 1fr) 25rem; }
    .wt-card-keuze .wt-kind-regel {
        display: grid;
        grid-template-columns: 6.5rem minmax(0, 1fr) auto;
        gap: .2rem .6rem;
    }
    .wt-card-keuze .wt-kind-regel > strong, .wt-card-keuze .wt-kind-naam > strong { overflow-wrap: anywhere; }
    .wt-card-keuze .wt-kind-knoppen { grid-column: 3; justify-self: end; }
    /* two buttons behind "Ingeschreven:" need the room: they take a line of their own, under the step */
    .wt-card-keuze .wt-kind-knoppen:has(> .wt-grijs) { grid-column: 1 / -1; justify-self: end; flex-wrap: nowrap; }
}

/* "Wie gaat mee": the group lines and the switch for all groups */
.wt-groep { margin-bottom: .4rem; }
.wt-merk { display: inline-block; margin-left: .6rem; white-space: nowrap; }
.wt-switch {
    display: inline-block;
    padding: .2rem .8rem .2rem 2.4rem;
    margin-bottom: .75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    position: relative;
    text-decoration: none;
    font-size: .9rem;
}
.wt-switch::before {
    content: "";
    position: absolute;
    left: .35rem;
    top: 50%;
    width: 1.5rem;
    height: .9rem;
    margin-top: -.45rem;
    border-radius: 999px;
    background: var(--pico-muted-border-color);
}
.wt-switch::after {
    content: "";
    position: absolute;
    left: .45rem;
    top: 50%;
    width: .7rem;
    height: .7rem;
    margin-top: -.35rem;
    border-radius: 50%;
    background: var(--pico-primary-inverse, #fff);
    transition: transform .15s;
}
.wt-switch[aria-checked="true"]::before { background: var(--pico-primary-background); }
.wt-switch[aria-checked="true"]::after { transform: translateX(.6rem); }

/* "Wie gaat mee": a slider between Alle groepen (knob left) and Enkel mijn groep (knob right) */
.wt-schuiver {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .2rem .8rem;
    margin-bottom: .75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    text-decoration: none;
    font-size: .9rem;
}
.wt-schuiver-keuze { color: var(--pico-muted-color); }
.wt-schuiver-keuze.is-gekozen { color: var(--pico-primary); font-weight: 600; }
.wt-schuiver-baan {
    flex: none;
    position: relative;
    width: 1.5rem;
    height: .9rem;
    border-radius: 999px;
    background: var(--pico-primary-background);
}
.wt-schuiver-baan::after {
    content: "";
    position: absolute;
    left: .1rem;
    top: .1rem;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--pico-primary-inverse, #fff);
    transition: transform .15s;
    transform: translateX(.6rem);
}
.wt-schuiver[aria-checked="true"] .wt-schuiver-baan::after { transform: none; }

/* A fold-out that reads as a link: primary colour, underlined, the chevron right after the words (not far right, where
   Pico puts it and nobody connects it to the text), turning down when open. */
details.wt-kind-anders > summary:not([role]),
details.wt-anders > summary:not([role]),
details.wt-uitklap > summary:not([role]) {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    width: auto;
    color: var(--pico-primary);
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}
details.wt-kind-anders > summary:not([role]):hover,
details.wt-anders > summary:not([role]):hover,
details.wt-uitklap > summary:not([role]):hover { color: var(--pico-primary-hover); }
details.wt-kind-anders > summary:not([role])::after,
details.wt-anders > summary:not([role])::after,
details.wt-uitklap > summary:not([role])::after {
    float: none;
    flex: none;
    margin: 0;
    width: .9em;
    height: .9em;
    /* Pico's chevron is grey; as a mask it takes the link colour */
    background: currentColor;
    -webkit-mask: var(--pico-icon-chevron) center / contain no-repeat;
    mask: var(--pico-icon-chevron) center / contain no-repeat;
}
details.wt-anders > summary:not([role]) { font-weight: 600; }
.wt-anders { margin-bottom: 1rem; }

/* ---------------------------------------------------------------- Info on the competition page */
/* one list, label left and value right on a wide screen, stacked on a phone; every part of a value on its own line */
.wt-info-blok { margin-bottom: 1.5rem; }
.wt-info-blok .wt-info { margin-bottom: .75rem; }
.wt-info-blok .wt-info dd { margin-bottom: .75rem; }
.wt-info-blok .wt-info dt { font-weight: 600; }
@media (min-width: 576px) {
    .wt-info-blok .wt-info { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 1rem; }
    .wt-info-blok .wt-info dd { margin: 0 0 .75rem; }
}
.wt-deel { display: block; }
.wt-deel form { display: inline-block; margin: 0 0 0 .5rem; }
.wt-herkomst { margin-left: .4rem; font-size: .8rem; color: var(--pico-muted-color); }
.wt-info-blok .wt-zaal { display: block; margin: 0; }
.wt-info-blok .wt-afstand { margin-top: .25rem; font-size: .9rem; }
/* the links side by side, separated by a dot */
/* Inschrijving: status, opening and closing on one line, separated by a dot; the closing date red when it is near */
.wt-inschrijf-lijn { display: block; }
.wt-inschrijf-lijn .wt-deel { display: inline; }
.wt-inschrijf-lijn > * + *::before { content: " · "; color: var(--pico-muted-color); font-weight: normal; }
.wt-sluit--binnenkort { color: var(--pico-del-color); font-weight: 600; }
/* staff-only and seldom used: smaller than the buttons around it */
.wt-info dd .wt-zet-config { font-size: .8rem; padding: .1rem .5rem; }
.wt-links .wt-deel { display: inline; }
.wt-links .wt-deel + .wt-deel::before { content: " · "; color: var(--pico-muted-color); }
.wt-bron { margin-bottom: .25rem; }

/* Info van CMBEL: the first six lines, then "Lees meer" (wt.js shortens it only when it is longer) */
.wt-inkort--dicht {
    max-height: 9em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.wt-lees-meer { margin: .25rem 0 .75rem; padding: .25rem .9rem; font-size: .9rem; }

/* Voor jou: a parent's open points, a warning colour on the left; each line its text and one button */
.wt-te-doen.wt-voor-jou { border-left: .3rem solid var(--wt-orange); }
.wt-te-doen.wt-voor-jou h2 { color: var(--wt-tag-warning-color); }
.wt-melding { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem;
              padding: .5rem 0; border-top: 1px solid var(--pico-muted-border-color); }
.wt-melding:first-of-type { border-top: 0; }
.wt-melding [role="button"] { margin: 0; }
.wt-afgelast > summary { color: var(--pico-del-color, #c62828); }

/* Raster: the competition column stays, the rest scrolls inside the container */
.wt-raster { overflow-x: auto; margin-bottom: var(--pico-spacing); }
.wt-raster table { width: auto; min-width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.wt-raster th, .wt-raster td { padding: .35rem .5rem; text-align: center; white-space: nowrap; font-size: .9rem; }
.wt-raster thead th { border-bottom: 1px solid var(--pico-muted-border-color); }
.wt-raster th.wt-raster-groep { border-left: 1px solid var(--pico-muted-border-color); }
/* only the first header row starts with "Wedstrijd": the second row's first cell is a child's name */
.wt-raster tbody th, .wt-raster thead tr:first-child th:first-child {
    position: sticky; left: 0; z-index: 1; text-align: left; background: var(--pico-background-color);
    border-right: 1px solid var(--pico-muted-border-color);
}
.wt-raster tbody th small { display: block; font-weight: normal; color: var(--pico-muted-color); }
.wt-raster tbody td { border-bottom: 1px solid var(--pico-muted-border-color); }
.wt-raster .wt-raster-telling { text-align: right; color: var(--pico-muted-color); }
.wt-raster thead tr:first-child th:last-child { text-align: right; }
.wt-raster button.wt-cel-knop, .wt-raster a.wt-cel-knop {
    margin: 0; padding: .1rem .5rem; width: auto; min-width: 2rem; font-size: 1rem; line-height: 1.4;
    background: transparent; border: 1px solid var(--pico-muted-border-color); color: inherit; text-decoration: none;
    display: inline-block;
}
.wt-raster-paneel { min-height: 1rem; }

.wt-inactief {
    opacity: 0.55;
}

/* ---------------------------------------------------------------- group board (/groepen) */
/* Each group is a .wt-kaart like the family and Rollen cards: the name and "· 8 kinderen" in the head band,
   "Aanpassen" at the top right, trainer, hours and ages as .wt-rij rows, then the children as lines.
   Phone: the cards stack. Wide screen: they fill a grid; "Geen groep" spans the whole width above it. */
.wt-groep-nieuw > summary { font-size: .95rem; color: var(--pico-primary); text-decoration: underline; cursor: pointer; }
.wt-groep-nieuw > summary::after { display: none; }
.wt-groep-nieuw form { max-width: 24rem; }
.wt-groepen-samenvatting { margin: calc(var(--pico-spacing) * -.5) 0 var(--pico-spacing); }

.wt-bord {
    display: grid;
    gap: var(--pico-spacing);
    margin-bottom: calc(var(--pico-spacing) * 1.5);
}
@media (min-width: 768px) {
    .wt-bord { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); align-items: start; }
}
.wt-bord > section.wt-kaart { margin: 0; }
.wt-kolom--doel { outline: 2px dashed var(--pico-primary-background); outline-offset: 3px; }
.wt-kolom .wt-rij { grid-template-columns: 5.5rem minmax(0, 1fr); padding: .35rem 0; }
.wt-leeg { color: var(--pico-muted-color); font-style: italic; }
.wt-uren { margin: 0; padding: 0; }
.wt-uren li { list-style: none; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
/* ✎ and × next to an hour only while the card's "Aanpassen" is open */
.wt-kolom:not(:has(> details.wt-aanpassen[open])) .wt-uren :is(.wt-moment-wijzig, .wt-moment-weg) { display: none; }
.wt-moment-wijzig { margin: 0; }
details.wt-moment-wijzig > summary:not([role]) {
    list-style: none; width: auto; margin: 0; padding: 0 .3rem; line-height: 1.5rem;
    color: var(--pico-muted-color); cursor: pointer;
}
details.wt-moment-wijzig > summary:not([role]):hover { color: var(--pico-primary); }
.wt-moment-wijzig > summary::after { display: none; }
.wt-moment-wijzig > summary::-webkit-details-marker { display: none; }
.wt-moment-wijzig .wt-open { display: none; }
/* open: the hour's line becomes "ma 17u-19u30 annuleren" with the form below; × waits until it is closed */
.wt-moment-wijzig[open] { flex-basis: 100%; }
details.wt-moment-wijzig[open] > summary:not([role]) { padding: 0; color: inherit; }
.wt-moment-wijzig[open] > summary .wt-dicht { display: none; }
.wt-moment-wijzig[open] > summary .wt-open { display: inline; }
.wt-annuleer { margin-left: .4rem; font-size: .85rem; color: var(--pico-primary); text-decoration: underline; }
.wt-uren li:has(> .wt-moment-wijzig[open]) > :is(.wt-moment-tekst, .wt-moment-weg) { display: none; }
.wt-moment-wijzig form { margin: .4rem 0 .75rem; }

/* "Geen groep": over the full width, the children side by side; empty it is only a quiet place to drop a child */
.wt-kolom--geen { grid-column: 1 / -1; }
.wt-in-te-delen { margin-left: .6rem; }
section.wt-kolom.wt-kolom--leeg {
    padding-top: .75rem; padding-bottom: .75rem;
    background: transparent; box-shadow: none; border: 2px dashed var(--pico-muted-border-color);
}
section.wt-kolom--leeg > .wt-kaart-kop,
section.wt-kolom--leeg > .wt-leden { display: none; }
.wt-kolom--leeg .wt-geen-leden { margin: 0; text-align: center; }
@media (min-width: 768px) {
    .wt-kolom--geen .wt-leden { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); column-gap: 1.5rem; }
}

/* the children: plain lines with a rule between them, a soft tint under the one you are about to drag */
.wt-leden { margin: .6rem 0 0; padding: .25rem 0 0; border-top: 1px solid var(--pico-muted-border-color); }
li.wt-lid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: .5rem;
    min-height: 2.25rem;
    margin: 0 -.5rem;
    padding: .15rem .5rem;
    border-radius: calc(var(--pico-border-radius) / 2);
}
li.wt-lid[draggable=true] { cursor: grab; }
li.wt-lid[draggable=true]:hover { background: var(--pico-card-sectioning-background-color); }
li.wt-lid.wt-sleept { opacity: .5; }
.wt-lid-naam { font-weight: 500; }
/* dark like the names in the Gezinnen list; Pico gives links their own --pico-color, so inherit from the line */
a.wt-lid-naam { color: inherit; text-decoration: none; }
a.wt-lid-naam:hover { color: var(--pico-primary); text-decoration: underline; }
li.wt-lid small { color: var(--pico-muted-color); font-size: .8rem; }
.wt-geen-leden { margin: .6rem 0 0; color: var(--pico-muted-color); font-style: italic; font-size: .9rem; }
.wt-kolom:has(.wt-lid) .wt-geen-leden { display: none; }
.wt-leden--inactief li.wt-lid { opacity: .7; }
@media (min-width: 768px) {
    .wt-leden--inactief { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); column-gap: 1.5rem; }
}

/* ⇄ Verplaatsen: a small mark with a big enough place to tap (28px, on a phone 44px), quiet until the row is hovered */
.wt-verplaats { margin: 0 0 0 auto; }
.wt-verplaats > summary::after { display: none; }
.wt-verplaats > summary {
    display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; min-height: 1.75rem;
    padding: 0; border-radius: calc(var(--pico-border-radius) / 2); line-height: 1;
    color: var(--pico-muted-color); cursor: pointer;
}
.wt-verplaats > summary:hover, .wt-verplaats[open] > summary { background: var(--pico-muted-border-color); color: var(--pico-color); }
.wt-verplaats[open] { flex: 1 0 100%; margin: 0 0 .5rem; }
.wt-verplaats[open] > summary { display: flex; width: fit-content; margin-left: auto; }
.wt-verplaats select { margin-bottom: .4rem; }
@media (hover: hover) and (min-width: 768px) {
    li.wt-lid .wt-verplaats:not([open]) > summary { opacity: .35; }
    li.wt-lid:hover .wt-verplaats > summary,
    li.wt-lid .wt-verplaats > summary:focus-visible { opacity: 1; }
}

/* Aanpassen in a group card: the forms below the rows, a rule above "Groep verwijderen" */
.wt-kolom .wt-aanpassen[open] { padding-top: 0; }
.wt-kolom .wt-aanpassen .wt-formtitel:first-child { margin-top: .5rem; }
.wt-kolom .wt-aanpassen fieldset { margin-bottom: .75rem; }
.wt-kolom .wt-aanpassen legend { font-size: .9rem; color: var(--pico-muted-color); }
.wt-vinkjes { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.wt-groep-weg { margin: 0 0 .75rem; padding-top: .75rem; border-top: 1px solid var(--pico-muted-border-color); }

/* Kalender: the three tables without training (and Extra trainingen when it is on), side by side on a wide screen
   and together as wide as the board */
.wt-kalender-titel { margin-top: var(--pico-spacing); }
.wt-kalender-kaarten { display: grid; gap: var(--pico-spacing); margin-bottom: var(--pico-spacing); }
/* two columns from 1024px: school holidays with the own periods under them on the left, the longer list of public
   holidays on the right over both rows */
@media (min-width: 1024px) {
    .wt-kalender-kaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; align-items: start; }
    .wt-kalender-kaarten > .wt-pauzes-kaart--feestdagen { grid-column: 2; grid-row: span 2; }
}
.wt-kalender-kaarten > section.wt-kaart { margin: 0; }
.wt-lijst { margin: 0; padding: 0; }
.wt-lijst li { list-style: none; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; padding: .3rem 0; }
.wt-lijst li + li { border-top: 1px solid var(--pico-muted-border-color); }
.wt-lijst-tekst { flex: 1 1 auto; min-width: 0; }
.wt-lijst-tekst strong { font-weight: 600; }
.wt-lijst-tekst small { display: block; color: var(--pico-muted-color); line-height: 1.3; }
.wt-lijst-scheiding { color: var(--pico-muted-color); }
.wt-lijst-data { color: var(--pico-muted-color); white-space: nowrap; }
.wt-moment-kinderen { flex-basis: 100%; margin: 0 0 .4rem; }
.wt-momenten-iedereen .wt-moment-nieuw { max-width: 24rem; }

/* the × that takes a training or a holiday away: 24px to tap, on a phone 44px */
.wt-moment-weg { margin: 0; display: inline; }
button.wt-linkknop {
    width: auto; min-width: 1.5rem; min-height: 1.5rem; margin: 0; padding: 0 .3rem; border: 0; background: none; line-height: 1;
    color: var(--pico-muted-color); font-size: 1rem; cursor: pointer;
}
button.wt-linkknop:hover { color: var(--pico-del-color); }
/* "Toch les" / "Geen les" on a fetched holiday: a switch, not a removal */
button.wt-linkknop.wt-tochles-knop { font-size: .8rem; text-decoration: underline; }
button.wt-linkknop.wt-tochles-knop:hover { color: var(--pico-primary); }

@media (max-width: 767px) {
    section.wt-kolom.wt-kolom--leeg { display: none; }
    li.wt-lid { min-height: 2.75rem; }
    .wt-verplaats > summary, .wt-moment-weg button.wt-linkknop { min-width: 2.75rem; min-height: 2.75rem; }
    details.wt-moment-wijzig:not([open]) > summary:not([role]) { min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem; text-align: center; }
}

/* Bewerken: where a value comes from, and ↺ to put back what comes automatically (part 4b) */
.wt-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin: -0.5rem 0 var(--pico-spacing);
    color: var(--pico-muted-color);
}
.wt-source .wt-reset {
    width: auto;
    margin: 0;
    padding: 0.15rem 0.6rem;
    font-size: 0.875em;
}

/* the transport line on the competition page */
.wt-vervoer-regel p { margin-bottom: .25rem; }

/* Etto row in Beheer: one candidate per line. */
.wt-etto-kandidaat { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .5rem; padding: .25rem 0; }
.wt-etto-kandidaat form { margin: 0; }

/* ---------------------------------------------------------------- staff on the competition page */
/* Te doen: only what is still open, at the top. */
.wt-te-doen { background: var(--pico-card-sectioning-background-color); border: 1px solid var(--pico-muted-border-color);
              border-radius: var(--pico-border-radius); padding: .3rem .9rem; margin: .6rem 0 1rem; }
.wt-te-doen[hidden] { display: none; }
.wt-te-doen h2 { font-size: 1rem; margin: .5rem 0 .2rem; color: var(--pico-primary); }
.wt-taak { padding: .55rem 0; border-top: 1px solid var(--pico-muted-border-color); }
.wt-taak:first-of-type { border-top: 0; }
.wt-taak > strong { display: block; }
.wt-taak > .wt-grijs { display: block; font-size: .9rem; margin: .1rem 0 .35rem; }
.wt-taak .wt-knoppen { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.wt-taak .wt-knoppen form { margin: 0; }
.wt-taak .wt-knoppen select { width: auto; max-width: 100%; margin: 0; padding-top: .3rem; padding-bottom: .3rem; font-size: .9rem; }
.wt-taak details { margin: .4rem 0 0; }
.wt-taak details summary { font-size: .85rem; color: var(--pico-muted-color); }

/* Beheer: one line per thing, name and state on the left, small buttons next to them. */
.wt-beheer-regel { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .55rem 0;
                   border-top: 1px solid var(--pico-muted-border-color); }
.wt-beheer-regel form { margin: 0; }
.wt-beheer-regel > details { margin: 0; }
.wt-beheer-regel > details[open] { flex-basis: 100%; }
.wt-beheer-regel .wt-grijs { font-size: .9rem; }
.wt-beheer-regel select { width: auto; margin: 0; padding: .3rem 2rem .3rem .6rem; font-size: .9rem; }
.wt-beheer-regel label { margin: 0; }
.wt-beheer-links { gap: .3rem 1rem; }
.wt-beheer > h2 + .wt-beheer-regel { border-top: 0; }
.wt-beheer > details { border-top: 1px solid var(--pico-muted-border-color); padding: .55rem 0; margin: 0; }
.wt-beheer > details summary { font-weight: 700; }
.wt-beheer .wt-keuze { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.wt-beheer .wt-keuze > form { margin: 0; }
.wt-beheer .wt-keuze p { margin: 0; font-size: .9rem; }
.wt-beheer .wt-keuze .wt-keuze-tekst { order: 2; flex-basis: 100%; color: var(--pico-muted-color); }

/* A segment control (the trainers' choice in Beheer, the transport choice per child): still radios, so it works
   without JavaScript. The compact choice on a calendar card is the same fragment and stays plain radios. */
.wt-segment-keuze:not(.wt-card *) { display: inline-flex; flex-direction: row; gap: 0; margin: 0; padding: 0;
                                    border: 1px solid var(--pico-muted-border-color); border-radius: 2rem; overflow: hidden; }
.wt-segment-keuze:not(.wt-card *) label { position: relative; margin: 0; padding: .3rem .7rem; font-size: .85rem; cursor: pointer; }
.wt-segment-keuze:not(.wt-card *) input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%;
                                                        margin: 0; opacity: 0; cursor: pointer; }
.wt-segment-keuze:not(.wt-card *) label:has(input:checked) { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
.wt-segment-keuze:not(.wt-card *) label:has(input:focus-visible) { outline: 2px solid var(--pico-primary); outline-offset: -2px; }
/* the same control with a submit button per option (Info, Inschrijving, Voor wie, the transport day): the stored
   option is aria-pressed. Wraps into rows on a narrow phone. */
.wt-segment-keuze[role="group"] { flex-wrap: wrap; border-radius: 1.1rem; }
.wt-segment-keuze button, .wt-segment-keuze button[type="submit"] { width: auto; margin: 0; padding: .3rem .7rem; border: 0; border-radius: 0;
                            background: none; color: inherit; font-size: .85rem; line-height: inherit; white-space: nowrap; box-shadow: none; }
.wt-segment-keuze button[aria-pressed="true"] { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
.wt-segment-keuze button:disabled { opacity: .45; cursor: not-allowed; }
.wt-segment-keuze button:focus-visible { outline: 2px solid var(--pico-primary); outline-offset: -2px; }
/* in a "Te doen" task the control is as wide as its options, not as the task */
.wt-taak .wt-segment-keuze[role="group"] { display: inline-flex; width: fit-content; max-width: 100%; }
/* a filter with a few fixed values (Voor, Discipline; Land and Soort of the halls) looks the same: its chips
   joined into one control. The label filter and the hall groups keep loose chips: too many and too long to join,
   and over two rows the joined control no longer reads as buttons. */
ul.wt-chips--segment, .wt-toolbar ul.wt-chips--segment, .wt-filters ul.wt-chips--segment {
    display: flex; flex-wrap: wrap; gap: 0; width: fit-content; max-width: 100%; padding: 0; overflow: hidden;
    border: 1px solid var(--pico-muted-border-color); border-radius: 1.1rem; }
.wt-toolbar > ul.wt-chips--segment { display: inline-flex; vertical-align: top; margin: 0 .5rem .5rem 0; }
ul.wt-chips--segment li { margin: 0; padding: 0; list-style: none; }
ul.wt-chips--segment .wt-chip { display: block; padding: .3rem .7rem; border: 0; border-radius: 0; background: none;
                                color: inherit; font-size: .85rem; font-weight: 400; white-space: nowrap; }
ul.wt-chips--segment .wt-chip--active { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
ul.wt-chips--segment .wt-chip:focus-visible { outline: 2px solid var(--pico-primary); outline-offset: -2px; }

/* Every joined control (the choice buttons and the filters with fixed values): a thin line between the options, so
   one sees where each begins, and a tint under the pointer, so each reads as a button. The chosen one stays filled. */
.wt-segment-keuze:not(.wt-card *) > label + label, .wt-segment-keuze > button + button[type],
ul.wt-chips--segment > li + li { border-left: 1px solid var(--pico-muted-border-color); }
.wt-segment-keuze:not(.wt-card *) > label, .wt-segment-keuze > button, ul.wt-chips--segment .wt-chip {
    cursor: pointer; transition: background-color .12s, color .12s; }
.wt-segment-keuze:not(.wt-card *) > label:not(:has(input:checked)):hover,
.wt-segment-keuze > button:not([aria-pressed="true"]):not(:disabled):hover,
ul.wt-chips--segment .wt-chip:not(.wt-chip--active):hover {
    background: var(--wt-tag-strong-background); color: var(--wt-tag-strong-color); text-decoration: none; }
.wt-segment-keuze:not(.wt-card *) > label:has(input:checked):hover,
.wt-segment-keuze > button[aria-pressed="true"]:hover,
ul.wt-chips--segment .wt-chip--active:hover { filter: brightness(1.15); }

/* A switch line (Mijn gezin): the label left, the switch right, on one line; a thin line between lines. */
.wt-schakel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .45rem 0;
    border-top: 1px solid var(--pico-muted-border-color);
}
.wt-schakel:first-of-type { border-top: 0; }
.wt-schakel label { margin: 0; color: inherit; }
.wt-schakel small { display: block; color: var(--pico-muted-color); line-height: 1.25; }
.wt-schakel form { margin: 0; display: flex; align-items: center; gap: .5rem; }
.wt-schakel input[role="switch"] { margin: 0; flex-shrink: 0; }
.wt-schakel noscript button { margin: 0; width: auto; padding: .2rem .6rem; font-size: .85rem; }
/* a card the viewer may only look at */
.wt-alleen-kijken header,
.wt-alleen-kijken input[role="switch"] { opacity: .55; }

/* gezinskaarten (Mijn gezin): a card per block, the facts as rows, "Aanpassen" small at the top right of the card. */
section.wt-kaart,
article.wt-kaart {
    position: relative;
    margin-bottom: var(--pico-spacing);
    --wt-kop-hoogte: calc(var(--pico-block-spacing-vertical) * 1.32 + 1.5rem);
    padding: var(--pico-block-spacing-vertical) var(--pico-block-spacing-horizontal);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    background: var(--pico-card-background-color);
    box-shadow: var(--pico-card-box-shadow);
}
/* the head band, like article > header: tinted, a line under it, bleeding to the card edges */
.wt-kaart-kop {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: var(--wt-kop-hoogte);
    margin: calc(var(--pico-block-spacing-vertical) * -1) calc(var(--pico-block-spacing-horizontal) * -1) .5rem;
    padding: 0 6.5rem 0 var(--pico-block-spacing-horizontal);
    line-height: 1.5rem;
    background-color: var(--pico-card-sectioning-background-color);
    border-bottom: var(--pico-border-width) solid var(--pico-card-border-color);
    border-top-left-radius: var(--pico-border-radius);
    border-top-right-radius: var(--pico-border-radius);
}
.wt-kaart .wt-notice { margin: .4rem 0; }
.wt-rij {
    display: grid;
    grid-template-columns: minmax(5rem, 40%) minmax(0, 1fr);
    gap: .5rem;
    padding: .45rem 0;
}
.wt-rij + .wt-rij { border-top: 1px solid var(--pico-muted-border-color); }
.wt-rij-label { color: var(--pico-muted-color); }
.wt-rij-waarde { overflow-wrap: anywhere; }
.wt-rij-waarde small { display: block; color: var(--pico-muted-color); line-height: 1.25; }
.wt-rij-waarde > form { display: block; margin: .25rem 0 0; }
.wt-rij-waarde .wt-wachtend { margin-top: .15rem; }
.wt-rij-waarde button.wt-small { margin: .25rem .4rem 0 0; }
.wt-rij-waarde > form button.wt-small { margin: 0; }
.wt-kaart-noot { margin: .4rem 0 0; color: var(--pico-muted-color); }
.wt-adresregel { margin: 0; padding: .45rem 0 0; }
.wt-kaart-noot small { color: inherit; }
@media (min-width: 768px) {
    .wt-rij { grid-template-columns: 10rem minmax(0, 1fr); }
}

/* "Aanpassen": the summary floats top right in the card; the forms open below the rows, over the full width */
.wt-aanpassen { margin: 0; }
details.wt-aanpassen > summary:not([role]),
details.wt-naam > summary:not([role]),
details.wt-toevoegen > summary:not([role]),
details.wt-meer > summary:not([role]) {
    list-style: none;
    width: auto;
    margin: 0;
    font-size: .85rem;
    color: var(--pico-primary);
    text-decoration: underline;
    cursor: pointer;
}
.wt-aanpassen > summary::after,
.wt-naam > summary::after,
.wt-toevoegen > summary::after,
.wt-meer > summary::after { display: none; }
.wt-aanpassen > summary::-webkit-details-marker,
.wt-naam > summary::-webkit-details-marker,
.wt-toevoegen > summary::-webkit-details-marker,
.wt-meer > summary::-webkit-details-marker { display: none; }
details.wt-aanpassen > summary:not([role]) {
    position: absolute;
    top: calc(var(--wt-kop-hoogte) / 2);
    right: var(--pico-block-spacing-horizontal);
    transform: translateY(-50%);
    line-height: 1.5rem;
}
.wt-aanpassen .wt-open { display: none; }
.wt-aanpassen[open] > summary .wt-open { display: inline; }
.wt-aanpassen[open] > summary .wt-dicht { display: none; }
.wt-aanpassen[open] { padding-top: .4rem; }
.wt-aanpassen form,
.wt-aanpassen .wt-velden,
.wt-toevoegen form { margin: 0 0 .75rem; }
.wt-formtitel {
    margin: .9rem 0 .35rem;
    font-size: 1rem;
    color: var(--pico-muted-color);
}
.wt-meer { margin: .25rem 0 0; }
details.wt-meer > summary:not([role]) { color: var(--pico-muted-color); }
.wt-meer[open] > summary { margin-bottom: .3rem; }
.wt-meer a { display: block; font-size: .85rem; padding: .15rem 0; }
.wt-meer form { margin: 0 0 .3rem; }
.wt-meer form button.wt-small { margin: 0; }
.wt-kop-nota { margin-left: .35rem; font-size: .85rem; color: var(--pico-muted-color); }
.wt-toevoegen { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--pico-muted-border-color); }
.wt-toevoegen[open] > summary { margin-bottom: .5rem; }
/* Pico makes every submit button full width (button[type=submit]); on the family cards Bewaren stays small */
.wt-kaart button.wt-stapknop, #gezinsnaam button.wt-stapknop, #kinderen button.wt-stapknop, #nieuwe-rol button.wt-stapknop { display: block; width: auto; }

/* Rollen: a person is a row whose whole line opens "Aanpassen"; the first details in the card is "+ Persoon toevoegen" */
.wt-intro { color: var(--pico-muted-color); }
#mensen > details.wt-toevoegen { border-top: 0; margin: 0 0 .3rem; padding: 0; }
details.wt-persoon { margin: 0; border-top: 1px solid var(--pico-muted-border-color); }
details.wt-persoon > summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .1rem .75rem;
    margin: 0;
    padding: .5rem 0;
    cursor: pointer;
    color: inherit;
}
details.wt-persoon > summary::after,
details.wt-persoon > summary::-webkit-details-marker { display: none; }
.wt-persoon-naam { overflow-wrap: anywhere; }
.wt-persoon-naam small { display: block; color: var(--pico-muted-color); line-height: 1.25; }
.wt-persoon-rollen { grid-column: 1; color: var(--pico-muted-color); }
.wt-persoon-actie { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.wt-persoon-actie button { margin: 0; }
.wt-persoon-link { color: var(--pico-primary); text-decoration: underline; }
.wt-persoon .wt-open { display: none; }
.wt-persoon[open] > summary .wt-open { display: inline; }
.wt-persoon[open] > summary .wt-dicht { display: none; }
.wt-rechten { margin: .1rem 0 0; padding: 0; color: inherit; }
.wt-rol-noot { color: var(--pico-muted-color); font-size: .9rem; margin: .25rem 0 0; }
small.wt-rol-noot { display: block; }
details.wt-persoon[open] { padding-bottom: .75rem; }
.wt-persoon form { margin: 0 0 .6rem; }
.wt-vinkjes { border: 0; padding: 0; margin: 0 0 .5rem; }
.wt-vinkjes legend { font-weight: 600; margin-bottom: .25rem; }
.wt-vinkjes label { display: inline-flex; margin: 0 1rem .3rem 0; }
@media (min-width: 768px) {
    details.wt-persoon > summary { grid-template-columns: 16rem minmax(0, 1fr) auto; }
    .wt-persoon-rollen { grid-column: 2; grid-row: 1; }
    .wt-persoon-actie { grid-column: 3; }
}

/* Bewerken: what is missing in a card on top, the rest in folded groups (a row whose whole line opens it) */
details.wt-groep { margin: 0; border-top: 1px solid var(--pico-muted-border-color); }
details.wt-groep:first-of-type { border-top: 0; }
details.wt-groep > summary {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .1rem .75rem;
    margin: 0;
    padding: .55rem 0;
    cursor: pointer;
    color: inherit;
}
details.wt-groep > summary::after,
details.wt-groep > summary::-webkit-details-marker { display: none; }
.wt-groep-naam { min-width: 0; font-weight: 600; }
.wt-groep-kort { grid-column: 1 / -1; color: var(--pico-muted-color); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-groep-actie { font-size: .85rem; color: var(--pico-primary); text-decoration: underline; }
details.wt-groep .wt-open { display: none; }
details.wt-groep[open] > summary .wt-open { display: inline; }
details.wt-groep[open] > summary .wt-dicht { display: none; }
details.wt-groep[open] { padding-bottom: .75rem; }
#nog-in-te-vullen .wt-kaart-kop { padding-right: var(--pico-block-spacing-horizontal); }
#nog-in-te-vullen label { margin-bottom: .2rem; }
.wt-bewaarbalk { margin-top: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wt-bewaarbalk small { color: var(--pico-muted-color); }
.wt-bewaarbalk button.wt-stapknop { display: block; width: auto; }
@media (min-width: 768px) {
    #nog-in-te-vullen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
    #nog-in-te-vullen > .wt-kaart-kop { grid-column: 1 / -1; }
}

/* page head with "Naam aanpassen" next to the title */
.wt-titelrij {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 1rem;
    margin-bottom: var(--pico-spacing);
}
.wt-titelrij h1 { margin-bottom: .25rem; }
.wt-naam { margin: 0; }
.wt-naam[open] { flex-basis: 100%; }

/* beheer label and configuratie: one form around all cards; its one "Bewaren" shows once a card is open */
.wt-pagina-form { margin: 0; }
.wt-pagina-form > button.wt-bewaar-pagina { display: none; margin: .9rem 0 0; }
.wt-pagina-form:has(details[open]) > button.wt-bewaar-pagina { display: inline-block; }

/* beheer: below the cards, "Gebruikt door", the links row, and the age grid (category, from, up to and including) */
.wt-gebruikt { color: var(--pico-muted-color); font-size: .9rem; margin: .8rem 0 0; }
.wt-onder { margin-top: 1.25rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wt-leeftijden { display: grid; grid-template-columns: 4rem 1fr 1fr; gap: .3rem .6rem; align-items: center; }
.wt-leeftijden input { margin: 0; padding: .35rem .5rem; height: auto; }
.wt-leeftijden .kop { font-size: .8rem; color: var(--pico-muted-color); }

/* vervoerpagina: Jullie (a card per own traveller), Wie rijdt mee (a card per bus and car), Beheer at the bottom.
   The cards, rows, "Aanpassen", Te doen and Beheer are the shared classes above; this is what is new. */
.wt-vervoer .wt-terug { margin-bottom: .3rem; }
.wt-vervoer h1 { margin-bottom: .1rem; }
.wt-vervoer .wt-vervoer-onder-titel { margin-bottom: .4rem; }
.wt-vervoer-dag { margin-bottom: 1.5rem; }
.wt-vervoer-dag h3 { margin: 1.2rem 0 .5rem; }
.wt-vervoer .wt-taak form { margin: 0; }
/* a head with something on the right (the stand, the departure); room for "Aanpassen" only when there is one */
.wt-vervoer .wt-kaart-kop { justify-content: space-between; gap: .5rem; padding-right: var(--pico-block-spacing-horizontal); }
.wt-vervoer .wt-kaart:has(> details.wt-aanpassen) > .wt-kaart-kop { padding-right: 6.5rem; }
.wt-vervoer .wt-kaart-kop > span { font-size: .88rem; text-align: right; }
.wt-stand--ok { color: var(--pico-ins-color); }
.wt-stand--let, .wt-let { color: var(--wt-proposed); }
.wt-stand--grijs { color: var(--pico-muted-color); }
.wt-vervoer .wt-kaart p { margin-bottom: .4rem; }
.wt-vervoer .wt-kaart .wt-rij { grid-template-columns: 5.5rem minmax(0, 1fr); padding: .3rem 0; }
.wt-vervoer-vertrek { font-size: .88rem; }
.wt-vervoer .wt-kaart details:not(.wt-aanpassen) { margin: .4rem 0 0; }
.wt-vervoer .wt-kaart details:not(.wt-aanpassen) > summary { font-size: .88rem; color: var(--pico-primary); }
.wt-vervoer .wt-kaart button.wt-stapknop { font-size: .85rem; }

/* the choice per traveller: the segment may wrap on a narrow phone; the ticks and the numbers on one line */
.wt-vervoer-keuze { margin: 0; }
.wt-vervoer .wt-segment-keuze { flex-wrap: wrap; max-width: 100%; margin-bottom: .2rem; }
.wt-vervoer .wt-segment-keuze label { padding: .3rem .65rem; }
.wt-vervoer-vinkjes { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: .4rem 0 .6rem; padding: 0; border: 0; }
.wt-vervoer-vinkjes label { margin: 0; }
.wt-vervoer-keuze > button, .wt-vervoer-keuze noscript button { margin-top: .4rem; }

/* free places: a line per vehicle, "Kiezen" on the right */
.wt-vrije-plaatsen > p { margin: .5rem 0 .2rem; font-size: .88rem; }
.wt-vrije-plaatsen ul { margin: 0; padding: 0; }
.wt-vrij { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem;
           margin: 0; padding: .35rem 0; border-top: 1px solid var(--pico-muted-border-color); font-size: .9rem; }
.wt-vrij .wt-grijs { font-size: .84rem; }
.wt-vrij form { margin: 0; flex-shrink: 0; }

/* the own car: one number, "Heen en terug apart" folded away */
.wt-vervoer-auto { margin-top: .5rem; padding-top: .45rem; border-top: 1px solid var(--pico-muted-border-color); }
.wt-vervoer-auto p { margin: 0 0 .3rem; }
.wt-vervoer-auto-vraag strong { font-size: .92rem; }
.wt-vervoer-getal { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0; }
.wt-vervoer-getal label { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; }
.wt-vervoer-getal input[type="number"] { width: 4.5rem; margin: 0; padding: .3rem .5rem; height: auto; }
/* one form: the number, "Heen en terug apart" on its own line, then the one "Bewaren" */
.wt-vervoer-getal > details { flex: 0 0 100%; margin: 0; padding: 0; border: 0; }
.wt-vervoer-getal > details > summary { font-size: .88rem; }
.wt-vervoer-getal > details[open] > summary { margin-bottom: .4rem; }
.wt-vervoer-hint { font-size: .88rem; }

/* a vehicle: "Kinderen" with the count, a line per rider, the free places in grey italics */
.wt-vervoer-kop2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: .3rem 0 .1rem; }
.wt-vervoer-kop2 strong { font-size: .92rem; }
.wt-vervoer-kop2 .wt-grijs { font-size: .84rem; }
.wt-reizigers { margin: .2rem 0 .3rem; padding: 0; }
.wt-reiziger, .wt-vrij-plaatsen { list-style: none; display: flex; justify-content: space-between; align-items: center;
                                  gap: .4rem; margin: 0; padding: .2rem 0; min-height: 2.1rem;
                                  border-top: 1px solid var(--pico-muted-border-color); font-size: .92rem; }
.wt-reizigers > li:first-child { border-top: 0; }
.wt-vrij-plaatsen { color: var(--pico-muted-color); font-style: italic; }
.wt-weg-form { margin: 0; }
/* who is not staff: the riders inline after the count, "Lana, Finn, Noor" */
.wt-reizigers--kort { display: flex; flex-wrap: wrap; gap: 0 .2rem; margin: .1rem 0 0; }
.wt-reizigers--kort .wt-reiziger { border: 0; padding: 0; min-height: 0; gap: .1rem; }
.wt-reizigers--kort .wt-reiziger:not(:last-child)::after { content: ","; }

/* the cross: an icon button in the line style of the menu icons, red on hover or focus */
.wt-vervoer button.wt-weg { display: inline-grid; place-items: center; flex-shrink: 0; width: 1.75rem; height: 1.75rem;
                            margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent;
                            color: var(--pico-muted-color); box-shadow: none; cursor: pointer; }
.wt-vervoer button.wt-weg svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wt-vervoer button.wt-weg:hover,
.wt-vervoer button.wt-weg:focus-visible { background: var(--wt-tag-warning-background); color: var(--wt-tag-warning-color); }
.wt-vervoer button.wt-weg:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

/* staff: the select of who still misses a seat, and "Toevoegen" */
.wt-erbij { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0 0; }
.wt-erbij select { flex: 1 1 6rem; width: auto; min-width: 0; margin: 0; padding: .3rem 2rem .3rem .6rem; font-size: .88rem; }

/* heen and terug side by side, also on a phone */
.wt-richtingen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .9rem; margin-top: .3rem; }
.wt-richting-kolom { min-width: 0; }
.wt-richting-kolom .wt-reiziger { font-size: .88rem; }
.wt-richting-kolom .wt-erbij select { flex-basis: 100%; }
.wt-vervoer-chauffeur { margin: 0 0 .2rem; font-size: .84rem; }
.wt-vervoer-onder { margin: .5rem 0 0; padding-top: .45rem; border-top: 1px solid var(--pico-muted-border-color); font-size: .84rem; }
.wt-vervoer-apart { padding-top: .45rem; border-top: 1px solid var(--pico-muted-border-color); }
.wt-vervoer .wt-kaart details.wt-vervoer-apart > summary { display: flex; justify-content: space-between; align-items: baseline;
                                                       gap: .5rem; color: inherit; }
.wt-vervoer-apart > summary::after { display: none; }
.wt-vervoer-apart > summary .wt-grijs { font-size: .84rem; }
.wt-vervoer-apart-link { color: var(--pico-primary); text-decoration: underline; white-space: nowrap; }

/* Aanpassen in a bus card: a form per thing */
.wt-vervoer .wt-aanpassen label { font-size: .9rem; }
.wt-vervoer .wt-aanpassen input[type="time"], .wt-vervoer .wt-aanpassen select { margin-bottom: .4rem; }

/* Beheer of the transport page: a day label per block, the gone days with their overview */
.wt-vervoer-beheer .wt-beheer-dag { margin: 1rem 0 .2rem; font-size: 1rem; color: var(--pico-muted-color); }
.wt-vervoer-beheer .wt-beheer-dag + .wt-beheer-regel { border-top: 0; }
.wt-beheer-form { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.wt-beheer-form input[type="time"] { width: auto; margin: 0; padding: .3rem .6rem; height: auto; }
.wt-beheer-form select { width: auto; max-width: 100%; margin: 0; padding-top: .3rem; padding-bottom: .3rem; height: auto; }
/* the small dialog of a button with data-melding (wt.js) */
#wt-melding article { max-width: 26rem; }
#wt-melding p { margin-bottom: 1rem; }
#wt-melding form { margin: 0; text-align: right; }
.wt-beheer-uitklap > summary { font-size: .85rem; color: var(--pico-primary); }
.wt-beheer-uitklap[open] > summary { margin-bottom: .4rem; }
.wt-beheer-uitklap textarea { margin-bottom: .4rem; }
.wt-vervoer-geschrapt-overzicht { flex-basis: 100%; }
.wt-vervoer-historiek { margin: 0; padding-left: 1rem; font-size: .88rem; }

/* ---------------------------------------------------------------- Beheer-lijsten: one short row per item, the whole row is the link */
ul.wt-items { list-style: none; padding: 0; margin: 0; }
ul.wt-items > li { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pico-muted-border-color); }
ul.wt-items > li:first-child { border-top: 0; }
a.wt-item, details.wt-item > summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .75rem; align-items: center;
    padding: .55rem 0; color: inherit; text-decoration: none; margin: 0; list-style: none; cursor: pointer;
}
details.wt-item { margin: 0; }
details.wt-item > summary::after, details.wt-item > summary::-webkit-details-marker { display: none; }
.wt-item-naam { font-weight: 600; min-width: 0; }
.wt-item-kort { grid-column: 1; color: var(--pico-muted-color); font-size: .9rem; line-height: 1.3; }
.wt-item-pijl { grid-column: 2; grid-row: 1 / span 2; color: var(--pico-muted-color); font-size: 1.2rem; }
.wt-item-actie { grid-column: 2; grid-row: 1; font-size: .85rem; color: var(--pico-primary); text-decoration: underline; }
details.wt-item .wt-open { display: none; }
details.wt-item[open] .wt-open { display: inline; }
details.wt-item[open] .wt-dicht { display: none; }
details.wt-item[open] { padding-bottom: .6rem; }
details.wt-item ul { margin: .2rem 0 .3rem; padding-left: 1.1rem; }
details.wt-item li { font-size: .9rem; margin: .1rem 0; }
mark.wt-treffer { background: var(--wt-treffer-background); color: var(--wt-treffer-color); padding: 0 .1rem; border-radius: 3px; }
.wt-zoekbalk input[type=search] { margin-bottom: .4rem; }
.wt-zoekfilters { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; font-size: .9rem; }
.wt-zoekfilters select { width: auto; margin: 0; padding-top: .3rem; padding-bottom: .3rem; font-size: .9rem; }
.wt-zoekfilters label { margin: 0; }
.wt-telregel { color: var(--pico-muted-color); font-size: .85rem; margin: 0 0 .3rem; }
/* extends the .wt-titelrij above: a "+ Nieuw..." link or details right-aligned next to the title */
.wt-titelrij > a, .wt-titelrij > details.wt-groep-nieuw { margin-left: auto; }
.wt-titelrij > details.wt-groep-nieuw[open] { flex-basis: 100%; margin-left: 0; }
a.wt-item:hover .wt-item-naam { text-decoration: underline; }
.wt-titelrij > a { font-size: .95rem; white-space: nowrap; }
.wt-noot { color: var(--pico-muted-color); font-size: .9rem; }

/* beheer label: "Label verwijderen" is a form button that reads as a small red link */
.wt-onder form { margin: 0; }
.wt-onder button.wt-gevaar {
    width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
    color: var(--pico-del-color); font-size: inherit; text-decoration: underline; cursor: pointer;
}

/* Save and, next to it, a second action that is a form of its own (deleting an empty role). */
.wt-knoppenrij { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 .5rem; }
.wt-knoppenrij form { margin: 0; }
.wt-knoppenrij button { margin: 0; }

/* Zalen: the names of the hall groups, a compact grid of fields behind "Groepen hernoemen". */
.wt-groepen-hernoemen { margin: -0.4rem 0 var(--pico-spacing); }
.wt-groepen-hernoemen > summary { display: inline-block; font-size: .85rem; color: var(--pico-muted-color); text-decoration: underline; }
.wt-groepen-hernoemen > summary::after { display: none; }
.wt-groepen-hernoemen button { width: auto; }
.wt-groepnamen { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem; margin: .5rem 0; }
.wt-groepnamen input { margin: 0; padding-block: .3rem; font-size: .9rem; height: auto; }

/* The explanation under the title of Wedstrijden and of Wedstrijd voorstellen: what the tab is for, in a few lines. */
.wt-uitleg {
    max-width: 46rem;
    margin-bottom: 1rem;
    color: var(--pico-muted-color);
    font-size: 0.9rem;
}

/* Fixed weekly trainings: on the group board and, greyed, in the calendar. */
.wt-moment-uren { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wt-training-disclaimer { font-size: .8rem; color: var(--pico-muted-color); margin: .25rem 0 .75rem; }
.wt-day-items li.wt-training { color: var(--pico-muted-color); opacity: .8; }
.wt-vaste-trainingen { margin: .75rem 0 1rem; color: var(--pico-muted-color); font-size: .85rem; }
.wt-vaste-trainingen h3 { font-size: .85rem; margin: 0 0 .2rem; color: inherit; }
.wt-vaste-trainingen ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.wt-vaste-trainingen li { margin: 0; padding: 0; list-style: none; color: var(--pico-muted-color); }
.wt-vaste-trainingen .wt-training-disclaimer { margin: .3rem 0 0; }
.wt-kinderkeuze { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 .75rem; }

/* Days without the fixed trainings in the month grid: a light pastel per kind, explained by the legend below it. */
.wt-day--feestdag { --wt-vrij: #e8a13a; }
.wt-day--vakantie { --wt-vrij: #4aa3df; }
.wt-day--sluiting { --wt-vrij: #b07cc6; }
.wt-day.wt-day--vrij { background: color-mix(in srgb, var(--wt-vrij) 20%, var(--pico-card-background-color)); }
.wt-day-vrij {
    display: block; font-size: .65em; line-height: 1.2; color: var(--pico-muted-color);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.wt-legende { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0; padding: 0; font-size: .8rem; color: var(--pico-muted-color); }
.wt-legende li { display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0; list-style: none; color: inherit; }
.wt-legende-kleur {
    width: 1rem; height: 1rem; border-radius: .25rem; border: 1px solid var(--pico-muted-border-color);
    background: color-mix(in srgb, var(--wt-vrij) 20%, var(--pico-card-background-color));
}
@media (max-width: 767px) {
    .wt-day-vrij { display: none; }
}
/* A holiday with training anyway: the day keeps its colour, the training says it is an exception. */
.wt-tochles { font-weight: 600; color: var(--pico-color); }
.wt-day-items .wt-tochles {
    display: block; font-size: .65em; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
/* The three tables without training on the group board: school holidays, public holidays, own periods. */
.wt-pauzes-kaart .wt-kaart-kop { display: flex; align-items: center; gap: .5rem; }
.wt-pauzes-kaart .wt-legende-kleur {
    width: .75rem; height: .75rem; flex: none;
    background: color-mix(in srgb, var(--wt-vrij) 45%, var(--pico-card-background-color));
}
.wt-pauzes { width: 100%; margin: 0; font-size: .95rem; }
.wt-pauzes th, .wt-pauzes td { padding: .35rem .5rem; vertical-align: middle; background: none; }
.wt-pauzes th:first-child, .wt-pauzes td:first-child { padding-left: 0; }
.wt-pauzes th:last-child, .wt-pauzes td:last-child { padding-right: 0; }
.wt-pauzes thead th { font-size: .8rem; font-weight: 600; color: var(--pico-muted-color); }
.wt-pauzes td strong { font-weight: 600; }
.wt-pauzes .wt-tochles { display: block; font-size: .8rem; line-height: 1.3; }
.wt-pauze-datum { white-space: nowrap; color: var(--pico-muted-color); }
.wt-pauze-dag { display: inline-block; min-width: 1.6em; }
.wt-pauze-knop { width: 1%; white-space: nowrap; text-align: right; }
@media (max-width: 767px) {
    .wt-pauzes { font-size: .85rem; }
    .wt-pauzes th, .wt-pauzes td { padding: .3rem .3rem; }
    .wt-pauzes .wt-jaar { display: none; }
}
/* a row with training anyway stands out a little: the exception is the point */
.wt-pauzes tr.wt-pauze--tochles td { background: color-mix(in srgb, var(--pico-primary) 6%, transparent); }
.wt-vaste-trainingen h3.wt-geen-training { margin-top: .5rem; }
.wt-vaste-trainingen li { display: flex; align-items: center; gap: .35rem; }
.wt-vaste-trainingen .wt-legende-kleur {
    width: .75rem; height: .75rem; flex: none;
    background: color-mix(in srgb, var(--wt-vrij) 45%, var(--pico-card-background-color));
}

/* Agenda: the buttons, the link field and the two notices. */
.wt-agenda-knoppen { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.wt-agenda-knoppen a[role="button"] { margin: 0; }
.wt-agenda-link { display: flex; gap: .5rem; align-items: stretch; margin-bottom: 1rem; }
.wt-agenda-link input { flex: 1 1 auto; min-width: 0; margin: 0; }
.wt-agenda-link button { flex: 0 0 auto; width: auto; margin: 0; white-space: nowrap; }
.wt-notice--agenda,
.wt-notice--agenda-link {
    border: 1px solid var(--pico-primary-border);
    border-left-width: .3rem;
    background: var(--pico-card-sectioning-background-color);
    box-shadow: none;
}
.wt-notice--agenda { margin: 1rem 0 1.5rem; }
.wt-notice--agenda > :last-child { margin-bottom: 0; }
.wt-notice--agenda ul { margin-bottom: .75rem; }
.wt-agenda-beheer { display: grid; gap: 1rem; margin-top: 1.5rem; }
.wt-agenda-beheer form { margin: 0; }
.wt-agenda-beheer button { width: auto; margin: 0 .5rem .25rem 0; }
.wt-agenda-beheer small { color: var(--pico-muted-color); }

/* ---------------------------------------------------------------- Wedstrijden list: months, rows and date tiles */
/* A month is a divider with one block of rows under it; each row is a date tile, the competition (name and hall,
   then counts and remarks with km and price on the right) and, when the viewer has any, the own lines (children,
   vervoer): a narrow icon column on the right on a wide screen, under the name with words on a phone. */
.wt-maand { margin-bottom: 1.25rem; }
.wt-maand-kop {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--pico-primary);
}
.wt-maand-kop::after { content: ""; flex: 1; border-top: 1px solid var(--pico-muted-border-color); }
.wt-maand-lijst {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
    overflow: hidden;
}
.wt-voorbij > summary { margin-bottom: .6rem; }

article.wt-rij {
    display: grid;
    grid-template-columns: 2.9rem minmax(0, 1fr);
    gap: .2rem .8rem;
    align-items: start;
    margin: 0;
    padding: .7rem 1rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.wt-rij + .wt-rij { border-top: 1px solid var(--pico-muted-border-color); }

.wt-datum {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: .6rem;
    line-height: 1.15;
    white-space: nowrap;
}
.wt-datum-dag { font-size: .72rem; }
.wt-datum-nr { font-size: 1.2rem; font-weight: 700; }
.wt-datum--meer .wt-datum-nr { font-size: .85rem; }
.wt-datum--officieel { background: var(--wt-purple); color: #fff; }
.wt-datum--officieel .wt-datum-dag { color: rgba(255, 255, 255, .8); }
.wt-datum--voorgesteld { border: 1.5px dashed var(--pico-muted-color); }
.wt-datum--voorgesteld .wt-datum-dag { color: var(--pico-muted-color); }
/* the legend's small swatch of each tile */
.wt-datum-staal {
    display: inline-block;
    width: .95rem;
    height: .95rem;
    margin-right: .3rem;
    border-radius: .25rem;
    vertical-align: -.12rem;
}

.wt-rij-info { min-width: 0; }
.wt-rij-kop,
.wt-rij-sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .2rem .75rem;
    margin: 0;
}
.wt-rij-naam { font-weight: 700; min-width: 0; }
.wt-rij-zaal { flex: none; max-width: 45%; text-align: right; font-size: .9rem; }
.wt-rij-sub { margin-top: .1rem; font-size: .85rem; color: var(--pico-muted-color); }
.wt-rij-extra { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; min-width: 0; }
.wt-rij-opmerking { color: var(--pico-color); }
.wt-rij-voorstel { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; color: var(--pico-color); }
.wt-rij-voorstel > span { white-space: nowrap; }
/* the dashed edge of the voorgesteld date tile, in small */
.wt-tag--voorstel { border: 1px dashed var(--wt-proposed); background: transparent; color: var(--pico-color); font-weight: 600; }
.wt-rij-opmerking--let-op { color: var(--wt-tag-warning-color); }
.wt-rij-getallen { flex: none; display: flex; gap: .35rem; white-space: nowrap; }
.wt-rij-getallen > * + *::before { content: "·"; margin-right: .35rem; color: var(--pico-muted-color); font-weight: 400; }
.wt-rij-prijs { color: var(--pico-color); }
.wt-rij-prijs.wt-grijs { color: var(--pico-muted-color); }

/* own lines: on a phone under the competition, the words shown and the icons left out */
.wt-rij-eigen {
    grid-column: 2;
    margin-top: .3rem;
    padding-top: .3rem;
    border-top: 1px dashed var(--pico-muted-border-color);
}
.wt-rij-eigen--leeg { display: none; }
.wt-kind--icoon { border: 0; border-radius: 0; margin: 0; padding: .15rem 0; }
.wt-kind--icoon p { margin: .1rem 0 .2rem; }
.wt-kind--icoon .wt-icoon { display: none; }
.wt-kind--icoon .wt-stap--vinkje { color: #2a9a48; }
/* a child outside the categories (or no longer in one): a short orange line under the name */
/* The categories of a competition as small chips; filled: an own child takes part in it. Next to a child's name
   its own category, outlined in the warning colour when it is outside the categories (wildcard). */
.wt-cats { display: inline-flex; flex-wrap: wrap; gap: .2rem; vertical-align: middle; }
.wt-cat {
    display: inline-block;
    flex: none;
    padding: 0 .4rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 1rem;
    color: var(--pico-muted-color);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}
.wt-cat--eigen { border-color: transparent; background: var(--wt-tag-strong-background); color: var(--wt-tag-strong-color); }
.wt-cat--buiten { border-style: dashed; border-color: var(--wt-tag-warning-color); color: var(--wt-tag-warning-color); }
.wt-kind-naam { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.wt-kind-let-op { margin: .1rem 0 0; font-size: .8rem; line-height: 1.3; color: var(--wt-tag-warning-color); }
.wt-kind--icoon .wt-kind-let-op { margin: 0; font-size: .75rem; }

/* the colour of a step's icon, wherever it shows */
.wt-stap .wt-icoon { color: var(--pico-muted-color); }
.wt-stap--ster .wt-icoon { color: var(--pico-primary); }
.wt-stap--euro .wt-icoon,
.wt-stap--auto .wt-icoon { color: #d9650a; }
.wt-stap--kruis .wt-icoon { color: var(--pico-del-color); }
.wt-stap--vinkje .wt-icoon { color: #2a9a48; }

.wt-icoon {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

@media (min-width: 768px) {
    article.wt-rij { align-items: center; }
    .wt-rij-naam,
    .wt-rij-zaal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* one column width on every row of the page, also on rows without own lines, so the right edges line up */
    .wt-met-eigen article.wt-rij { grid-template-columns: 2.9rem minmax(0, 1fr) 18rem; }
    .wt-rij-eigen {
        grid-column: 3;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: .15rem;
        margin: 0;
        padding: 0 0 0 .8rem;
        border-top: 0;
        border-left: 1px solid var(--pico-muted-border-color);
    }
    .wt-met-eigen .wt-rij-eigen--leeg { display: block; border-left-color: transparent; }
    .wt-kind--icoon .wt-kind-regel {
        display: grid;
        grid-template-columns: minmax(5.8rem, 1fr) 1.6rem 8.6rem;
        gap: .4rem;
        align-items: center;
    }
    .wt-kind--icoon .wt-kind-regel > strong,
    .wt-kind--icoon .wt-kind-naam > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .wt-kind--icoon .wt-kind-knoppen { grid-column: 3; justify-self: start; margin: 0; flex-wrap: nowrap; gap: .3rem; }
    .wt-kind--icoon .wt-icoon { display: inline-block; }
    .wt-kind--icoon .wt-stap { display: flex; justify-content: center; color: var(--pico-muted-color); }
    .wt-kind--icoon .wt-stap .wt-icoon { width: 1.4rem; height: 1.4rem; }
    /* the words stay for screen readers; the button's title gives them on hover */
    .wt-kind--icoon .wt-icoon-tekst {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .wt-icoonknop { display: inline-flex; align-items: center; justify-content: center; padding: .35rem .55rem; line-height: 1; }
    .wt-icoonknop .wt-icoon { width: 0.8rem; height: 0.8rem; }
    /* the first button says what it does: icon and word, so nobody has to hover to know */
    .wt-icoonknop--woord { gap: .3rem; font-size: .8rem; }
    .wt-kind--icoon .wt-icoonknop--woord .wt-icoon-tekst {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
    }
}

/* On a phone the row has three short lines instead of two broken ones: the name, then the hall with km and price on
   the right, then the counts and remarks. */
@media (max-width: 767px) {
    .wt-rij-info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: .75rem;
        align-items: baseline;
    }
    .wt-rij-kop,
    .wt-rij-sub { display: contents; }
    .wt-rij-naam { grid-column: 1 / -1; }
    .wt-rij-zaal {
        grid-column: 1;
        max-width: none;
        text-align: left;
        font-size: .85rem;
        color: var(--pico-muted-color);
    }
    .wt-rij-getallen { grid-column: 2; grid-row: 2; font-size: .85rem; color: var(--pico-muted-color); }
    .wt-rij-extra { grid-column: 1 / -1; font-size: .85rem; color: var(--pico-muted-color); }
    .wt-rij-extra:empty { display: none; }
}

/* The own children in the week view of Wedstrijden: a small block next to the competition on a wide screen,
   under it on a phone; the lines themselves are the list's (.wt-kind--icoon). */
.wt-week-kinderen {
    margin-top: .2rem;
    padding: .3rem .6rem;
    border-radius: .5rem;
    background: var(--pico-card-background-color);
}

@media (min-width: 768px) {
    .wt-agenda-item:has(.wt-week-kinderen) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 18rem;
        gap: .4rem;
        align-items: stretch;
    }
    .wt-week-kinderen {
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: .15rem;
    }
}

/* On a phone the week has a date column beside it, so there the step is its icon (the words stay for screen
   readers) and only the buttons keep their words: one child stays on one line. */
@media (max-width: 767px) {
    .wt-week-kinderen .wt-stap .wt-icoon { display: inline-block; width: 1.3rem; height: 1.3rem; }
    .wt-week-kinderen .wt-stap .wt-icoon-tekst,
    .wt-week-kinderen .wt-kind-knoppen > .wt-icoon-tekst {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .wt-week-kinderen .wt-kind-knoppen { gap: .3rem; }
    .wt-week-kinderen .wt-stapknop { padding: .3rem .6rem; }
}

/* The Raster: the legend of the symbols, and the panel row under a competition that a tap on an own cell fills. The
   row stays hidden while its panel is empty; its content sticks to the left edge while the table scrolls sideways. */
.wt-raster-legende { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.wt-raster-legende b { display: inline-block; min-width: 1em; text-align: center; color: var(--pico-color); }
.wt-raster tr.wt-raster-paneelrij { display: none; }
.wt-raster tr.wt-raster-paneelrij:has(.wt-kind) { display: table-row; }
.wt-raster tr:has(+ tr.wt-raster-paneelrij .wt-kind) > * { background: var(--pico-card-sectioning-background-color); }
.wt-raster tr.wt-raster-paneelrij > td {
    padding: 0;
    text-align: left;
    white-space: normal;
    background: var(--pico-card-sectioning-background-color);
}
.wt-raster-paneelinhoud {
    position: sticky;
    left: 0;
    width: min(36rem, calc(100vw - 3rem));
    padding: .5rem .75rem .25rem;
}
.wt-raster-paneelkop { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .4rem; }
.wt-raster-paneelkop small { color: var(--pico-muted-color); }
.wt-raster-sluit { margin: 0 0 0 auto; width: auto; padding: 0 .55rem; line-height: 1.6; }
.wt-raster-paneel .wt-kind { margin-bottom: .4rem; background: var(--pico-card-background-color); }

/* Handleiding: de schermafdrukken los van de pagina (zelfde crèmekleur), en het schema
   "In de app ↔ Bij de organisator": twee kolommen naast elkaar, op de gsm onder elkaar. */
.wt-handleiding img {
    display: block;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
}
.wt-schema {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.wt-schema-kant {
    padding: 1rem 1.25rem;
    border: 2px solid var(--wt-purple);
    border-radius: var(--pico-border-radius);
    background: var(--pico-card-background-color);
}
.wt-schema-kant--organisator { border-color: var(--wt-orange); }
.wt-schema-kant .wt-schema-titel { margin: 0; font-size: 1.15rem; font-weight: 700; }
.wt-schema-kant .wt-schema-sub { margin: 0 0 .5rem; color: var(--pico-muted-color); }
.wt-schema-kant ul { margin: 0; }
.wt-schema-pijl { align-self: center; font-size: 2rem; color: var(--pico-muted-color); }
@media (max-width: 640px) {
    .wt-schema { grid-template-columns: 1fr; }
    .wt-schema-pijl { justify-self: center; transform: rotate(90deg); }
}

/* Handleiding: Pico lays out `nav ul` as a flex row; the table of contents is a normal vertical list */
.wt-handleiding nav[aria-label="Inhoud"] ul {
    display: block;
    margin-inline: 0;
    padding-inline-start: 1.25rem;
    list-style: disc;
}
.wt-handleiding nav[aria-label="Inhoud"] ul ul {
    list-style: circle;
}
.wt-handleiding nav[aria-label="Inhoud"] li {
    display: list-item;
    padding: 0.15rem 0;
    margin: 0;
    list-style: inherit;
}
.wt-handleiding nav[aria-label="Inhoud"] li a {
    margin: 0;
    padding: 0;
}
