/* Procespad page styles, on top of the shared kit (styles.css). */
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
.chip svg { width: 15px; height: 15px; flex: none; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.flow-card { padding: 16px; background: #ffffff; color: #0f172a; color-scheme: light; }
/* Mermaid uses class="label" internally; the kit's form .label (bold, grey) must not
   leak in, or labels outgrow the boxes Mermaid measured at build time. */
.flow-card svg .label { font-weight: 400; color: #0f172a; }
.flow-card svg { display: block; margin: 0 auto; height: auto; }
.flow-scroll { overflow-x: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e4e7; font-size: 0.85rem; color: #52525b; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; display: inline-block; }

.supplies { margin: 0 0 16px; }
.supplies h3 { font-size: 1rem; margin: 0 0 8px; }
.supplies ul { margin: 0; padding-left: 20px; columns: 2 220px; color: var(--ink-2); }

.sop { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sop li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sop .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--accent-soft); color: var(--accent); }
.sop h3 { font-size: 1.02rem; margin: 3px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sop p { margin: 0; color: var(--ink-2); }
.role { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.sop li.decision { background: var(--surface-2); border-style: dashed; }
.sop li.decision .num { background: transparent; color: var(--ink-3); }
.sop li.decision .num svg { width: 22px; height: 22px; }
.routes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 0.9rem; color: var(--ink-2); }
.routes b { color: var(--ink); }
.routes a { color: inherit; }

.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.progress { color: var(--ink-3); font-size: 0.9rem; }
.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; cursor: pointer; }
.checklist input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.checklist small { color: var(--ink-3); margin-left: 6px; white-space: nowrap; }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tips .card h3 { font-size: 1rem; margin: 0 0 6px; }
.tips .card p { margin: 0; color: var(--ink-2); }
.adapt { padding-left: 20px; color: var(--ink-2); }
.adapt li + li { margin-top: 6px; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cta { margin-top: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); }
.cta p { margin: 0; }

@media print {
  .site-header, .site-footer, .crumbs, .actions, .related, .no-print, .checklist-head button { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .card, .sop li, .checklist { box-shadow: none; break-inside: avoid; }
  .sop li { break-inside: avoid; }
  body.print-checklist main > *:not(.page-head):not(#checklist) { display: none !important; }
  body.print-checklist .page-head .lead { display: none; }
  body.print-sop #checklist, body.print-sop .after-sop { display: none !important; }
  .checklist input:checked + span { text-decoration: none; color: #000; }
}
.if-needed { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--line-strong); padding: 1px 7px; border-radius: 999px; }
.template-grid .tool-card span, .related .tool-card span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
