/* Taalam – lesson tools: lesson files on the task page (uses the Taalam Online theme colors when present) */
.tlt-files { display: flex; flex-direction: column; gap: 14px; background: var(--card, #fff); border: 1px solid var(--line, #e5e1d8); border-radius: var(--radius, 18px); padding: 20px 22px; }
.tlt-files__title { margin: 0 !important; display: flex; align-items: center; gap: 10px; font-family: var(--font-head, inherit); font-weight: 800; font-size: 20px; color: var(--ink, #16324f); }
.tlt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tlt-gallery__item { margin: 0; }
.tlt-gallery__item a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #e5e1d8); background: var(--paper, #fbfaf6); }
.tlt-gallery__item img { display: block; width: 100%; height: 200px; object-fit: contain; border-radius: 0 !important; transition: transform .25s ease; }
.tlt-gallery__item a:hover img { transform: scale(1.03); }
.tlt-gallery__item figcaption { font-size: 14px; color: var(--muted, #4a5568); margin-top: 6px; text-align: center; }
.tlt-pdf { border: 1px solid var(--line, #e5e1d8); border-radius: 12px; overflow: hidden; }
.tlt-pdf__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper, #fbfaf6); border-bottom: 1px solid var(--line, #e5e1d8); }
.tlt-pdf__badge { flex: none; background: #b32d2e; color: #fff; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 3px 8px; }
.tlt-pdf__name { flex: 1 1 200px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.tlt-pdf__actions { display: flex; gap: 8px; }
.tlt-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--ink, #16324f); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.tlt-btn:hover { background: var(--ink-dark, #0f2438); }
.tlt-btn--ghost { background: transparent; color: var(--ink, #16324f) !important; border: 1.5px solid var(--ink, #16324f); }
.tlt-btn--ghost:hover { background: var(--sky-2, #eef2f7); }
.tlt-pdf__frame { display: block; width: 100%; height: min(80vh, 760px); border: 0; background: #fff; }
@media (max-width: 600px) {
	.tlt-pdf__frame { height: 60vh; }
	.tlt-files { padding: 16px; }
}
