/*
 * LES Loueizeh Wagtail checkbox compatibility fix.
 *
 * Ordinary Wagtail checkboxes use browser-native rendering so their
 * checked / unchecked state is always visible and clickable.
 *
 * Wagtail dedicated switch controls remain untouched visually.
 */

input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    accent-color: #5B2C83;
}

/*
 * Wagtail normally draws a custom SVG checkmark using ::before.
 * Native checkbox rendering already supplies the checkmark.
 */
input[type="checkbox"]::before {
    content: none !important;
}

/*
 * Preserve real Wagtail switch controls such as Comment notifications.
 * Their input is intentionally invisible and the adjacent toggle
 * supplies the visible switch.
 */
.switch input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ========================================================
   LES publication date display
   ======================================================== */

.les-publication-date-display {
    margin-top: 0.45rem;
    color: #5B2C83;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
}


/* ========================================================
   LES Wagtail desktop breadcrumb/header visibility
   ======================================================== */

@media (min-width: 1100px) {

    .w-breadcrumbs {
        max-width: none !important;
        overflow: visible !important;
    }

    .w-breadcrumbs__list {
        max-width: none !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
    }

    .w-breadcrumbs__item {
        flex-shrink: 0 !important;
    }

    [data-slim-header] {
        height: auto !important;
        min-height: 4rem;
    }
}
