* {
    box-sizing: border-box;
}
.bg-grey {
  background-color: #f9f9f9;
}
.cards-filter-label {
    font-weight: bold;
    margin-bottom: 0;
}
.cards-filter {
    width: 400px;
    max-width: 100%;
    border: 1px solid #333;
    padding: .5rem;
    border-radius: 4px;
    margin-bottom: .5rem;
}

.cards {
    text-align: left;
    text-decoration: none;
    color: #333;
    border: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    opacity: 1;
    transform: scale(1);
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: stretch;
    &:hover {
        border: none;
    }
    a {
        background: white;
        box-shadow: 1px 1px 3px rgba(0,0,0,0.125);
        display: block;
        padding: 1rem;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        transform: scale3d(1, 1, 1);
        transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
        &:hover,
        &:focus {
            transform: scale3d(1.02, 1.02, 1.02);
            box-shadow: 2px 2px 10px rgba(0,0,0,0.175);
            h3::before {
                width: 20%;
            }
        }
    }
    h3 {
        margin: 0 0 .5rem 0;
        font-size: 1.25rem;
        padding: 0;
        text-transform: none;
        letter-spacing: normal;
        &::before {
            content: "";
            display: block;
            border-top: 3px solid #b32573;
            padding-top: .25rem;
            width: 10%;
            transition: width 150ms ease-in-out;
        }
    }
}

.card--hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.sr-only {
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden
}

.text-highlight {
    background-color: rgba(255, 255, 0, 0.3);
    border-radius: 2px;
}

.hidden-checkbox {
    display: none;
}
.custom-dropdown {
    display: inline-block;
    position: relative;
    list-style-type: none;
    cursor: pointer;
    padding: .5rem 1rem;
    border: 1px solid #333;
    background-color: white;
    border-radius: 4px;
    margin-left: 0;
    &:hover,
    &:focus-within {
        .custom-dropdown-content {
            margin-left: 0;
            padding-left: 0;
            list-style-type: none;
            display: block;
            position: absolute;
            z-index: 2;
            border: 1px solid #333;
            border-top-color: white;
            background-color: white;
            border-radius: 0 0 4px 4px;
            top: 40px;
            left: -1px;
            right: -1px;
        }
    }
    .custom-dropdown-trigger {
        > span {
            display: flex;
            align-items: flex-end;
        }
    }
    .custom-dropdown-content {
        display: none;
    }
    .card-button-filter {
        cursor: pointer;
        padding: .5rem 1rem;
        display: block;
        &:hover,
        &:focus-visible {
            background-color: #e9e9e9;
        }
    }
    input:checked + .card-button-filter {
        font-weight: bold;
    }
}

.tac {
    text-align: center;
}

.mt-0{
    margin-top: 0;
}
.m-2 {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.m-8 {
    margin-bottom: 8rem;
    margin-top: 8rem;
}
.hidden-row {
    display: none;
}

.link-button {
    padding: 0;
    margin: 0;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    &:hover,
    &:focus {
        text-decoration: underline;
        outline: none;
    }
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.accessible-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: .25rem;
    z-index: 1001;
    max-width: 800px;
    width: 90%;
}

.accessible-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.accessible-modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.accessible-modal.is-open,
.modal-overlay.is-open {
    display: block;
}

.accessible-modal .close-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.5rem;
}

.accessible-modal .close-button:focus {
    outline: 2px solid #007bff;
    border-radius: 4px;
}

/* Focus trap styles */
.accessible-modal:focus {
    outline: none;
}
