/* Website workshop and resource layouts. Brand colors follow reference.css. */
.lk-lesson, .lk-activity, .lk-pack, .bk-board, .grade-library {
  --work-ink: var(--ink, #565d6b);
  --work-copy: #47596e;
  --work-blue: #356ba7;
  --work-blue-fill: #3f72ae;
  --work-blue-wash: #edf4ff;
  --work-purple: #725390;
  --work-purple-wash: #f4effb;
  --work-edge: var(--line, #dce4ee);
  color: var(--work-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.lk-lesson, .lk-activity { margin-block: 0 2rem; }
.lk-flashcards { color: var(--ink); max-width: 1400px; margin-inline: auto; padding-bottom: 2rem; }
.lk-flashcards .lk-paper { max-width: 850px; margin: 0 auto; padding: clamp(1.2rem,3vw,2.1rem); }
.lk-flashcard-select, .grade-picker-label { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; font-weight: 800; }
.lk-flashcard-select select, .grade-picker-label select { min-width: 12rem; min-height: 44px; padding: .55rem .75rem; border: 1px solid #9aabc4; border-radius: 10px; background: #fff; color: #253c58; font: inherit; }
.lk-flashcard-instructions { max-width: 72ch; line-height: 1.6; }
.lk-flashcard { border: 1px solid #d5e3f5; border-radius: 18px; background: #f2f6ff; padding: clamp(1rem,3vw,2rem); text-align: center; }
.lk-flashcard-picture { display: grid; place-items: center; min-height: 190px; border-radius: 15px; background: white; font-size: clamp(5rem,14vw,8rem); }
.lk-flashcard h2 { margin: 1rem 0; }
.lk-flashcard-options, .lk-flashcard-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1rem; }
.lk-flashcard-options button, .lk-flashcard-actions button, .lk-reading-controls button, .lk-voice-entry button { min-height: 44px; padding: .65rem 1rem; border: 1px solid #9aabc4; border-radius: 999px; background: white; color: #356ba7; font: inherit; font-weight: 800; cursor: pointer; }
.lk-flashcard-options button[aria-pressed="true"] { border-color: #356ba7; background: #dceaff; }
.lk-flashcard-status { min-height: 1.5em; font-weight: 800; }
.lk-flashcard-callout { border: 1px solid #dce4ee; border-radius: 16px; padding: 1.25rem; background: #f1f5fc; }
.lk-flashcard-callout p { max-width: 70ch; }
.lk-flashcard-callout .lk-primary { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; padding: .65rem 1rem; background: #3f72ae; color: white; text-decoration: none; font-weight: 800; }
.lk-reading-controls, .lk-voice-entry { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin: 0 0 1rem; }
.lk-reading-controls span, .lk-voice-entry span { color: #47596e; font-size: .95rem; }
.lk-reading-controls button:disabled { opacity: .55; cursor: not-allowed; }
.lk-voice-entry { margin-top: .75rem; }
.lk-student-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 1rem; margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid #cbdaf0; border-radius: 14px; background: #f1f6fd; }
.lk-student-preview strong { display: block; color: #344964; font-size: 1.08rem; }
.lk-student-preview p { margin: .2rem 0 0; color: #526981; }
.lk-student-view { padding-left: 1rem; border-left: 1px solid #cbdaf0; }
.lk-student-preview .lk-primary { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: .65rem 1rem; border-radius: 999px; background: #3f72ae; color: #fff; text-decoration: none; font-weight: 850; }
.lk-tour { margin: 1.2rem 0 1.5rem; padding: clamp(1rem,2.5vw,1.6rem); border: 1px solid #cbdaf0; border-radius: 18px; background: linear-gradient(120deg,#f0f6ff,#f7f3fc); color: #314963; }
.lk-tour-disclosure { margin: 1rem 0 1.3rem; border: 1px solid #cbdaf0; border-radius: 14px; background: #f7f9fd; }
.lk-tour-disclosure > summary { display: flex; align-items: center; min-height: 48px; padding: .6rem 1rem; color: #356ba7; cursor: pointer; font-weight: 850; }
.lk-tour-disclosure[open] { padding: .2rem .8rem .7rem; }
.lk-tour-disclosure[open] > summary { padding-inline: .2rem; }
.lk-tour-disclosure .lk-tour { margin: .4rem 0 0; }
.lk-tour-heading h2 { margin: .2rem 0 .45rem; font-size: clamp(1.3rem,2vw,1.7rem); }
.lk-tour-heading p { max-width: 75ch; margin: 0 0 .85rem; line-height: 1.55; }
.lk-tour-player { min-height: 10rem; padding: .8rem; border: 1px solid #d5e2f2; border-radius: 14px; background: #fff; }
.lk-tour-slide[hidden] { display: none !important; }
.lk-tour-slide.is-entering { animation: lk-tour-enter .45s ease-out both; }
@keyframes lk-tour-enter { from { opacity: .55; transform: translateY(.45rem); } to { opacity: 1; transform: translateY(0); } }
.lk-tour-step { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; background: #edf4ff; color: #345f91; font-weight: 850; font-size: .9rem; }
.lk-tour-material { display: grid; gap: .45rem; min-height: 6rem; align-content: center; max-width: 42rem; margin: .7rem auto; padding: 1rem 1.2rem; border: 1px solid #d5e2f2; border-radius: 13px; background: #f4f7fb; text-align: center; }
.lk-tour-material strong { font-size: clamp(1.2rem,2.5vw,1.8rem); line-height: 1.35; }
.lk-tour-material-label { color: #526981; font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.lk-tour-reading { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; min-height: 6rem; max-width: 42rem; margin: .7rem auto; padding: 1rem; border-radius: 13px; background: #f4f7fb; }
.lk-tour-chunk { padding: .5rem .75rem; border: 2px solid #6f96c3; border-radius: 10px; background: #eaf2fc; color: #263b54; font-size: clamp(1.1rem,2.2vw,1.55rem); font-weight: 800; }
.lk-tour-boundary { color: #627895; font-weight: 850; }
.lk-tour-figure { display: grid; place-items: center; min-height: 7rem; margin: .5rem auto; }
.lk-tour-figure img { display: block; max-width: min(100%,30rem); max-height: 13rem; object-fit: contain; border-radius: 10px; }
.lk-tour-caption { max-width: 75ch; margin: .7rem auto .35rem; padding: .8rem 1rem; border-left: 4px solid #4076b2; border-radius: 7px; background: #f7f9fc; font-size: 1rem; line-height: 1.55; }
.lk-tour-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 .3rem; }
.lk-tour-controls button { min-height: 44px; padding: .55rem .85rem; border: 1px solid #9aabc4; border-radius: 999px; background: white; color: #356ba7; font: inherit; font-weight: 800; cursor: pointer; }
.lk-tour-more { display: inline-block; }
.lk-tour-more > summary { display: flex; align-items: center; min-height: 44px; padding: .55rem .85rem; border: 1px solid #9aabc4; border-radius: 999px; background: #fff; color: #356ba7; cursor: pointer; font-weight: 800; }
.lk-tour-more[open] > summary { border-radius: 13px 13px 0 0; }
.lk-tour-more > div { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem; border: 1px solid #9aabc4; border-top: 0; border-radius: 0 13px 13px 13px; background: #fff; }
.lk-tour-controls button:disabled { opacity: .55; cursor: not-allowed; }
.lk-tour-controls .lk-primary { background: #3f72ae; border-color: #3f72ae; color: white; }
.lk-tour-status { margin: .35rem 0; min-height: 1.5em; font-size: .94rem; color: #47596e; }
.lk-tour-stills { margin: .4rem 0; }
.lk-tour-stills summary { min-height: 44px; display: flex; align-items: center; color: #356ba7; cursor: pointer; font-weight: 800; }
.lk-tour-stills li { margin-block: .65rem; line-height: 1.55; }
.lk-tour-stills img { display: block; max-width: min(100%,28rem); max-height: 15rem; margin: .55rem 0; object-fit: contain; }
.lk-tour-response { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; padding: .55rem .9rem; border-radius: 999px; background: #3f72ae; color: white; font-weight: 850; text-decoration: none; }
.lk-tour-response:hover { background: #325f95; }
.grade-picker-module { padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #f1f5fc; }
.grade-picker-module p { max-width: 72ch; }
.grade-picker-hint, .grade-shelf-prompt { color: #526981; font-weight: 650; }
.grade-picker-label { margin: .3rem 0; }
.grade-library-head label { flex: 0 0 auto; white-space: nowrap; gap: .75rem; }
.grade-library-head label select { min-width: 11rem; }
.lk-heading, .guide-hero {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(118deg,#eaf3ff 0%,#f4f1fc 72%,#fff8ee);
}
.lk-heading { padding: clamp(1.4rem, 3.4vw, 3rem); margin: 0 0 1.5rem; }
.lk-heading h1 { margin: .7rem 0 0; font-size: clamp(1.95rem, 3.3vw, 3rem); line-height: 1.16; max-width: 32ch; }
.lk-heading p, .lk-pack-intro { font-size: 1.07rem; line-height: 1.65; max-width: 72ch; color: var(--work-copy); }
.lk-heading p { margin-top: .75rem; }
.lk-crumb { margin: 0 0 1rem; }
.lk-crumb .lk-link { color: var(--work-blue); text-decoration: underline; text-underline-offset: .17em; }
.lk-badges { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; }
.lk-band, .lk-skill {
  display: inline-flex; align-items: center; font-size: .83rem; font-weight: 800;
  line-height: 1.35; max-width: 100%;
}
.lk-band { border-radius: 999px; background: #edf4fd; color: #345f91; padding: .33em .78em; }
.lk-heading .lk-band { background: #fff; border: 1px solid #d5e3f5; }
.lk-skill { color: #52637b; }

.lk-pack { margin-block: clamp(1.6rem, 3vw, 2.45rem); }
.lk-pack h2, .lk-related h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.22; }
.lk-pack-intro { margin: .5rem 0 1.3rem; }
.lk-pack-intro p + p { margin-block-start: .55rem; }
.lk-shelf { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.lk-card, .lk-paper, .lk-aside, .bk-board {
  border: 1px solid var(--work-edge); border-radius: 17px; background: white;
  box-shadow: 0 3px 12px #344f720a; min-width: 0;
}
.lk-card { display: flex; flex-direction: column; padding: clamp(1rem, 1.8vw, 1.55rem); }
.lk-card h3 { margin: .65rem 0 .45rem; font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.35; }
.lk-card .lk-badges { min-height: 1.95rem; }
.lk-card .lk-skill { font-weight: 650; }
.lk-card .lk-materials { margin: 0; color: var(--work-copy); font-size: .97rem; line-height: 1.48; }
.lk-card .lk-materials b { color: var(--work-ink); font-weight: 800; }
.lk-card-tools { margin-top: auto; padding-top: 1rem; }
.lk-card-tools .lk-review { margin: 0; }
.lk-card-tools .lk-review > summary { padding: .7rem 0; }
.lk-sheet-excerpt { padding: .6rem .85rem; background: #f5f8fd; border-radius: .5rem; color: var(--work-copy); margin-bottom: .55rem; line-height: 1.55; }
.lk-sheet-excerpt p + p { margin-top: .5rem; }
.lk-shelf-links, .lk-stage-actions, .bk-other, .lk-plot-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem;
}
.lk-shelf-links { padding-top: .5rem; }
.lk-shelf-links :is(a,button), .lk-stage-actions :is(a,button), .bk-print, .lk-aside > .lk-link, .lk-related .lk-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; max-width: 100%; white-space: normal; text-align: center;
  font: inherit; font-size: .94rem; font-weight: 800; line-height: 1.35;
  text-decoration: none; border-radius: 999px; padding: .6rem 1rem;
}
.lk-shelf-links .lk-primary, .lk-stage-actions .lk-primary {
  border: 1px solid var(--work-blue-fill); color: white; background: var(--work-blue-fill);
}
.lk-shelf-links .lk-primary:hover, .lk-stage-actions .lk-primary:hover { background: #325f95; }
.lk-shelf-links .lk-document { padding-inline: .4rem; color: var(--work-blue); background: transparent; border: 0; }
.lk-document .glyph { width: 1.1em; height: 1.1em; }
.lk-link, .bk-print { color: var(--work-blue); text-underline-offset: .17em; }
.lk-shelf-links .lk-document:hover { text-decoration: underline; }
.lk-stage-actions .lk-link, .bk-print, .lk-aside > .lk-link, .lk-related .lk-link { background: white; border: 1px solid #a1bad8; color: var(--work-blue); }
.lk-stage-actions .lk-link:hover, .bk-print:hover, .lk-aside > .lk-link:hover, .lk-related .lk-link:hover { background: #eff5fc; }

.lk-stages {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem;
  padding: .4rem; border: 1px solid var(--work-edge); background: #f1f5fc;
  border-radius: 15px; margin: 0 0 1.2rem;
}
.lk-stages-hint { grid-column: 1 / -1; margin: .15rem .45rem .35rem; color: #526981; font-size: .94rem; }
.lk-stages a {
  display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .65rem .55rem;
  min-height: 44px; border-radius: 11px; text-align: center;
  text-decoration: none; font-weight: 800; color: var(--work-blue); line-height: 1.4;
}
.lk-stage-number { display: grid; flex: 0 0 1.6rem; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e2ecf8; font-size: .85rem; }
.lk-stages a[aria-current] .lk-stage-number { background: rgba(255,255,255,.22); }
.lk-stages a:hover { background: #fff; }
.lk-stages a[aria-current] { background: var(--work-blue-fill); color: #fff; }
.lk-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(15.5rem, .95fr); align-items: start; gap: clamp(1rem, 2.3vw, 1.8rem); }
.lk-paper, .lk-aside { padding: clamp(1.2rem, 2.5vw, 2.1rem); line-height: 1.68; }
.lk-paper > h2, .lk-aside > h2, .bk-board > :is(h1,h2) {
  margin: 1.5rem 0 .55rem; line-height: 1.24; font-size: clamp(1.3rem, 2.1vw, 1.73rem);
}
.lk-paper > :first-child, .lk-aside > :first-child, .bk-board > :first-child { margin-top: 0; }
.lk-paper h3, .lk-aside h3 { margin: 1.15rem 0 .4rem; font-size: 1.06rem; line-height: 1.45; }
.lk-paper p + p, .lk-aside p + p { margin-top: .6rem; }
.lk-paper :is(ul,ol), .lk-aside :is(ul,ol) { padding-inline-start: 1.4rem; margin: .5rem 0 .95rem; }
.lk-paper li, .lk-aside li { margin: .36rem 0; padding-inline-start: .12rem; }
.lk-paper li::marker { color: var(--work-blue); font-weight: 800; }
.lk-aside { background: #f1f5fc; }
.lk-aside > .lk-link { display: flex; justify-content: flex-start; width: 100%; margin: .65rem 0 0; border-radius: .8rem; text-align: start; }
.lk-aside > .lk-link .glyph { margin-right: .15rem; }
.lk-aside .lk-review:last-child { margin-bottom: 0; }
.lk-stage-actions { border-top: 1px solid var(--work-edge); margin-top: 1.4rem; padding-top: 1rem; }
.lk-source, .lk-task {
  margin: 1.2rem 0; padding: clamp(1rem,2.15vw,1.5rem);
  background: #f0f6fd; border: 1px solid #d6e4f4; border-radius: 12px;
}
.lk-task { background: var(--work-purple-wash); border-color: #e2d9ee; }
.lk-task h3 { color: #654d83; }
.lk-paper :is(.lk-source,.lk-task) > :is(h2,h3):first-child { margin: 0 0 .6rem; font-size: 1.15rem; }
.lk-source p, .lk-task p, .lk-activity .lk-paper li { white-space: pre-line; }
.lk-source p, .lk-task p, .lk-paper > p, .lk-paper li { max-width: 75ch; }
.lk-related { margin: 1.5rem 0; }
.lk-related h2 { margin-bottom: .65rem; }
.lk-related .lk-link { margin: .2rem .4rem .2rem 0; }
.lk-sidebar-list { padding-left: 1.25rem; }
.lk-sidebar-links { display: grid; gap: .6rem; }
.lk-sidebar-links .lk-link { font-weight: 750; }
.lk-aside .lk-sidebar-links .lk-link { min-height: 36px; display: inline-flex; align-items: center; }
.lk-aside .lk-aux-heading { font-size: 1.1rem; margin-top: 1.25rem; }
.lk-review, .lk-mat { margin: .95rem 0; border-top: 1px solid var(--work-edge); }
.lk-review > summary, .lk-mat > summary, .bk-setup > summary, .lk-picture > summary, .lk-figure summary {
  color: var(--work-blue); cursor: pointer; font-weight: 800; padding: .65rem 0; line-height: 1.45;
}
.lk-review > summary:hover, .lk-mat > summary:hover, .bk-setup > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.lk-response { display: block; margin: 1.3rem 0 .8rem; font-weight: 800; }
.lk-response span { display: block; color: var(--work-copy); font-size: .95rem; font-weight: 500; line-height: 1.5; margin: .25rem 0 .5rem; }
.lk-response textarea, .lk-organizer textarea, .lk-mat :is(input,select) {
  box-sizing: border-box; font: inherit; padding: .6rem .8rem;
  color: var(--work-ink); background: white; border: 1px solid #97aac1; border-radius: 8px;
}
.lk-response textarea, .lk-organizer textarea { width: 100%; resize: vertical; }
.lk-picture, .lk-figure { margin: 1rem 0 .5rem; }
.lk-picture img, .lk-figure img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; background: white; border: 1px solid var(--work-edge); border-radius: 10px; }
.lk-figure img { max-height: 31rem; }
.lk-figure figcaption { font-weight: 800; margin-top: .45rem; }
.lk-figure details { font-size: .94rem; }

.bk-board { margin: 1rem 0 2rem; padding: clamp(1.15rem, 2.6vw, 2rem); line-height: 1.55; }
.bk-board > p { max-width: 68ch; color: var(--work-copy); }
.bk-board .bk-setup { margin: .5rem 0 1rem; }
.bk-setup fieldset { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .3rem .75rem; max-width: 57rem; border: 1px solid var(--work-edge); background: #f7f9fd; border-radius: 10px; }
.bk-setup label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.bk-setup input { width: 1.12rem; height: 1.12rem; accent-color: var(--work-blue); }
.bk-choices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; max-width: 60rem; }
.bk-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; height: 100%; min-width: 0; padding: .7rem .5rem; border: 2px solid #d6e3f1; background: #fff; color: #364e68; border-radius: 13px; }
.bk-card img { display: block; width: min(100%,6rem); height: auto; aspect-ratio: 1; object-fit: contain; }
.bk-card span { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.bk-card:hover { border-color: #8eafd4; }
.bk-card[aria-pressed="true"], .bk-other [aria-pressed="true"] { border-color: var(--work-blue); background: var(--work-blue-wash); outline: 1px solid var(--work-blue); outline-offset: -2px; }
.bk-card[aria-pressed="true"] span::before { content: "✓ "; }
.bk-card[hidden] { display: none; }
.bk-other { margin-block: 1rem .5rem; }
.bk-other button { border: 1px solid #9eb7d5; color: var(--work-blue); background: #fff; border-radius: 999px; min-height: 44px; }
.bk-status:empty { display: none; }
.bk-status { margin: .5rem 0; font-weight: 800; }
.bk-print { margin-top: .5rem; }
.lk-aside .bk-board, .lk-mat .bk-board { margin: 0; border: 0; border-radius: 0; padding: .55rem 0; box-shadow: none; background: transparent; }
.lk-aside .bk-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
.lk-aside .bk-card span { font-size: .9rem; }
.bk-sensory { margin-top: 1rem; border-top: 1px solid var(--work-edge); }
.bk-sensory > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--work-blue); font-weight: 850; }
.bk-sensory > p { max-width: 65ch; font-size: .95rem; }
.bk-sensory-choices, .bk-sensory-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .65rem 0; }
.bk-sensory-choices button, .bk-sensory-controls button { min-height: 44px; padding: .55rem .8rem; border: 1px solid #9aabc4; border-radius: 999px; background: white; color: #356ba7; font: inherit; font-weight: 800; cursor: pointer; }
.bk-sensory-controls button:disabled { opacity: .55; cursor: not-allowed; }
.bk-sensory-controls span { align-self: center; color: #47596e; font-size: .9rem; }
.bk-sensory-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 8rem; max-width: 35rem; overflow: hidden; border: 1px solid #d5e2f2; border-radius: 14px; background: #eff5fc; }
.bk-sensory-stage[hidden] { display: none !important; }
.bk-sensory-stage span { display: block; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #70a3d1; }
.bk-sensory-stage span:nth-child(2) { width: 3.5rem; height: 3.5rem; background: #9a83bc; }
.bk-sensory-stage span:nth-child(3) { width: 2rem; height: 2rem; background: #e4b75d; }
.bk-sensory-stage.is-orbit span { animation: bk-orbit 12s linear infinite; }
.bk-sensory-stage.is-drift span { animation: bk-drift 9s ease-in-out infinite alternate; }
.bk-sensory-stage.is-drift span:nth-child(2) { animation-delay: -3s; }
.bk-sensory-stage.is-drift span:nth-child(3) { animation-delay: -6s; }
.bk-sensory-stage.is-fade { animation: bk-color-fade 10s ease-in-out infinite alternate; }
.bk-sensory-stage.is-paused, .bk-sensory-stage.is-paused span { animation-play-state: paused !important; }
@keyframes bk-orbit { from { transform: rotate(0deg) translateX(2rem) rotate(0deg); } to { transform: rotate(360deg) translateX(2rem) rotate(-360deg); } }
@keyframes bk-drift { from { transform: translate(-1.3rem,.55rem); } to { transform: translate(1.3rem,-.55rem); } }
@keyframes bk-color-fade { from { background: #eff5fc; } to { background: #f5effb; } }

.lk-mat output { display: block; color: var(--work-blue); font-weight: 800; margin: .6rem 0; }
.lk-mat [data-graph] > svg { display: block; max-width: 100%; width: 21rem; margin: 1rem auto; }
.lk-mat svg text { font: 11px sans-serif; fill: currentColor; }
.lk-axis { stroke: #344f72; stroke-width: 1.7; fill: none; }
.lk-gridline { stroke: #abbacb; stroke-width: .8; fill: none; }
.lk-mat svg circle { fill: #2f66a2; }
.lk-mat svg line { stroke: #386ba6; }
.lk-mat select { width: auto; max-width: 100%; }
.lk-plot-controls { margin-top: .85rem; }
.lk-plot-controls input[type=number] { width: 5rem; }
.lk-counters { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 2px; }
.lk-counters button, .lk-strip button, .lk-tiles button { min-width: 0; background: white; border: 1px solid #8ba3bf; }
.lk-counters button, .lk-strip button { min-height: 40px; padding: 2px; }
.lk-counters button[aria-pressed=true] span { display: block; border-radius: 50%; background: #3f72ae; width: 80%; aspect-ratio: 1; margin: auto; }
.lk-strip { display: flex; margin: .8rem 0; }
.lk-strip button { flex: 1; border-radius: 0; }
.lk-tiles { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); max-width: 33rem; }
.lk-tiles button { padding: 0; border-radius: 0; aspect-ratio: 1; }
.lk-strip button[aria-pressed=true], .lk-tiles button[aria-pressed=true] { background: repeating-linear-gradient(45deg,#3f72ae,#3f72ae 4px,#adc6e5 4px,#adc6e5 6px); }
.lk-organizer { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap: .6rem; }
.lk-organizer label { display: block; font-weight: 800; }
.lk-organizer textarea { display: block; margin-top: .3rem; }
:is(.lk-lesson,.lk-activity,.lk-pack,.bk-board) :is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #245ca1; outline-offset: 3px; }

#resources-list .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
#resources-list .lessoncard { display: block; border-radius: 16px; padding: 1.35rem; }
#resources-list .lessoncard h3 { line-height: 1.35; font-size: 1.18rem; }
#resources-list .lessoncard p { line-height: 1.6; }
.wrap:has(#resources-list) > .pagehead {
  padding: clamp(1.25rem,3vw,2.7rem); margin: 1rem 0 1.35rem;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(118deg,#eaf3ff,#f4f1fc 72%,#fff8ee);
}
main :is(.dr-routine,.trace-mam,.fp,.fp-page) header {
  position: static; inset: auto; z-index: auto; box-shadow: none; border: 0; background: transparent;
}
.dr-routine { --dr-border: #c7d6e5; --dr-ink: #42536b; --dr-accent: #356ba7; }
.trace-mam { --mamt-accent: #356ba7; --mamt-dark: #42536b; --mamt-border: #bdcede; }
.fp { --fp-ink: #405169; --fp-blue: #356ba7; --fp-line: #c9d7e7; --fp-soft: #eef4fd; }
.guide-view .directory-grid > section, .guide-view .path-card { border-color: var(--line); }
.quiet :is(.lk-heading,.guide-hero), .quiet .wrap:has(#resources-list) > .pagehead { background: #f3f6fb; }
.contrast :is(.lk-lesson,.lk-activity,.lk-pack,.bk-board) {
  --work-ink: #192c44; --work-copy: #243750; --work-blue: #174b83;
  --work-blue-fill: #23558e; --work-edge: #74859b;
}
.contrast :is(.lk-lesson,.lk-activity,.lk-pack,.bk-board) :is(h1,h2,h3,.lk-band,.lk-skill) { color: #1b3450; }
.contrast :is(.lk-heading,.lk-aside,.lk-source,.lk-task,.lk-card,.lk-stages,.lk-paper,.bk-board) { background: white; border-color: #74859b; }
.contrast .lk-stages a[aria-current] { background: var(--work-blue-fill); color: #fff; }
@media (max-width: 1000px) {
  .lk-shelf, #resources-list .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 770px) {
  .lk-layout { grid-template-columns: minmax(0,1fr); }
  .lk-activity .lk-aside { order: -1; }
  .lk-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .lk-tour-slide.is-entering,
  .bk-sensory-stage span, .bk-sensory-stage.is-fade { animation: none !important; }
}
@media (max-width: 570px) {
  .lk-shelf, #resources-list .tiles { grid-template-columns: minmax(0,1fr); }
  .bk-choices, .lk-aside .bk-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lk-heading { border-radius: 16px; }
  .grade-library-head { align-items: flex-start; }
  .grade-library-head label, .lk-flashcard-select { width: 100%; justify-content: space-between; }
  .grade-library-head label select, .lk-flashcard-select select { flex: 1; min-width: 0; }
  .lk-counters button { min-height: 32px; }
  .lk-shelf-links, .lk-stage-actions, .bk-other { gap: .45rem; }
  .lk-tour-controls { align-items: stretch; }
  .lk-tour-controls > button, .lk-tour-more { flex: 1 1 auto; }
  .lk-student-preview { grid-template-columns: minmax(0,1fr); }
  .lk-student-view { padding: .75rem 0 0; border-top: 1px solid #cbdaf0; border-left: 0; }
}
@media print {
  body:has(.lk-activity) > header, body:has(.lk-activity) footer, body:has(.lk-activity) .skip,
  .lk-activity .lk-crumb, .lk-activity .lk-stage-actions, .lk-activity .lk-related, .lk-activity .lk-review,
  .lk-activity .lk-sidebar-links, .lk-activity .lk-aux-heading, .lk-activity .bk-other, .lk-activity .bk-print, .lk-activity .lk-response span,
  .bk-setup, .lk-activity .lk-figure details, body:has(.lk-activity) .bottomtools { display: none !important; }
  .lk-activity .lk-layout { display: flex; flex-direction: column; gap: 0; }
  .lk-activity .lk-aside { order: -1; }
  .lk-activity :is(.lk-paper,.lk-heading,.lk-aside,.lk-source,.bk-board) { max-width: none; padding: 0; border: none; background: white; color: black; box-shadow: none; }
  .lk-activity .lk-heading { margin-bottom: .6rem; }
  .lk-activity .lk-heading h1 { font-size: 1.7rem; }
  .lk-activity .lk-aside li { margin: 0; }
  .lk-activity .lk-response textarea { height: 7rem; }
  .lk-activity .lk-source { break-inside: auto; }
  .lk-activity h2 { break-after: avoid; }
  .bk-card,.lk-figure,.lk-picture { break-inside: avoid; }
}

.lk-card-top { display:flex; align-items:center; gap:.7rem; min-width:0; }
.lk-card-icon { display:inline-grid; place-items:center; width:2.35rem; height:2.35rem; flex:0 0 auto; border-radius:.72rem; background:#eaf2fd; color:#3b6fa7; }
.lk-card-icon .glyph { width:1.15rem; height:1.15rem; }
.lk-pack:is([data-collection="math-practice"],[data-collection="classroom-adaptations"],[data-collection="understanding-progress-reports"]) .lk-card-icon { background:#f0ebf8; color:#705391; }
.lk-pack:is([data-collection="break-ideas"],[data-collection="sensory-friendly-strategies"],[data-collection="calm-down-activities"]) .lk-card-icon { background:#edf4e9; color:#4d7552; }
.lk-pack:is([data-collection="understanding-rewards-system"],[data-collection="motivation-tips"]) .lk-card-icon { background:#fff3db; color:#805b19; }
.lk-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:.42rem; font-size:.9rem; }
.lk-activity-layout { grid-template-areas:"student materials"; }
.lk-activity-layout .lk-paper { grid-area:student; }
.lk-activity-layout .lk-material-panel { grid-area:materials; }
@media(max-width:770px) { .lk-activity-layout { grid-template-areas:"materials" "student"; } }

/* Classroom photos match the public program pages. They convey no task instructions. */
@media screen and (min-width: 850px) {
  html:not(.quiet) .guide-view:has(> .lk-pack[data-collection="reading-activities"]) > .guide-hero:not(.with-photo) { --work-photo: url("/assets/feature-reading.webp"); }
  html:not(.quiet) .guide-view:has(> .lk-pack[data-collection="math-practice"]) > .guide-hero:not(.with-photo) { --work-photo: url("/assets/feature-math.webp"); }
  html:not(.quiet) .guide-view:has(> .lk-pack:is([data-collection="reading-activities"],[data-collection="math-practice"])) > .guide-hero:not(.with-photo) {
    display: grid; grid-template-columns: minmax(0,1.9fr) minmax(12rem,.85fr);
    gap: clamp(1rem,3vw,2.3rem); align-items: center;
  }
  html:not(.quiet) .guide-view:has(> .lk-pack:is([data-collection="reading-activities"],[data-collection="math-practice"])) > .guide-hero:not(.with-photo)::after {
    content: ""; display: block; aspect-ratio: 1.65; max-height: 13rem;
    background: #e9f1fb var(--work-photo) center / cover no-repeat; border-radius: 14px;
  }
}
