:root {
    color-scheme: light;
    font-family: Inter, system-ui, sans-serif;
    color: #1b211b;
    background: #f5f6f2;
}

* { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; }
a { color: #1e3b1c; }
.site-header, .site-footer { padding: 1rem max(1rem, calc((100% - 76rem) / 2)); background: #1e3b1c; color: white; }
.site-header a { color: white; font-weight: 700; text-decoration: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header a, .site-footer, .noticor-credit { display: flex; align-items: center; gap: .65rem; }
.site-header img { width: 2.75rem; height: 2.75rem; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.site-header .header-link { font-weight: 600; text-decoration: underline; text-underline-offset: .2rem; }
.site-footer { justify-content: space-between; margin-top: 3rem; font-size: .85rem; }
.noticor-credit img { width: 8rem; height: auto; }
main { flex: 1; width: min(76rem, calc(100% - 2rem)); margin: 2rem auto; }
.eyebrow { margin: 0; color: #526651; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: .25rem 0; font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { margin-top: 2.25rem; }
.breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; color: #607060; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin: 1.5rem 0; }
.filters > label:not(.filter-field) { width: 100%; font-weight: 700; }
.filter-heading { width: 100%; margin: 0; font-weight: 700; }
.filter-field { display: grid; gap: .3rem; min-width: 10rem; font-weight: 700; font-size: .85rem; }
.filter-field:first-of-type { flex: 1 1 16rem; }
input, select, button, .button { min-height: 2.6rem; padding: .65rem .8rem; border: 1px solid #a8b1a5; border-radius: .35rem; background: white; font: inherit; }
button, .button { border-color: #1e3b1c; background: #1e3b1c; color: white; text-decoration: none; cursor: pointer; }
.button.secondary { background: white; color: #1e3b1c; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card, .event-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #d9ded5; border-radius: .5rem; background: white; text-decoration: none; }
.card { flex-direction: column; }
.card small, .event-row small { display: block; margin-top: .35rem; color: #607060; }
.event-list { display: grid; gap: .65rem; }
.event-meta { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.actions, .summary { display: flex; flex-wrap: wrap; gap: .65rem; }
.summary { margin: 1.5rem 0; }
.summary span { padding: .75rem 1rem; border-radius: .4rem; background: #e8eee5; }
.table-wrap { overflow-x: auto; border: 1px solid #d9ded5; border-radius: .5rem; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .75rem; border-bottom: 1px solid #e4e7e1; text-align: left; vertical-align: top; }
th { background: #edf1ea; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.badge, .status { display: inline-block; padding: .25rem .45rem; border-radius: 999px; background: #dce9d8; white-space: nowrap; }
.status-inactive { background: #f5d9d5; color: #742116; }
.status-upcoming { background: #dce9d8; color: #1e3b1c; font-weight: 800; }
.inactive-section { padding-top: .5rem; border-top: 3px solid #a94739; }
.empty { padding: 1rem; background: white; border: 1px dashed #a8b1a5; }
.logout-form { margin: 0; }
.logout-form .button { min-height: auto; padding: .45rem .7rem; border-color: white; }
.login-shell { width: min(28rem, 100%); margin: 4rem auto; padding: 2rem; border: 1px solid #d9ded5; border-radius: .6rem; background: white; }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.login-form label { display: grid; gap: .4rem; font-weight: 700; }
.login-error { padding: .75rem; border-left: 4px solid #a94739; background: #f5d9d5; color: #742116; }
.player-search-form input { flex: 1 1 20rem; }
.result-count { color: #526651; }
.table-wrap td small { display: block; margin-top: .25rem; color: #607060; }
.player-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.player-list li + li { padding-top: .65rem; border-top: 1px solid #e4e7e1; }

@media (max-width: 650px) {
    .report-heading, .event-row { align-items: stretch; flex-direction: column; }
    .event-meta { justify-content: flex-start; }
    .actions .button { flex: 1; text-align: center; }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .site-header { align-items: flex-start; }
    .header-actions { align-items: flex-end; flex-direction: column; }
}
