.cl-hero { padding: 64px 0 40px; }
.cl-hero .lead { max-width: 720px; }

.cl-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-bottom: 80px; }
.cl-toc { position: sticky; top: 90px; align-self: start; }
.cl-toc nav { display: grid; gap: 2px; }
.cl-toc a {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); font-size: .92rem;
}
.cl-toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.cl-toc a span { color: var(--accent); font-weight: 700; font-size: .82rem; }

.cl-section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 18px; margin-bottom: 18px; scroll-margin-top: 90px;
}
.cl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cl-head h2 { font-size: 1.35rem; margin: 0 0 .3em; }
.cl-count { color: var(--accent); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.cl-section > .muted { font-size: .95rem; margin-bottom: 14px; }

.cl-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.cl-list li {
  break-inside: avoid; display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem;
}
.cl-list .n {
  flex: none; min-width: 30px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
}

.cl-cta { text-align: center; padding: 40px 20px; }
.cl-cta .hero-cta { justify-content: center; }

/* Hidden for customers, shown in inspector mode and print */
@media screen {
  body:not(.inspect) .cl-sheet, body:not(.inspect) .cl-tools, body:not(.inspect) .cl-notes { display: none; }
}

/* ---------- Inspector mode (/checklist?inspect) ---------- */
body.inspect .cl-hero, body.inspect .cl-cta, body.inspect .mobile-cta, body.inspect .footer { display: none; }
body.inspect .cl-sheet { display: block; }
body.inspect .cl-tools { display: flex; }
body.inspect .cl-notes { display: block; }
body.inspect .cl-layout { padding-top: 24px; }

.cl-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.cl-sheet-title { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.cl-sheet-title span { color: var(--muted); font-size: .88rem; }
.cl-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cl-fields label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cl-fields input, .cl-notes {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color-scheme: dark;
}
.cl-notes { margin-top: 12px; resize: vertical; }
.cl-legend { margin: 14px 0 0; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: -8px; }
.lg.ok { background: var(--ok); } .lg.att { background: var(--warn); } .lg.bad { background: var(--bad); } .lg.na { background: #556070; }

.cl-tools {
  position: sticky; top: 68px; z-index: 10; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(13, 17, 23, .92); backdrop-filter: blur(10px); padding: 10px 0; margin-bottom: 14px;
}
.cl-progress { margin-right: auto; font-weight: 700; font-size: .92rem; }
.cl-progress b { color: var(--bad); }

body.inspect .cl-list li { cursor: pointer; user-select: none; border-radius: 8px; padding: 10px 8px; }
body.inspect .cl-list li:hover { background: rgba(255, 255, 255, .03); }
body.inspect .cl-list li[data-s] .n { color: #0d1117; border-color: transparent; }
.cl-list li[data-s="ok"] .n { background: var(--ok); }
.cl-list li[data-s="att"] .n { background: var(--warn); }
.cl-list li[data-s="bad"] .n { background: var(--bad); }
.cl-list li[data-s="na"] .n { background: #556070; }
.cl-list li[data-s="na"] .t { color: var(--muted); text-decoration: line-through; }
.cl-list li[data-s="bad"] .t { color: var(--bad); font-weight: 600; }
.cl-list li[data-s="att"] .t { color: var(--warn); }

@media (max-width: 980px) {
  .cl-layout { grid-template-columns: 1fr; }
  .cl-toc { position: static; }
  .cl-toc nav { grid-template-columns: 1fr 1fr; }
  body.inspect .cl-toc { display: none; }
}
@media (max-width: 640px) {
  .cl-list { columns: 1; }
  .cl-section { padding: 20px 16px 14px; }
  .cl-fields { grid-template-columns: 1fr 1fr; }
  .cl-toc nav { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .nav, .cl-hero, .cl-toc, .cl-tools, .cl-cta, .footer, .mobile-cta { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .cl-layout { display: block; padding: 0; }
  .cl-sheet { display: block; background: none; border: 1px solid #999; color: #000; }
  .cl-sheet-title span, .cl-legend, .cl-fields label, .muted { color: #333 !important; }
  .cl-fields input { background: none; border: 0; border-bottom: 1px solid #999; border-radius: 0; color: #000; }
  .cl-section { background: none; border: 0; border-top: 2px solid #000; border-radius: 0; padding: 10px 0 4px; margin: 0; break-inside: auto; }
  .cl-head h2 { font-size: 13pt; }
  .cl-count { color: #000; }
  .cl-list li { border-top: 1px solid #ddd; padding: 3px 0; font-size: 9.5pt; }
  .cl-list li .t { color: #000 !important; }
  .cl-list .n { background: #fff; border: 1.5px solid #000; color: #000; }
  .cl-list li[data-s="ok"] .n { background: #b9f0d5; }
  .cl-list li[data-s="att"] .n { background: #ffe9a8; }
  .cl-list li[data-s="bad"] .n { background: #ffc4c4; }
  .cl-list li[data-s="na"] .n { background: #ddd; }
  .cl-notes { display: block; background: none; border: 1px solid #bbb; color: #000; min-height: 34px; }
  .cl-notes::placeholder { color: transparent; }
  .lg.ok { background: #b9f0d5; border: 1px solid #000; } .lg.att { background: #ffe9a8; border: 1px solid #000; }
  .lg.bad { background: #ffc4c4; border: 1px solid #000; } .lg.na { background: #ddd; border: 1px solid #000; }
  a { color: #000; }
}
