@font-face {
    font-family: Geist;
    src: url('/assets/fonts/geist-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #2b2b2b;
    --muted: #535b63;
    --accent: #16385e;
    --accent-dark: #102a48;
    --line: #d6dbe1;
    --surface: #f6f8fa;
    --white: #fff;
    --body: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--ink);
    font: 1rem/1.55 var(--body);
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-width { width: min(calc(100% - 2.5rem), 69.5rem); margin-inline: auto; }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.header-inner { padding-block: 1.25rem; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: #003662;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}
.brand img { display: block; width: 3.5rem; height: 3.5rem; }
.footer-inner, .staff-nav, .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem 1.35rem;
    font-size: .95rem;
}
.staff-nav a, .site-footer a { text-decoration: none; }
.staff-nav a:hover, .site-footer a:hover { text-decoration: underline; }
.footer-inner { justify-content: center; padding-block: 1.25rem 2.5rem; }
.site-footer a { color: #626d79; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.skip-link {
    position: absolute;
    left: 1rem;
    top: -6rem;
    z-index: 1;
    background: var(--white);
    padding: .5rem;
}
.skip-link:focus { top: .5rem; }
.page, .form-page { flex: 1; }
.page {
    width: min(calc(100% - 2.5rem), 37rem);
    margin-inline: auto;
    padding-block: clamp(2.5rem, 7vw, 5rem);
}
.page-wide { width: min(calc(100% - 2.5rem), 69.5rem); padding-block: 2.5rem; }
.panel { border-top: 2px solid var(--accent); padding-block: clamp(1.25rem, 4vw, 2rem); }
h1, h2 { margin: 0 0 .8rem; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.95rem, 5vw, 2.6rem); }
h2 { font-size: 1.85rem; color: var(--accent); }
.intro { color: var(--muted); margin: 0 0 1.45rem; }
.newsletter-signup .intro { color: var(--ink); }
.stack { display: grid; gap: .55rem; }
.form-field { display: grid; gap: .375rem; min-inline-size: 0; }
.stack > label, label[for] { font-weight: 600; }
.stack > label:not(:first-child) { margin-top: .45rem; }
label[for] { display: block; }
input[type=email], input[type=password], input[type=text], select {
    width: 100%;
    min-height: 2.85rem;
    padding: .55rem .75rem;
    border: 1px solid #7c8793;
    background: var(--white);
    color: inherit;
    font: inherit;
}
input[type=checkbox] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; }
.stack .check {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    align-items: start;
    gap: .65rem;
    font-weight: 400;
    margin-block: .4rem 0;
}
.form-note { margin: 0 0 .55rem 1.85rem; font-size: .95rem; }
button {
    width: fit-content;
    min-height: 2.8rem;
    padding: .5rem 1rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--white);
    font: 600 1rem/1.3 var(--body);
    cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button:disabled { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.with-icon { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.ui-icon {
    display: inline-block;
    flex: none;
    inline-size: 1.15em;
    block-size: 1.15em;
    background: currentColor;
    mask: var(--ui-icon) center / contain no-repeat;
}
.stack > button { margin-top: .55rem; }
.button-link {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: .2em;
    font: inherit;
}
.button-link:hover { background: transparent; text-decoration-thickness: .12em; }
.danger, .error { color: #842c25; }
.error, .notice { padding: .65rem .85rem; border-left: 3px solid currentColor; background: var(--surface); }
.notice { color: var(--accent); }
.heading-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.heading-row h1 { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--surface); color: var(--accent); }
td, th { padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 400; }
tbody tr:last-child > * { border-bottom: 0; }
.row-actions { display: flex; align-items: center; gap: .9rem; white-space: nowrap; }
.pagination, .account-form { margin-top: 1.5rem; }
.account-form { max-width: 32rem; }
