:root {
    color-scheme: light;
    --text: #18253a;
    --muted: #526279;
    --line: #d8e0ea;
    --link: #0d5484;
    --primary: #174a6f;
    --danger: #a12831;
    font: 16px/1.5 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #f6f8fb; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid #287eb3; outline-offset: 3px; }
.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
main { padding-block: 2rem 4rem; }
.site-header { background: #172e47; }
.site-header nav { display: flex; gap: 0.75rem 1.5rem; align-items: center; flex-wrap: wrap; padding-block: 1rem; }
.site-header a { color: white; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.brand { margin-right: auto; font-weight: 700; }
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.25rem; }
p { margin: 0.75rem 0; }
.muted, small { color: var(--muted); }
.page-heading, .section-heading, .actions { display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; }
.page-heading, .section-heading { justify-content: space-between; margin-bottom: 1rem; }
section, .delete-link { margin-top: 2rem; }
.button, button {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.4rem;
    color: white;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
}
.button:hover, button:hover { filter: brightness(0.9); }
.secondary { background: white; border-color: var(--line); color: var(--primary); }
.danger { background: var(--danger); border-color: var(--danger); }
.danger-text, .field-validation-error, .validation-summary-errors { color: var(--danger); }
.delete-link summary { cursor: pointer; }
.notice, .panel, .table-wrap, .facts { background: white; border: 1px solid var(--line); border-radius: 0.6rem; }
.notice { padding: 0.75rem 1rem; }
.error { border-color: var(--danger); color: var(--danger); }
.panel { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); }
.form-panel { max-width: 48rem; }
.form-panel .actions { margin-top: 1.25rem; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 1rem 0 0; min-width: 0; padding: 0; }
legend { font-weight: 700; padding-right: 0.5rem; }
.field-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; align-content: start; gap: 0.3rem; margin-block: 0.8rem; }
.field > label { font-weight: 600; }
input:not([type=checkbox]), select {
    background: white;
    border: 1px solid #aab8c9;
    border-radius: 0.35rem;
    color: inherit;
    font: inherit;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    width: 100%;
}
.check { display: flex; align-items: center; gap: 0.5rem; }
.field-validation-valid, .validation-summary-valid { display: none; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; text-align: left; width: 100%; }
th, td { padding: 0.7rem 0.85rem; }
thead { background: #eaf0f6; }
tbody tr + tr { border-top: 1px solid var(--line); }
.facts { display: flex; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }
