/* A compact, task-first catalogue: five small cards a row, picture on top. */
.lesson-resources {box-sizing: border-box; width: 100%; min-width: 0; max-width: 1120px; word-break: keep-all; overflow-wrap: break-word; margin: 0 auto; padding: 36px 24px 72px; color: #20263a;}
.lesson-resources-header {margin-bottom: 22px;}
/* The page title stays at 32px or more at every width (the image-quality registrations that use this page require it). */
.lesson-resources-header h1 {font-size: clamp(2rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 8px;}
.lesson-resources-header p {margin: 0; color: #525d70; line-height: 1.55;}
.lesson-resources-tools {display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 28px;}
.lesson-resources-search {flex: 1 1 360px; min-width: 0;}
.lesson-resources-search label {display: block; font-weight: 700; margin-bottom: 8px;}
.lesson-resources-search-field {display: flex; gap: 8px;}
.lesson-resources-search-field input {flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #aeb8c8; border-radius: 6px; font: inherit; background: white;}
.lesson-resources-search-field input::placeholder {color: #626a78; opacity: 1;}
.lesson-resources-search-field button {padding: 10px 22px; border: 0; border-radius: 6px; color: white; background: #544387; font: inherit; font-weight: 700; cursor: pointer;}
.lesson-resources-search p {font-size: .86rem; color: #596579; margin: 8px 0 0; line-height: 1.5;}
.lesson-resources-search p a, .lesson-resources-empty a, .lesson-resources-results a {color: #514084; text-decoration: underline; text-underline-offset: 3px;}
.lesson-resources-paths {display: flex; border: 1px solid #ccd3de; border-radius: 6px; overflow: hidden; background: #fff;}
.lesson-resources-paths a {display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-left: 1px solid #e3e7ee; color: #344158; text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap;}
.lesson-resources-paths a:first-child {border-left: 0;}
.lesson-resources-paths a[aria-current] {background: #514084; color: #fff;}
.lesson-resources a:focus-visible, .lesson-resources button:focus-visible, .lesson-resources input:focus-visible {outline: 3px solid #b287ed; outline-offset: 3px;}
.lesson-resources-results {display: flex; gap: 16px; margin: -8px 0 20px;}
.lesson-resources-group {margin: 0 0 34px;}
.lesson-resources-group-header {display: flex; align-items: baseline; gap: 12px; margin: 0 0 13px; flex-wrap: wrap;}
.lesson-resources-group-header h2 {font-size: 1.22rem; margin: 0;}
.lesson-resources-group-header h2 span {font-size: .875rem; color: #667187;}
.lesson-resources-group-header p {margin: 0; color: #647083; font-size: .88rem;}
.lesson-resources-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;}
.lesson-resources-grid + .lesson-resources-grid {margin-top: 14px;}
.lesson-resources-card-wrap {position: relative; min-width: 0; display: flex;}
.lesson-resources-card {width: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d9dfe8; border-radius: 8px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s;}
.lesson-resources-card:hover {border-color: #9c8aba; box-shadow: 0 4px 16px #26304b16;}
.lesson-resources-cover {width: 100%; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #eeeaf5;}
.lesson-resources-cover--fallback {display: flex; align-items: center; justify-content: center; padding: 14px; color: #342757; font-size: 1.1rem; font-weight: 800; text-align: center;}
.lesson-resources-cover img {display: block; width: 100%; height: 100%; object-fit: contain;}
/* The bottom row (open label, 44px favourite button) gets its own height so it never covers the text. */
.lesson-resources-card-copy {display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 11px 13px 58px;}
.lesson-resources-card h3 {font-size: 1rem; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 5px;}
.lesson-resources-summary {font-size: .84rem; color: #4a566b; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;}
.lesson-resources-comparison {font-size: .78rem; line-height: 1.4; color: #5e4d87; margin: 6px 0 0;}
.lesson-resources-open {position: absolute; left: 14px; right: 56px; bottom: 18px; font-size: .86rem; font-weight: 750; color: #544387; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.lesson-resources-card-wrap > .service-favorite-toggle {position: absolute; right: 8px; bottom: 6px;}
.lesson-resources-door {display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid #d9dfe8; border-radius: 8px; background: #fff; color: inherit; text-decoration: none;}
.lesson-resources-door img {flex: none; width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;}
.lesson-resources-door strong {display: block; font-size: 1.05rem;}
.lesson-resources-door small {display: block; margin-top: 3px; font-size: .86rem; color: #596579;}
.lesson-resources-door-go {margin-left: auto; color: #544387; font-weight: 800;}
.lesson-resources-door:hover {border-color: #9c8aba;}
.lesson-resources-empty {padding: 35px 20px; background: #fff; border: 1px solid #d9dfe8; border-radius: 12px;}
.lesson-resources-empty h2 {font-size: 1.1rem; margin: 0 0 8px;}
.lesson-resources-empty p {color: #596579;}
/* Phones keep one card a row with the picture on top (the rule at the end of this file). */
@media (max-width: 600px) {.lesson-resources {padding: 24px 16px 56px;} .lesson-resources-paths {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%;} .lesson-resources-paths a {justify-content: center; border-left: 0; border-top: 1px solid #e3e7ee;} .lesson-resources-paths a:nth-child(-n + 2) {border-top: 0;} .lesson-resources-paths a:nth-child(even) {border-left: 1px solid #e3e7ee;} .lesson-resources-grid {grid-template-columns: 1fr; gap: 12px;} .lesson-resources-summary {-webkit-line-clamp: unset;} .lesson-resources-door img {display: none;} .lesson-resources-door {padding: 14px;} }

.lesson-material-results{margin:0 0 32px}.lesson-material-list{list-style:none;padding:0;margin:0;border:1px solid #d9dfe8;border-radius:12px;overflow:hidden;background:white}.lesson-material-list li+li{border-top:1px solid #e7eaf0}.lesson-material-list a{display:block;padding:18px 20px;color:inherit;text-decoration:none}.lesson-material-list a:hover{background:#f8f7fb}.lesson-material-label{color:#647083;font-size:.8rem}.lesson-material-list h3{font-size:1.05rem;margin:5px 0;line-height:1.5}.lesson-material-list p{font-size:.92rem;line-height:1.6;color:#344258;margin:5px 0}.lesson-material-action{display:block;color:#544387;font-size:.85rem;font-weight:700;margin-top:8px}.lesson-material-pagination{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:16px}.lesson-material-pagination a{padding:10px;border:1px solid #ccd3de;border-radius:8px;color:#514084}.lesson-resources-results{flex-wrap:wrap}@media(max-width:600px){.lesson-resources-card{flex-direction:column}.lesson-resources-cover{width:100%;flex:auto;margin:0;border-radius:0;max-height:160px;background:#f8f9fb}.lesson-resources-cover img{object-fit:contain}.lesson-resources-open{left:16px}.lesson-material-list a{padding:16px}}
