/* Trang Học qua gõ câu: lộ trình theo cấp và các bộ câu theo chủ đề (style pastel, tranh vẽ tay từ js/tpics.js) */
.tpl { display: grid; gap: 16px; }
.tpl .pic { width: 100%; height: 100%; display: block; }
.tp-hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tp-hd h2 { margin: 0 0 6px; font-size: 1.45rem; }
.tp-hi { width: 52px; height: 52px; flex: none; }
.tp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--fg); font-weight: 700; font-size: .85rem; }
.tp-pills svg { width: 15px; height: 15px; }
.tp-go { margin-left: auto; white-space: nowrap; }
.tp-sets { margin-left: auto; font-weight: 800; color: var(--muted); }
.tp-lvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.tp-lv { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; padding: 14px 16px 12px; border: 2px solid transparent; border-radius: 20px; background: var(--card); color: var(--fg); font-family: var(--font-ui); cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--fg) 10%, transparent); min-height: 178px; }
.tp-lv:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fg) 22%, transparent); }
.tp-lv.on { border-color: #6f9be0; background: color-mix(in srgb, var(--t-blue) 55%, var(--card)); }
.tp-lv b { font-size: 1.02rem; line-height: 1.25; } .tp-lv small { color: var(--muted); font-weight: 700; line-height: 1.35; }
.tp-badge { justify-self: start; padding: 3px 12px; border-radius: 999px; background: #dbe8fb; color: #2f5fa8; font-weight: 800; font-size: .85rem; }
html[data-theme="dark"] .tp-badge { background: #34507f; color: #e5eeff; }
.tp-now { position: absolute; top: 12px; right: 12px; font-style: normal; font-weight: 800; font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: #3b3a30; color: #fff; }
.tp-cnt { font-style: normal; font-weight: 800; color: #2f5fa8; margin-top: 4px; } html[data-theme="dark"] .tp-cnt { color: #a9c6f5; }
.tp-foot { color: var(--muted); font-weight: 700; font-size: .85rem; }
.tp-lv .stbar { margin: 2px 0; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.tp-tile { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 2px solid transparent; border-radius: 18px; background: var(--card); color: var(--fg); font-family: var(--font-ui); cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--fg) 10%, transparent); }
.tp-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fg) 22%, transparent); }
.tp-ti { width: 46px; height: 46px; flex: none; padding: 5px; border-radius: 14px; background: color-mix(in srgb, var(--t-lemon) 60%, var(--card)); }
.tp-tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tp-tx b { font-size: 1rem; line-height: 1.25; } .tp-tx small { color: var(--muted); font-weight: 700; }
.tp-tx .stbar { margin: 3px 0 1px; } .tp-pc { font-size: .78rem; }
@media (max-width: 560px) { .tp-go { margin-left: 0; width: 100%; } .tp-lvs { grid-template-columns: repeat(2, 1fr); } .tp-grid { grid-template-columns: 1fr; } }
