.template-library{--tpl-card:#fff;--tpl-line:#e9dde0;--tpl-soft:#fff4d6;--tpl-ink:#2d1920;--tpl-brand:#8a1538;max-width:1240px;margin:auto;padding:156px 28px 80px;color:var(--tpl-ink)}
.template-intro{max-width:790px;margin-bottom:44px}.template-eyebrow{color:#8a1538;font-weight:800;font-size:1rem;margin:0 0 10px}.template-intro h1{font-size:clamp(2rem,4vw,3rem);line-height:1.5;margin:0 0 12px}.template-lead{font-size:1.15rem;line-height:1.9;margin:0 0 24px;color:#66505a}.template-privacy{background:var(--tpl-soft);border-inline-start:4px solid #aa873d;border-radius:12px;padding:17px 20px;line-height:1.9;font-size:1rem}.template-privacy strong{display:block}
.template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.template-toolbar p{color:#66505a;font-size:.95rem;white-space:nowrap}.template-filters{display:flex;flex-wrap:wrap;gap:8px}.template-filters button{border:1px solid var(--tpl-line);border-radius:12px;min-height:48px;padding:10px 17px;background:var(--tpl-card);font:inherit;font-weight:700;color:var(--tpl-ink);cursor:pointer}.template-filters button[aria-pressed=true]{background:var(--tpl-brand);border-color:var(--tpl-brand);color:white}
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.template-card{background:var(--tpl-card);border:1px solid var(--tpl-line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column}.template-card[hidden]{display:none}.template-preview{display:flex;height:218px;background:#f6f1ee;border-bottom:1px solid var(--tpl-line);padding:16px;align-items:center;justify-content:center}.template-preview img{width:100%;height:100%;object-fit:contain;display:block}.template-card-body{padding:24px;display:flex;flex-direction:column;flex:1}.template-tag{font-size:.85rem;font-weight:700;color:#715816}.template-card h2{font-size:1.25rem;line-height:1.65;margin:8px 0 12px}.template-card p{margin:0;color:#66505a;line-height:1.9;font-size:1rem}.template-card ul{margin:16px 0 24px;padding-inline-start:19px;color:#66505a;line-height:1.8;font-size:.92rem}.template-card li+li{margin-top:6px}.template-download{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:auto;border-radius:12px;background:var(--tpl-brand);color:#fff;padding:13px 16px;min-height:50px;font-weight:700;text-decoration:none;line-height:1.6}.template-download:hover{background:#6e1030}.template-download span{font-size:1.3rem}
.template-help{margin-top:48px;border:1px solid var(--tpl-line);background:var(--tpl-card);border-radius:22px;padding:30px}.template-help h2{font-size:1.4rem;margin:0 0 20px}.template-help ol{padding-inline-start:24px;line-height:1.9;margin:0}.template-help li+li{margin-top:12px}.template-note{background:#f8f4f0;border-radius:12px;padding:18px;margin:24px 0 0;line-height:1.9;color:#66505a}.template-library a:focus-visible,.template-library button:focus-visible,.teacher-template-link:focus-visible{outline:3px solid #aa873d;outline-offset:4px}.teacher-template-link{display:block;border:1px solid #aa873d;background:#fff8e7;color:#8a1538;border-radius:14px;padding:16px 20px;margin:0 0 24px;font-weight:700;line-height:1.8}.teacher-template-link[hidden]{display:none}
@media(max-width:1050px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-library{padding-top:132px}}
@media(max-width:650px){.template-library{padding:120px 16px 48px}.template-intro{margin-bottom:28px}.template-lead{font-size:1rem}.template-toolbar{display:block}.template-toolbar p{margin:14px 0}.template-filters button{font-size:.9rem;padding:10px 12px}.template-grid{grid-template-columns:1fr;gap:20px}.template-card-body{padding:22px}.template-preview{height:220px}.template-help{padding:22px;margin-top:28px}.template-privacy{padding:14px 16px}}
.interactive-lesson-link{display:flex;text-decoration:none;align-items:center;gap:14px;border-color:#6B1430;background:linear-gradient(135deg,#42091D,#8D1B3D);color:#fff;line-height:1.6}
.interactive-lesson-icon{flex:0 0 52px;width:52px;height:52px}
.interactive-lesson-icon .il-cube{animation:il-float 3s ease-in-out infinite}
.interactive-lesson-icon .il-top{fill:#E9D9A8}.interactive-lesson-icon .il-left{fill:#C9A84C}.interactive-lesson-icon .il-right{fill:#A8863A}
.interactive-lesson-icon .il-book{fill:#fff;opacity:.92}.interactive-lesson-icon .il-spine{fill:none;stroke:#8D1B3D;stroke-width:1.5}
.interactive-lesson-copy{flex:1;min-width:0;display:flex;flex-direction:column}
.interactive-lesson-copy b{font-size:1.1rem}.interactive-lesson-copy small{font-weight:500;color:#F3E7EA;font-size:.9rem}
.interactive-lesson-3d{display:inline-block;direction:ltr;margin-inline-start:6px;padding:0 8px;border-radius:8px;background:#C9A84C;color:#42091D;font-size:.8rem;vertical-align:middle}
.interactive-lesson-badge{align-self:flex-start;margin-top:6px;border:1px solid #E9D9A8;color:#E9D9A8;border-radius:999px;padding:2px 12px;font-size:.8rem;font-weight:700}
@keyframes il-float{50%{transform:translateY(-3px)}}
