/* checklist.css — guías de bolsillo de Lumbre Política.
   Sólo se carga en /checklist. En pantalla: tarjetas legibles; al imprimir: una guía por hoja. */

.cl-page { padding-top: 34px; padding-bottom: 60px; }
.cl-hero { max-width: 74ch; margin-bottom: 28px; }
.cl-hero h1 { margin: 6px 0 14px; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; }
.cl-hero .lead { margin: 0 0 20px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.cl-stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.cl-stats b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-hero-actions { margin: 0; }

.cl-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 8px; }
.cl-index a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cl-index a:hover, .cl-index a:focus-visible { border-color: var(--accent); }
.cl-index strong { font-size: .92rem; line-height: 1.3; }
.cl-index span { font-size: .76rem; color: var(--muted); }

.cl-group { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.cl-group-head { max-width: 70ch; margin-bottom: 14px; }
.cl-group-head h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; }
.cl-group-head p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.cl-item { max-width: 82ch; margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; background: var(--surface); }
.cl-item-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.cl-num { flex: none; font-family: 'Literata', Georgia, serif; font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cl-item-title { flex: 1 1 auto; min-width: 0; }
.cl-item-title h3 { margin: 0 0 4px; font-family: 'Literata', Georgia, serif; font-size: 1.14rem; line-height: 1.3; }
.cl-intro { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.cl-tools { display: flex; flex: none; gap: 8px; align-items: center; }
.cl-dl, .cl-print { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--accent); font: inherit; font-size: .78rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.cl-dl:hover, .cl-print:hover, .cl-dl:focus-visible, .cl-print:focus-visible { border-color: var(--accent); background: var(--accent-soft); }

.cl-points { list-style: none; margin: 0; padding: 0; counter-reset: clp; }
.cl-points li { display: grid; grid-template-columns: 1.6em 1fr; gap: 2px 8px; padding: 9px 0; border-top: 1px dashed var(--line); counter-increment: clp; }
.cl-points li::before { content: counter(clp) '.'; grid-row: 1 / span 2; color: var(--accent); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-points strong { font-size: .92rem; line-height: 1.4; }
.cl-points span { color: var(--muted); font-size: .84rem; line-height: 1.45; }

.cl-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cl-flags p { margin: 0; padding: 10px 12px; border-radius: 6px; font-size: .84rem; line-height: 1.45; }
.cl-flags span { display: block; margin-bottom: 2px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.cl-alarm { background: rgba(224, 133, 60, .12); color: var(--ink); }
.cl-alarm span { color: #b25f1c; }
.cl-avoid { background: var(--accent-soft); color: var(--ink); }
.cl-avoid span { color: var(--accent); }

.cl-source { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cl-source a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.cl-source a:hover, .cl-source a:focus-visible { text-decoration: underline; }

.cl-empty { padding: 26px 0; border-top: 1px solid var(--line); }
.cl-empty h2 { margin: 0 0 8px; font-size: 1.25rem; }
.cl-empty p { max-width: 62ch; margin: 0 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.cl-note { max-width: 70ch; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.5; }
.cl-version { margin: 8px 0 0; color: var(--muted); font-size: .74rem; }

@media (max-width: 640px) {
    .cl-page { padding-top: 24px; }
    .cl-item { padding: 16px; }
    .cl-item-head { flex-wrap: wrap; }
    .cl-tools { width: 100%; justify-content: flex-end; }
    .cl-flags { grid-template-columns: 1fr; }
    .cl-stats { gap: 4px 18px; }
    .cl-stats b { font-size: 1.25rem; }
}

@media print {
    .site-header, .site-footer, .no-print, .cl-index, .cl-stats, .cl-hero-actions,
    .cl-note, .cl-version, .cl-empty { display: none !important; }
    .cl-page { padding: 0; }
    .cl-hero { margin-bottom: 10px; }
    .cl-hero .lead { margin-bottom: 0; }
    .cl-group { border-top: 0; padding: 0; }
    .cl-group-head { margin-bottom: 10px; }
    body.is-print-one .cl-group,
    body.is-print-one .cl-group-head,
    body.is-print-one .cl-item { display: none; }
    body.is-print-one .cl-item.is-print-target { display: block; }
    .cl-item { max-width: none; margin: 0; border: 0; border-top: 2px solid #000; border-radius: 0; padding: 0; background: #fff; break-inside: avoid; page-break-inside: avoid; }
    .cl-item + .cl-item { margin-top: 18px; padding-top: 18px; }
    .cl-num, .cl-intro, .cl-points span, .cl-source, .cl-flags p { color: #222; }
    .cl-points li { border-top-color: #ccc; }
    .cl-flags { grid-template-columns: 1fr 1fr; }
    .cl-alarm, .cl-avoid { background: #f4f4f4; }
    .cl-flags span { color: #000; }
    .cl-source a { color: #000; }
}
