.reports-page {
    padding-bottom: 30px;
}

.research-filter {
    width: 90%;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.research-filter__label {
    font-size: 14px;
    font-weight: 600;
    color: #494949;
    margin: 4px 0 0;
    text-align: right;
}

.research-filter__control {
    width: 100%;
    max-width: 420px;
}

.research-filter__select {
    width: 100%;
}

.reports-grid {
    width: 90%;
    margin: 0 auto;
}

/* Bootstrap row/col: 3 cards per row from lg, 2 from sm. Only the gutter
   is overridden since Bootstrap ships 15px and the design wants 24px. */

.reports-grid > .row {
    margin-left: -12px;
    margin-right: -12px;
}

.report-card-col {
    display: flex;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 20px;
}

.report-card-col > .report-card {
    width: 100%;
}

.report-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #efe0b4;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(138, 97, 0, .08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(138, 97, 0, .22);
}

.report-card__figure {
    height: 210px;
    background: linear-gradient(135deg, #3a2c07 0%, #a87c12 45%, #e8cf8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.report-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.report-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 15px 18px 18px;
    border-top: 4px solid #c9a227;
}

/* Titles run from one line to two. A fixed 24px line-height with a
   min-height of exactly two lines keeps the value on the same baseline
   in every card, and margin-top:auto pins the value to the bottom. */

.report-card__title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: #494949;
    margin: 0 0 10px;
    min-height: 48px;
}

.report-card__value {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: #8a6100;
    margin-top: auto;
}

.report-card__meta {
    font-size: 13px;
    color: #8c8c8c;
    margin: 6px 0 0;
}

.report-card--pending .report-card__value {
    color: #c9c9c9;
}

.report-card--clickable {
    cursor: pointer;
}

.report-card--clickable:focus-visible {
    outline: 3px solid #c9a227;
    outline-offset: 3px;
}

.reports-back {
    width: 80%;
    margin: 0 auto 18px;
    text-align: right;
}

/* Matches the card accent so the control does not read as a grey
   placeholder sitting under gold cards. */

.back-to-reports {
    color: #fff;
    background: #a87c12;
    border-color: #a87c12;
    font-weight: 600;
    margin-bottom: 20px;
}

.back-to-reports:hover,
.back-to-reports:focus,
.back-to-reports:active {
    color: #fff;
    background: #8a6100;
    border-color: #8a6100;
}

.back-to-reports:focus-visible {
    outline: 3px solid #c9a227;
    outline-offset: 3px;
}

/* 991-768 (and below): shorter card art plus smaller type, stepping down
   again at each narrower breakpoint. */
@media (max-width: 991.98px) {
    .report-card__figure {
        height: 175px;
    }

    .report-card__body {
        padding: 13px 16px 16px;
    }

    .report-card__title {
        font-size: 16px;
        line-height: 22px;
        min-height: 44px;
    }

    .report-card__value {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {

    .reports-grid,
    .research-filter,
    .reports-back {
        width: 100%;
    }

    .research-filter {
        align-items: stretch;
    }

    .research-filter__label {
        text-align: left;
    }

    .research-filter__control {
        max-width: none;
    }

    .reports-back {
        text-align: center;
    }

    .report-card__figure {
        height: 165px;
    }

    .report-card__value {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {

    .report-card__figure {
        height: 150px;
    }

    .report-card__body {
        padding: 12px 14px 14px;
    }

    .report-card__title {
        font-size: 15px;
        line-height: 20px;
        min-height: 40px;
    }

    .report-card__value {
        font-size: 28px;
    }

    .reports-back {
        margin-bottom: 14px;
    }

    .back-to-reports {
        width: 100%;
    }
}
