:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #10233a;
    --muted: #5d6b7b;
    --line: #d9e2ec;
    --accent: #0f4c81;
    --accent-soft: #e8f1f8;
    --green: #1f7a3d;
    --green-soft: #e9f7ef;
    --red: #a12b2b;
    --red-soft: #fdeeee;
    --gold: #b88400;
    --gold-soft: #fff2c2;
    --silver: #6f7c88;
    --silver-soft: #eef2f6;
    --bronze: #8f5d35;
    --bronze-soft: #f5e4d7;
    --shadow: 0 10px 30px rgba(16, 35, 58, 0.08);
    --radius: 18px;
    --stand-cell-y: clamp(0.45rem, 0.35rem + 0.35vw, 0.75rem);
    --stand-cell-x: clamp(0.35rem, 0.25rem + 0.35vw, 0.65rem);
    --stand-score-width: clamp(4.1rem, 5vw, 5.8rem);
    --stand-logo-size: clamp(2rem, 2.4vw, 2.625rem);
}

* { box-sizing: border-box; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.stand-shell {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(0.9rem, 1.4vw, 1.5rem) clamp(0.55rem, 1.2vw, 1rem) clamp(1.75rem, 3vw, 2.5rem);
}

.stand-header {
    background: linear-gradient(135deg, #0f4c81 0%, #173b63 100%);
    color: #fff;
    border-radius: 24px;
    padding: 24px 24px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.stand-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stand-header h1 {
    margin: 0 0 6px;
    font-size: 1.9rem;
    line-height: 1.15;
    color: white;
}

.stand-header p {
    margin: 0;
    color: rgba(255,255,255,0.88);
}

.stand-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.stand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.92rem;
}

.stand-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
}

.stand-sidebar,
.stand-main-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stand-sidebar {
    padding: 18px;
}

.stand-sidebar h2,
.stand-main-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.stand-nav-grid {
    display: grid;
    gap: 14px;
}

.stand-nav-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.stand-nav-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.stand-nav-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stand-nav-card li + li {
    margin-top: 8px;
}

.stand-nav-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.stand-nav-card a:hover {
    text-decoration: underline;
}

.stand-main-card {
    overflow: hidden;
}

.stand-main-head {
    display: flex;
    justify-content: space-between;
    gap: clamp(0.75rem, 1.6vw, 1rem);
    align-items: flex-start;
    padding: clamp(0.9rem, 1.8vw, 1.25rem) clamp(0.8rem, 1.8vw, 1.25rem) clamp(0.7rem, 1.4vw, 0.875rem);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.stand-main-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.stand-round-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.stand-round-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.stand-round-pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.stand-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    background: #fff;
}

.legend-badge.promotie,
.legend-badge.promotie-lijn {
    background: var(--green-soft);
    color: var(--green);
    border-color: #b9e2c5;
}

.legend-badge.degradatie,
.legend-badge.degradatie-lijn {
    background: var(--red-soft);
    color: var(--red);
    border-color: #f3c4c4;
}

.legend-badge.finale {
    background: #eef8ef;
    color: #216a37;
    border-color: #cde5d3;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 10px;
}

.legend-dot.promotie { background: var(--green); }
.legend-dot.degradatie { background: var(--red); }

.legend-strip {
    display: inline-block;
    width: 16px;
    height: 0;
    border-top: 3px solid currentColor;
    border-radius: 999px;
}

.legend-strip.finale { border-top-width: 6px; }

.stand-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

.stand-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: auto;
}

.stand-table th,
.stand-table td {
    padding: var(--stand-cell-y) var(--stand-cell-x);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.stand-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: clamp(0.76rem, 0.72rem + 0.2vw, 0.9rem);
    text-align: left;
    white-space: nowrap;
}

.stand-table td.num,
.stand-table th.num {
    text-align: right;
    white-space: nowrap;
}

.stand-table td.center,
.stand-table th.center {
    text-align: center;
}


.stand-table .col-rank { width: clamp(2.5rem, 4vw, 3.9rem); }
.stand-table .col-logo { width: clamp(2.7rem, 4vw, 4.5rem); }
.stand-table .col-team { min-width: clamp(8.5rem, 20vw, 18rem); }
.stand-table .col-depot { width: clamp(4.3rem, 6vw, 5.8rem); }
.stand-table .col-score { width: var(--stand-score-width); }
.stand-table .col-total { width: clamp(4.8rem, 6vw, 6.8rem); }
.stand-table .col-pd { width: clamp(2.4rem, 3.5vw, 3.5rem); }

.stand-sort-label-short { display: none; }

.stand-table tbody tr:hover {
    background: #fafcff;
}

.stand-table tbody tr.zone-promotie {
    box-shadow: inset 4px 0 0 var(--green);
}

.stand-table tbody tr.zone-degradatie {
    box-shadow: inset 4px 0 0 var(--red);
}

.stand-table tbody tr.is-season-top-zone td:first-child {
    position: relative;
}

.stand-table tbody tr.is-season-top-zone td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #34a853;
    border-radius: 3px;
}

.stand-table tbody tr.has-promotion-cut td {
    border-top: 3px solid #8fd09f;
}

.stand-table tbody tr.has-degradation-cut td {
    border-top: 3px solid #ebb1b1;
}

.stand-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.stand-sort-link:hover {
    color: var(--accent);
}

.stand-sort-link.is-active {
    color: var(--accent);
}

.sort-indicator {
    font-size: 0.82rem;
    line-height: 1;
}

.club-name {
    font-weight: 700;
}
.logo-col {
    width: clamp(2.7rem, 4vw, 4.5rem);
}

.club-logo-wrap {
    width: var(--stand-logo-size);
    height: var(--stand-logo-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.club-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.club-name.is-champion {
    color: var(--gold);
}

.club-sub {
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 2px;
}

.club-district {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4f9;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-width: clamp(1.8rem, 2.5vw, 2.125rem);
    padding: 0.35rem clamp(0.45rem, 0.8vw, 0.625rem);
    font-weight: 700;
    font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.88rem);
    background: var(--accent-soft);
    color: var(--accent);
}

.rank-badge.is-gold {
    background: var(--gold-soft);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(184, 132, 0, 0.18);
}

.rank-badge.is-silver {
    background: var(--silver-soft);
    color: var(--silver);
    box-shadow: inset 0 0 0 1px rgba(111, 124, 136, 0.14);
}

.rank-badge.is-bronze {
    background: var(--bronze-soft);
    color: var(--bronze);
    box-shadow: inset 0 0 0 1px rgba(143, 93, 53, 0.16);
}

.zone-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    border: 2px solid transparent;
}

.zone-badge.promotie {
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

.zone-badge.degradatie {
    background: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.zone-badge.handhaving {
    width: 8px;
    height: 8px;
    background: #c9d3de;
    opacity: 0.5;
}

.zone-placeholder {
    color: #9aa8b5;
    font-weight: 700;
    cursor: help;
}

.score-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    white-space: nowrap;
}

.score-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.78rem, 0.72rem + 0.22vw, 0.92rem);
}

.score-link:hover {
    text-decoration: underline;
}

.score-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.05rem, 1.8vw, 1.35rem);
    height: clamp(1.05rem, 1.8vw, 1.35rem);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
}

.score-edit-link:hover,
.score-edit-link:focus {
    background: var(--accent);
    color: #fff;
}

.meet-link,
.note-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(1.1rem, 1.8vw, 1.375rem);
    height: clamp(1.1rem, 1.8vw, 1.375rem);
    border-radius: 999px;
    font-size: clamp(0.68rem, 0.62rem + 0.18vw, 0.78rem);
    text-decoration: none;
    margin-left: 0.25rem;
}

.meet-link {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.note-mark {
    background: #fff7d6;
    color: #8a6d00;
    cursor: help;
    font-weight: 700;
}

.is-active-round {
    background: #f3f8fd;
}

.table-note {
    padding: 14px 20px 20px;
    color: var(--muted);
    font-size: 0.92rem;
}


@media (min-width: 1180px) {
    .stand-table {
        min-width: 58rem;
    }
}

@media (max-width: 980px) {
    .stand-sort-label-full { display: none; }
    .stand-sort-label-short { display: inline; }
    .stand-table .col-team { min-width: clamp(7.5rem, 26vw, 13rem); }
    .club-name { font-size: clamp(0.82rem, 1.5vw, 0.95rem); }
    .stand-main-tools { width: 100%; }
    .stand-context-switcher,
    .stand-context-form__select { width: 100%; }
}

@media (max-width: 760px) {
    .stand-table {
        font-size: 0.88rem;
    }
    .stand-table th,
    .stand-table td {
        padding-left: 0.28rem;
        padding-right: 0.28rem;
    }
    .stand-table .col-depot { width: 3.6rem; }
    .stand-table .col-score { width: 3.85rem; }
    .stand-table .col-total { width: 4.25rem; }
    .club-logo-wrap { border-radius: 0.65rem; }
    .score-actions { gap: 0.18rem; }
}

/* Onder zeer smalle breedtes blijft alle informatie beschikbaar; alleen dan mag de tabel beperkt horizontaal schuiven. */
@media (max-width: 560px) {
    .stand-table {
        min-width: 41rem;
    }
    .stand-table .col-team { min-width: 8rem; }
    .stand-main-summary__meta,
    .stand-main-summary__status,
    .table-note {
        font-size: 0.86rem;
    }
}

@media (max-width: 1100px) {
    .stand-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .stand-shell {
        padding: 16px 12px 28px;
    }

    .stand-header {
        border-radius: 18px;
        padding: 18px;
    }

    .stand-header h1 {
        font-size: 1.5rem;
        color: white;
    }

    .stand-main-head {
        padding: 16px 16px 12px;
    }

    .stand-legend {
        justify-content: flex-start;
    }

    .table-note {
        padding: 12px 16px 16px;
    }
}


.stand-layout--search {
    align-items: start;
}

.stand-search-panel {
    margin-bottom: 20px;
}

.stand-search-head--sidebar h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.stand-search-head--sidebar p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.stand-search-box {
    position: relative;
}

.stand-search-box--sidebar {
    display: block;
}

.stand-search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.stand-search-input-wrap {
    position: relative;
}

.stand-search-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.95rem;
    color: var(--text);
}

.stand-search-input--sidebar {
    padding-right: 86px;
}

.stand-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.10);
}

.stand-search-submit {
    position: absolute;
    top: 6px;
    right: 6px;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.stand-search-submit:hover,
.stand-search-submit:focus {
    background: #0d3f6c;
}

.stand-search-status {
    min-height: 20px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.stand-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.stand-search-results--sidebar {
    max-height: min(70vh, 480px);
    overflow-y: auto;
}

.stand-search-result-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 14px;
    text-decoration: none;
    color: var(--text);
    border-top: 1px solid #eef2f7;
    transition: background 0.16s ease, color 0.16s ease;
}

.stand-search-result-link:first-child {
    border-top: 0;
}

.stand-search-result-link:hover,
.stand-search-result-link:focus {
    background: #f7fbff;
    color: var(--accent);
}

.stand-search-result-link--all {
    font-weight: 700;
    background: #f8fafc;
}

.stand-search-result-title {
    font-weight: 700;
}

.stand-search-result-meta,
.stand-search-result-empty {
    color: var(--muted);
    font-size: 0.88rem;
}

.stand-search-result-empty {
    padding: 14px;
}

.stand-search-sidecard {
    margin-top: 18px;
}

.search-results-body {
    padding: 20px;
    display: grid;
    gap: 20px;
}

.club-search-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.club-search-hero {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border-bottom: 1px solid var(--line);
}

.club-search-hero__logo {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.club-search-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.club-search-hero__content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.club-search-hero__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stand-pill--light {
    background: #eef4f9;
    color: var(--accent);
}

.club-search-teams {
    display: grid;
}

.club-search-team {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid #eef2f7;
}

.club-search-team:hover,
.club-search-team:focus {
    background: #fafcff;
}

.club-search-team__main {
    display: grid;
    gap: 4px;
}

.club-search-team__main span {
    color: var(--muted);
    font-size: 0.92rem;
}

.club-search-team__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 0.88rem;
}

.club-search-team__link {
    color: var(--accent);
    font-weight: 700;
}

.search-empty-state {
    padding: 24px 20px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.search-empty-state h3 {
    margin: 0 0 8px;
}

.search-empty-state p {
    margin: 0;
    color: var(--muted);
}

.stand-search-row-highlight {
    animation: standSearchHighlight 2.2s ease;
}

@keyframes standSearchHighlight {
    0% { background: rgba(251, 191, 36, 0.38); }
    100% { background: transparent; }
}

@media (max-width: 900px) {
    .club-search-team {
        grid-template-columns: 1fr;
    }

    .club-search-team__meta {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .club-search-hero {
        grid-template-columns: 1fr;
    }

    .club-search-hero__logo {
        width: 72px;
        height: 72px;
    }

    .search-results-body {
        padding: 16px;
    }
}


.stand-page-feedback {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
}
.stand-toast {
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    border: 1px solid #dbe4f0;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
}
.stand-toast.is-success {
    border-color: #a7f3d0;
    background: #ecfdf3;
    color: #166534;
}
.stand-toast.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.edit-modal[hidden] {
    display: none;
}
.edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
}
.edit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}
.edit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}
.edit-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.edit-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
}
.edit-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}
.edit-modal__status {
    min-height: 0;
}
.edit-modal__status:not(:empty) {
    padding: 14px 24px 0;
}
.edit-modal__content {
    padding: 20px 24px 24px;
}
.edit-modal__loading {
    margin: 0;
    color: #475569;
}
.edit-modal .edit-feedback {
    margin-bottom: 14px !important;
}
.edit-modal .edit-form input[type="text"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}
.edit-modal .edit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}
.edit-modal .edit-form-actions input[type="submit"] {
    border: 0;
    border-radius: 10px;
    background: #0f3b82;
    color: #fff;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
}
.edit-modal .edit-form-actions input[type="submit"][disabled] {
    opacity: 0.65;
    cursor: wait;
}
body.modal-open {
    overflow: hidden;
}

.stand-sidebar-actions {
    margin-bottom: 18px;
}

.stand-sidebar-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #0f3b82;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 59, 130, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.stand-sidebar-search-button:hover,
.stand-sidebar-search-button:focus {
    background: #124796;
    box-shadow: 0 14px 28px rgba(15, 59, 130, 0.22);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .edit-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 16px;
    }
    .edit-modal__header,
    .edit-modal__content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.stand-search-card {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.stand-search-head h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}
.stand-search-head p {
    margin: 0 0 18px;
    color: #475569;
}
.stand-search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}
.stand-search-input-wrap {
    position: relative;
}
.stand-search-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}
.stand-search-input:focus {
    outline: none;
    border-color: #0f3b82;
    box-shadow: 0 0 0 4px rgba(15, 59, 130, 0.12);
}
.stand-search-status {
    margin-top: 8px;
    min-height: 20px;
    font-size: 0.92rem;
    color: #64748b;
}
.stand-search-results {
    margin-top: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}
.stand-search-result-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: #0f172a;
    border-top: 1px solid #eef2f7;
}
.stand-search-result-link:first-child {
    border-top: 0;
}
.stand-search-result-link:hover,
.stand-search-result-link:focus {
    background: #f8fafc;
}
.stand-search-result-title {
    font-weight: 700;
}
.stand-search-result-meta {
    font-size: 0.92rem;
    color: #475569;
}
.stand-search-result-empty {
    padding: 14px 16px;
    color: #475569;
}
.stand-search-row-highlight {
    animation: standSearchHighlight 2.2s ease;
}
@keyframes standSearchHighlight {
    0% { background: rgba(251, 191, 36, 0.38); }
    100% { background: transparent; }
}


@media (max-width: 960px) {
    .stand-shell {
        padding: 18px 14px 32px;
    }

    .stand-header,
    .stand-sidebar,
    .stand-main-card {
        border-radius: 20px;
    }

    .stand-main-head {
        padding: 18px 18px 14px;
    }

    .stand-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .stand-shell {
        padding: 14px 10px 28px;
    }

    .stand-header {
        padding: 18px 16px;
        margin-bottom: 16px;
    }

    .stand-header h1 {
        font-size: 1.45rem;
    }

    .stand-layout {
        gap: 16px;
    }

    .stand-sidebar {
        padding: 14px;
    }

    .stand-main-head {
        padding: 16px 14px 12px;
    }

    .stand-round-filter,
    .stand-meta,
    .stand-legend {
        gap: 8px;
    }

    .stand-round-pill,
    .legend-badge,
    .stand-pill {
        font-size: 0.84rem;
        padding: 6px 10px;
    }
}


/* Refactor april 2026 */
.stand-shell { display: block; }
.stand-layout { display: block; }
.stand-sidebar { display: none; }
.stand-main-card--full { width: 100%; }
.stand-main-head--with-context { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.stand-main-tools { display: grid; gap: 12px; }
.stand-context-form__select:focus { outline: 2px solid rgba(15,76,129,.25); outline-offset: 2px; }
.stand-nav-card a:hover, .score-link:hover, .meet-link:hover, .stand-search-result-link:hover, .club-search-team:hover { color: var(--accent); }
@media (max-width: 860px) { .stand-main-tools { width: 100%; } }


/* Compacte headerzone voor standenpagina */
.stand-main-card--full {
    display: flex;
    flex-direction: column;
}

.stand-main-head--with-context {
    gap: 20px;
    align-items: flex-start;
}

.stand-main-summary {
    display: grid;
    gap: 10px;
    min-width: min(100%, 520px);
    flex: 1 1 420px;
}

.stand-main-summary h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.stand-main-summary__meta,
.stand-main-summary__status {
    margin: 0;
    color: var(--muted);
}

.stand-main-summary__meta {
    font-weight: 600;
}

.stand-main-tools {
    flex: 0 1 360px;
    width: min(100%, 360px);
    align-content: start;
}

.stand-context-switcher {
    display: grid;
    gap: 8px;
}

.stand-context-form__label {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.stand-context-form__select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.stand-sidebar-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

@media (max-width: 860px) {
    .stand-main-tools {
        width: 100%;
        flex-basis: 100%;
    }

    .stand-legend {
        justify-content: flex-start;
    }
}


.search-page--compact .app-content {
    padding-top: 24px;
}

.stand-shell--search {
    max-width: 1040px;
    margin: 0 auto;
}

.search-page-card {
    overflow: visible;
}

.search-page-head {
    padding: 28px 28px 12px;
    text-align: center;
}

.search-page-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.search-page-head h1 {
    margin: 0 0 10px;
}

.search-page-head p {
    margin: 0;
    color: var(--muted);
}

.stand-search-box--inline {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 28px 0;
}

.stand-search-input-wrap--inline {
    max-width: 760px;
    margin: 0 auto;
}

.stand-search-input--inline {
    padding-right: 92px;
}

.stand-search-results--inline {
    left: 28px;
    right: 28px;
}

.search-page-summary {
    padding: 12px 28px 0;
    text-align: center;
}

.search-page-summary p {
    margin: 0;
    color: var(--muted);
}

.search-results-body--compact {
    padding-top: 24px;
}

@media (max-width: 640px) {
    .search-page-head,
    .stand-search-box--inline,
    .search-page-summary {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stand-search-results--inline {
        left: 16px;
        right: 16px;
    }
}


/* Prompt 8 — hover leesbaar houden op standenpagina */
.stand-nav-card a,
.score-link,
.meet-link,
.stand-search-result-link,
.club-search-team {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
}

.stand-nav-card a:hover,
.stand-nav-card a:focus-visible,
.score-link:hover,
.score-link:focus-visible,
.meet-link:hover,
.meet-link:focus-visible,
.stand-search-result-link:hover,
.stand-search-result-link:focus-visible,
.club-search-team:hover,
.club-search-team:focus-visible {
    color: var(--accent);
}

.stand-search-submit,
.stand-sidebar-search-button {
    color: #fff;
}

.stand-search-submit:hover,
.stand-search-submit:focus,
.stand-sidebar-search-button:hover,
.stand-sidebar-search-button:focus {
    color: #fff;
}
