/* 재난분석 목록 */
.reports-page {
    box-sizing: border-box;
    width: auto;
}

.reports-toolbar,
.reports-list-section {
    padding: 0;
}

.reports-type-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.reports-type-button,
.reports-reset-button,
.reports-error-state button {
    appearance: none;
    min-height: 44px;
    padding: 0 .9rem;
    border: 1px solid var(--service-border);
    border-radius: 10px;
    background: #fff;
    color: var(--service-muted);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

.reports-type-button:hover,
.reports-reset-button:hover,
.reports-error-state button:hover {
    border-color: #bbb;
    color: var(--service-ink);
}

.reports-type-button.is-active {
    border-color: #d7b69f;
    background: var(--service-subtle);
    color: var(--service-accent);
}

.reports-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(110px, 145px)) auto;
    gap: .5rem;
    margin-top: 1rem;
}

.reports-search,
.reports-select-wrap {
    display: block;
    min-width: 0;
}

.reports-search input,
.reports-select-wrap select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 0 .75rem;
    border: 1px solid var(--service-border);
    border-radius: 10px;
    background: #fff;
    color: var(--service-ink);
    font: inherit;
    font-size: .85rem;
}

.reports-search input::placeholder {
    color: #888;
}

.reports-reset-button {
    background: var(--service-subtle);
}

.reports-page :is(input, select, button):focus-visible {
    outline: 2px solid var(--service-accent);
    outline-offset: 3px;
}

.reports-list-section {
    margin-top: 2.5rem;
}

.reports-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--service-border);
}

.reports-list-header h2 {
    color: var(--service-ink);
    font-size: 1.5rem;
    letter-spacing: -.035em;
}

.reports-list-header p {
    color: var(--service-muted);
    font-size: .85rem;
}

.reports-list {
    display: flex;
    flex-direction: column;
}

.report-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--service-border);
}

.report-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.report-card-date {
    color: var(--service-muted);
    font-size: .85rem;
    font-weight: 600;
}

.report-card-date time {
    display: block;
}

.report-card-main {
    min-width: 0;
}

.report-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .65rem;
}

.report-type-badge,
.report-tag {
    display: inline-flex;
    align-items: center;
    padding: .25rem .6rem;
    border-radius: 6px;
    background: #f0f0f0;
    color: var(--service-muted);
    font-size: .75rem;
    font-weight: 500;
}

.report-card-title {
    margin: 0;
    color: var(--service-ink);
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: -.025em;
}

.report-card-title a {
    color: inherit;
    font-size: inherit;
    word-break: keep-all;
}

.report-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.report-card-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--service-accent);
    text-underline-offset: 4px;
}

.report-card-summary {
    max-width: 780px;
    margin-top: .5rem;
    color: var(--service-muted);
    font-size: .92rem;
    line-height: 1.8;
}

.report-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .75rem;
    color: var(--service-muted);
    font-size: .75rem;
}

.report-card-action {
    align-self: center;
    color: var(--service-accent);
    font-size: 1.1rem;
}

.reports-state {
    padding: 2.5rem 0;
    text-align: center;
}

.reports-state p {
    color: var(--service-muted);
    font-size: .9rem;
    line-height: 1.8;
}

.reports-error-state button {
    margin-top: .75rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .reports-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-search {
        grid-column: 1 / -1;
    }

    .report-card {
        grid-template-columns: 110px minmax(0, 1fr) auto;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .report-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .75rem;
    }

    .report-card-date {
        grid-column: 1;
    }

    .report-card-main {
        grid-column: 1 / -1;
    }

    .report-card-action {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 380px) {
    .reports-filter-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
