/* Shared public pages and resident reporting tools. */
:root {
    --hrt-brand-green: #30804e;
    --hrt-blue: #224934;
    --hrt-green: #246640;
    --hrt-green-dark: #184d30;
    --hrt-amber: #915600;
    --hrt-red: #a4161a;
    --hrt-ink: #1c3025;
    --hrt-muted: #52645a;
    --hrt-line: #d3dfd5;
    --hrt-soft: #f0f6ef;
    --hrt-bg: #fff;
}
/* Plain, sturdy system fonts: the boilerplate's light webfonts are too thin for older eyes. */
body.hrt, body.hrt h1, body.hrt h2, body.hrt h3, body.hrt h4, body.hrt h5, body.hrt p, body.hrt a,
body.hrt li, body.hrt td, body.hrt th, body.hrt label, body.hrt span, body.hrt button, body.hrt input,
body.hrt select, body.hrt textarea, body.hrt legend, body.hrt dt, body.hrt dd, body.hrt div {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.hrt .fas, body.hrt .fab, body.hrt .far { font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands"; }
body.hrt .fab { font-family: "Font Awesome 5 Brands"; }
body.hrt .fas { font-weight: 900; }
body.hrt {
    font-size: clamp(1.0625rem, 1rem + .25vw, 1.2rem);
    overflow-wrap: anywhere;
    color-scheme: light;
    line-height: 1.6;
    color: var(--hrt-ink);
    background: var(--hrt-bg);
}
.hrt h1 { font-size: clamp(2.15rem, 1.6rem + 2vw, 3.6rem); font-weight: 750; line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.hrt h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.hrt h3 { font-size: 1.35rem; font-weight: 700; }
.hrt a { color: var(--hrt-blue); }
.hrt .lead { font-size: 1.35rem; }
.hrt .muted { color: var(--hrt-muted); }
.hrt :focus-visible { outline: 4px solid #f5b700; outline-offset: 2px; }

/* Public masthead */
.hrt-header { background: white; border-bottom: 1px solid var(--hrt-line); }
.hrt-header .brand { display: flex; align-items: center; gap: .75rem; color: var(--hrt-ink); font-size: 1.22rem; font-weight: 750; line-height: 1.25; }
.hrt-header .brand small { display: block; margin-top: .2rem; font-size: .86rem; color: var(--hrt-muted); font-weight: 500; }
.hrt-header .logo { width: 3rem; height: 3rem; flex: none; }
.hrt-menu { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.hrt-menu a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .9rem; border-radius: .5rem; font-size: 1rem; font-weight: 650; color: var(--hrt-muted); }
.hrt-menu a:hover, .hrt-menu a.active { background: var(--hrt-soft); color: var(--hrt-green-dark); }

/* Buttons */
.btn-big { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.15rem; font-size: 1.05rem; font-weight: 700; border-radius: .6rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-go { background: var(--hrt-green); color: #fff !important; }
.btn-go:hover { background: var(--hrt-green-dark); }
.btn-plain { background: #fff; color: var(--hrt-blue) !important; border-color: var(--hrt-blue); }
.btn-plain:hover { background: var(--hrt-soft); }
.btn-wide { width: 100%; }

/* Homepage introduction and reporting entry point */
.hrt-hero { background: #f2f7ef; border-bottom: 1px solid var(--hrt-line); padding: clamp(2.25rem, 5vw, 5rem) 0; }
.hrt-hero p { max-width: 52ch; color: var(--hrt-muted); }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 5rem); }
.report-entry { background: white; border: 1px solid var(--hrt-line); border-top: 4px solid var(--hrt-green); border-radius: .9rem; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px #2648350b; }
.report-entry .icon, .hrt-card .icon { display: inline-grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .7rem; background: var(--hrt-soft); color: var(--hrt-green); margin-bottom: .9rem; }
.report-entry h2 { font-size: 1.5rem; }
.report-entry a { display: flex; justify-content: center; align-items: center; min-height: 46px; }
.report-entry .results-link { font-weight: 650; font-size: 1rem; text-decoration: underline; text-underline-offset: .2em; margin-top: .4rem; }

/* Cards and blocks */
.hrt-card { background: #fff; border: 1px solid var(--hrt-line); border-radius: 1rem; padding: 1.4rem; height: 100%; }
.hrt-card .icon { font-size: 1.2rem; }
.hrt-soft { background: var(--hrt-soft); }
.hrt-section { padding: clamp(2rem, 4vw, 3.75rem) 0; }
.hrt-notice { background: #fff6dd; border: 2px solid #e2b33c; border-radius: .9rem; padding: 1rem 1.2rem; font-size: 1.15rem; }

/* Article list */
.article-item { border-bottom: 2px solid var(--hrt-line); padding: 1.4rem 0; }
.article-item:last-child { border-bottom: 0; }
.article-item h3 a { text-decoration: none; }
.article-item h3 a:hover { text-decoration: underline; }
.article-meta { color: var(--hrt-muted); font-size: 1.05rem; }
.article-body { max-width: 44rem; }
.article-body ul { padding-left: 1.4rem; }
.article-body li { margin-bottom: .4rem; }

/* Dashboard */
.stat { background: #fff; border: 1px solid var(--hrt-line); border-radius: 1rem; padding: 1.2rem 1.3rem; height: 100%; }
.stat .num { font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: var(--hrt-blue); }
.stat .label { font-size: 1.15rem; color: var(--hrt-ink); }
.stat.bad .num { color: var(--hrt-red); }
.stat.warn .num { color: var(--hrt-amber); }
.bar-row { margin-bottom: .8rem; }
.bar-row .bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; }
.bar-track { background: #e3e9ee; border-radius: .5rem; height: 22px; overflow: hidden; }
.bar-fill { background: var(--hrt-blue); height: 100%; border-radius: .5rem; }
.bar-fill.red { background: var(--hrt-red); }
.bar-fill.green { background: var(--hrt-green); }
.table-big { font-size: 1.1rem; }
.table-big th { background: var(--hrt-soft); }
.dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.dot.red { background: var(--hrt-red); } .dot.amber { background: #d08a00; } .dot.green { background: var(--hrt-green); }
.district-picker select { font-size: 1.2rem; min-height: 56px; }

/* Form wizard */
.wizard { max-width: 44rem; margin: 0 auto; }
.wizard .step { display: none; }
.wizard .step.current { display: block; }
.wizard.nojs .step { display: block; margin-bottom: 2.5rem; }
.wizard.nojs .reveal { display: block; }
.progress-text { font-weight: 700; color: var(--hrt-muted); font-size: 1.1rem; }
.progress-track { background: #e3e9ee; height: 14px; border-radius: 7px; overflow: hidden; margin: .4rem 0 1.4rem; }
.progress-fill { background: var(--hrt-green); height: 100%; transition: width .2s; }
.q { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.hint { color: var(--hrt-muted); margin-bottom: 1rem; }
.choices { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .7rem 1.1rem; border: 3px solid var(--hrt-line); border-radius: .9rem; background: #fff; font-size: 1.25rem; font-weight: 600; cursor: pointer; }
.choice span::before { content: ""; flex: none; width: 28px; height: 28px; border: 3px solid var(--hrt-blue); border-radius: 50%; background: #fff; }
.choice input[type=checkbox] + span::before { border-radius: .35rem; }
.choice input:checked + span { border-color: var(--hrt-green); background: #e8f5ec; }
.choice input:checked + span::before { background: var(--hrt-green); border-color: var(--hrt-green); box-shadow: inset 0 0 0 5px #fff; }
.choice input:focus-visible + span { outline: 4px solid #f5b700; outline-offset: 2px; }
.field-label { font-weight: 700; display: block; margin: .8rem 0 .4rem; font-size: 1.25rem; }
.big-input, .big-select { width: 100%; min-height: 60px; font-size: 1.25rem; padding: .6rem .9rem; border: 3px solid var(--hrt-line); border-radius: .8rem; background: #fff; }
.big-input:focus, .big-select:focus { border-color: var(--hrt-blue); outline: none; }
textarea.big-input { min-height: 140px; }
.wizard-nav { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.wizard-nav .btn-big { flex: 1 1 10rem; }
.reveal { display: none; border-left: 5px solid var(--hrt-soft); padding-left: 1rem; margin-top: .5rem; }
.reveal.show { display: block; }
.repeat-box { border: 2px dashed var(--hrt-line); border-radius: 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.review-list dt { font-weight: 700; margin-top: .8rem; }
.review-list dd { margin: 0 0 .2rem; }
.error-box { background: #fdecec; border: 2px solid var(--hrt-red); border-radius: .9rem; padding: 1rem 1.2rem; }

/* Footer */
.hrt-footer { background: #f4f7f3; border-top: 1px solid var(--hrt-line); padding: 2.5rem 0 1.5rem; font-size: 1rem; }
.hrt-footer .footer-logo { width: 70px; height: 70px; }
.hrt-footer a, .article-body a { color: var(--hrt-green-dark); text-decoration: underline; text-underline-offset: .2em; }
.hrt-footer .prototype { border-top: 1px solid var(--hrt-line); margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; color: var(--hrt-muted); }

@media (max-width: 767px) {
    .hrt-header nav { width: 100%; }
    .hrt-header .container { gap: .65rem !important; }
    .hrt-menu { display: grid; grid-template-columns: auto auto 1fr; }
    .hrt-menu a { padding-inline: .5rem; }
    .home-intro { grid-template-columns: 1fr; }
    .hrt .container { --bs-gutter-x: 2.25rem; }
    .choices.two { grid-template-columns: 1fr; }
    .district-picker > div { width: 100%; }
    .stat { padding: .9rem; }
    .stat .label { font-size: 1rem; }
}
@media (max-width: 575px) {
    .hrt .btn-big { width: 100%; }
    .wizard-nav .btn-big { flex-basis: 100%; }
}
