/* SHOT Volunteer Skills Record. One stylesheet, system fonts, no external requests. */
:root {
  --tap: 44px;
  --bg: #f6f7f8; --surface: #ffffff; --text: #14181c; --muted: #4a555f; --line: #cfd6dc;
  --brand: #0b7d68; --brand-text: #ffffff; --accent: #5b00b8;
  --danger: #b3261e; --ok: #0b6b3a; --focus: #1a56db;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e10; --surface: #151a1e; --text: #f2f5f7; --muted: #a9b4bd; --line: #2c353c;
    --brand: #1abc9c; --brand-text: #04110e; --accent: #b98cff;
    --danger: #ff8a80; --ok: #6fdc9c; --focus: #8ab4ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
header.site a.brand { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }

main { max-width: 36rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
p { margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 1.05rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.stack > * + * { margin-top: 12px; }
.card > h2:first-child { margin-top: 0; }
.card .note { margin-top: 12px; }

button, input, .btn, a.link, select, textarea { min-height: var(--tap); font: inherit; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border-radius: var(--radius); border: 2px solid var(--brand); background: var(--brand); color: var(--brand-text); font-weight: 700; text-decoration: none; cursor: pointer; width: 100%; }
.btn.secondary, button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
button[disabled] { opacity: .55; cursor: not-allowed; }
a.link { display: inline-flex; align-items: center; color: var(--brand); font-weight: 600; }
.actions { display: grid; gap: 12px; margin: 20px 0; }

.field { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
input[type=text], input[type=search], select, textarea { width: 100%; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
input.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
label.check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 8px 0; font-weight: 500; }
input[type=checkbox] { flex: none; width: 24px; min-height: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.status { min-height: 1.5em; margin: 12px 0; font-weight: 600; }
.status:focus { outline: none; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.status.busy { color: var(--muted); }

.recovery { font: 700 1.1rem/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; overflow-wrap: anywhere; text-align: center; padding: 16px 8px; border: 2px dashed var(--accent); border-radius: var(--radius); user-select: all; }
.warn { border-left: 4px solid var(--accent); padding-left: 12px; }

ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { padding: 12px 0; border-bottom: 1px solid var(--line); min-height: var(--tap); display: flex; align-items: center; }
.empty { color: var(--muted); text-align: center; padding: 24px 8px; }
.note { color: var(--muted); font-size: .85rem; }
[hidden] { display: none !important; }
footer.site { max-width: 36rem; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: .85rem; }

@media (min-width: 600px) { .actions { grid-template-columns: repeat(3, 1fr); } .btn, button { width: auto; } .actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* evidence: rating groups, the anchors and the examples */
fieldset.skill { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; padding: 8px 12px 12px; min-width: 0; }
fieldset.skill legend { font-weight: 700; padding: 0 6px; }
label.choice { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 8px 4px; font-weight: 500; border-radius: 8px; overflow-wrap: anywhere; }
label.choice:has(input:checked) { background: color-mix(in srgb, var(--brand) 14%, transparent); }
input[type=radio] { flex: none; width: 24px; min-height: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand); }
textarea { display: block; width: 100%; padding: 8px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); resize: vertical; }
select { max-width: 100%; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.card.feedback { border-left: 4px solid var(--accent); }
ul.evidence li { display: block; }
ul.evidence .quote { display: block; color: var(--muted); font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-from { font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
ul.list li { overflow-wrap: anywhere; }
ul.list li button { justify-content: flex-start; text-align: left; }

/* trends and the print view */
button.danger { border-color: var(--danger); }
button.danger:not(.secondary) { background: var(--danger); color: #ffffff; }
button.secondary.danger { color: var(--danger); }
.skill-sum { border-top: 1px solid var(--line); padding-top: 12px; }
.skill-sum h3 { font-size: 1.05rem; margin: 0 0 8px; }
details.skill-sum > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
details.skill-sum > summary::-webkit-details-marker { display: none; }
details.skill-sum > summary::before { content: "\25B8"; flex: none; }
details.skill-sum[open] > summary::before { content: "\25BE"; }
.skill-sum h4 { font-size: .95rem; margin: 12px 0 4px; }
dl.cells { margin: 0; }
dl.cells > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 2px 0; }
dl.cells dt { font-weight: 600; }
dl.cells dt::after { content: ":"; }
dl.cells dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
dl.cells.totals { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); }
@media print {
  .no-print { display: none !important; }
  :root { --bg: #ffffff; --surface: #ffffff; --text: #000000; --muted: #333333; --line: #999999; --accent: #000000; }
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  header.site { border-bottom: 1px solid #999999; }
  .skip { display: none; }
  main { max-width: none; padding: 0; }
  .skill-sum, .card { break-inside: avoid; }
  details.skill-sum > summary::before { display: none; }
  .badge { border: 2px solid #000000; color: #000000; }
}
/* cohort measures */
#cohort h3 { font-size: 1rem; margin: 20px 0 4px; }
ul.measure { margin: 0; padding-left: 20px; }
ul.measure li { margin: 0 0 8px; overflow-wrap: anywhere; }
