:root {
    --reports-btn-bg: #83764e;
    --reports-btn-bg-hover: #004d44;
    --reports-btn-text: #ffffff;
    --reports-border: #d4d4d4;
    --reports-text: #242424;
    --reports-text-muted: #6b6b6b;
    --reports-surface: #ffffff;
    --reports-focus: #004d44;
}

.reports {
    color: var(--reports-text);
    font-size: 1.125rem;
    line-height: 1.5;
}

.reports *,
.reports *::before,
.reports *::after {
    box-sizing: border-box;
    min-width: 0;
}

.reports__skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reports__skip-link:focus {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--reports-btn-bg-hover);
    color: #fff;
    clip: auto;
    width: auto;
    height: auto;
    white-space: normal;
}

/* -------- Layout -------- */

.reports__layout {
    display: grid;
    grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .reports__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* -------- Sidebar / Filters -------- */


.reports-filter {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 1.5rem;
    background: var(--reports-surface);
    border: 1px solid var(--reports-border);
}

@media (max-width: 480px) {
    .reports-filter { padding: 1.125rem; gap: 1rem; }
}

.reports-filter__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.reports-filter__field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.reports-filter__label,
.reports-filter__legend {
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--reports-text);
}

.reports-filter__group {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reports-filter__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.reports-filter__search-icon {
    position: absolute;
    left: 0.75rem;
    display: inline-flex;
    color: var(--reports-text);
    pointer-events: none;
}

.reports-filter__input,
.reports-filter__select {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0 0.875rem;
    border: 1px solid var(--reports-border);
    border-radius: 0;
    background: var(--reports-surface);
    color: var(--reports-text);
    font: inherit;
}

.reports-filter__input { padding-left: 2.75rem; }

.reports-filter__select {
    padding-left: 0.875rem;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px 8px;
    transition: background-image 0.2s ease;
}

.reports-filter__field.is-open .reports-filter__select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.reports-filter__input:focus-visible,
.reports-filter__select:focus-visible {
    outline: 2px solid var(--reports-focus);
    outline-offset: 2px;
}

.reports-filter__options {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}

.reports-filter__option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 0.3rem 0;
    cursor: pointer;
    line-height: 1.3;
}

.reports-filter__option input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--reports-btn-bg);
}

.reports-filter__option input:focus-visible {
    outline: 2px solid var(--reports-focus);
    outline-offset: 2px;
}

.reports-filter__option-label { flex: 1 1 auto; }

.reports-filter__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reports-filter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 29px;
    border: 0;
    border-radius: 0;
    background: var(--reports-btn-bg);
    color: var(--reports-btn-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.reports-filter__submit:hover,
.reports-filter__submit:focus-visible {
    background: var(--reports-btn-bg-hover);
    color: #fff;
}

.reports-filter__submit:focus-visible {
    outline: 2px solid var(--reports-focus);
    outline-offset: 2px;
}

.reports-filter__reset {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--reports-text);
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
}

.reports-filter__reset:hover,
.reports-filter__reset:focus-visible {
    color: var(--reports-btn-bg-hover);
}

/* -------- Main / Results -------- */

.reports__main { min-width: 0; }

.reports__results-count {
    margin: 0 0 1rem;
    color: var(--reports-text-muted);
    font-size: 1rem;
}

.reports-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reports-list__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reports-list__item::before { content: none; }

.reports-list__empty {
    margin: 0;
    padding: 1.5rem;
    background: var(--reports-surface);
    border: 1px solid var(--reports-border);
    font-weight: 700;
}

/* -------- Card -------- */

.reports-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--reports-border);
    border-radius: 0;
    background: var(--reports-surface);
    overflow-wrap: anywhere;
}

.reports-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}
.reports-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--reports-border);
    border-radius: 0;
    background: var(--reports-surface);
    overflow-wrap: anywhere;
}

.reports-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
}

.reports-card__category {
    margin: 0;
    margin-bottom: 0 !important;
    color: var(--reports-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reports-card__location {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.3rem;
    margin: 0.2rem 0 0;
    padding: 0;
    background: none;
    color: var(--reports-btn-bg-hover);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.reports-card__location-icon {
    flex: 0 0 auto;
    color: var(--reports-btn-bg);
}
.reports-card__title {
    margin: 0;
    color: var(--reports-btn-bg-hover);
    font-size: 1.5rem !important;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.reports-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Meta: single column on mobile (label above value), two pairs side-by-side on wider screens */
.reports-card__meta {
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    margin: 0;
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.4;
}

/* Only go to 4 columns when card is genuinely wide enough */
@media (min-width: 1280px) {
    .reports-card__meta {
        grid-template-columns: max-content auto max-content auto;
        column-gap: 2rem;
    }
}

.reports-card__meta-row { display: contents; }

.reports-card__meta dt {
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.reports-card__meta dd {
    margin: 0;
    padding: 0;
}

/* Actions: stack on mobile, side-by-side on wider screens */
.reports-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.reports-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--reports-btn-bg);
    color: var(--reports-btn-text);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.reports-card__button:hover,
.reports-card__button:focus-visible {
    background: var(--reports-btn-bg-hover);
    color: #fff;
}

.reports-card__button:focus-visible {
    outline: 2px solid var(--reports-focus);
    outline-offset: 2px;
}

.reports-card__button svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

/* -------- Responsive: card tweaks -------- */

/* Tablet portrait — let buttons grow but cap them */
@media (max-width: 600px) {
    .reports-card {
        padding: 1.125rem 1.25rem;
        gap: 0.75rem;
    }

    .reports-card__title { font-size: 1.25rem !important; }

    /* Meta stacks label above value on very narrow screens to avoid overflow */
    .reports-card__meta {
        grid-template-columns: 1fr;
        row-gap: 0;
        font-size: 1rem;
    }

    .reports-card__meta dt {
        margin-top: 0.5rem;
    }

    .reports-card__meta-row:first-child dt {
        margin-top: 0;
    }

    .reports-card__meta dd {
        white-space: normal;
    }

    .reports-card__actions {
        flex-direction: row;
    }

    .reports-card__button {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.625rem 0.75rem;
    }
}

/* Phone — buttons full width stacked */
@media (max-width: 420px) {
    .reports-card { padding: 1rem 1.125rem; }

    .reports-card__actions { flex-direction: column; }

    .reports-card__button {
        width: 100%;
        flex: 1 1 auto;
    }
}