/* #288 Help content (staff only), on the Finances page's base (finances.css): same palette, 44px targets, text at
   least 14px. What's added here: the section tabs, the answer and guide lists, the editor dialog (a full-screen sheet
   on a phone), claims findings, the step editor and the picture grid. */

.hc-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hc-tabs a[aria-current="page"] .count { background: #fff; color: var(--ink); }
.count:empty { display: none; }

.hc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.hc-row { display: grid; gap: 4px; width: 100%; min-height: 44px; padding: 12px 14px; text-align: left; font: inherit; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.hc-row:hover { border-color: #a9d3e6; background: #fbfdfe; }
.hc-row strong { font-size: 15px; overflow-wrap: anywhere; }
.hc-row .preview { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.hc-meta .tag { background: #e6f2f8; color: #075e82; }
.hc-meta .tag.changed { background: var(--good-bg); color: var(--good); }
.hc-meta .tag.hidden-tag { background: #eef1f3; color: #4a5c66; }
.hc-row.is-hidden strong, .hc-row.is-hidden .preview { opacity: .6; }

/* The editor: a centred dialog on a computer, a full-screen sheet on a phone. */
.hc-editor { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; color: var(--ink);
  box-shadow: 0 24px 60px #0f2a3640; }
.hc-editor::backdrop { background: #17303e80; }
.hc-editor form { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.hc-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; border-bottom: 1px solid var(--line); }
.hc-editor-head h2 { margin: 0; font-size: 20px; }
.hc-editor-scroll { flex: 1 1 auto; overflow-y: auto; }
.hc-editor-body { padding: 16px 20px; display: grid; gap: 16px; }
/* Typed text in normal weight: the labels around the fields are bold, and long answers read better plain. */
main input, main select, main textarea, .hc-editor input, .hc-editor select, .hc-editor textarea { font-weight: 400; }
.hc-editor-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fbfdfe; }
.hc-spacer { flex: 1; }
.hc-editor label .hint, .hc-editor .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.hc-editor textarea { min-height: 88px; }
.hc-editor textarea.long { min-height: 200px; }
.hc-count { justify-self: end; color: var(--muted); font-size: 14px; font-weight: 400; }
.hc-count.over { color: var(--bad); font-weight: 650; }
.hc-field-error { color: var(--bad); font-size: 14px; font-weight: 600; margin: 0; }
.hc-field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-bg); }

.hc-audience { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 0; }
.hc-audience legend { font-size: 14px; font-weight: 650; padding: 0 4px; }
.hc-audience .check { align-items: flex-start; padding: 2px 0; }
.hc-audience .check span { padding-top: 11px; display: grid; gap: 2px; }
.hc-audience .check span small { color: var(--muted); font-size: 14px; font-weight: 400; }
.hc-audience .phone-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.hc-findings { margin: 16px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); }
.hc-findings h3 { margin: 0 0 6px; font-size: 15px; }
.hc-findings ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: 14px; }
.hc-findings q { font-weight: 700; color: var(--bad); }
.hc-findings.ok { background: var(--good-bg); color: var(--good); }

.hc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.hc-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hc-step { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: #fbfdfe; }
.hc-step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.hc-step-head h3 { margin: 0; font-size: 15px; }
.hc-step-actions { display: flex; flex-wrap: wrap; gap: 2px; }
.hc-step-picture { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hc-step-picture img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.hc-step-picture label { flex: 1 1 220px; }

.hc-upload { margin: 12px 0 18px; padding: 14px; border: 1px dashed #b9cbd4; border-radius: 12px; background: #fbfdfe; }
.hc-upload .wide-2 { grid-column: span 2; }
.hc-pictures { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hc-pictures li { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.hc-pictures img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f1f5f7; border-radius: 8px; }
.hc-pictures .name { font-weight: 650; overflow-wrap: anywhere; }
.hc-pictures .meta { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .hc-editor { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .hc-editor form { max-height: 100dvh; height: 100%; }
  .hc-editor-body { padding: 14px 16px; }
  .hc-editor-head, .hc-editor-foot { padding-left: 16px; padding-right: 16px; }
  .hc-findings { margin: 14px 16px 0; }
  .hc-two { grid-template-columns: 1fr; }
  .hc-upload .wide-2 { grid-column: auto; }
  .panel-head button { width: 100%; }
}
