/* Free AI Guides page */
.dl-all { margin-top: 18px; }
.dl-section { padding: 16px 0 80px; }
.dl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.dl-level { margin-bottom: 40px; }
.dl-level[hidden] { display: none; }
.dl-level-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.dl-level-head p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.dl-pill { padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #0a0e1a; }
.dl-pill.beginner { background: #10b981; }
.dl-pill.intermediate { background: #a78bfa; }
.dl-pill.advanced { background: #f59e0b; }
.dl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dl-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.dl-cover { display: block; aspect-ratio: 210 / 150; overflow: hidden; background: #0a0e1a; }
.dl-cover img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.dl-card:hover .dl-cover img { transform: scale(1.04); }
.dl-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.dl-body h2 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.dl-body p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }
.dl-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.dl-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.dl-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }
@media (max-width: 560px) { .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } .dl-body { padding: 10px 12px 12px; } .dl-body h2 { font-size: 0.92rem; } .dl-body p { display: none; } .dl-actions { flex-direction: column; } .dl-actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dl-card, .dl-cover img { transition: none; } }

.dl-offline { margin-left: auto; }
.dl-offline-msg, .px-msg.dl-offline-msg { flex-basis: 100%; font-size: 0.82rem; color: var(--text-muted); }
.dl-offline-msg:empty { display: none; }
.dl-listen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dl-listen-btn { font: inherit; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); cursor: pointer; }
.dl-listen-btn:hover { border-color: var(--accent); }
.dl-audio { width: 100%; height: 36px; margin-top: 4px; }
@media (max-width: 560px) { .dl-offline { margin-left: 0; } .dl-listen-btn { width: 100%; } }

/* "Download all 18 guides (ZIP, 29 MB)" fits a 320px phone (founder 2026-10-18: no
   horizontal scroll bar). .btn is white-space: nowrap site-wide, which is right for short
   labels but not for this one: it needed 328px inside a 272px column, so the page scrolled
   sideways. Letting just this button wrap keeps every other button on one line. */
.dl-all .btn { white-space: normal; max-width: 100%; }
