/* Worksheet access comes before artwork or the full teaching notes. */
.lfl-resource-meta { margin: 0 0 10px; color: var(--muted); font-size: .93rem; font-weight: 800; }
.lfl-resource-meta span { padding: 0 5px; }
.lfl-resource-lead { margin: 0 0 18px; max-width: 75ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.lfl-resource-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; }
.lfl-resource-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; margin: 0; font-weight: 800; text-decoration: none; border-radius: 10px; }
.lfl-resource-actions .lfl-read-more { color: var(--ink); background: #fff; border: 2px solid #5d6471; }
.lfl-resource-actions a:focus-visible { outline: 3px solid #a24e00; outline-offset: 4px; }
.lfl-resource-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.lfl-resource-details { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--stroke); }
#complete-description { scroll-margin-top: 110px; }
.lfl-resource-media { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; gap: 24px; margin: 28px 0; }
.lfl-resource-media figure { margin: 0; min-width: 0; }
.lfl-resource-media img { display: block; max-width: 100%; height: auto; }
.lfl-pdf-preview img { width: 100%; border: 1px solid #aeb8c3; background: white; box-shadow: 0 8px 22px #10243b15; }
.lfl-resource-art img { border-radius: 14px; }
.lfl-resource-media figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.lfl-resource-details .lfl-introLead { max-width: 80ch; }
@media (max-width: 640px) {
  .lfl-post-title { font-size: clamp(1.45rem,5.7vw,1.9rem); line-height: 1.22; }
  .lfl-post-card { padding: 18px; }
  .lfl-resource-lead { font-size: 1rem; line-height: 1.5; }
  .lfl-resource-actions { gap: 10px; }
  .lfl-resource-actions a { flex: 1 1 140px; padding: 10px 12px; }
  .lfl-resource-media { grid-template-columns: 1fr; }
  .lfl-resource-art { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

.lfl-page-gallery { margin-top: 2rem; }
.lfl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lfl-gallery-grid li { text-align: center; font-size: .8rem; }
.lfl-gallery-grid img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto .3rem;
  border: 1px solid #b9b0a4;
  border-radius: 4px;
  background: #fff;
}
