/* Incident Core additions */
.sev { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #eef2f2; color: #23373b; }
.sev-moderate { background: #fdf3d7; color: #5b4300; }
.sev-serious { background: #fde3d0; color: #6b2a00; }
.sev-critical { background: #5a1229; color: #fff; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .5rem 0; border-top: 1px solid var(--rule, #d9d4c8); }
.plain li:first-child { border-top: 0; }
.entry { padding: .75rem 0; border-top: 1px solid var(--rule, #d9d4c8); }
.entry:first-of-type { border-top: 0; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem 1.25rem; align-items: end; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: end; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0; }
.stat .figure { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bars th { font-weight: 400; width: 38%; }
.bar-cell progress { width: 100%; height: 1rem; accent-color: var(--brand, #1d5c63); }
details > summary { cursor: pointer; font-weight: 700; padding: .35rem 0; }
details[open] > summary { margin-bottom: .5rem; }
@media print { .no-print { display: none !important; } }

.site-main { padding: 0 !important; margin: 0 !important; }

/* Choices inside a form: small boxes with the button beside its words. (The front page uses the same class names for its large cards.) */
.form-group .options { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); padding: .25rem 0 0; }
.form-group label.option { display: flex; align-items: center; gap: .75rem; min-height: 44px; margin: 0; padding: .6rem .9rem; border: 1px solid var(--field-border, #857f6f); background: #fff; font-weight: 400; cursor: pointer; animation: none; }
.form-group label.option:has(input:checked) { border-color: var(--ink, #0d2b2e); box-shadow: inset 0 0 0 1px var(--ink, #0d2b2e); background: var(--brand-tint, #e6f1ef); }

/* ── The report form, made for a phone held in one hand ── */
.report fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.report legend, .report .form-group > label { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; padding: 0; }
.report .hint { display: block; margin: .3rem 0 0; }
.report legend + .hint { margin: 0 0 .6rem; }
.report .optional { font-weight: 400; color: var(--muted, #5b5a52); }
.report .options.kinds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.pick-find { margin: 0 0 .6rem; }
.pick-find label { font-weight: 400; font-size: .95rem; }
.pick-chosen { margin: 0 0 .5rem; font-weight: 600; }
.pick-chosen:empty { display: none; }
.pick-list { border: 1px solid var(--field-border, #857f6f); background: #fff; max-height: 19rem; overflow-y: auto; overscroll-behavior: contain; }
.form-group label.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; min-height: 48px; margin: 0; padding: .5rem .8rem; border-bottom: 1px solid var(--rule, #ddd6c8); font-weight: 400; cursor: pointer; }
.form-group label.pick-row:last-of-type { border-bottom: 0; }
.pick-row[hidden] { display: none !important; }
.pick-row input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0; }
.pick-row:has(input:checked) { background: var(--brand-tint, #e6f1ef); }
.pick-row:has(input:checked) .pick-name { font-weight: 700; }
.pick-name { flex: 1 1 9rem; }
.pick-what { color: var(--muted, #5b5a52); font-size: .88rem; }
.pick-none { margin: 0; padding: .8rem; }
.save-state { margin: 0; min-height: 3.2em; }   /* room kept for two lines, so the buttons below never move as someone goes to press them */
.report fieldset.form-group { margin-bottom: 1.25rem; }
@media (max-width: 34rem) {
  .report .options, .report .options.kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* two across: half the scrolling */
  .report label.option { padding: .55rem .55rem; gap: .45rem; line-height: 1.25; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
  .report label.option input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; }
  .report .cta-row { display: grid; gap: .6rem; }
  .report .cta-row .btn { width: 100%; justify-content: center; text-align: center; min-height: 52px; }
  .report textarea { min-height: 9rem; }
}
