:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #182d29;
    background: #f3f6f4;
    --ink: #182d29;
    --muted: #4b625b;
    --green: #126048;
    --border: #dbe7e0;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid #298866;
    outline-offset: 3px;
}
.skip { position: absolute; left: .75rem; top: -5rem; z-index: 2; background: #fff; padding: .75rem; }
.skip:focus { top: .75rem; }
.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.6rem; background: white; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand small, .region-stamp small { display: block; color: var(--muted); font-size: .8rem; }
.mark { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; color: #fff; background: var(--green); border-radius: .8rem; font-weight: 800; }
.side { padding: 1.35rem 1rem; border-right: 1px solid var(--border); background: #fff; }
.region-stamp { margin-bottom: 1rem; padding: .85rem; background: #eaf4ee; border-radius: .65rem; overflow-wrap: anywhere; }
.side nav { display: grid; gap: .16rem; }
.side a { padding: .48rem .8rem; border-radius: .4rem; text-decoration: none; font-weight: 600; color: var(--muted); }
.side a:hover, .side a[aria-current] { color: var(--green); background: #eaf4ee; }
main { padding: clamp(1rem, 2.75vw, 3rem); min-width: 0; }
.public-shell { grid-template-columns: minmax(0, 1fr); }
.public-shell main { width: min(100%, 58rem); margin-inline: auto; }
.hero { padding: clamp(1.25rem, 4vw, 2.65rem); margin-bottom: 1rem; border-radius: 1rem; background: #123a31; color: #fff; }
.hero a { color: #c6f5df; }
.hero p { max-width: 65ch; color: #d9ebe5; }
.hero button { background: #fff; color: #123a31; }
.eyebrow { font-size: .77rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1; margin: .3em 0; letter-spacing: -.035em; }
h2 { font-size: 1.35rem; margin: 0 0 .55rem; }
p { line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.card { padding: clamp(1rem, 2vw, 1.45rem); border: 1px solid var(--border); background: #fff; border-radius: .85rem; margin-bottom: 1rem; }
.cards .card { margin: 0; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--green); }
.metric span, .metric strong { display: block; }
.metric strong { margin-top: .25rem; font-size: 1.55rem; }
.line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; padding: .65rem 0; border-top: 1px solid var(--border); }
.line p { margin: .25rem 0; }
.line span { color: var(--muted); }
.application-entry { border-top: 1px solid var(--border); padding: .9rem 0; }
form { margin: 0; }
main form { display: grid; gap: .75rem; }
main form button { justify-self: start; }
label { display: grid; gap: .3rem; color: var(--muted); font-weight: 600; }
label.check { display: flex; align-items: center; }
input, select, textarea { width: 100%; min-width: 0; padding: .62rem .7rem; border: 1px solid #9aafa3; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit; }
input[type=checkbox] { width: auto; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: .48rem; padding: .6rem .85rem; font: inherit; font-weight: 650; color: #fff; background: var(--green); cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { color: var(--green); border-color: var(--border); background: #f6faf8; }
.button { margin: .4rem 0; }
.filters, .rep-region { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; }
.rep-region label { min-width: min(9rem, 100%); flex: 1; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; margin: .9rem 0; }
th, td { padding: .7rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f1f6f3; font-size: .86rem; }
.pager, .section-nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: .7rem 0 1rem; }
dl { display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr; gap: .55rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
details { margin: .7rem 0; }
summary { cursor: pointer; color: var(--green); font-weight: 650; }
details form { margin-top: .8rem; }
.validation { color: #8e2424; }
[data-join-neighborhood-field][hidden] { display: none; }
[data-representative-facility-application] .sj-mode-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
[data-representative-facility-application] .sj-mode-choices button {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--green);
    background: #f6faf8;
    border-color: var(--border);
    text-align: left;
}
[data-representative-facility-application] .sj-mode-choices button[aria-pressed=true] {
    border-color: var(--green);
    background: #eaf4ee;
}
[data-representative-facility-application] .sj-mode-choices small { display: block; }
[data-representative-facility-application] [data-panel-facility-mode=existing] .sj-panel-lookup:not([hidden]) {
    display: block;
    margin-bottom: 1rem;
}
[data-representative-facility-application] .sj-lookup-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .65rem;
}
@media (max-width: 760px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { border-right: 0; border-bottom: 1px solid var(--border); padding: .7rem 1rem; }
    .side nav { display: flex; overflow: auto; white-space: nowrap; padding-bottom: .2rem; }
    .region-stamp { margin-bottom: .35rem; padding: .5rem; }
}
