:root {
    --ink: #15231f;
    --muted: #65736f;
    --line: #d6dfdc;
    --soft: #edf3f1;
    --accent: #194e43;
    --white: #fff;
    --danger: #8a2e2e
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f6f8f7;
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, sans-serif
}

.wrap {
    width: min(900px, calc(100% - 32px));
    margin: 28px auto
}

header {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line)
}

.brand {
    font: 800 30px Georgia, serif;
    letter-spacing: .04em;
    color: var(--ink);
    text-decoration: none
}

header span {
    color: var(--muted)
}

.hero {
    padding: 50px 0 22px;
    max-width: 720px
}

.hero h1,
.card h1 {
    font: 700 clamp(28px, 5vw, 44px)/1.08 Georgia, serif;
    margin: .2em 0
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--accent)
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(22px, 5vw, 42px);
    margin: 24px 0;
    box-shadow: 0 8px 30px rgba(21, 35, 31, .05)
}

.narrow {
    max-width: 520px;
    margin: 50px auto
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

label {
    display: block;
    font-weight: 700;
    margin: 0 0 18px
}

label small,
.hint {
    font-weight: 400;
    color: var(--muted)
}

input,
select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #afbfba;
    border-radius: 9px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
    color: var(--ink)
}

input:focus,
select:focus {
    outline: 3px solid #c8ddd7;
    border-color: var(--accent)
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-weight: 400;
    color: #43524d;
    line-height: 1.55
}

.check input {
    width: auto;
    flex: 0 0 auto;
    margin: 5px 0
}

.check span {
    display: block
}

.check a {
    color: var(--accent);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: #91b2a9;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    border-radius: 4px;
    transition: color .15s ease, background-color .15s ease, text-decoration-color .15s ease
}

.check a:hover {
    color: #0f3d34;
    background: #e7f0ed;
    text-decoration-color: #0f3d34
}

.check a:focus-visible {
    outline: 3px solid #c8ddd7;
    outline-offset: 2px;
    text-decoration: none
}

.trap {
    position: absolute;
    left: -10000px
}

button,
.button {
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    font: 700 15px system-ui;
    text-decoration: none;
    cursor: pointer;
    display: inline-block
}

.secondary {
    background: #e6ecea;
    color: var(--ink)
}

.small {
    padding: 7px 10px;
    font-size: 13px
}

.alert {
    padding: 14px 17px;
    background: #f8e9e9;
    border: 1px solid #e6bebe;
    color: var(--danger);
    border-radius: 10px
}

.adminhead {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.pill {
    display: inline-block;
    padding: 4px 9px;
    background: var(--soft);
    border-radius: 99px;
    margin: 2px;
    font-size: 13px
}

.tablewrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
    white-space: nowrap
}

.prose {
    max-width: 760px
}

footer {
    border-top: 1px solid var(--line);
    padding: 24px 4px;
    color: var(--muted);
    font-size: 13px
}

footer p {
    margin: 0 0 14px
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px
}

.legal-footer-links a {
    color: var(--accent);
    font-weight: 650;
    text-decoration-line: underline;
    text-decoration-color: #9bb8b0;
    text-underline-offset: 3px;
    border-radius: 4px
}

.legal-footer-links a:hover {
    color: #0f3d34;
    text-decoration-color: #0f3d34
}

.legal-footer-links a:focus-visible {
    outline: 3px solid #c8ddd7;
    outline-offset: 2px;
    text-decoration: none
}

@media(max-width:620px) {
    .wrap {
        width: min(100% - 20px, 900px);
        margin: 10px auto
    }

    .grid {
        grid-template-columns: 1fr
    }

    .brand {
        font-size: 25px
    }

    header {
        gap: 10px
    }

    .card {
        border-radius: 13px;
        padding: 20px
    }

    .hero {
        padding-top: 30px
    }

    .legal-footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px
    }

    .legal-footer-links a {
        min-height: 36px;
        display: flex;
        align-items: center
    }
}