/* Script: war-masters-clan-profile-design; versie 0.9.0. */
.wm-clan-profile .wm-breadcrumb { gap: 8px; }
.wm-clan-profile .wm-breadcrumb a { padding: 9px 12px; border: 1px solid #334252; border-radius: 7px; background: #15212d; }
.wm-clan-profile .wm-breadcrumb a[aria-current] { border-color: #ff922b; color: #ffb16b; }
.wm-clan-profile .wm-war-focus { margin-bottom: 28px; }
.wm-clan-profile .wm-profile-panel { margin: 24px 0; }
.wm-clan-profile :is(#clan-members, #clan-info) { padding: 24px; border: 1px solid #2c3a49; border-radius: 12px; background: #111d29; }

.wm-clan-profile .wm-clan-week-points { font-size: 30px; color: #ffbc73; margin-top: 8px; }
.wm-clan-rank { width: fit-content; padding: 5px 9px; border-radius: 5px; background: #253344; }
.wm-clan-table-scroll { overflow-x: auto; }
.wm-clan-table { width: 100%; min-width: 500px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wm-clan-table th, .wm-clan-table td { padding: 14px 12px; border-bottom: 1px solid #293949; text-align: right; }
.wm-clan-table th:first-child { text-align: left; }
.wm-clan-table thead { color: #99adbd; font-size: 11px; }
.wm-clan-table a { color: #eef4fa; text-decoration: none; }
.wm-clan-table a:hover { color: #ffb16b; }
.wm-clan-table small { display: block; color: #8095a8; margin-top: 5px; font-size: 10px; font-weight: 400; }
.wm-clan-comparison {
    min-width: max-content;
    border-collapse: separate;
    border-spacing: 4px;
}
.wm-clan-comparison th,
.wm-clan-comparison td {
    min-width: 104px;
    padding: 9px 8px;
    border-radius: 5px;
    text-align: left;
    vertical-align: top;
}
.wm-clan-comparison th:nth-child(2),
.wm-clan-comparison td:nth-child(2) { min-width: 136px; }
.wm-clan-comparison thead th { background: #17212c; }
.wm-clan-comparison th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 130px;
    background: #17212c;
    box-shadow: 2px 0 #334353;
}
.wm-clan-comparison th[scope="row"] a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wm-clan-comparison td { border-left-width: 2px; border-left-style: solid; }
.wm-clan-comparison td strong { font-size: 18px; }
.wm-clan-comparison .performance-metric { white-space: nowrap; }
@media (max-width: 700px) {
    .wm-clan-comparison th:first-child {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
        padding-inline: 6px;
    }
    .wm-clan-comparison th[scope="row"] a {
        font-size: 11px;
        writing-mode: horizontal-tb;
    }
}
.wm-clan-table td > span { display: inline-block; padding: 6px 9px; border-radius: 5px; }
@media(max-width: 600px) { .wm-clan-profile .wm-profile-panel { padding: 16px; } .wm-clan-profile .wm-breadcrumb a { font-size: 10px; } }
/* Ledenmatrix: dezelfde punten- en metriekblokken als Stats, alleen deze clan. */
.wm-clan-stats { min-width: 1650px; border-collapse: separate; border-spacing: 6px; }
.wm-clan-stats th, .wm-clan-stats td { min-width: 125px; text-align: left; vertical-align: top; border-radius: 6px; }
.wm-clan-stats .wm-clan-member-name { min-width: 220px; position: sticky; left: 0; z-index: 1; background: #111d29; }
.wm-clan-stats .wm-clan-score > strong { display: block; font-size: 22px; margin-bottom: 9px; }
.wm-clan-stats .performance-metric { display: block; margin-top: 5px; padding: 5px 7px; font-size: 11px; white-space: nowrap; }
.wm-clan-profile .wm-clan-stats small { line-height: 1.6; }
.wm-clan-member-search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0; color: #a4b6c7; font-size: 12px; }
.wm-clan-member-search input { padding: 10px 12px; background: #0e1822; border: 1px solid #354b5e; border-radius: 6px; color: #f1f5f9; max-width: 100%; }
.wm-clan-stats .player-inline-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
/* Leden gebruiken dezelfde oppervlakken en oranje bediening als het clanprofiel. */
.wm-clan-profile #clan-members { background: #101923; border-color: #2c3a49; }
.wm-clan-profile .wm-clan-stats { color: #e2e7ec; }
.wm-clan-profile .wm-clan-stats thead th { background: #17212c; color: #a9bacb; border: 1px solid #334353; }
.wm-clan-profile .wm-clan-stats .wm-clan-member-name { background: #17212c; border: 1px solid #334353; }
.wm-clan-profile .wm-clan-stats .wm-clan-member-name > a { color: #f4f4f5; }
.wm-clan-profile .wm-clan-stats .wm-clan-member-name > a:hover { color: #ffb260; }
.wm-clan-profile .wm-clan-stats small { color: #9eafbf; }
.wm-clan-profile .wm-clan-stats .action-button { background: #202c38; color: #ffb260; border: 1px solid #495461; box-shadow: none; border-radius: 4px; }
.wm-clan-profile .wm-clan-stats .action-button:hover { background: #34291e; color: #ffd09b; border-color: #e49e57; }
.wm-clan-profile .wm-clan-stats .action-cr { background: #35291c; border-color: #a36d36; color: #ffc17c; }
.wm-clan-profile .wm-clan-member-search { color: #a9bacb; }
.wm-clan-profile .wm-clan-member-search input { background: #17212c; border-color: #334353; color: #e2e7ec; }
.wm-clan-profile .wm-clan-member-search input:focus { border-color: #ff9d44; outline: 2px solid #ff9d4433; outline-offset: 2px; }
.wm-clan-profile .wm-clan-stats .wm-clan-score { border-left: 3px solid; }

.wm-clan-profile [data-clan-sortable] thead button { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 0; text-align: left; cursor: pointer; }
.wm-clan-profile [data-clan-sortable] thead button:hover, .wm-clan-profile [data-clan-sortable] th[aria-sort="ascending"], .wm-clan-profile [data-clan-sortable] th[aria-sort="descending"] { color: #ffb260; }
.wm-clan-profile [data-clan-sortable] button:focus-visible { outline: 2px solid #ff9d44; outline-offset: 4px; }
.wm-clan-profile .wm-clan-stats .action-copy { color: #ffbd7c; min-width: 38px; }
.wm-clan-profile .wm-clan-stats .action-copy:disabled { opacity: .5; cursor: default; }

.wm-clan-ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.wm-clan-rankings { margin: 22px 0 28px; }
.wm-clan-ranking-grid .wm-ranking-war { border-top: 2px solid #e49e57; }
.wm-clan-ranking-grid small { display: block; margin-top: 9px; font-size: 10px; }
@media(max-width: 600px) { .wm-clan-ranking-grid { grid-template-columns: 1fr; } }

/* Mobiele proef: een smalle vaste naamstrook tijdens horizontaal schuiven. */
@media (max-width: 700px) {
    .wm-clan-profile .wm-clan-stats {
        --wm-name-width: 176px;
        table-layout: fixed;
        min-width: 0;
        width: calc(var(--wm-score-columns, 11) * 137px + var(--wm-name-width) + 6px);
        overflow-anchor: none;
    }
    .wm-clan-profile .wm-clan-stats .wm-clan-member-name,
    .wm-clan-profile .wm-clan-stats thead th:first-child {
        width: var(--wm-name-width);
        min-width: 0;
        max-width: var(--wm-name-width);
        box-sizing: border-box;
    }
    .wm-clan-profile .wm-clan-stats .wm-clan-member-name > a { display: block; overflow-wrap: anywhere; }
    .wm-clan-profile .wm-clan-stats thead th:first-child { position: sticky; left: 0; z-index: 2; }
    .wm-clan-profile .wm-clan-stats.wm-compact-names { --wm-name-width: 44px; }
    .wm-clan-profile .wm-clan-stats.wm-compact-names .wm-clan-member-name { padding: 0; vertical-align: middle; overflow: hidden; }
    .wm-clan-profile .wm-clan-stats.wm-compact-names .wm-clan-member-name > a {
        position: absolute; top: 10px; bottom: 10px; left: 50%; transform: translateX(-50%);
        writing-mode: vertical-rl; text-orientation: mixed;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        max-width: 26px; line-height: 24px; font-size: 12px;
    }
    .wm-clan-profile .wm-clan-stats.wm-compact-names .wm-clan-member-name > small,
    .wm-clan-profile .wm-clan-stats.wm-compact-names .wm-clan-member-name > .player-actions { display: none; }
    .wm-clan-profile .wm-clan-stats.wm-compact-names thead th:first-child { padding: 10px 4px; }
    .wm-clan-profile .wm-clan-stats.wm-compact-names thead th:first-child button { font-size: 9px; overflow-wrap: anywhere; }
}

.wm-clan-note {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #334353;
    border-radius: 5px;
    background: #17212c;
}
.wm-clan-note h4 { margin: 0 0 10px; }
.wm-clan-note-form { display: grid; gap: 8px; }
.wm-clan-note-form label { color: #a9bacb; font-size: 13px; }
.wm-clan-note-form textarea {
    width: 100%;
    resize: vertical;
    padding: 10px;
    border: 1px solid #48596b;
    border-radius: 4px;
    background: #101923;
    color: #edf2f7;
    font: inherit;
}
.wm-clan-note-form button { justify-self: start; }
.wm-clan-note-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Clanopties v3.3.0: transparante torenskin, zonder extra schilddecoratie. */
.wm-clan-profile .wm-clan-tower-avatar {
    background: transparent;
    border: 0;
    clip-path: none;
    overflow: visible;
    box-shadow: none;
}
.wm-clan-profile .wm-clan-tower-avatar::before { display: none; }
.wm-clan-profile .wm-clan-tower-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wm-clan-appearance { margin-top: 20px; padding: 16px; border: 1px solid #334353; border-radius: 8px; background: #17212c; }
.wm-clan-appearance h4 { margin: 0 0 8px; }
.wm-clan-skin-form { display: grid; gap: 15px; }
.wm-clan-skin-choices { display: flex; gap: 12px; flex-wrap: wrap; padding: 0; margin: 0; border: 0; }
.wm-clan-skin-choices legend { padding-bottom: 12px; color: #a9bacb; font-size: 13px; }
.wm-clan-skin-choice {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    width: min(180px, calc(50% - 6px));
    min-width: 130px;
    padding: 12px 10px;
    color: #e3edf5;
    text-align: center;
    border: 2px solid #405061;
    border-radius: 10px;
    background: #101923;
    cursor: pointer;
}
.wm-clan-skin-choice:has(input:checked) { border-color: #ff9d44; background: #272017; }
.wm-clan-skin-choice:has(input:focus-visible) { outline: 2px solid #ffb76d; outline-offset: 3px; }
.wm-clan-skin-choice input { position: absolute; top: 10px; left: 10px; accent-color: #ff9d44; }
.wm-clan-skin-example { display: grid; place-items: center; width: 96px; height: 104px; }
.wm-clan-skin-example img { width: 96px; height: 96px; object-fit: contain; }
.wm-clan-skin-example .wm-clan-skin-classic { width: 72px; height: 82px; flex: none; font-size: 30px; }
.wm-clan-skin-form > button { justify-self: start; }
