/* Checklist pages: the checklist from lib/checklist.php and assets/js/checklist.js, the
   tailor-with-AI form and the page sections around them. Screen first, then print. */

/* ---------- Page ---------- */
.cl-page .cl-lead { max-width: 760px; margin: 0 auto; font-size: 17px; color: #444; }
.cl-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font-size: 14px; }
.cl-jump a { color: #286bd6; text-decoration: none; font-weight: 500; }
.cl-jump a:hover { text-decoration: underline; }

.cl-toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 0 10px; }
.cl-toolbar .btn { font-size: 14px; }
.cl-toolbar .badge { font-size: 13px; padding: 7px 12px; }
.cl-hint { text-align: center; font-size: 13px; color: #6c757d; margin: 0 auto 26px; max-width: 760px; }
.cl-summary { text-align: center; font-size: 15px; color: #444; margin: 0 auto 18px; max-width: 760px; }

/* ---------- Checklist ---------- */
.cl-section { margin: 0 0 40px; scroll-margin-top: 90px; }
.cl-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 2px solid #e9ecef; padding-bottom: 8px; margin-bottom: 16px; }
.cl-section-title { font-size: 26px; font-weight: 700; color: #1f2937; margin: 0; }
.cl-progress { font-size: 14px; color: #6c757d; }
.cl-progress .cl-done { font-weight: 700; color: #286bd6; }

.cl-roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 992px) {
    .cl-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-extras .cl-roles { grid-template-columns: minmax(0, 1fr); }
}

.cl-role { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 14px 18px 10px; box-shadow: 0 2px 8px rgba(19, 15, 53, 0.05); }
.cl-role-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cl-role-title { flex: 1 1 auto; font-size: 19px; font-weight: 700; color: #1f2937; margin: 0; }
.cl-role-count { font-size: 12px; font-weight: 600; color: #55606e; background: #f1f3f6; border-radius: 10px; padding: 2px 9px; white-space: nowrap; }
.cl-extras .cl-role { background: #fffaf2; border-color: #f3e2c4; }
.cl-extras .cl-role-head { justify-content: flex-end; }

.cl-copy-role, .cl-tools button { background: none; border: 0; border-radius: 6px; padding: 5px; line-height: 1; color: #6c757d; cursor: pointer; }
.cl-copy-role:hover, .cl-copy-role:focus-visible, .cl-tools button:hover, .cl-tools button:focus-visible { background: #eef3fb; color: #286bd6; }
.cl-copy-role img, .cl-tools img { display: block; opacity: 0.75; }
.cl-tools .fa-times { display: block; width: 15px; font-size: 15px; text-align: center; }

.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1f3f6; }
.cl-item:last-child { border-bottom: 0; }
.cl-check { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #286bd6; cursor: pointer; }
.cl-box { display: none; }
.cl-text { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.5; color: #2d3436; padding: 0 3px; border-radius: 4px; overflow-wrap: anywhere; }
.cl-text:focus { outline: 2px solid #286bd6; outline-offset: 1px; background: #f8f9ff; }
.cl-item.is-done .cl-text { color: #98a2ad; text-decoration: line-through; }
.cl-tools { flex: 0 0 auto; display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s ease; }
.cl-item:hover .cl-tools, .cl-item:focus-within .cl-tools { opacity: 1; }
@media (hover: none) { .cl-tools { opacity: 0.6; } }
.cl-add { background: none; border: 0; padding: 8px 0 2px; font-size: 14px; font-weight: 500; color: #286bd6; cursor: pointer; }
.cl-add:hover { text-decoration: underline; }

/* Only on paper */
.cl-print-kicker, .cl-print-top, .cl-print-foot { display: none; }

/* ---------- Tailor with AI ---------- */
.cl-tailor { background: #f0f7ff; border: 1px solid #d6e6fb; border-radius: 16px; padding: 28px 22px; }
.cl-tailor h2 { font-size: 26px; font-weight: 700; }
.cl-tailor .form-label { font-weight: 600; }
.cl-field-hint { font-size: 13px; color: #6c757d; margin: -4px 0 8px; }
.cl-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 0; padding: 6px 14px; font-size: 14px; background: #fff; border: 1px solid #d9e2ec; border-radius: 20px; cursor: pointer; }
.cl-pill input { accent-color: #286bd6; margin: 0; }
.cl-pill:has(input:checked) { background: #e8f0fe; border-color: #286bd6; }
.cl-pill:focus-within { outline: 2px solid #286bd6; outline-offset: 2px; }
.cl-chars { font-size: 13px; color: #999; }
.cl-ai-note { font-size: 13px; color: #6c757d; margin: 10px 0 0; }

.cl-page .example-chip { display: inline-block; min-height: 40px; margin: 4px; padding: 9px 16px; font-size: 13px; font-weight: 500; line-height: 22px; white-space: normal; color: #444; background: #fff; border: 1px solid #d9e2ec; border-radius: 20px; cursor: pointer; transition: all 0.2s ease; }
.cl-page .example-chip:hover, .cl-page .example-chip:focus { color: #fff; background: #286bd6; border-color: #286bd6; }

/* ---------- Run it with your team ---------- */
.cl-team { background: #fff; border: 1px solid #e6e9ef; border-radius: 16px; padding: 28px 24px; box-shadow: 0 2px 10px rgba(19, 15, 53, 0.06); }
.cl-steps { list-style: none; counter-reset: cl-step; margin: 0; padding: 0; }
.cl-steps li { position: relative; counter-increment: cl-step; padding: 4px 0 16px 50px; font-size: 16px; line-height: 1.6; }
.cl-steps li::before { content: counter(cl-step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #286bd6; color: #fff; font-weight: 700; }

/* ---------- How it works / why use it (no pictures yet) ---------- */
.cl-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .cl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cl-card { border-radius: 14px; padding: 22px 20px; }
.cl-card .fa { font-size: 28px; color: #286bd6; margin-bottom: 10px; }
.cl-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.cl-card p { margin: 0; color: #444; line-height: 1.65; }
.cl-tint-1 { background: #f0f7ff; }
.cl-tint-2 { background: #fef7f0; }
.cl-tint-3 { background: #f0faf4; }

/* ---------- FAQ and related tools (same look as the other tool pages) ---------- */
.cl-page .faq-item { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.cl-page .faq-item.active { border-color: #f0a500; box-shadow: 0 0 0 1px #f0a500; }
.cl-page .faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 24px; font-size: 16px; font-weight: 500; color: #333; text-align: left; background: none; border: none; cursor: pointer; }
.cl-page .faq-question:hover { background: #f1f1f1; }
.cl-page .faq-icon { min-width: 30px; font-size: 22px; font-weight: 600; color: #f0a500; text-align: center; transition: transform 0.3s ease; }
.cl-page .faq-item.active .faq-icon { transform: rotate(45deg); }
.cl-page .faq-answer { display: none; padding: 0 24px 18px; border-top: 1px solid #e9ecef; }
.cl-page .faq-answer p { margin: 14px 0 0; color: #555; line-height: 1.7; }
.cl-page .faq-item.active .faq-answer { display: block; }
.cl-page .related-tool-card { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cl-page .related-tool-card:hover { color: inherit; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.cl-page .c-bg-index { width: 100% !important; }

.cl-page a:focus-visible, .cl-page button:focus-visible, .cl-page input:focus-visible, .cl-page select:focus-visible, .cl-page textarea:focus-visible, .cl-page .example-chip:focus-visible {
    outline: 2px solid #286bd6; outline-offset: 2px;
}

@media (max-width: 575px) {
    .cl-page .cl-lead { font-size: 15px; }
    .cl-jump { gap: 4px 12px; font-size: 13px; }
    .cl-toolbar { gap: 6px; }
    .cl-toolbar .btn { padding: 6px 11px; font-size: 13px; }
    .cl-hint { font-size: 12px; margin-bottom: 18px; }
    .cl-section-title, .cl-tailor h2 { font-size: 22px; }
    .cl-role { padding: 12px 14px 8px; }
    .cl-text { font-size: 15px; }
    .cl-tailor, .cl-team { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cl-tools, .cl-page .example-chip, .cl-page .faq-item, .cl-page .faq-icon, .cl-page .related-tool-card { transition: none !important; transform: none !important; }
}

/* ---------- Print: the checklist only, with tick boxes and fill-in lines ---------- */
/* Sized so the 39-40 lines of the ready opening or closing checklist fit one Letter or A4 page. */
@media print {
    @page { margin: 11mm 12mm; }
    html, body { background: #fff !important; }
    #sticky-header, .footer, .copyright, .cl-noprint, .notifyjs-corner, .modal, .modal-backdrop { display: none !important; }
    .cl-print-wrap, .cl-print-wrap > .container { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }

    .cl-section { margin: 0; }
    .cl-section + .cl-section { break-before: page; page-break-before: always; }
    .cl-section.cl-extras { break-before: auto; page-break-before: auto; break-inside: avoid; page-break-inside: avoid; margin-top: 16pt; }

    .cl-print-kicker { display: block !important; margin: 0 0 4pt; font-size: 8pt; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
    .cl-print-top, .cl-print-bottom { display: flex !important; gap: 14pt; font-size: 9.5pt; line-height: 1.2; color: #000; }
    .cl-print-top { margin: 0 0 9pt; }
    .cl-fill { display: flex; flex: 1 1 0; align-items: flex-end; gap: 4pt; white-space: nowrap; }
    .cl-blank { display: block; flex: 1 1 auto; min-width: 48pt; height: 10pt; border-bottom: 0.8pt solid #000; }
    .cl-print-foot { display: flex !important; align-items: flex-end; gap: 14pt; margin-top: 10pt; }
    .cl-print-foot .cl-print-bottom { flex: 1 1 auto; }
    .cl-print-site { margin-left: auto; font-size: 7.5pt; line-height: 1.2; color: #666; white-space: nowrap; }

    .cl-section-head { border-bottom: 1.2pt solid #000; padding-bottom: 2pt; margin-bottom: 6pt; }
    .cl-section-title { font-size: 15pt; line-height: 1.2; color: #000; }
    .cl-progress, .cl-role-count, .cl-copy-role, .cl-tools, .cl-add, .cl-check { display: none !important; }

    .cl-roles { display: block !important; }
    .cl-role, .cl-extras .cl-role { margin: 0 0 6pt; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
    .cl-role-head { margin: 0 0 1.5pt; break-after: avoid; page-break-after: avoid; }
    .cl-role-title { font-size: 10.5pt; line-height: 1.25; color: #000; }
    .cl-item { gap: 6pt; padding: 1.1pt 0; border: 0 !important; break-inside: avoid; page-break-inside: avoid; }
    .cl-box { display: block !important; position: relative; flex: 0 0 auto; width: 8.5pt; height: 8.5pt; margin-top: 1.4pt; border: 0.9pt solid #000; }
    .cl-item.is-done .cl-box::after { content: "\2713"; position: absolute; left: 0.8pt; top: -2.6pt; font-size: 9pt; line-height: 1; }
    .cl-text { padding: 0; font-size: 9pt; line-height: 1.25; color: #000 !important; text-decoration: none !important; background: none !important; outline: 0 !important; }
}
