/* Emergency Preparedness Calculator - mobile first */
.epc-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

/* Sliders */
.epc-slider label { font-weight: 600; display: block; margin-bottom: 8px; }
.epc-stepper { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 10px; }
.epc-value { font-size: 2.4rem; font-weight: 700; line-height: 1; min-width: 3ch; text-align: center; }
.epc-step { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary, #0069b4); background: #fff; color: var(--primary, #0069b4); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.epc-step:active { background: var(--primary, #0069b4); color: #fff; }
.epc-slider input[type=range] { width: 100%; height: 32px; accent-color: var(--primary, #0069b4); cursor: pointer; }
.epc-ticks { display: flex; justify-content: space-between; font-size: .8rem; color: #6b7480; padding: 0 4px; }

.epc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.epc-chip { border: 1px solid #cfd6de; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .9rem; cursor: pointer; min-height: 40px; }
.epc-chip.active { background: var(--primary, #0069b4); border-color: var(--primary, #0069b4); color: #fff; }

/* Summary tiles */
.epc-stat { text-align: center; padding: 14px 8px; height: 100%; }
.epc-stat strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.epc-stat span { display: block; font-weight: 600; font-size: .85rem; margin-top: 2px; }
.epc-stat small { display: block; color: #6b7480; font-size: .75rem; }

/* Guidance */
.epc-callout { border-left: 4px solid #2f7fd1; background: #eaf3fc; padding: 12px 14px; border-radius: 6px; margin-bottom: 12px; font-size: .92rem; }
.epc-callout-warn { border-left-color: #e0a100; background: #fff6da; }

/* List */
.epc-group { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); overflow: hidden; }
.epc-group > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.epc-group > summary::-webkit-details-marker { display: none; }
.epc-group > summary::after { content: '+'; font-size: 1.3rem; margin-left: 10px; }
.epc-group[open] > summary::after { content: '\2212'; }
.epc-count { margin-left: auto; background: #eef1f4; border-radius: 999px; font-size: .75rem; padding: 2px 9px; font-weight: 600; }
.epc-group ul { list-style: none; margin: 0; padding: 0 16px 8px; }
.epc-item { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; padding: 10px 0; border-top: 1px solid #eef1f4; }
.epc-item input { width: 20px; height: 20px; margin-top: 3px; }
.epc-item label { margin: 0; cursor: pointer; }
.epc-name { display: block; font-weight: 600; }
.epc-note { display: block; color: #6b7480; font-size: .82rem; margin-top: 2px; }
.epc-qty { grid-column: 2; font-weight: 700; color: var(--primary, #0069b4); margin-top: 4px; }
.epc-item input:checked + label .epc-name { text-decoration: line-through; color: #8a93a0; }

@media (min-width: 768px) {
    .epc-item { grid-template-columns: 24px 1fr 190px; }
    .epc-qty { grid-column: auto; text-align: right; margin-top: 0; }
    .epc-stat strong { font-size: 1.6rem; }
    .epc-stat span { font-size: 1rem; }
}

/* Hidden printable copy used by html2pdf */
.epc-pdf-host { position: absolute; left: -10000px; top: 0; width: 210mm; background: #fff; }
