/* ─── Club schedule weekly grid ─────────────────────────────────────────────
   Desktop-first calendar layout (≥ md). Mobile uses simple list (.schedule-mobile-*).
   8 color palette indexed via GroupColorPalette#indexFor (UUID → 0..7).
*/
.schedule-week { font-size: 0.85rem; }

.schedule-grid-wrap {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}
.schedule-day-headers {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    background: var(--bs-light);
    border-bottom: 1px solid var(--bs-border-color);
}
.schedule-time-corner { border-right: 1px solid var(--bs-border-color); }
.schedule-day-header {
    padding: 0.5rem 0.5rem;
    text-align: center;
    border-right: 1px solid var(--bs-border-color);
    line-height: 1.2;
}
.schedule-day-header:last-child { border-right: 0; }
.schedule-day-header.is-today { background: #fff3cd; }
.schedule-day-name {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: capitalize;
}
.schedule-day-date { color: var(--bs-secondary-color); font-size: 0.75rem; }

.schedule-grid {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    position: relative;
}
.schedule-time-label {
    grid-column: 1;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid #f1f3f5;
    padding: 2px 6px 0;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    line-height: 1;
}
.schedule-slot {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px dotted #e9ecef;
    padding: 0;
    color: #adb5bd;
    cursor: pointer;
    position: relative;
    transition: background 0.1s;
}
.schedule-slot:last-child { border-right: 0; }
.schedule-slot-hour { border-bottom: 1px solid #e9ecef; }
.schedule-slot .bi { opacity: 0; font-size: 0.9rem; }
.schedule-slot:hover {
    background: #f8f9fa;
}
.schedule-slot:hover .bi { opacity: 0.6; }
.schedule-slot:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.schedule-block {
    margin: 0 1px;
    padding: 3px 6px;
    border-radius: 4px;
    border-left: 3px solid;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s;
    min-width: 0;
}
.schedule-block:hover { filter: brightness(0.96); transform: translateY(-1px); text-decoration: none; color: inherit; }
.schedule-block-time { font-weight: 700; font-size: 0.72rem; line-height: 1; }
.schedule-block-name { font-weight: 600; font-size: 0.78rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-block-venue { font-size: 0.7rem; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-block-icon { position: absolute; top: 3px; right: 4px; font-size: 0.7rem; opacity: 0.55; }
.schedule-block.is-cancelled { text-decoration: line-through; }
.schedule-block.is-completed { opacity: 0.7; }

.schedule-chip {
    border-left: 3px solid;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Color palette (8 colors): bg, border, on the chip + block. */
.schedule-color-0 { background: #cfe2ff; border-left-color: #0d6efd; color: #084298; }
.schedule-color-1 { background: #d1e7dd; border-left-color: #198754; color: #0a3622; }
.schedule-color-2 { background: #fff3cd; border-left-color: #ffc107; color: #664d03; }
.schedule-color-3 { background: #f8d7da; border-left-color: #dc3545; color: #58151c; }
.schedule-color-4 { background: #cff4fc; border-left-color: #0dcaf0; color: #055160; }
.schedule-color-5 { background: #e0cffc; border-left-color: #6f42c1; color: #2e1655; }
.schedule-color-6 { background: #fcd6b0; border-left-color: #fd7e14; color: #6b2c00; }
.schedule-color-7 { background: #b2ecdb; border-left-color: #20c997; color: #0a4a3a; }

/* Mobile list */
.schedule-mobile-day {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
    font-weight: 600;
}
.schedule-mobile-day.is-today { color: var(--c-primary); }
.schedule-mobile-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
    margin-bottom: 0.4rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.schedule-mobile-card:hover { color: inherit; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }

