/* The public site uses navy #0f394c and sky blue #49b5e7. */
:root {
    --navy: #0f394c;
    --blue: #49b5e7;
    --action: #12688d;
    --action-dark: #0b4c69;
    --body: #213d4b;
    --muted: #4c6572;
    --line: #d6e5ec;
    --sky: #eaf7ff;
    --surface: #fff;
    --background: #f5f9fc;
    --radius: 18px;
    --shadow: 0 12px 36px rgba(15, 57, 76, .07);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--body);
    background: var(--background);
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--action-dark); text-underline-offset: .2em; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .55rem; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.09rem; }
p { margin: 0 0 1rem; overflow-wrap: anywhere; }
small { color: var(--muted); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #1782ae; outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; padding: .6rem; background: white; }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--navy); text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand img { width: auto; height: 38px; max-width: 168px; object-fit: contain; }
.brand-text { border-left: 1px solid var(--line); padding-left: 1rem; font-size: .94rem; }
.site-link, .top-inner nav a, .link { font-size: .94rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-link i { margin-right: .3rem; }
.top-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
.top-inner nav a, .link { padding: .5rem .75rem; border-radius: .6rem; }
.top-inner nav a:hover, .top-inner nav a[aria-current], .link:hover { background: var(--sky); color: var(--action-dark); }
.link { color: var(--action-dark); background: none; border: 0; }
.hero {
    background: radial-gradient(ellipse at 95% 10%, #247c9d 0, transparent 55%), linear-gradient(115deg, #102f42, #104c66);
    color: white;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: radial-gradient(circle, #b0e8ff 1px, transparent 1px);
    background-size: 23px 23px;
    mask-image: linear-gradient(100deg, transparent 30%, black);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.75rem, 7vw, 5.5rem); align-items: center; }
.eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .13em; color: var(--action-dark); margin-bottom: .8rem; }
.hero .eyebrow { color: #a7e4ff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: .3rem; vertical-align: .08em; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.9vw, 4.65rem); line-height: 1.03; letter-spacing: -.055em; margin: 0 0 1.2rem; }
.hero h1 span { color: #87dbff; }
.hero-copy { color: #deeff7; font-size: clamp(1rem, 2vw, 1.14rem); max-width: 34rem; margin-bottom: 1.6rem; }
.hero .button { background: #89ddff; border-color: #89ddff; color: #123548; }
.hero .button:hover { background: #c8efff; }
.hero-card { background: #fff; color: var(--body); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 20px 60px #082c3f70; border-top: 4px solid var(--blue); min-width: 0; }
.hero-card .eyebrow { color: var(--action-dark); margin: .85rem 0 .4rem; }
.hero-card h2 { margin-bottom: .7rem; }
.hero-card p:last-child { margin-bottom: 0; }
.hero-icon, .section-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sky); color: var(--action-dark); font-size: 1.4rem; }
.schedule { margin-top: .8rem; font-weight: 650; }
.schedule span { margin-left: 1.25rem; font-size: .91rem; font-weight: 450; }
.other-periods { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .8rem; }
.other-periods a { display: block; margin-top: .35rem; }
.pill { display: inline-block; align-self: start; border-radius: 999px; color: #334e5a; background: #ebf0f3; padding: .25rem .7rem; font-size: .77rem; font-weight: 750; white-space: nowrap; }
.pill.live { color: #125244; background: #d9f5ed; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 44px; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--action);
    background: var(--action); color: #fff; font-weight: 720; text-decoration: none; text-align: center;
}
.button:hover { background: var(--action-dark); color: #fff; }
.button:disabled { cursor: not-allowed; background: #e7eef2; border-color: #cbd9e0; color: var(--muted); }
.button.secondary { background: #f4fbff; border-color: #bad7e6; color: var(--action-dark); }
.button.secondary:hover { background: #d9f1fd; }
.button.small { min-height: 38px; font-size: .87rem; padding: .4rem .72rem; }
.button.danger { background: #fff3f3; border-color: #e6bbbb; color: #8a2525; }
.button.danger:hover { background: #fbe2e2; }
.public-body { padding-block: 1.5rem 4rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefits > div { display: flex; align-items: center; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.benefits i { color: var(--action-dark); font-size: 1.25rem; width: 38px; height: 38px; flex: none; background: var(--sky); border-radius: 10px; display: grid; place-items: center; }
.benefits strong, .benefits small { display: block; }
.benefits strong { color: var(--navy); font-size: .94rem; }
.benefits small { font-size: .85rem; }
.form-shell { max-width: 890px; margin: 2.5rem auto 0; scroll-margin-top: 1rem; }
.section-heading p:last-child { color: var(--muted); }
.panel { min-width: 0; padding: clamp(1.05rem, 2.5vw, 1.65rem); border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel + .form-panel { margin-top: 1rem; }
.muted { color: var(--muted); }
.fields { display: grid; gap: 1rem; }
.fields.cols { grid-template-columns: 1fr 1fr; }
.fields label, .filter label { display: grid; gap: .35rem; color: var(--navy); font-weight: 650; }
.fields label small { font-weight: 500; }
.fields .button { justify-self: start; }
input:not([type=checkbox], [type=radio]), textarea, select {
    width: 100%; min-width: 0; min-height: 44px; padding: .55rem .72rem; background: #fff; color: var(--body);
    border: 1px solid #9bb6c4; border-radius: 9px; font-weight: 450;
}
input:read-only { background: #eef4f7; }
input[type=checkbox] { accent-color: var(--action); width: 1.18rem; height: 1.18rem; flex: none; margin: .2rem 0 0; }
.fields .check { display: flex; align-items: flex-start; gap: .5rem; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
fieldset legend { color: var(--navy); font-weight: 700; padding: 0; max-width: 100%; overflow-wrap: anywhere; }
.service-set { margin-top: 1.35rem; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.services label { display: flex; align-items: flex-start; gap: .55rem; border: 1px solid var(--line); padding: .7rem; border-radius: 9px; cursor: pointer; }
.services label:has(:checked) { background: var(--sky); border-color: var(--action); }
.service-progress { display: inline-block; margin: .8rem 0 0; padding: .28rem .65rem; border-radius: 999px; background: #eef4f7; color: var(--muted); font-size: .85rem; font-weight: 650; }
.service-progress[data-complete] { background: #d9f5ed; color: #125244; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: 0; margin: 1rem 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); font-weight: 650; padding-bottom: .55rem; border-bottom: 3px solid var(--line); }
.steps li span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #eaf2f7; }
.steps li[aria-current] { color: var(--navy); border-color: var(--action); }
.steps li[aria-current] span { background: var(--action); color: #fff; }
.scale-guide { background: #f8fafb; border: 1px solid var(--line); border-radius: 12px; padding: .85rem; margin-bottom: .4rem; }
.scale-guide p { color: var(--navy); font-size: .88rem; font-weight: 750; margin-bottom: .5rem; }
.scale-guide::after {
    content: ""; display: block; height: .3rem; margin-top: .75rem; border-radius: 999px;
    background: linear-gradient(90deg, #d54e61, #e58348, #edb848, #a1b94c, #36a674);
}
.scale-key { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; font-size: .81rem; }
.scale-key li { background: var(--rating-tint); color: var(--rating-ink); padding: .27rem .55rem; border-radius: 6px; }
.scale-key strong { margin-right: .2rem; }
[data-score="1"] { --rating-ink: #9e2539; --rating-tint: #fbe6ea; --rating-border: #e7abb6; }
[data-score="2"] { --rating-ink: #93431b; --rating-tint: #fceadc; --rating-border: #ebba9c; }
[data-score="3"] { --rating-ink: #725207; --rating-tint: #fff2cb; --rating-border: #e2c473; }
[data-score="4"] { --rating-ink: #48631d; --rating-tint: #edf5d7; --rating-border: #bccd8e; }
[data-score="5"] { --rating-ink: #146047; --rating-tint: #dff4e9; --rating-border: #a0ceb6; }
.indicator { padding-top: 1rem; }
.indicator + .indicator { border-top: 1px solid var(--line); margin-top: 1rem; }
.indicator h4 { padding: .55rem .7rem; border-left: 3px solid var(--blue); background: #f1f8fc; border-radius: 0 6px 6px 0; }
.question { padding: .15rem 0 .4rem; margin: .9rem 0 .3rem; }
.question legend span { display: inline-block; color: var(--action-dark); font-size: .76rem; margin-right: .3rem; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; max-width: 30rem; margin-top: .55rem; }
.scale label { position: relative; cursor: pointer; }
.scale input { position: absolute; opacity: 0; }
.rating-value {
    display: grid; place-items: center; min-height: 48px; border-radius: 10px;
    border: 1px solid var(--rating-border); background: linear-gradient(165deg, #fff, var(--rating-tint));
    color: var(--rating-ink); font-size: 1rem; font-weight: 800;
}
.scale label:hover .rating-value { border-color: var(--rating-ink); background: var(--rating-tint); }
.scale input:focus-visible + .rating-value { outline: 3px solid var(--action); outline-offset: 2px; }
.scale input:checked + .rating-value { background: var(--rating-ink); color: white; border-color: var(--rating-ink); }
.scale input:checked + .rating-value::after { content: "✓"; position: absolute; top: .18rem; right: .35rem; font-size: .7rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.notice { border-radius: 10px; border: 1px solid #bedfec; padding: .8rem .95rem; margin-block: 1rem; background: #eef9ff; color: var(--navy); }
.notice.error { color: #852929; border-color: #e6b9b9; background: #fff1f1; }
.notice p:last-child { margin: .3rem 0 0; }
.success { margin-top: 1.5rem; padding: 2.5rem 1.25rem; text-align: center; }
.success > i { display: inline-block; color: var(--action); font-size: 2.2rem; margin-bottom: .5rem; }
.login-wrap { padding-block: 3rem; }
.login { max-width: 480px; margin: auto; }
.login h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); }
.login .section-icon { margin-bottom: 1rem; }
.footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: .7rem 1.5rem; justify-content: space-between; padding-block: 1.1rem; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.footer a { font-weight: 650; }
.admin-body { padding-block: 2rem 3rem; }
.admin-heading h1 { font-size: clamp(2rem, 5vw, 3rem); }
.admin-heading p:last-child { color: var(--muted); }
.manage-grid, .report-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; }
.manage-grid { margin-top: 1rem; }
.report-grid, .report-section { margin-top: 1rem; }
.row-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.row-heading h2 { margin: 0; }
.record-list { display: grid; gap: .5rem; }
.record-list a { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .7rem; text-decoration: none; overflow-wrap: anywhere; }
.record-list a[aria-current], .record-list a:hover { background: var(--sky); border-color: #95c6db; }
.record-list small, .record-list strong { display: block; }
.panel-divider { border-top: 1px solid var(--line); margin-block: 1.1rem; }
.pills, .inline-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pills a { text-decoration: none; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; font-weight: 650; }
.pills a[aria-current], .pills a:hover { background: var(--sky); border-color: #a3cfdf; }
.separate { margin-top: .85rem; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.filter { display: flex; align-items: end; gap: .55rem; flex-wrap: wrap; }
.filter select { max-width: min(23rem, 75vw); }
.period-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1.2rem 0 .9rem; }
.period-heading p { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 871px), print {
    .metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.metric { display: grid; align-content: start; gap: .28rem; }
.metric i { color: var(--action); font-size: 1.2rem; }
.metric h3 { margin: 0; font-size: 1rem; }
.metric strong { color: var(--navy); font-size: clamp(1.65rem, 4vw, 2.3rem); line-height: 1.15; }
.metric strong small { font-size: .88rem; }
.indicator-row { margin-top: .85rem; }
.indicator-row > div { display: flex; justify-content: space-between; gap: .65rem; }
.indicator-row > div span { font-weight: 750; color: var(--action-dark); white-space: nowrap; }
meter { display: block; width: 100%; height: .85rem; margin: .1rem 0; appearance: none; }
meter::-webkit-meter-bar { border: 0; border-radius: 999px; background: #e6f0f4; }
meter::-webkit-meter-optimum-value { background: #2089b3; border-radius: 999px; }
meter::-moz-meter-bar { background: #2089b3; border-radius: 999px; }
.priority { margin: 0; padding: 0; list-style: none; counter-reset: priorities; }
.priority li { counter-increment: priorities; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .6rem; border-bottom: 1px solid var(--line); padding-block: .65rem; }
.priority li::before { content: counter(priorities); background: var(--sky); color: var(--action-dark); font-weight: 750; border-radius: 6px; padding: .08rem .4rem; }
.priority small { display: block; }
.priority li > span { font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .55rem .45rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #f0f7fb; color: var(--navy); white-space: nowrap; }
tbody th { font-weight: 580; min-width: 10rem; overflow-wrap: anywhere; }
tbody th small { display: block; }
.feedback { padding-block: .75rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.feedback summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.feedback p { margin: .5rem 0 0; }
.feedback ul { margin: .3rem 0; padding-left: 1.25rem; }
.feedback li { margin-block: .35rem; }
.method { margin-bottom: 0; }

@media (max-width: 870px) {
    .top-inner:has(nav) { align-items: flex-start; flex-direction: column; justify-content: center; gap: .4rem; padding-block: .7rem; }
    .top-inner nav a:first-child { margin-left: -.5rem; }
    .hero-grid { gap: 1.5rem; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 2rem); }
    .top-inner { min-height: 62px; }
    .brand img { height: 32px; max-width: 132px; }
    .brand-text { display: none; }
    .top-inner nav a, .link { padding: .38rem .5rem; font-size: .84rem; }
    .hero-grid, .benefits, .manage-grid, .report-grid, .fields.cols, .services { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 2.25rem; }
    .hero-copy { margin-bottom: 1.1rem; }
    .benefits { gap: .5rem; }
    .benefits > div { padding: .65rem .75rem; }
    .form-shell { margin-top: 1.6rem; }
    .steps li { font-size: .75rem; gap: .3rem; }
    .steps li span { width: 1.3rem; height: 1.3rem; }
}
@media print {
    :root, body { background: white; color: black; font-size: 10pt; }
    .wrap { width: 100%; }
    .topbar, .footer, .toolbar, .skip, .eyebrow { display: none !important; }
    .admin-body { padding: 0; }
    .panel { box-shadow: none; padding: .65rem; }
    .metric, tr, .indicator-row, .feedback { break-inside: avoid; }
    .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .report-grid { grid-template-columns: 1fr 1fr; }
    .table-wrap { overflow: visible; }
    th, td { padding: .25rem; }
    thead { display: table-header-group; }
}
