* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #18264e; background: #eef0f4; }
body { margin: 0; font-size: 18px; line-height: 1.5; background: #eef0f4 url('site/teacher-resources-page-background.webp') center / cover fixed; }
main { max-width: 1200px; margin: 32px auto; padding: 28px; border: 2px solid #d3b465; border-radius: 20px; background: rgba(255,253,246,.97); box-shadow: 0 12px 40px #14274725; }
a { color: #253a8d; text-underline-offset: 3px; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b77c09; outline-offset: 3px; }
.home-link { display: inline-block; margin-bottom: 16px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
h1 { margin: 0 0 4px; font-size: 38px; line-height: 1.2; }
.intro { max-width: 710px; margin: 0; }
.instructions-download { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 12px 16px; border: 1px solid #cbd0dc; border-radius: 9px; background: #fff; font-size: 14px; font-weight: 650; text-decoration: none; }
.instructions-download span { color: #505c74; font-size: 12px; font-weight: 500; }
.instructions-download:hover { background: #eef5f2; }
.filters { display: grid; grid-template-columns: minmax(200px,1fr) minmax(190px,260px); gap: 16px; align-items: end; margin: 24px 0 20px; }
.filters label { display: grid; gap: 6px; font-size: 18px; font-weight: 650; }
input, select { width: 100%; min-height: 52px; padding: 12px; border: 1px solid #8690ab; border-radius: 9px; background: white; color: inherit; font: inherit; font-size: 18px; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23253a8d' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.result-count { grid-column: 1 / -1; margin: 0; color: #505c74; font-size: 16px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr)); gap: 14px; }
.topic-card { display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid #cbd0dc; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #18264e05; }
[hidden] { display: none !important; }
.preview { display: block; margin-bottom: 12px; border-radius: 8px; }
.preview img { display: block; width: 100%; height: auto; max-height: 160px; aspect-ratio: 3/2; object-fit: contain; border-radius: 6px; }
.card-body { display: flex; flex-direction: column; flex: 1; }
h2 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.scene { margin: 0 0 12px; color: #505c74; font-size: 16px; }
.vocabulary { display: none; }
.sheet-downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: auto; }
.sheet-downloads a { display: flex; min-height: 64px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 8px 5px; border: 1px solid transparent; border-radius: 8px; text-align: center; font-size: 14px; line-height: 1.25; font-weight: 650; text-decoration: none; transition: background-color .15s, border-color .15s; }
.sheet-downloads .tutor-download { color: #414565; background: #f2f3f8; }
.sheet-downloads .learner-download { color: #417568; background: #edf7f3; }
.sheet-downloads .tutor-download:hover { background: #e7e9f2; border-color: #b9bed1; }
.sheet-downloads .learner-download:hover { background: #e0f0e9; border-color: #a6c8ba; }
.download-icon { width: 26px; height: 26px; flex-shrink: 0; }
.no-results { padding: 32px; text-align: center; border: 1px dashed #aab4ca; border-radius: 12px; background: white; }
@media (max-width: 1250px) { main { margin: 24px; } }
@media (max-width: 850px) { .page-header { align-items: flex-start; flex-direction: column; gap: 18px; } }
@media (max-width: 700px) { main { margin: 12px; padding: 18px; } h1 { font-size: 32px; } .filters { grid-template-columns: 1fr; gap: 12px; } .topic-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); } .topic-card { padding: 14px; } }
@media print { body { background: white; } main { border: 0; box-shadow: none; width: 100%; margin: 0; padding: 0; } .filters, .instructions-download, .home-link { display: none; } .topic-card { break-inside: avoid; } }
